Skip to content
MCP server

snapmcp

Turn terminal output, code, pages and diffs into images, PDFs, GIFs and Office files

Runs locally

snapmcp is a free MCP server for files and documents. It runs locally on your machine and is started by your AI client.

Pricing
Free
Platforms
CLI, macOS, Linux
Runs
Locally
Version
2.3.11
Listing updated

Similar MCP servers

Install

Add with the CLI

Run in a terminal

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.

Or share it with your project

Add to .mcp.json

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

Claude Code setup guide

Add to claude_desktop_config.json

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

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

Claude Desktop setup guide

Install in CursorOpens Cursor, which asks you to confirm. Or add it by hand:

Add to ~/.cursor/mcp.json

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

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

Cursor setup guide

Install in VS CodeOpens VS Code, which asks you to confirm. Or add it by hand:

Add to ~/.copilot/mcp-config.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.

VS Code setup guide

Add with the CLI

Run in a terminal

codex mcp add snapmcp -- npx -y snapmcp

Or add to config.toml

Add to ~/.codex/config.toml

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

Codex setup guide

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "snapmcp": {
      "command": "npx",
      "args": [
        "-y",
        "snapmcp"
      ]
    }
  }
}
  • Gemini CLI and Antigravity

    Gemini CLI

    Add to ~/.gemini/settings.json

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

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

    Antigravity

    Add to ~/.gemini/config/mcp_config.json

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

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

    Gemini CLI and Antigravity setup guide

  • Devin Desktop (formerly Windsurf)

    Add to ~/.config/devin/mcp_config.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.

    Devin Desktop setup guide

  • Cline

    Add to cline_mcp_settings.json

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

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

    Cline setup guide

  • Zed

    Add to Zed settings.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.

    Zed setup guide

  • JetBrains AI Assistant and Junie

    AI Assistant

    Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add

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

    Junie

    Add to ~/.junie/mcp/mcp.json

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

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

    JetBrains AI Assistant and Junie setup guide

  • Kiro

    Add to ~/.kiro/settings/mcp.json

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

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

    Kiro setup guide

Using several servers? Build one config file with the MCP config generator.

Configuration

  • SNAPMCP_DIRDirectory that confines every generated artifact (default: ./captures)
  • SNAPMCP_THEMEOne of 27 built-in Shiki themes; terminal palettes are detected heuristically
  • SNAPMCP_FORMATOutput image format: png or jpeg
  • SNAPMCP_QUALITYJPEG quality from 1 to 100
  • SNAPMCP_ALLOWED_PATHSComma- or semicolon-separated file-read allowlist; file reads are denied when unset
  • SNAPMCP_SSRF_PROTECTIONBlock private and local URL targets, including DNS-resolved private addresses
  • SNAPMCP_SECURITY_CHECKSEnable broader input and file-read validation; output confinement and URL protocol checks remain active
  • SNAPMCP_CHROME_EXECUTABLEExplicit system Chrome or Chromium executable; Playwright Chromium is the default
  • SNAPMCP_CHROME_CHANNELPlaywright Chrome channel, such as stable, beta, dev, or canary
  • SNAPMCP_CHROME_PROFILEExperimental persistent Chromium user-data directory: detected profile key/name or absolute path

About snapmcp

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.

Tools this server provides (13)

Taken from the project documentation; the running server may differ.

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.

What it does

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

Pricing

Free

Runs locally via npm; no hosted plan mentioned

snapmcp 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.

How AIPoweredBot checks servers