Screenshot API
Enables AI agents to capture any public URL as PNG, JPEG, or PDF via REST API or MCP tools, including screenshot capture, page description, and PDF rendering.
README
Screenshot API for AI Agents
Give your AI agent eyes. One MCP tool call returns a screenshot your agent can actually see.
→ Join the early access waitlist · Free tier included · Hosted API coming soon
What it does
AI agents can't see web pages — they get raw HTML, which is noisy, incomplete (no JS-rendered content), and full of boilerplate. This MCP server gives Claude, Cursor, and any MCP-compatible agent three native tools:
| Tool | What it returns |
|---|---|
take_screenshot |
URL → base64 PNG/JPEG your agent can look at directly |
describe_page |
Screenshot + title + H1 + meta description in one call |
capture_pdf |
URL → A4 PDF |
describe_page is the key differentiator: most agents need a screenshot and some text context. This saves a round-trip.
Quick start (self-hosted, free)
Claude Desktop
// ~/Library/Application Support/Claude/claude_desktop_config.json
{
"mcpServers": {
"screenshot-api": {
"command": "npx",
"args": ["-y", "screenshot-api-mcp"]
}
}
}
Restart Claude Desktop. Then ask:
"Take a screenshot of https://news.ycombinator.com and summarise the top 5 stories"
Cursor
Settings → MCP → Add Server:
{
"name": "screenshot-api",
"command": "npx",
"args": ["-y", "screenshot-api-mcp"]
}
Python (LangChain / CrewAI)
from langchain_mcp_adapters.client import MultiServerMCPClient
client = MultiServerMCPClient({
"screenshot": {
"command": "npx",
"args": ["-y", "screenshot-api-mcp"],
"transport": "stdio",
}
})
tools = await client.get_tools()
# → [take_screenshot, describe_page, capture_pdf]
Why not just use the HTML?
- JS-rendered content — SPAs, lazy-loaded sections, and canvas elements are invisible to scrapers. Playwright renders everything.
- Stealth mode — ~40% of real URLs return bot-block pages to naive scrapers. Evasion is built in.
- Response cache — same URL twice in a loop? Second call is instant (5-min TTL, no double-billing).
- MCP-native — structured outputs designed for agent loops, not bolted-on HTTP wrappers.
Hosted API (coming soon)
The self-hosted version requires Node.js + a local Playwright/Chromium install (~300MB). The hosted API has none of that — your agent hits an endpoint, gets back the image.
Join the waitlist — early access gets 3 months at 40% off.
Planned tiers:
| Plan | Price | Screenshots/mo |
|---|---|---|
| Free trial | $0 | 100 (7 days) |
| Starter | $19/mo | 2,000 |
| Pro | $49/mo | 10,000 |
HTTP API (self-hosted)
GET /screenshot
| Param | Type | Default | Description |
|---|---|---|---|
url |
string | required | Public URL (http/https only) |
format |
png | jpeg | pdf |
png |
Output format |
full_page |
true | false |
false |
Full scrollable page |
width |
number | 1280 |
Viewport width (320–3840) |
height |
number | 800 |
Viewport height (200–2160) |
curl "http://localhost:3099/screenshot?url=https://example.com" -o out.png
GET /health
{ "status": "ok", "browserConnected": true }
Local development
npm install
npm run dev # tsx watch
npm test # vitest + real Chromium (~60s)
npm run typecheck
Deploy to Fly.io (self-host at scale)
export PATH="$HOME/.fly/bin:$PATH"
flyctl auth login
flyctl launch --no-deploy --copy-config
flyctl secrets set PROXY_SECRET=$(openssl rand -hex 24)
flyctl deploy
flyctl checks list # /health should be green
Memory: Fly's default 256MB will OOM Chromium.
fly.tomlis pre-set to 1GB. Don't scale below 512MB.
Add FLY_API_TOKEN to GitHub repo secrets to enable auto-deploy on push to main.
Configuration
All settings via environment variables. See .env.example.
Key vars: PORT (3099), MAX_CONCURRENCY (2), PROXY_SECRET (empty = auth off locally), NAV_TIMEOUT_MS (20000).
Roadmap
Phase A — Validation (now)
- [x] MCP server with 3 tools
- [x] Stealth / Cloudflare bypass
- [x] Response cache (5-min TTL)
- [x] Landing page + waitlist
- [ ] npm publish (
screenshot-api-mcp) - [ ] Smithery + mcp.so + Glama listings
- [ ] 20 waitlist signups ← gate to Phase B
Phase B — Hosted API (if gate passed)
- [ ] Lemon Squeezy billing (usage tiers)
- [ ] API key issuance + metering
- [ ] Fly.io deploy (1GB VM,
min_machines_running=1) - [ ] First paying customer
Phase C — Growth
- [ ] SEO content ("how to give Claude screenshots")
- [ ] Zapier integration
- [ ] LangChain / CrewAI tool package
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。