# snapmcp

> snapmcp is a free MCP server for files and documents. Turn terminal output, code, pages and diffs into images, PDFs, GIFs and Office files. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Free
- **Platforms:** CLI, macOS, Linux, Windows
- **Repository:** https://github.com/reeinharddd/snapmcp
- **MCP Registry name:** io.github.reeinharddd/snapmcp
- **Categories:** [files and documents](https://ai-powered.com/categories/files-and-documents), [design and media](https://ai-powered.com/categories/design-and-media), [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-11-23

## About

snapmcp is for the moment an agent's output needs to become something a person can read, not a structured snapshot. It renders terminal sessions, syntax-highlighted code, browser pages, Markdown, sanitised HTML and diffs into PNG or JPEG, prints URLs to PDF, builds GIFs, and assembles captioned documents as Markdown, HTML, PDF, PowerPoint or Word.

The README sets it against Playwright MCP: use Playwright for clicking and form filling, and snapmcp for visual artifacts. Thirteen tools return saved file paths rather than image bytes to keep context small. Code highlighting uses Shiki with 300+ languages and 27 themes, and terminal captures detect common palettes.

It is built for local use with firm boundaries. Output is confined to SNAPMCP_DIR, file reads are denied until SNAPMCP_ALLOWED_PATHS is set, and URL captures go through a validating proxy that blocks private and local addresses. Synthetic captures render in a JavaScript-disabled context. Inputs are capped, for example 1,000 terminal lines and 10 items per batch. `snapmcp init` installs Playwright Chromium.

## Features

- **Seven capture types:** Terminal, code, file, browser, Markdown, HTML and diff.
- **Batch and sequence:** Up to 10 captures in one call or 60 ordered step images.
- **GIF and document output:** Animations and captioned Markdown, HTML, PDF, PPTX or DOCX files.
- **Highlighted code:** Shiki highlighting across 300+ languages and 27 themes.
- **Path-only results:** Tools return saved file paths to keep context small.
- **Local safeguards:** Output confinement, file allowlist and SSRF protection.

## Good for

- Attach terminal output screenshots to a pull request
- Render a git diff as a red/green image
- Print a web page to PDF
- Build a captioned tutorial as a Word or PowerPoint file
- Record an ordered walkthrough as a GIF

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add snapmcp -- npx -y snapmcp
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "snapmcp": {
      "command": "npx",
      "args": [
        "-y",
        "snapmcp"
      ]
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "snapmcp": {
      "command": "npx",
      "args": [
        "-y",
        "snapmcp"
      ]
    }
  }
}
```

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "snapmcp": {
      "command": "npx",
      "args": [
        "-y",
        "snapmcp"
      ]
    }
  }
}
```

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

```json
{
  "mcpServers": {
    "snapmcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "snapmcp"
      ]
    }
  }
}
```

Or put the same entry in .mcp.json at your workspace root to share it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add snapmcp -- npx -y snapmcp
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.snapmcp]
command = "npx"
args = ["-y", "snapmcp"]
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```json
{
  "mcpServers": {
    "snapmcp": {
      "command": "npx",
      "args": [
        "-y",
        "snapmcp"
      ]
    }
  }
}
```

Or run: gemini mcp add -s user snapmcp npx -- -y snapmcp

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```json
{
  "mcpServers": {
    "snapmcp": {
      "command": "npx",
      "args": [
        "-y",
        "snapmcp"
      ]
    }
  }
}
```

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

```json
{
  "mcpServers": {
    "snapmcp": {
      "command": "npx",
      "args": [
        "-y",
        "snapmcp"
      ]
    }
  }
}
```

On Windows the file is %APPDATA%\\devin\\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

### Cline (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "snapmcp": {
      "command": "npx",
      "args": [
        "-y",
        "snapmcp"
      ]
    }
  }
}
```

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "snapmcp": {
      "command": "npx",
      "args": [
        "-y",
        "snapmcp"
      ]
    }
  }
}
```

