File PreviewSAFE
MCP server for HTML file preview and analysis - Has been weird with OS but good on Cline so WIP
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
- Clone the repository:
git clone https://github.com/your-username/mcp-file-preview.git cd mcp-file-preview
- Install dependencies:
npm install
- 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
dc236d8a344cOBSERVED · 2026-10-09Connect
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 mcp add mcp-file-preview -- npx -y [email protected]
{
"mcpServers": {
"mcp-file-preview": {
"command": "npx",
"args": [
"-y",
"[email protected]"
]
}
}
}Exposed tools (2)
2 read · 0 write · 0 destructive.
| Tool | Risk | Description |
|---|---|---|
analyze_content | read | Analyze HTML content structure |
preview_file | read | Preview local HTML file and capture screenshot |
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.
| Layer | What it checks | Result |
|---|---|---|
| L0 | Provenance & inventory | PASS |
| L1 | Static analysis of the code | PASS |
| L2 | Instruction surface (what it tells the agent) | PASS |
| L3 | Class-specific surface | PASS |
| L4 | Behavioural (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)
@modelcontextprotocol/sdk, puppeteer, typescript, @types/node, @types/puppeteer
Gates applied: no_behavioural_pass.
dc236d8a344cfull audit observations/trust-audit/mcp-server/seanivore__file-preview.json · Report an issue / request a re-scanAudit history
Every audit this server has had. A grade with a past is a grade somebody is still checking.
| Date | Source | Verdict | Grade | Score | Change |
|---|---|---|---|---|---|
| 2026-10-09 | dc236d8a344c | SAFE | B | 89 | first audit |
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.