Model Context Protocol

Enable MCP

Use Claude Desktop (or Cursor) with the snapapi_scrape tool—same POST /api/scrape API, no glue code in your project.

Before you paste config

  1. Install Node.js 18+ on the machine where Claude Desktop runs.
  2. Clone or copy this project and run npm install in the folder that contains mcp-server.js (dependencies include @modelcontextprotocol/sdk).
  3. In the JSON below, replace /absolute/path/to/screenshot-api/mcp-server.js with the absolute path to mcp-server.js on your machine (inside the folder where you ran npm install).

Claude Desktop

Open your config file in a text editor:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json

If the file is empty, paste the entire JSON below. If you already have mcpServers, merge the snapapi entry inside it (keep commas valid—use a JSON validator if unsure). Then fully quit and reopen Claude Desktop.


        

Cursor

Add the same snapapi block under mcpServers in ~/.cursor/mcp.json (or your project’s .cursor/mcp.json). Adjust FULL_PATH_TO_REPO the same way—replace /absolute/path/to/screenshot-api/mcp-server.js in the copied JSON.