Use it when you need data from outside your own site: search volume for a keyword, who ranks for it, or what a competitor ranks for. You need a key from DataForSEO or Ahrefs, and each request uses your credits with them. For the hosted MCP, the API keys guide shows how to add one. For the CLI, connect a provider once:
seo providers dataforseo connect
seo providers ahrefs connect
What you can ask for
| Action | Give it | What comes back |
|---|---|---|
keyword_metrics | Up to 100 keywords, or your site with no keywords | Search volume, keyword difficulty and cost per click. For your site, the queries you get impressions for that the provider rates at zero or has no data on |
keyword_ideas | Up to 5 seed keywords | Searches that contain each seed, highest volume first |
ranked_keywords | A site, subfolder or page | The keywords it ranks for, and the provider’s traffic estimate for the whole target |
top_pages | A site or subfolder | The pages with the most estimated search traffic |
serp | Up to 5 keywords | The pages that rank for each one, with each domain’s authority |
index_check | One page URL | Whether Google returns the page, on desktop and mobile (DataForSEO only) |
serp_overlap | 2 to 10 keywords | For each pair, how many top 10 pages and sites they share |
competitors | A domain | Domains that rank for the same keywords |
backlinks | A site, subfolder or page | Referring domains |
pages_by_backlinks | A site or subfolder | The pages with the most referring domains |
link_gap | Your domain and 2 to 5 competitors | Sites that link to two or more competitors and not to you |
mentions | Your domain, and brand names if you like (DataForSEO only) | Pages on other sites that name you, and whether each site already links to you |
ai_answers | Any site (DataForSEO only) | Whether AI answers cite or mention the site, for its own AI-style questions or up to 10 of yours, and the searches ChatGPT ran |
Each request also takes a two-letter country code. The default is us. Link data covers every country. Every DataForSEO result says what the request cost, from DataForSEO’s own numbers.
Pick a site, a subfolder or one page
The shape of the target decides what gets read. A bare domain such as example.com is the whole site with its subdomains. A path that ends in a slash, such as example.com/blog/, is every page under it. Any other path is that one page. To read a target another way, add --scope domain, --scope prefix or --scope exact.
seo research top_pages --target example.com/blog/
seo research pages_by_backlinks --target example.com/blog/
seo research ranked_keywords --target https://example.com/pricing
A teardown usually starts here: the top pages show where a site’s search traffic comes from, and the pages by backlinks show which content earns its links. A domain overview puts a site’s traffic, top pages, competitors and links in one answer. The SEO competitor analysis page runs these actions in order, and the keyword gap analysis page compares a competitor’s ranked keywords with your own queries.
Run research
Ask your agent. You don’t need to name a provider: research uses the key you saved, and DataForSEO when you saved both.
Show the keywords competitor.com ranks for in the UK
The hosted MCP runs seo_research. In a terminal, put the action first:
seo research keyword_metrics --keywords "seo audit,seo report" --country us
seo research ranked_keywords --provider ahrefs --target competitor.com --country gb
Add --provider (or provider in the MCP tools) to choose one when you saved both keys. Asking for a provider you have no key for stops with how to add it.
Find zero-volume keywords
Keyword tools rate many real searches at zero or have no number for them, so they look like nothing to write about. Your Search Console data says otherwise. If a query earns impressions, people search it. Give keyword_metrics your site and no keywords:
seo research keyword_metrics --target example.com
It takes your site’s top queries by impressions over the last 28 days and asks the provider about them in one request. It leaves out your brand searches and queries that aren’t keywords, such as search operators and pasted text. It then lists the queries rated at zero or with no data, with their impressions, clicks, position and top page. Zero and no data stay apart. Zero is the provider’s own number, and no data means the provider doesn’t have the query.
One request asks about up to 700 queries with DataForSEO, which costs about $0.10 at most, or 100 with Ahrefs, which uses its API units. A site with fewer queries costs less, and asking again within a day reads the saved result at no cost.
Use another source for search results
serp can also come from a provider package you installed, such as one built from the provider template for a search results API. Install and connect the package, then pass its name as the provider:
seo providers install <package-name>
seo providers connect <provider-id>
seo research serp --provider <provider-id> --keywords "seo audit"
The rows look the same as DataForSEO’s, and the result shows the cost the package reports. Packages run in the CLI and the local MCP server (seo mcp serve), not on the hosted server, and they answer serp only.
Find a link gap
link_gap lists the sites that link to at least two of your competitors and not to you, with the highest authority first. These are the sites most likely to link to you too. The backlink gap analysis page shows how to pick the competitors and read the list.
seo research link_gap --provider ahrefs --target example.com --competitors example.org,example.net
It reads the top 1,000 referring domains of each site, one backlinks request per site. When a site has more than that, the list stops at the lowest authority it read and says so, rather than guessing below it. With DataForSEO, the top 200 rows are sorted by Domain Rating. URL shorteners, link lists and coupon or site-stats directories link to almost every site, so they’re left out, and the result names each one.
Find unlinked mentions
mentions finds pages on other sites that name your domain, one page per site, and checks whether each site already links to you. Sites with no link come first. A site that writes about you without linking already knows you, so a short note asking for the link is a reasonable ask.
seo research mentions --target example.com --brand "Example App"
Pages that name the domain come before pages that only match a brand name. A brand name that is also an ordinary phrase matches pages that use the words, so check those before you count them. The pages come from DataForSEO’s content index and the links from its backlink index, so a link it hasn’t crawled shows as not_found. Open the page before you ask. A run costs about $0.03 a search term plus one backlinks request, under $0.10.
Read SERPs and check overlap
serp reads 20 results per keyword unless you set --depth (1 to 100). Deeper costs more: DataForSEO charges about five times as much for 100 results as for 10. With several keywords, the rows run position by position, so every keyword shows up on the first page.
Each serp row has two positions. position is the organic position: the page is the nth organic link. DataForSEO’s rank_absolute counts every block from the top of the page, including AI Overviews, People Also Ask, videos and images, so a third organic link can have a rank_absolute of 7. Quote position when you say where a page ranks. ranked_keywords rows carry both numbers too.
Google ranks pages differently on phones. Add --device mobile to read the mobile results (DataForSEO only). When a results page shows an AI Overview, the notes list the sites it cites and the JSON has the full list as aiOverviews. DataForSEO retries a search that fails on Google’s side up to three times before it lists the keyword as failed.
seo research serp --keywords "feature flags" --device mobile
serp_overlap helps you decide whether a set of searches needs one page or several. It reads the top 10 for each keyword and counts the pages and sites each pair shares. Lots of shared pages usually means Google treats the searches as one topic.
seo research serp_overlap --keywords "seo migration checklist,website migration seo,site migration"
DataForSEO returns most results as Google redirect links with no exact page. Those are matched by Google’s breadcrumb, the site and path shown under the title, and a shortened breadcrumb can’t be compared, so the result says how many pages it compared. Live results also change from one pull to the next, so treat a low overlap as weak evidence. For searches your site already gets, the queries that land on the same page in Search Console are a steadier sign of one topic.
Check whether Google has indexed a page
index_check asks Google for site: plus the page URL, and for an exact phrase from the page, on desktop and mobile. The phrase comes from the page’s H1 or title and its meta description, or pass up to 2 of your own with --keywords.
seo research index_check --target https://example.com/docs/feature-flags
The answer is indexed, not found or unknown, with every search beside it. When nothing matches a site: search, Google drops the filter and shows unrelated sites. Those are marked fallback and count as no match. A search that still fails after retries makes the answer unknown. It costs about $0.02 to $0.04 a page.
This is Google search, not Search Console. A page can be indexed and still not show for a site: search, so not found is evidence, not proof. For a site you own, seo page and seo index read Google’s URL Inspection instead.
Page through results without paying again
A research result is kept for a day. The next page, and the same rows with --detail full, are read from it at no new cost, and the result says so. --detail full gives every row that was read. Add --refresh to ask the provider again.
Read search volumes in the provider’s own terms
DataForSEO’s search volume is Google Ads’ monthly average over the last 12 months. Ahrefs estimates its own volumes. The two can differ two to eight times for the same keyword, so compare keywords within one provider. A keyword with no volume is listed as no data, because its volume is unknown, not zero.
Read traffic estimates in the provider’s own terms
ranked_keywords gives a total for the whole target next to its rows, named in the provider’s own metric. DataForSEO’s etv multiplies each keyword’s volume by a click-through rate for its position, over the keywords in DataForSEO’s database. Ahrefs’ organic traffic comes from its own keyword database and click model. The two can differ tenfold for the same page, so compare a site with itself in one provider, never one provider’s number with the other’s.
When a provider has more rows than one request reads, the result says how many it has and how many were read.
When a result is empty
An empty result always says why. A serp with no results means Google showed an empty page twice, which happens for rare or filtered searches and doesn’t mean nothing ranks. Keywords with no metrics are listed as having no data, and their volume is unknown, not zero. An empty top pages, backlinks or ranked keywords list means the provider has nothing for that target in its database, which doesn’t show the site has no traffic or links. DataForSEO returns many SERP results as Google redirect links. Those rows keep the domain and a shortened url_hint, and the notes count them. Use Ahrefs when you need the exact pages.
Check whether AI answers cite your site
ai_answers starts from questions people already ask about your site. It takes the top 10 chat-style and long questions from the AI queries section of your Search Console data, so you need Google connected as well as a DataForSEO key. The AI visibility checker page has a worked example and the prompts to run it from your agent.
seo research ai_answers --target example.com --country gb
To ask your own questions, pass up to 10 in --keywords. Then the target can be any site, such as a competitor’s, and Google doesn’t need to be connected:
seo research ai_answers --target example.org --keywords "what is the best crm for a small team,how do I import contacts"
Each question goes to ChatGPT search, the Gemini app, Google AI Mode and Google AI Overviews. Every row says whether the answer cited a page on your site, mentioned it by name, did neither, or showed no AI answer at all. ChatGPT rows also name the model DataForSEO reports for the answer. A run of 10 questions costs about 10 cents of DataForSEO credit, and the result shows what it actually cost. Each row also lists the other sites the answer cites, and the notes rank the sites cited most. Each question also gets the same shape label as the report, such as question or comparison.
Answers come from DataForSEO’s queue and usually take about 15 seconds. Through the MCP server, any answers not ready after about 40 seconds come back as tasks that are already paid for. Ask again with the same target and those tasks to read them at no cost. The CLI waits up to four minutes, and prints the same tasks if any are still waiting; pass them with --tasks. Asking the same questions again the same day (UTC) reads that first run back at no cost too, instead of paying twice. To ask again and pay, pass refresh (--refresh in the CLI).
Each answer is one sample, and the same question can get a different answer an hour later. To see how often answers cite or name you, pass samples (--samples in the CLI), from 1 to 5: each question is asked that many times, and the notes give the rate and the questions where the samples disagreed. Each sample costs a full run, so 3 samples cost about $0.29.
When the target is one of your sites and its business context lists competitors under ## Competitors, each answer is also checked for them, by domain and the name beside it, at no extra cost. Each row lists the competitors it cites or names, and the notes give the share of voice: how many answers cite or name you and each competitor.
See the searches ChatGPT runs
ChatGPT turns a question into its own web searches before it answers. Each ChatGPT row lists the searches it ran, and the notes rank the searches that came up most across the answers. To see the searches for questions of your own, pass them with any target:
seo research ai_answers --target example.com --keywords "what is the best crm for a small team,how do I import contacts"
In an agent, ask “show me the searches ChatGPT runs for these questions” and give it the questions.
ChatGPT is asked the way a person asks it, so it can answer from memory without searching. Then its row says “none returned”. Google AI Mode and AI Overviews don’t report their searches, so their rows say “not available”.
To see more rows, use the next-page command the result gives you. It passes every answer’s task, so the answers are read back at no cost instead of asked again.
The check looks for your site’s name in each answer, taken from the domain unless you give it. When the brand name differs from the domain, or a brand uses several domains, say so:
seo research ai_answers --target claude.com --also claude.ai --brand Claude --keywords "what is claude code"
A citation to any of the domains counts as cited, and the result names the domains and the brand names it matched. Placeholder sites in an answer, such as yourdomain.com, and images in ChatGPT’s answers are never counted as citations.
Treat each row as one sample. Ask the same question tomorrow and the answer can change, so a “neither” today is not proof you will never be cited.
Authority columns
With DataForSEO, each serp result gets domain_rank, DataForSEO’s own authority score from 0 to 100. It is a different scale from Domain Rating.
Rows with a domain, and the target itself, also get a Domain Rating column, Domain Rating by Ahrefs. The hosted MCP adds it for free. In the CLI it needs an Ahrefs key, and the result says so when it’s missing.
Estimates, not your data
Provider numbers are estimates from their own index. They are kept apart from your Search Console data and never mixed into it. When you need to know what your own pages actually get, use the SEO report or seo data.