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
- Install Node.js 18+ on the machine where Claude Desktop runs.
-
Clone or copy this project and run
npm installin the folder that containsmcp-server.js(dependencies include@modelcontextprotocol/sdk). -
In the JSON below, replace
/absolute/path/to/screenshot-api/mcp-server.jswith the absolute path tomcp-server.json your machine (inside the folder where you rannpm 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.