Search & SEO data, as tools your agent can call.
One Streamable HTTP MCP endpoint gives Claude Code, Cursor, VS Code, and Codex live Google SERPs, keyword volumes, trends, and backlinks—with zero local wrappers.
What is the DataForAPI MCP server?
The DataForAPI Model Context Protocol server exposes our public search, keyword, trend, backlink, and on-page endpoints as typed read-only tools over HTTPS. Any MCP-compatible coding agent can query real-time search intelligence using the exact same Bearer API key and prepaid USD ledger as your backend services.
- Server URL
- https://dataforapi.com/mcp
- Transport
- Streamable HTTP stateless (JSON-RPC over POST)
- Authentication
- Authorization: Bearer dfa_live_... or dfa_test_...
- Context footprint
- ~80% smaller than raw SERP JSON
- Billing
- Pay-per-call from $1.00 free trial; $0 on errors
- Discovery
- initialize and tools/list are always $0.00
Connect your client
Reference your API key via environment variable or editor secret prompt so credentials never enter chat history or version control.
claude mcp add --transport http dataforapi https://dataforapi.com/mcp \
--header "Authorization: Bearer $DATAFORAPI_KEY"claude mcp listThe tools
Read-only search, keyword, trend, and link tools exposed automatically on tools/list.
| Tool | What it returns | Live rate |
|---|---|---|
| serp_google_organic | Live Google desktop/mobile organic results, PAA, Local Pack, and cited AI Overviews. | $0.00195 – $0.0039 |
| serp_bing_organic | Live Bing organic web rankings and rich answer snippets. | $0.0018 |
| keywords_search_volume | Monthly Google Keyword Planner volume, CPC bids, and 12-month history (up to 1,000 terms). | $0.088 / batch |
| google_trends_explore | Interest-over-time series, sub-region demand, and breakout queries for up to 5 terms. | $0.0108 |
| backlinks_summary | Domain/URL authority rank, referring domains, dofollow ratio, and spam score. | $0.0235 + $0.000035/row |
| onpage_instant_audit | Real-time technical SEO audit of titles, canonicals, status codes, and OnPage score. | $0.000145 |
| search_api_docs | Search all 12 DataForAPI families, payload schemas, and micro-USD pricing. | $0.000 (free) |
| call_v1_endpoint | Universal caller for any DataForAPI route across Labs, Merchant, App Data, Business Data, AI Optimization, Domain Analytics & Balance. | Endpoint rate ($0 balance) |
Billing, keys and trust
Billed like the REST API
Every MCP tool call debits the exact micro-USD rate from your prepaid balance and logs status + latency in Console.
Scoped keys & daily UTC caps
Mint a dedicated dfa_live_... key for your coding agent with a daily USD spend ceiling, or revoke it in one click.
Results are untrusted data
Web snippets and SERP titles originate from external domains. Treat tool outputs as data, never executable instructions.
MCP server FAQ
What transport protocol does the DataForAPI MCP server use?
Stateless Streamable HTTP (JSON-RPC 2.0 over HTTPS POST) at https://dataforapi.com/mcp. No local Docker container, Python runtime, or stdio wrapper is required.
How is MCP token usage optimized compared to raw REST JSON?
Raw SERP payloads include pixel coordinates and layout rectangles that burn LLM context windows. Our MCP server projects the high-signal ranking, URL, snippet, AI Overview, and metric fields—cutting token consumption by roughly 80%.
Can I test MCP tool calls for $0 before spending Live balance?
Yes. Pass any dfa_test_... Sandbox key in the Authorization Bearer header and every MCP tool returns deterministic schema-identical fixtures at $0.000000.
Are failed or timed-out MCP tool calls charged?
Never. Every tool call pre-authorizes micro-USD and refunds 100% automatically on any upstream 5xx error or timeout.
Connect your agent in 30 seconds
Sign in with Google for $1.00 free balance, send one Bearer header, and get structured JSON back.
claude mcp add --transport http dataforapi https://dataforapi.com/mcp --header "Authorization: Bearer $DATAFORAPI_KEY"