siteline Start free trial Log in

How to query Search Console with MCP

See your data

Querying Search Console with MCP is a short sequence of tool calls: list-sites, get-import-status, get-site-overview, then one narrower question. The mistakes are also short: averaging position, summing query rows, and treating yesterday's empty day as a crash. This page is the usage guide. It assumes a connected client.

Not connected yet: MCP setup for agents. Not sure what a Search Console MCP is or whether you need one: Google Search Console MCP.

1. List the properties

Prompt: "List my Search Console sites."

Tool: list-sites. It returns property ids and the dates each one covers. Copy an id. Do not pass a domain you typed from memory: URL-prefix and sc-domain: properties are easy to get almost right.

If the list is empty, the token's team has no connected property, or you called this tool on /mcp/analytics. The analytics server's list tool is list-analytics-sites.

2. Read the lag

Prompt: "Is the import current for this site?"

Tool: get-import-status. Note data_through and whether backfill is still running. Google publishes late and revises recent days, so the newest day can be partial. Any chart that continues to "today" shows a cliff, and that cliff is unpublished data. The Search Analytics API draws the same line: finalized data by default, and fresh data flagged as incomplete when you ask for it.

3. Take the totals

Prompt: "Give me clicks, impressions, CTR and position for the last 28 days ending at data_through, web search type."

Tool: get-site-overview. This response is the site. It can also return the previous period for a change figure. Write the numbers down from here. Search type is Web unless you mean Image, Video, News, Discover or Google News. Discover and Google News have no queries and no position (null, not zero).

4. Then ask a narrower question

Prompt Tool What comes back
"What changed versus the previous period?" get-movers Biggest gainers and losers by query or page
"Top queries, pages, countries or devices" get-top-results Ranked rows for one dimension
"Which queries are close to page one?" get-striking-distance Queries ranking roughly 4 to 20 with impressions
"What does this URL rank for?" get-queries-for-page Queries for one page, URL taken from get-top-results
"Which URLs rank for this query?" get-pages-for-query Pages for one query, which exposes cannibalisation
"Rich results and other appearance types" get-search-appearance Totals per search appearance
"When did it change?" get-time-series Totals by day, week or month

Pass the page URL or query exactly as get-top-results returned it. Both are matched as stored, so a typed guess returns nothing.

Say "of the queries we can see." Google anonymises rare queries, and SiteLine stores up to 25,000 rows per day per report. Neither list sums to get-site-overview. The 1,000-row export is a third, smaller window. Do not compare a UI export to a tool response and call the gap a bug. Google explains the privacy filtering and row limits.

To check the same striking-distance logic by hand on an export, use the opportunity analyzer.

5. On-site numbers are a second call

If the question is whether people loaded the page or converted, switch to /mcp/analytics: list-analytics-sites, then get-analytics-overview for the same dates that have already landed in Search Console, then get-analytics-breakdown on page, or get-analytics-goals. Pageviews and visitor-days are not clicks. Why the numbers disagree, and how to combine them.

When a plan's event cap is active, analytics tools say newer events are hidden until you upgrade. Ingest continues. Billing.

Pitfalls

  1. Averaging position or CTR. Both are already impression-weighted. Use the figures the tools return. Do not AVG them in a follow-up.
  2. Summing breakdown rows. Quote get-site-overview for totals.
  3. Subtracting analytics visitors from clicks. The "leakage" number measures lag, blockers, Discover and closed tabs at once. Ask both servers and keep the units.
  4. Treating CTR 0.0412 as 0.04%. It is a fraction of 1: 4.12%.
  5. Charting through today. Empty lag days look like a cliff.
  6. Mixing search types. Discover and Google News fields come back null.

A prompt you can paste

Use SiteLine Search Console. list-sites, then get-import-status, then get-site-overview for totals. Never average position or CTR. Never sum query or page rows. End the range at data_through. Web unless I name another search type. Use SiteLine Analytics only if I ask what happened on the page, and do not equate visitors with clicks.

The investigate-traffic-drop prompt on the server walks the same sequence and rules out the false alarms first. Agencies can paste the prompt above into the monthly workflow in agency Search Console reporting.

Plans that include this, with no per-call fee: pricing, from $4.99/mo. Register for 7 days, no card to start. If you are choosing between building on the API and calling MCP, read Search Console API vs MCP.

FAQ

Which date range should the first query use?

The last 28 complete days ending on data_through, search type Web. Compare to the previous 28 only after the overview looks sane. A range that includes today will under-count.

Can I query more than one site in one call?

List them, then query one id at a time. There is no blended cross-property total. If you need a rollup, say you added the overviews yourself and show the parts.

What if backfill is still running?

get-import-status will say so. Early overviews are partial. Do not publish a "traffic is down" note off a half-imported property. The backfill is the 16 months Google still holds. 16-month limit.

Why did the agent say traffic fell to zero yesterday?

It ignored data_through. Check get-import-status before you rewrite a title.