ScreenshotAPI

v1.0.2
io.github.Screenshot-API/screenshot-mcp Checked 18 hours ago Published 1 month ago

Website screenshots, URL/HTML to PDF, scrolling videos, and web scraping via ScreenshotAPI.

Values you need

VariableWhat it is
SCREENSHOTAPI_TOKENrequired secret Your ScreenshotAPI API key from https://app.screenshotapi.net
SCREENSHOTAPI_REQUEST_TIMEOUT_MSoptional Request timeout in milliseconds (default 180000)
SCREENSHOTAPI_MAX_INLINE_IMAGE_BYTESoptional Max screenshot size returned inline as an image (default 3500000)

npm (npx) discovery passed

Requires Node.js 18+

Run in a terminal
claude mcp add screenshot-mcp -e 'SCREENSHOTAPI_TOKEN=<SCREENSHOTAPI_TOKEN>' -- npx -y --package=@screenshotapinet/mcp@1.0.2 screenshotapi-mcp
Add to claude_desktop_config.json
{
  "mcpServers": {
    "screenshot-mcp": {
      "args": [
        "-y",
        "--package=@screenshotapinet/mcp@1.0.2",
        "screenshotapi-mcp"
      ],
      "command": "npx",
      "env": {
        "SCREENSHOTAPI_TOKEN": "<SCREENSHOTAPI_TOKEN>"
      }
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "screenshot-mcp": {
      "args": [
        "-y",
        "--package=@screenshotapinet/mcp@1.0.2",
        "screenshotapi-mcp"
      ],
      "command": "npx",
      "env": {
        "SCREENSHOTAPI_TOKEN": "<SCREENSHOTAPI_TOKEN>"
      }
    }
  }
}
Add to .vscode/mcp.json
{
  "inputs": [
    {
      "description": "SCREENSHOTAPI_TOKEN",
      "id": "screenshotapi-token",
      "password": true,
      "type": "promptString"
    }
  ],
  "servers": {
    "screenshot-mcp": {
      "args": [
        "-y",
        "--package=@screenshotapinet/mcp@1.0.2",
        "screenshotapi-mcp"
      ],
      "command": "npx",
      "env": {
        "SCREENSHOTAPI_TOKEN": "${input:screenshotapi-token}"
      },
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.screenshot-mcp]
command = "npx"
args = ["-y", "--package=@screenshotapinet/mcp@1.0.2", "screenshotapi-mcp"]
env = { "SCREENSHOTAPI_TOKEN" = "<SCREENSHOTAPI_TOKEN>" }

For AI agents

  1. Ask the user for: SCREENSHOTAPI_TOKEN. Never invent or guess these values; secrets go into the client config, not into chat logs.
  2. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  3. Restart or reload the client so it starts the server.
  4. Verify: the server should expose these tools: take_screenshot, generate_pdf, scrape_page, record_scrolling_video, bulk_screenshots, bulk_screenshots_csv, get_bulk_status, download_bulk_results.
  5. If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.

Machine-readable: install.md · manifest.json