How to Set Up the DataForSEO MCP Server in Claude

Contents+
- 01What is the DataForSEO MCP server?
- 02What changed in version 3?
- 03How much does each DataForSEO MCP call cost?
- 04Set a spending limit before you connect
- 05What you need before you start
- 06Step 1. Connect DataForSEO to Claude Desktop
- 07Step 2. Connect DataForSEO to Claude Code
- 08Step 3. Test the connection for free
- 09SEO workflows with the DataForSEO MCP
- Keyword volume and difficulty
- SERP checks
- Backlink lookups
- 10Limits to know before you trust the numbers
- 11Troubleshooting the DataForSEO MCP
The DataForSEO MCP is DataForSEO's official open-source server that lets Claude call DataForSEO's SEO APIs from a chat window. You ask for search volumes, a live SERP or a backlink summary. Claude finds the right endpoint in DataForSEO's documentation and calls it with your API credentials. Every one of those data calls is billed to your DataForSEO balance.
This guide covers the setup for Claude Desktop and Claude Code as of December 2026, what each call costs and the keyword, SERP and backlink checks worth running. It belongs to our MCP series with the Google Analytics MCP, Chrome DevTools MCP and WordPress MCP guides.
What is the DataForSEO MCP server?
DataForSEO publishes the server in the dataforseo/mcp-server-typescript repository and on npm as dataforseo-mcp-server. Version 3.1.4 shipped on December 1, 2026. The DataForSEO MCP page says the server and the connection cost nothing extra. You pay the normal pay-as-you-go rate for the data your assistant pulls.
The same package runs in three modes. It starts as a local stdio server by default. An HTTP mode serves remote clients. The same binary doubles as a command-line tool with docs and request commands. DataForSEO also hosts a remote copy at https://mcp.dataforseo.com/v3/mcp, which needs no local install.
What changed in version 3?
Version 3.0.0 reached npm on August 11, 2026 and changed how the server works. The older 2.x server shipped a separate tool for each endpoint, grouped into modules such as SERP, KEYWORDS_DATA, DATAFORSEO_LABS and BACKLINKS. You switched modules on with an ENABLED_MODULES variable. That server now lives in a deprecated repository.
Today's server exposes four tools. Claude reads the documentation first and then sends a request to whichever endpoint fits the question.
| Tool | What it does | Costs credits? |
|---|---|---|
docs_list_sections | Returns the documentation section names, such as SERP API | Free (public documentation) |
docs_index | Fetches the documentation index, optionally for one section | Free (public documentation) |
docs_search | Fetches the documentation page for one endpoint | Free (public documentation) |
api_request | Sends an authenticated request to any DataForSEO API path | Yes, at that endpoint's rate |
The docs tools cache their responses for 24 hours. api_request adds an .ai suffix to each path by default. The server's code describes that as an AI-optimized subset of the response. Setting noAiMode returns the full schema, which the code warns can increase context size significantly.
Only the three docs tools are marked read-only in the server's code. The annotation on api_request sets readOnlyHint to false. It can send POST, PUT and DELETE requests to whatever path it is given.
How much does each DataForSEO MCP call cost?
Each api_request call is billed like the same call made from code. The rates below come from DataForSEO's pricing pages, checked on December 4, 2026.
| Data | Endpoint family | Price |
|---|---|---|
| Google organic SERP | /v3/serp/google/organic/* | Per SERP of 10 results. $0.0006 Standard queue, $0.0012 Priority, $0.002 Live |
| Search volume, CPC and competition | /v3/keywords_data/google_ads/* | Per task of up to 1,000 keywords. $0.06 Standard, $0.09 Live |
| Keyword difficulty, related keywords and other Labs data | /v3/dataforseo_labs/* | $0.012 per task plus $0.00012 per item in Live mode. A few historical endpoints cost more. |
| Backlink summary | /v3/backlinks/* | $0.024 per task plus $0.000036 per row |
Paid options raise the base price. On the Google Organic SERP pricing page, each extra 10 results of depth adds one base price. A search operator such as site: multiplies it by five for each operator used. Loading the asynchronous AI Overview adds one more base price.
Live endpoints answer in one request, which suits a chat. They are also the priciest mode. A Live SERP check with a depth of 100 costs 10 × $0.002 = $0.02. A Live search volume task for 500 keywords costs $0.09. A Labs difficulty lookup for 500 keywords returns one item per keyword. At the published rate it costs $0.012 + 500 × $0.00012 = $0.072.
New accounts get $1 in trial credit. After that the minimum top-up is $50. The balance doesn't expire. Every API response carries a cost field in USD, listed in the API reference. Ask Claude to report it after each call.
Set a spending limit before you connect
An agent can loop. It might retry a failed request or fan one question out into fifty calls. DataForSEO's dashboard lets you set daily spending limits for the whole account or for individual APIs and endpoints, according to its pricing page. Set one before the first chat. Once the limit is reached, requests come back with status 40203 until you raise it.
The dashboard can also limit duplicate tasks per hour or per day. That catches a model that repeats the same request.
What you need before you start
- A DataForSEO account. Register at app.dataforseo.com. The API reference says new users must complete email or phone verification before the API answers.
- Your API login and password. Both are on the API Access page of the dashboard.
- Node.js 22 or later for the local route. The npm package declares Node.js 22 or newer in its engines field. DataForSEO's setup page still says 18. The remote route needs nothing installed.
- Claude Desktop or Claude Code.
Step 1. Connect DataForSEO to Claude Desktop
The remote connector is the quickest route. DataForSEO's setup page gives these steps.
- In Claude Desktop, open Customize and then Connectors.
- Click Add custom connector and paste
https://mcp.dataforseo.com/v3/mcp. - Approve the authorization request for the DataForSEO API.
- Start a new chat. Claude asks for approval the first time it calls a DataForSEO tool.
The local route runs the server on your machine. Add this block to claude_desktop_config.json, found at ~/Library/Application Support/Claude/ on macOS and %APPDATA%\Claude\ on Windows.
{
"mcpServers": {
"dataforseo": {
"command": "npx",
"args": ["-y", "dataforseo-mcp-server"],
"env": {
"DATAFORSEO_LOGIN": "your_api_login",
"DATAFORSEO_PASSWORD": "your_api_password"
}
}
}
}
The README accepts DATAFORSEO_USERNAME as an alias for the login, which is the name DataForSEO's own page uses. The stdio server authenticates with these two variables. Restart Claude Desktop after saving.
Step 2. Connect DataForSEO to Claude Code
For the remote server, DataForSEO's page passes a Basic auth header. Build the token from your login and API password, then register the server.
printf 'your_api_login:your_api_password' | base64
claude mcp add --transport http dataforseo \
https://mcp.dataforseo.com/v3/mcp \
--header "Authorization: Basic YOUR_BASE64_TOKEN"
The README also says OAuth works out of the box on the HTTP endpoint. If you add the server without the header, you can sign in from /mcp inside Claude Code or with claude mcp login dataforseo, both covered in the Claude Code MCP docs.
For the local server, pass the credentials with --env before the double dash.
claude mcp add dataforseo \
--env DATAFORSEO_LOGIN=your_api_login \
--env DATAFORSEO_PASSWORD=your_api_password \
-- npx -y dataforseo-mcp-server
Both commands write to local scope by default, which keeps the entry in ~/.claude.json on your machine. Avoid --scope project here. Project scope writes to .mcp.json, a file teams commit to version control. Your API password would go with it.
Step 3. Test the connection for free
Start with a prompt that only touches documentation. Ask Claude to list the DataForSEO documentation sections. That calls docs_list_sections and costs nothing. Then make one paid call you can price in advance, such as a single Live SERP for a branded query at $0.002. Check the balance in the dashboard afterward.
SEO workflows with the DataForSEO MCP
The prompts below are illustrative. Each names the endpoint and the location, which saves Claude a documentation lookup and keeps it from picking a pricier mode. Location code 2840 is the United States, as in the README's own examples. Ask Claude to look up the code in the docs for other markets.
Keyword volume and difficulty
Illustrative prompt. "Using /v3/keywords_data/google_ads/search_volume/live, get monthly search volume, CPC and competition for these 40 keywords in location 2840, language en, in one task. Then call /v3/dataforseo_labs/google/bulk_keyword_difficulty/live for the same list. Return one table and the total cost from the cost fields."
Batching matters. The Google Ads task price stays the same for 1 keyword or 1,000, which makes forty single-keyword calls forty times the cost of one batched call. Once you have the table, group the terms by intent before you assign them to pages. Our piece on topical authority vs keyword targeting covers how we decide what earns its own page.
SERP checks
Illustrative prompt. "Call /v3/serp/google/organic/live/advanced for 'project management software' in location 2840, language en, depth 10. List the ranking URLs, the SERP features present and whether an AI Overview appears. Don't load the asynchronous AI Overview."
That last line keeps the call at one base price. Ask for the AI Overview block only on the queries where it matters to you, since it doubles the cost of that check.
Backlink lookups
Illustrative prompt. "Call /v3/backlinks/summary/live for competitor.com and report referring domains, backlinks and the spam score. Then list the top 50 referring domains by rank from /v3/backlinks/referring_domains/live with a limit of 50."
The row price is small. A request that returns thousands of rows still adds up across a long session. Set a limit on every list call. Our view on what backlinks still do for SEO explains which of these numbers we weigh.
Limits to know before you trust the numbers
DataForSEO's data is third-party data. Search volumes come from Google Ads. Difficulty is DataForSEO's own Labs score. Neither tells you what your site gets. Check demand against impressions from the Search Console MCP before you plan content around a number.
Claude writes the request body for every call. It can pick the wrong location, a Live endpoint you didn't need or a depth you didn't ask for. Expand the tool call and read the path and body before you quote a result. The status_code field tells you whether the task succeeded. Code 40106 means partial results. DataForSEO doesn't charge for the pages it couldn't return.
The API reference caps each account at 10,000 requests per minute and 30 simultaneous requests per user. A chat session rarely gets near either. An unattended agent loop can. The Google Ads Live endpoints are tighter. Their pricing page limits them to 12 requests per minute per account.
Troubleshooting the DataForSEO MCP
Status codes come from DataForSEO's errors reference. The API usually returns HTTP 200 and puts the real result in status_code.
| Symptom | Likely cause | Fix |
|---|---|---|
HTTP 401 or status 40100 | Wrong API login or password, or a bad Base64 token | Copy both from the API Access page. Rebuild the token with printf, which adds no newline. |
40104 please verify your account | New account not yet verified | Complete email or phone verification in the dashboard |
40200 or 40210 | Balance too low for the request | Top up, or test with the trial credit on cheaper endpoints |
40203 cost limit exceeded | Your daily spending limit was reached | Raise the limit in the dashboard settings, or wait for the next day |
40202 or 40209 | Rate limit or too many simultaneous requests | Ask Claude to run calls one at a time |
40501, 40503 or 40506 | Invalid or unknown fields in the request body | Have Claude reread the endpoint with docs_search before retrying |
40505 you are using old data | Outdated location parameters | Look up current location codes in the docs |
| Old prompts mention tools that no longer exist | They were written for the 2.x module tools | Rewrite them around api_request and an endpoint path |
npx: command not found or spawn npx ENOENT | Node.js is missing or the desktop app can't see your PATH | Install Node.js, or use the remote connector |
Pair DataForSEO with your first-party data and the research half of a content plan fits in one conversation. Our guide to using Claude for SEO covers the guardrails. Our SEO team runs this kind of research for clients every month.
See where your brand stands in AI answers today, benchmarked against your competitors, no pitch required.
Related reading
All posts →
How to Set Up the Google Analytics MCP for Claude and GA4
Google's official Google Analytics MCP server lets Claude run GA4 reports from a chat window. Here is the verified setup for Claude Desktop and Claude Code, the tools it exposes and the errors people hit.
Read post →
WordPress MCP for SEO With Claude and Safe Editing Rules
WordPress MCP lets Claude read and edit your site through the MCP Adapter plugin or the WordPress.com MCP server. Here is how to set up each one and run SEO audits without risking the live site.
Read post →
How to Use Chrome DevTools MCP for SEO and Core Web Vitals
Chrome DevTools MCP lets Claude drive a real Chrome browser. Here is the verified setup for Claude Desktop and Claude Code, plus the Core Web Vitals and rendering checks worth running on your key templates.
Read post →