Install
Add to ~/Library/Application Support/Claude/claude_desktop_config.json
Windows / Linux path
%APPDATA%\Claude\claude_desktop_config.json~/.config/Claude/claude_desktop_config.json{
"mcpServers": {
"com-getscreenshotapi-mcp": {
"command": "npx",
"args": [
"-y",
"getscreenshot-mcp"
],
"env": {
"GETSCREENSHOT_API_KEY": "<YOUR_VALUE>",
"PORT": "8080",
"TRIAL_API_KEY": "<VALUE>",
"IMAGE_QUEUE_MAX": "24",
"PUBLIC_BASE_URL": "http://127.0.0.1:<port>",
"IMAGE_CONCURRENCY": "3",
"SHARP_CONCURRENCY": "1",
"COMPARE_MAX_HEIGHT": "2400",
"TRUSTED_PROXY_HOPS": "0",
"IMAGE_QUEUE_WAIT_MS": "20000",
"HTML_PUBLIC_BASE_URL": "value of PUBLIC_BASE_URL",
"INLINE_MAX_BYTES_HIGH": "4000000",
"RATE_LIMIT_PER_MINUTE": "60",
"GETSCREENSHOT_API_BASE": "https://api.rasterwise.com",
"GETSCREENSHOT_MCP_BASE": "https://mcp.getscreenshotapi.com",
"HTML_MAX_DOCS_PER_CALLER": "5",
"TRIAL_DAILY_LIMIT_GLOBAL": "200",
"TRIAL_DAILY_LIMIT_PER_IP": "5",
"INLINE_MAX_BYTES_STANDARD": "1500000",
"RATE_LIMIT_PER_IP_PER_MINUTE": "120"
}
}
}
}
Restart Claude Desktop to activate the new server.
Add to .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)
Windows / Linux path
.cursor\mcp.json (project) or %USERPROFILE%\.cursor\mcp.json (global).cursor/mcp.json (project) or ~/.cursor/mcp.json (global){
"mcpServers": {
"com-getscreenshotapi-mcp": {
"command": "npx",
"args": [
"-y",
"getscreenshot-mcp"
],
"env": {
"GETSCREENSHOT_API_KEY": "<YOUR_VALUE>",
"PORT": "8080",
"TRIAL_API_KEY": "<VALUE>",
"IMAGE_QUEUE_MAX": "24",
"PUBLIC_BASE_URL": "http://127.0.0.1:<port>",
"IMAGE_CONCURRENCY": "3",
"SHARP_CONCURRENCY": "1",
"COMPARE_MAX_HEIGHT": "2400",
"TRUSTED_PROXY_HOPS": "0",
"IMAGE_QUEUE_WAIT_MS": "20000",
"HTML_PUBLIC_BASE_URL": "value of PUBLIC_BASE_URL",
"INLINE_MAX_BYTES_HIGH": "4000000",
"RATE_LIMIT_PER_MINUTE": "60",
"GETSCREENSHOT_API_BASE": "https://api.rasterwise.com",
"GETSCREENSHOT_MCP_BASE": "https://mcp.getscreenshotapi.com",
"HTML_MAX_DOCS_PER_CALLER": "5",
"TRIAL_DAILY_LIMIT_GLOBAL": "200",
"TRIAL_DAILY_LIMIT_PER_IP": "5",
"INLINE_MAX_BYTES_STANDARD": "1500000",
"RATE_LIMIT_PER_IP_PER_MINUTE": "120"
}
}
}
}
Cursor usually picks up config changes automatically; if the server does not appear, reload the window.
Add to .mcp.json (project) or ~/.claude.json (global)
Windows / Linux path
.mcp.json (project) or %USERPROFILE%\.claude.json (global).mcp.json (project) or ~/.claude.json (global){
"mcpServers": {
"com-getscreenshotapi-mcp": {
"command": "npx",
"args": [
"-y",
"getscreenshot-mcp"
],
"env": {
"GETSCREENSHOT_API_KEY": "<YOUR_VALUE>",
"PORT": "8080",
"TRIAL_API_KEY": "<VALUE>",
"IMAGE_QUEUE_MAX": "24",
"PUBLIC_BASE_URL": "http://127.0.0.1:<port>",
"IMAGE_CONCURRENCY": "3",
"SHARP_CONCURRENCY": "1",
"COMPARE_MAX_HEIGHT": "2400",
"TRUSTED_PROXY_HOPS": "0",
"IMAGE_QUEUE_WAIT_MS": "20000",
"HTML_PUBLIC_BASE_URL": "value of PUBLIC_BASE_URL",
"INLINE_MAX_BYTES_HIGH": "4000000",
"RATE_LIMIT_PER_MINUTE": "60",
"GETSCREENSHOT_API_BASE": "https://api.rasterwise.com",
"GETSCREENSHOT_MCP_BASE": "https://mcp.getscreenshotapi.com",
"HTML_MAX_DOCS_PER_CALLER": "5",
"TRIAL_DAILY_LIMIT_GLOBAL": "200",
"TRIAL_DAILY_LIMIT_PER_IP": "5",
"INLINE_MAX_BYTES_STANDARD": "1500000",
"RATE_LIMIT_PER_IP_PER_MINUTE": "120"
}
}
}
}
The server will be available in the next Claude Code session.
Add to .vscode/mcp.json
Windows / Linux path
.vscode\mcp.json.vscode/mcp.json{
"servers": {
"com-getscreenshotapi-mcp": {
"command": "npx",
"args": [
"-y",
"getscreenshot-mcp"
],
"env": {
"GETSCREENSHOT_API_KEY": "<YOUR_VALUE>",
"PORT": "8080",
"TRIAL_API_KEY": "<VALUE>",
"IMAGE_QUEUE_MAX": "24",
"PUBLIC_BASE_URL": "http://127.0.0.1:<port>",
"IMAGE_CONCURRENCY": "3",
"SHARP_CONCURRENCY": "1",
"COMPARE_MAX_HEIGHT": "2400",
"TRUSTED_PROXY_HOPS": "0",
"IMAGE_QUEUE_WAIT_MS": "20000",
"HTML_PUBLIC_BASE_URL": "value of PUBLIC_BASE_URL",
"INLINE_MAX_BYTES_HIGH": "4000000",
"RATE_LIMIT_PER_MINUTE": "60",
"GETSCREENSHOT_API_BASE": "https://api.rasterwise.com",
"GETSCREENSHOT_MCP_BASE": "https://mcp.getscreenshotapi.com",
"HTML_MAX_DOCS_PER_CALLER": "5",
"TRIAL_DAILY_LIMIT_GLOBAL": "200",
"TRIAL_DAILY_LIMIT_PER_IP": "5",
"INLINE_MAX_BYTES_STANDARD": "1500000",
"RATE_LIMIT_PER_IP_PER_MINUTE": "120"
}
}
}
}
Reload the VS Code window to activate.
Add to ~/.codeium/windsurf/mcp_config.json
Windows / Linux path
%USERPROFILE%\.codeium\windsurf\mcp_config.json~/.codeium/windsurf/mcp_config.json{
"mcpServers": {
"com-getscreenshotapi-mcp": {
"command": "npx",
"args": [
"-y",
"getscreenshot-mcp"
],
"env": {
"GETSCREENSHOT_API_KEY": "<YOUR_VALUE>",
"PORT": "8080",
"TRIAL_API_KEY": "<VALUE>",
"IMAGE_QUEUE_MAX": "24",
"PUBLIC_BASE_URL": "http://127.0.0.1:<port>",
"IMAGE_CONCURRENCY": "3",
"SHARP_CONCURRENCY": "1",
"COMPARE_MAX_HEIGHT": "2400",
"TRUSTED_PROXY_HOPS": "0",
"IMAGE_QUEUE_WAIT_MS": "20000",
"HTML_PUBLIC_BASE_URL": "value of PUBLIC_BASE_URL",
"INLINE_MAX_BYTES_HIGH": "4000000",
"RATE_LIMIT_PER_MINUTE": "60",
"GETSCREENSHOT_API_BASE": "https://api.rasterwise.com",
"GETSCREENSHOT_MCP_BASE": "https://mcp.getscreenshotapi.com",
"HTML_MAX_DOCS_PER_CALLER": "5",
"TRIAL_DAILY_LIMIT_GLOBAL": "200",
"TRIAL_DAILY_LIMIT_PER_IP": "5",
"INLINE_MAX_BYTES_STANDARD": "1500000",
"RATE_LIMIT_PER_IP_PER_MINUTE": "120"
}
}
}
}
Restart Windsurf (or refresh its MCP servers panel) to activate the new server.
Windsurf Next uses ~/.codeium/windsurf-next/mcp_config.json. Devin Desktop (the Windsurf rebrand) uses ~/.config/devin/mcp_config.json and imports the Windsurf file.
Add to ~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
Windows / Linux path
%APPDATA%\Code\User\globalStorage\saoudrizwan.claude-dev\settings\cline_mcp_settings.json~/.config/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json{
"mcpServers": {
"com-getscreenshotapi-mcp": {
"command": "npx",
"args": [
"-y",
"getscreenshot-mcp"
],
"env": {
"GETSCREENSHOT_API_KEY": "<YOUR_VALUE>",
"PORT": "8080",
"TRIAL_API_KEY": "<VALUE>",
"IMAGE_QUEUE_MAX": "24",
"PUBLIC_BASE_URL": "http://127.0.0.1:<port>",
"IMAGE_CONCURRENCY": "3",
"SHARP_CONCURRENCY": "1",
"COMPARE_MAX_HEIGHT": "2400",
"TRUSTED_PROXY_HOPS": "0",
"IMAGE_QUEUE_WAIT_MS": "20000",
"HTML_PUBLIC_BASE_URL": "value of PUBLIC_BASE_URL",
"INLINE_MAX_BYTES_HIGH": "4000000",
"RATE_LIMIT_PER_MINUTE": "60",
"GETSCREENSHOT_API_BASE": "https://api.rasterwise.com",
"GETSCREENSHOT_MCP_BASE": "https://mcp.getscreenshotapi.com",
"HTML_MAX_DOCS_PER_CALLER": "5",
"TRIAL_DAILY_LIMIT_GLOBAL": "200",
"TRIAL_DAILY_LIMIT_PER_IP": "5",
"INLINE_MAX_BYTES_STANDARD": "1500000",
"RATE_LIMIT_PER_IP_PER_MINUTE": "120"
}
}
}
}
Cline reloads cline_mcp_settings.json automatically; if the server does not appear, reload the VS Code window.
Open it from Cline's MCP Servers panel → Configure. Roo Code uses a different file and format.
Configuration
Environment variables this server reads. Secrets stay on your machine.
| Name | Required | Description |
|---|---|---|
| GETSCREENSHOT_API_KEY secret | Yes | Your GetScreenshot API key. Required for the server's tools to work. |
| PORT | No | Port the hosted server listens on. Default: 8080 |
| TRIAL_API_KEY | No | Turns on keyless preview mode. Off by default; not for production yet. |
| IMAGE_QUEUE_MAX | No | Number of image jobs that may wait for a slot. Default: 24 |
| PUBLIC_BASE_URL | No | Public origin of the MCP endpoint. Must be set in production. Default: http://127.0.0.1:<port> |
| IMAGE_CONCURRENCY | No | Number of image jobs that run at once. Default: 3 |
| SHARP_CONCURRENCY | No | libvips threads per image job. Default: 1 |
| COMPARE_MAX_HEIGHT | No | Maximum rows compare_screenshots compares. Default: 2400 |
| TRUSTED_PROXY_HOPS | No | Proxies between Google's front end and the container that append to X-Forwarded-For. Default: 0 |
| IMAGE_QUEUE_WAIT_MS | No | Longest a job waits for a slot before it is refused. Default: 20000 |
| HTML_PUBLIC_BASE_URL | No | Public origin used in render_html links. Default: value of PUBLIC_BASE_URL |
| INLINE_MAX_BYTES_HIGH | No | Cap on the total inline JPEG bytes of one result at detail high. Default: 4000000 |
| RATE_LIMIT_PER_MINUTE | No | Tool calls per caller per minute. Default: 60 |
| GETSCREENSHOT_API_BASE | No | REST API base URL. For tests. Default: https://api.rasterwise.com |
| GETSCREENSHOT_MCP_BASE | No | Service that hosts HTML for render_html in stdio mode. Default: https://mcp.getscreenshotapi.com |
| HTML_MAX_DOCS_PER_CALLER | No | Live render_html documents per caller. Default: 5 |
| TRIAL_DAILY_LIMIT_GLOBAL | No | Preview captures per UTC day in total. Default: 200 |
| TRIAL_DAILY_LIMIT_PER_IP | No | Preview captures per client address per UTC day. Default: 5 |
| INLINE_MAX_BYTES_STANDARD | No | Cap on the total inline JPEG bytes of one result at detail standard. Default: 1500000 |
| RATE_LIMIT_PER_IP_PER_MINUTE | No | Tool calls per client address per minute across all keys. Default: 120 |
Remote headers
HTTP headers the remote endpoint expects.
| Name | Required | Description |
|---|---|---|
| Authorization secret | Yes | Bearer token: your GetScreenshot API key. Get one at https://www.getscreenshotapi.com/#pricing |