Atlas / MCP servers / seanivore / File Preview

File PreviewSAFE

mcp/seanivore/file-preview

MCP server for HTML file preview and analysis - Has been weird with OS but good on Cline so WIP

Verdict
SAFE
Grade
B
Trust score
89 /100
Exposed tools
2 2r · 0w · 0d
Transport
stdio
License
MIT
Stars
24
01

Overview

From the repository's own README, as read at the audited commit. Badges and raw HTML are left out.

A Model Context Protocol (MCP) server that provides HTML file preview and analysis capabilities. This server enables capturing full-page screenshots of local HTML files and analyzing their structure.

Features

  • File Preview: Capture full-page screenshots of HTML files with proper CSS styling
  • Content Analysis: Analyze HTML structure (headings, paragraphs, images, links)
  • Local File Support: Handle local file paths and resources
  • Screenshot Management: Save screenshots to a dedicated directory

Installation

  1. Clone the repository:
git clone https://github.com/your-username/mcp-file-preview.git
cd mcp-file-preview
  1. Install dependencies:
npm install
  1. Build the project:
npm run build

Configuration

Add the server to your Claude or Cline MCP settings:

Claude Desktop App

Add to ~/Library/Application Support/Claude/claude_desktop_config.json:

{
"mcpServers": {
"file-preview": {
"command": "node",
"args": ["/path/to/mcp-file-preview/build/index.js"]
}
}
}

Cline VSCode Extension

Add to VSCode's MCP settings:

{
"mcpServers": {
"file-preview": {
"command": "node",
"args": ["/path/to/mcp-file-preview/build/index.js"]
}
}
}

Usage

The server provides two main tools:

preview_file

Captures a screenshot and returns HTML content:


file-preview
preview_file

{
"filePath": "/path/to/file.html",
"width": 1024,  // optional
"height": 768   // optional
}

Screenshots are saved to screenshots/ directory in the project folder.

analyze_content

Analyzes HTML structure:


file-preview
analyze_content

{
"filePath": "/path/to/file.html"
}

Returns c

Read from source at commit dc236d8a344cOBSERVED · 2026-10-09
02

Connect

Built from this server's own package name, version and transport as found in its source — not copied from anyone's documentation, so it cannot drift against a page we do not control.

claude-code
claude mcp add mcp-file-preview -- npx -y [email protected]
claude-desktop
{
  "mcpServers": {
    "mcp-file-preview": {
      "command": "npx",
      "args": [
        "-y",
        "[email protected]"
      ]
    }
  }
}
03

Exposed tools (2)

2 read · 0 write · 0 destructive.

ToolRiskDescription
analyze_contentreadAnalyze HTML content structure
preview_filereadPreview local HTML file and capture screenshot
04

Trust audit

SAFEgrade B · trust 89/100 Nothing in the source contradicts what it says it does. Grade A is reserved for packages that have also passed the behavioural sandbox.

LayerWhat it checksResult
L0Provenance & inventoryPASS
L1Static analysis of the codePASS
L2Instruction surface (what it tells the agent)PASS
L3Class-specific surfacePASS
L4Behavioural (sandbox)SKIPPED

What the source does

Filesystem
none-observed
Network
none-observed
Shell
none-observed
Dependencies
not all pinned
Secrets in source
none-found

Findings (1)

LOWSupply chain · supply.unpinned · CWE-829, CWE-1357
package.json
@modelcontextprotocol/sdk, puppeteer, typescript, @types/node, @types/puppeteer
Why it matters. 5 dependency range(s) float
Fix. pin exact versions or ship a lockfile

Gates applied: no_behavioural_pass.

Audited 2026-10-09 · audit v0.4.1 · source sha dc236d8a344cfull audit observations/trust-audit/mcp-server/seanivore__file-preview.json · Report an issue / request a re-scan
05

Audit history

Every audit this server has had. A grade with a past is a grade somebody is still checking.

DateSourceVerdictGradeScoreChange
2026-10-09dc236d8a344cSAFEB89first audit
06

Questions

What is the File Preview MCP server?

MCP server for HTML file preview and analysis - Has been weird with OS but good on Cline so WIP

What tools does File Preview expose?

2 in total: 2 read-only, 0 that write, and 0 that can delete or overwrite. Every one is listed on this page with its risk.

Is File Preview safe to connect to an agent?

The audit found nothing in the source that contradicts what it says it does, and graded it B (89/100). Grade A is held back for packages that have also passed a sandboxed behavioural run, which is why a clean server reads B.

What credentials does File Preview need?

No credential environment variables were found in its source, so it appears to need none.

How does File Preview run?

It speaks stdio, so it runs as a local process your client starts. It is published on npm as mcp-file-preview at 1.0.0.

How current is this page?

The grade is for one exact copy of the source (dc236d8a344c), read on 2026-10-09. The repository is watched and re-audited when it changes.

Advertisement