Open it with zed: open settings file. Merge context_servers into the settings you already have.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "mcpServers": {
    "snapmcp": {
      "command": "npx",
      "args": [
        "-y",
        "snapmcp"
      ]
    }
  }
}
```

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```json
{
  "mcpServers": {
    "snapmcp": {
      "command": "npx",
      "args": [
        "-y",
        "snapmcp"
      ]
    }
  }
}
```

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

```json
{
  "mcpServers": {
    "snapmcp": {
      "command": "npx",
      "args": [
        "-y",
        "snapmcp"
      ]
    }
  }
}
```

Use .kiro/settings/mcp.json to add it to one workspace only.

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "snapmcp": {
      "command": "npx",
      "args": [
        "-y",
        "snapmcp"
      ]
    }
  }
}
```

## Tools

From the tool list in its README, going by the names, 13 names don't say. From the server's own tool labels and tool names; not verified by us.

- `capture_terminal`: Terminal or CLI output as an image.
- `capture_code`: Syntax-highlighted source code image.
- `capture_browser`: Full-page or viewport screenshot of an HTTP(S) page.
- `capture_file`: An allowlisted file as an image.
- `capture_markdown`: Markdown rendered as a document image.
- `capture_html`: Sanitized HTML/CSS rendered as an image.
- `capture_diff`: Unified diff with highlighted changes.
- `capture_pdf`: A URL printed to PDF.
- `capture_batch`: Up to 10 independent captures in one call.
- `capture_sequence`: Up to 60 ordered step images with optional GIF.
- `capture_gif`: Animation from 2 to 60 captures.
- `capture_document`: Captioned captures in a Markdown, HTML, PDF, PPTX or DOCX file.
- `snapmcp-hint`: Tool discovery and setup guidance as text.

## FAQ

### Does snapmcp click and fill forms like Playwright MCP?

No. Use Playwright MCP for interaction; snapmcp makes visual artifacts.

### Can snapmcp read any file?

No. File reads are denied until SNAPMCP_ALLOWED_PATHS is configured.

### Where do outputs go?

Under SNAPMCP_DIR, default ./captures.

### What do I need installed?

Node.js 20 or newer; `snapmcp init` installs Playwright Chromium.

### Is snapmcp free?

Yes. snapmcp is free to use.

### How do I add snapmcp to Claude Code?

Run this command in your terminal: claude mcp add snapmcp -- npx -y snapmcp

### What are the best alternatives to snapmcp?

The closest alternatives to snapmcp are REA, HyperFrames by HeyGen, Context7, Chrome DevTools MCP and Codebase Memory.

## Where this comes from

- Description: written from the project's README.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [REA](https://ai-powered.com/mcp/rea): REA is an open-source MCP server for developer tools.
- [HyperFrames by HeyGen](https://ai-powered.com/mcp/hyperframes-by-heygen): HyperFrames by HeyGen is a freemium MCP server for design and media.
- [Context7](https://ai-powered.com/mcp/context7): Context7 is a freemium MCP server for developer tools.
- [Chrome DevTools MCP](https://ai-powered.com/mcp/chrome-devtools-mcp-2): Chrome DevTools MCP is an open-source MCP server for browser automation.
- [Codebase Memory](https://ai-powered.com/mcp/codebase-memory): Codebase Memory is an open-source MCP server for knowledge and memory.
- [GitHub](https://ai-powered.com/mcp/github): GitHub is an open-source MCP server for developer tools.
- [Serena MCP: the IDE for your agent](https://ai-powered.com/mcp/serena-mcp-the-ide-for-your-agent): Serena MCP: the IDE for your agent is an open-source MCP server for developer tools.
- [awesome-mcp-servers](https://ai-powered.com/mcp/awesome-mcp-servers-2): awesome-mcp-servers is an open-source MCP server for developer tools.

---
Source: https://ai-powered.com/mcp/snapmcp
