loading…
Search for a command to run...
loading…
MCP server for the SnapAPI web capture API. Take screenshots, scrape pages, extract structured data, generate PDFs, record videos, and run AI analysis on any UR
MCP server for the SnapAPI web capture API. Take screenshots, scrape pages, extract structured data, generate PDFs, record videos, and run AI analysis on any URL — all from Claude, Cursor, VS Code, or any MCP client. 9 tools, 30+ device presets, ad/cookie blocking. Install: npx snapapi-mcp
MCP (Model Context Protocol) server for SnapAPI — take screenshots, scrape web pages, extract content, generate PDFs, record videos, and analyze pages directly from AI tools like Claude Desktop, Cursor, Windsurf, Cline, and Zed.
This package runs a local MCP server that connects your AI assistant to the SnapAPI web capture API. Once configured, your AI can:
Add to ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):
{
"mcpServers": {
"snapapi": {
"command": "npx",
"args": ["-y", "snapapi-mcp"],
"env": {
"SNAPAPI_API_KEY": "sk_live_your_key_here"
}
}
}
}
Restart Claude Desktop after saving.
Add to ~/.cursor/mcp.json:
{
"mcpServers": {
"snapapi": {
"command": "npx",
"args": ["-y", "snapapi-mcp"],
"env": {
"SNAPAPI_API_KEY": "sk_live_your_key_here"
}
}
}
}
Add to ~/.codeium/windsurf/mcp_config.json:
{
"mcpServers": {
"snapapi": {
"command": "npx",
"args": ["-y", "snapapi-mcp"],
"env": {
"SNAPAPI_API_KEY": "sk_live_your_key_here"
}
}
}
}
Open Cline settings → MCP Servers → Add Server:
npx-y snapapi-mcpSNAPAPI_API_KEY=sk_live_your_key_hereAdd to .vscode/mcp.json in your workspace (or your user settings):
{
"servers": {
"snapapi": {
"command": "npx",
"args": ["-y", "snapapi-mcp"],
"env": {
"SNAPAPI_API_KEY": "sk_live_your_key_here"
}
}
}
}
Add to ~/.config/zed/settings.json:
{
"context_servers": {
"snapapi": {
"command": {
"path": "npx",
"args": ["-y", "snapapi-mcp"],
"env": {
"SNAPAPI_API_KEY": "sk_live_your_key_here"
}
}
}
}
}
Run the included helper script:
# For Claude Desktop
./install-mcp.sh claude
# For Cursor
./install-mcp.sh cursor
# For Windsurf
./install-mcp.sh windsurf
Verify that SnapAPI is reachable and your API key is valid. No parameters required.
Example prompt: "Ping SnapAPI to check it's working"
Take a screenshot of any URL with extensive customization.
Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
url |
string | * | URL to capture |
html |
string | * | Raw HTML to render (alternative to url) |
markdown |
string | * | Markdown to render (alternative to url) |
format |
string | no | png, jpeg, webp, or avif (default: png) |
quality |
number | no | 1–100 for jpeg/webp (default: 80) |
width |
number | no | Viewport width (default: 1280) |
height |
number | no | Viewport height (default: 800) |
fullPage |
boolean | no | Capture full scrollable page |
selector |
string | no | CSS selector for element capture |
delay |
number | no | Wait ms after page load before capture |
waitUntil |
string | no | load, domcontentloaded, or networkidle |
darkMode |
boolean | no | Dark color scheme |
blockAds |
boolean | no | Block ad networks |
blockCookieBanners |
boolean | no | Block cookie popups |
css |
string | no | Custom CSS to inject |
javascript |
string | no | Custom JS to execute |
device |
string | no | Device preset (e.g. iphone-15-pro) — use list_devices to see all |
hideSelectors |
string[] | no | Elements to hide before capture |
*At least one of url, html, or markdown must be provided.
Example prompts:
<h1>Hello</h1>"Scrape web page content using a real browser (JavaScript-rendered pages work).
Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
url |
string | yes | URL to scrape |
type |
string | no | text (Markdown), html, or links (default: text) |
pages |
number | no | Pages to follow, 1–10 (default: 1) |
waitMs |
number | no | Extra wait time in ms after page load |
blockResources |
boolean | no | Block images/media/fonts to speed up |
locale |
string | no | Browser locale (e.g. en-US) |
premiumProxy |
boolean | no | Use residential proxy to bypass blocks |
Example prompts:
Extract clean, structured content optimized for LLMs.
Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
url |
string | yes | URL to extract from |
type |
string | no | markdown, text, html, article, links, images, metadata, or structured (default: markdown) |
selector |
string | no | Scope extraction to a CSS element |
waitFor |
string | no | Wait for CSS selector before extracting |
maxLength |
number | no | Max character length |
cleanOutput |
boolean | no | Remove noise (default: true) |
blockAds |
boolean | no | Block ad networks |
blockCookieBanners |
boolean | no | Block cookie popups |
fields |
object | no | Custom field extraction map |
Example prompts:
Generate a PDF from a URL or HTML.
Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
url |
string | * | URL to convert to PDF |
html |
string | * | HTML to convert to PDF (alternative to url) |
pdfOptions.pageSize |
string | no | a4, a3, a5, letter, legal, tabloid (default: a4) |
pdfOptions.landscape |
boolean | no | Landscape orientation |
pdfOptions.printBackground |
boolean | no | Include background graphics |
pdfOptions.scale |
number | no | Scale factor 0.1–2 |
pdfOptions.marginTop |
string | no | Top margin, e.g. 1cm |
pdfOptions.marginBottom |
string | no | Bottom margin |
pdfOptions.marginLeft |
string | no | Left margin |
pdfOptions.marginRight |
string | no | Right margin |
delay |
number | no | Wait ms after page load |
waitUntil |
string | no | load, domcontentloaded, or networkidle |
*At least one of url or html must be provided.
Example prompts:
Extract content from a URL and analyze it with an AI model in one call.
Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
url |
string | yes | URL to analyze |
prompt |
string | yes | Analysis instruction for the AI |
extractType |
string | no | markdown, text, article, or structured (default: article) |
maxLength |
number | no | Max characters of content to pass to AI (default: 20000) |
Example prompts:
Record a browser session as a video (WebM).
Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
url |
string | yes | URL to record |
duration |
number | no | Recording duration in seconds, 1–60 (default: 5) |
width |
number | no | Viewport width (default: 1280) |
height |
number | no | Viewport height (default: 800) |
scenario |
string | no | JavaScript to run during recording (scroll, click, etc.) |
delay |
number | no | Wait ms before starting recording |
waitUntil |
string | no | load, domcontentloaded, or networkidle |
darkMode |
boolean | no | Dark color scheme |
blockAds |
boolean | no | Block ad networks |
blockCookieBanners |
boolean | no | Block cookie popups |
device |
string | no | Device preset — use list_devices to see all |
Example prompts:
Check your SnapAPI quota and monthly statistics. No parameters required.
Example prompts:
List all available device presets for screenshot and video emulation. No parameters required.
Example prompt: "What device presets are available for screenshots?"
| Variable | Required | Description |
|---|---|---|
SNAPAPI_API_KEY |
Yes | Your SnapAPI API key (sk_live_...) |
SNAPAPI_BASE_URL |
No | API base URL (default: https://api.snapapi.pics) |
# Clone the repo
git clone https://github.com/Sleywill/snapapi-mcp.git
cd snapapi-mcp
# Install dependencies
npm install
# Build
npm run build
# Run locally (reads MCP protocol from stdin)
SNAPAPI_API_KEY=sk_live_your_key node dist/index.js
"SNAPAPI_API_KEY environment variable is required"
Make sure the env block in your MCP config includes your API key. Check it starts with sk_live_.
Tools not appearing in Claude Desktop Restart Claude Desktop after saving the config. Check MCP logs at:
~/Library/Logs/Claude/mcp*.log%APPDATA%\Claude\logs\mcp*.lognpx takes too long on first run
Use "args": ["-y", "snapapi-mcp"] — the -y flag auto-confirms the install prompt without interaction.
screenshot / scrape returns an error
get_usage tool"waitUntil": "networkidle" and a "delay" valueanalyze tool returns an error
The analyze endpoint requires Anthropic API credits on the SnapAPI backend. Use the extract tool as a fallback to fetch the page content and analyze it yourself.
MIT
Добавь это в claude_desktop_config.json и перезапусти Claude Desktop.
{
"mcpServers": {
"snapapi-mcp-server": {
"command": "npx",
"args": []
}
}
}