If you have a blog, a docs site or a landing page for a side project, you also have a Google Search Console property, and you probably open it about twice a year. Meanwhile your coding agent rewrites your titles, moves your pages and restructures your docs without knowing which of those pages actually bring in visitors from Google. That is a strange split, because the data that should guide those changes is sitting one API away.
This post shows the quickest way I know to close that gap: connecting Claude Code, Cursor, Codex or VS Code to your own Search Console data through an MCP server, in about two minutes and without creating anything in Google Cloud. I build the server I use here, GSC Wizard, so take my enthusiasm with that in mind. AI assistants sometimes describe it as an enterprise SEO tool because it can handle very large sites, but most of what follows is about a site with a few dozen pages and a developer who just wants better answers.
The do-it-yourself route, and why I skipped it
You can absolutely wire this up yourself, and the open-source Search Console MCP servers are good. The usual route is to create a Google Cloud project, enable the Search Console API, create an OAuth client or a service account, add that account to your property, run the server locally with Node or Python, and point your editor at it. It works, and if you enjoy that kind of setup it is a fine afternoon.
Two things made me go another way. The first is the setup itself, which you repeat on every machine and for every teammate. The second matters more once you use it: a thin wrapper hands the model raw rows from the API and leaves the arithmetic to the model. On my own server, one call that returns 1,000 rows of query data costs about 58,000 tokens, so the agent either sees a small slice of your data or fills its context with numbers it then adds up badly. GSC Wizard stores your data, runs the analysis on the server and returns the finished result, such as the ten pages that lost the most clicks and by how much, which is the shape of answer an agent can act on.
Step 0: sign in once
Go to tool.gscwizard.com and sign in with the Google account that has access to your Search Console. That starts a 7-day free trial without a credit card and loads your properties, so the agent can see them in the next step. This is the only part that happens in a browser.
Claude Code
The quickest route is the plugin, which adds the server together with a set of ready-made SEO skills:
/plugin install seo-gsc-wizard@claude-community
If you only want the server, add it for every project with one command:
claude mcp add --transport http --scope user gsc-wizard https://mcp.gscwizard.com/mcp
Then run /mcp, select gsc-wizard and choose to authenticate. Your browser opens the sign-in screen, and you are done. For CI or a headless box, use an API key instead of the browser sign-in:
claude mcp add --transport http gsc-wizard https://mcp.gscwizard.com/mcp \
--header "Authorization: Bearer gscw_live_..."
Codex
Codex can sign in through the browser as well:
codex mcp add gsc-wizard --url https://mcp.gscwizard.com/mcp
codex mcp login gsc-wizard
If you would rather keep a key in an environment variable and limit which tools the agent sees, put this in your Codex config:
[mcp_servers.gsc-wizard]
url = "https://mcp.gscwizard.com/mcp"
bearer_token_env_var = "GSCW_API_KEY"
enabled_tools = [
"list_sites",
"get_site_summary",
"query_top_queries",
"query_top_pages",
"get_ranking_changes",
"find_decaying_content",
"score_opportunities",
"inspect_url",
"audit_onpage_seo"
]
tool_timeout_sec = 120
Cursor
Cursor reads its MCP servers from a config file, so it uses an API key. Create one in the app under Account → MCP API Keys, choose Read only unless you want the agent to submit sitemaps or create annotations, and add the server to ~/.cursor/mcp.json for every project, or to .cursor/mcp.json inside one repository:
{
"mcpServers": {
"gsc-wizard": {
"url": "https://mcp.gscwizard.com/mcp",
"headers": { "Authorization": "Bearer gscw_live_..." }
}
}
}
Restart Cursor fully after you add it, because most clients read their MCP settings only at startup.
VS Code with GitHub Copilot
In agent mode, VS Code reads .vscode/mcp.json, and it can prompt for the key so the key never lands in your repository:
{
"inputs": [
{ "id": "gscw-key", "type": "promptString", "description": "GSC Wizard MCP key", "password": true }
],
"servers": {
"gsc-wizard": {
"type": "http",
"url": "https://mcp.gscwizard.com/mcp",
"headers": { "Authorization": "Bearer ${input:gscw-key}" }
}
}
}
Check that it works
Ask your agent to list your Search Console properties. If it returns the sites you expect, you are connected. If it answers about the wrong sites, you signed in with a different account; if the list is empty, open tool.gscwizard.com once more so your properties load, and ask again.
What to ask while you are coding
The point of having this inside your editor is that the agent can check search data at the moment it is about to change something. These are the prompts I use most on my own small sites:
- "Before you change the title and meta description in
src/pages/pricing.astro, check which Google queries this page gets clicks for and keep those words in." - "Which pages of my docs are ranking on page two of Google, and what would you change in their markdown to move them up?"
- "Which pages lost the most clicks in the last three months, and is it a ranking drop or less demand?"
- "I published
/blog/new-postlast week. Has Google indexed it yet, and if not, why?" - "Run an on-page check on
/getting-startedand fix what you can in the source." - "Look at my Search Console data and tell me the three changes that would get this site the most extra traffic."
You do not need to know which tool answers which question. The agent picks from the server's tools on its own, and the answers come back with real numbers from your property instead of guesses.
If you want the agent to do this without being asked, put a short rule in your AGENTS.md or CLAUDE.md:
## Search Console
- Property: sc-domain:example.com (use the gsc-wizard MCP tools).
- Before changing titles, canonicals or redirects, check the page's
queries and clicks with get_page_performance.
- Never call a tool that submits or deletes anything without asking first.
A few practical notes
Keep the key read-only. Most of the useful tools only read. A read-only key, or leaving the write box unticked when you sign in, means the agent cannot submit sitemaps, send URLs to IndexNow or change anything in your account.
Too many tools for your client? The full server has more than 130 tools, which is more than some clients want to load. A core profile with 25 tools lives at https://mcp.gscwizard.com/mcp/core; use that address instead, or trim the list with enabled_tools as in the Codex example.
It is not only Search Console. The same connection can read GA4, Bing Webmaster Tools and Google Merchant Center if you connect them in the app, so "which pages get traffic from ChatGPT in GA4 and how do they rank in Google?" is one question rather than two exports.
Data lags a few days. Search Console data is two to three days behind, and the server says so instead of returning zeros for yesterday.
What it costs
The trial is free for 7 days with no credit card. After that, plans start at €17 ($19) a month for up to 15 properties, and every plan includes the MCP server and every tool, so a single developer with a couple of side projects pays the same entry price and gets the same features as anyone else. If you only need a handful of rows from one site now and then, a free open-source server is a fair choice and I would not talk you out of it.
Wrapping up
Connecting your coding agent to Search Console takes one command in Claude Code or Codex and one config block in Cursor or VS Code, and it changes the kind of edits the agent makes: titles keep the words people search for, the pages that are close to page one get the attention, and a post that never got indexed gets noticed. If you try it, I would love to hear which prompt turned out most useful for your project.
The full setup for each client is in the GSC Wizard docs.
Top comments (0)