Google Search Console MCP: Connect GSC to Claude
There is no official Google Search Console MCP. Three ways to connect GSC to Claude, and the eight keyword research analyses I run on the data.
A Google Search Console MCP is a server that lets Claude query your Google Search Console data in a conversation: clicks, impressions, CTR, and position by query, page, country, device, and date. Google does not publish one. You connect GSC to Claude through a community MCP server, through your own script on the Search Console API, or through a hosted SEO MCP that wraps the API for you.
I run SEO strategy for five B2B SaaS accounts and built this site with Claude Code. drewgarrett.org reads its own Search Console data through a read-only service account behind a few npm scripts, and for anything ad hoc I open Search Console itself. The OpenSEO hosted MCP is also connected, mainly for rank tracking. Below are the three setup routes with real steps, the security settings that matter, and the eight analyses I actually run on the output.
Connecting Search Console to Claude is an afternoon of setup. Knowing which of its rows deserve a page edit is the job.
Is there an official Google Search Console MCP?
There is no official Google Search Console MCP server as of November 28, 2026. Google has published no Search Console server on its developer or Search Central sites, and every result for “google search console mcp server” is a community or vendor project.
Two nearby Google products cause the confusion. The Developer Knowledge MCP server ranks third for the term, and it does something else: Google says it “gives AI-powered development tools direct access to search and retrieve official Google developer documentation” and “indexes only publicly available documentation.” It cannot read your site’s data. Google does run first-party servers for its other marketing data. The Google Analytics MCP server “is available for read requests only,” and the Google Ads API MCP server, open-sourced on October 7, 2025, shipped as a read-only “initial release.”
So every gsc mcp you can install is someone else’s code holding a credential to your search data. That is fine with the right scope. It is a reason to read the server before you run it.
For the wider field of SEO servers (Ahrefs, Semrush, DataForSEO, Screaming Frog, Searchable), see my SEO MCP servers guide.
Three ways to connect Google Search Console to Claude
The three routes trade setup time against control. All three hit the same Search Console API underneath, so the data is identical; what changes is who holds the credential and who decides which rows come back.
| Route | Example | Setup | Cost | Who holds the credential | Best for |
|---|---|---|---|---|---|
| Community search console mcp server, run locally | mcp-gsc (MIT, about 2,300 GitHub stars) | Google Cloud project, Search Console API, OAuth client or service account, a config file | Free | You, on your machine | Ad hoc questions in Claude Desktop or Claude Code |
| Your own script on the Search Console API | My scripts/gsc.mjs and scripts/gsc-gaps.mjs | Service account, a JSON key, a few lines of code | Free API, your time | You, in a gitignored .env | Repeatable analyses and scheduled jobs |
| Hosted SEO MCP | OpenSEO | One command or one connector, then Google sign-in | $10 a month; its Search Console tools “use zero credits” | The vendor, through OAuth | Search Console next to keyword and rank data |
I use the script route for anything I want to run the same way every week, and Search Console directly for one-off questions. The community server is the fastest free start if you only want to ask Claude questions.
How to connect Google Search Console to Claude with an MCP server
To connect Google Search Console to Claude with a community server, you create Google credentials, point the server at them, and register the server with Claude. The steps below follow the mcp-gsc README (version 0.4.2, November 2026), the server that ranks first on Google for the term.
- Create a Google Cloud project and enable the Search Console API in the Google Cloud console.
- Create a credential. For personal use, an OAuth client ID with the application type “Desktop app”; download the client secrets JSON. For automation or a team, a service account with a JSON key, then add the service account’s email in Search Console under Settings, Users and permissions.
- Install uv, which runs the server with
uvxand manages the Python version for you. Without uvx the server needs Python 3.11 or newer. - Register the server with Claude. In Claude Desktop, add it to
claude_desktop_config.json:
{
"mcpServers": {
"gscServer": {
"command": "/FULL/PATH/TO/uvx",
"args": ["mcp-search-console"],
"env": {
"GSC_OAUTH_CLIENT_SECRETS_FILE": "/full/path/to/client_secrets.json"
}
}
}
}
- Restart Claude and sign in. On first use a browser window asks for your Google account; the token is cached after that. Ask for a list of your properties to confirm it works.
Use full paths. The README explains that desktop apps launch without your shell config, so a bare uvx fails with spawn uvx ENOENT. For a service account, swap the env block for GSC_CREDENTIALS_PATH and "GSC_SKIP_OAUTH": "true".
How to connect Claude Code to Google Search Console?
You connect Claude Code to Google Search Console with one claude mcp add command. Claude Code’s MCP docs give the local-server syntax as claude mcp add [options] <name> -- <command> [args...], with --env for variables, so the same server registers like this:
claude mcp add --transport stdio \
--env GSC_OAUTH_CLIENT_SECRETS_FILE=/full/path/to/client_secrets.json \
gsc -- uvx mcp-search-console
The default scope is local, which keeps the server to you in the current project. Leave it there. A project scope writes the server into a shared .mcp.json file in the repo, which is the wrong home for anything that points at a credential. Run /mcp inside Claude Code to check the connection.
On Claude’s web and desktop apps, a hosted server goes in as a custom connector: Customize, Connectors, Add custom connector. Anthropic’s connector docs say custom connectors work on every plan, Free included (one connector on Free).
The Google Search Console API route: a service account and a script
The Google Search Console API route means Claude runs a script you own, and the script pulls exactly the rows each analysis needs. It is how I connect GSC on this site, because a scheduled job cannot click through a browser sign-in and because a script asks the same question the same way every week.
The setup is the community server’s service-account path with a script in place of the server:
- Create a service account in Google Cloud, download its JSON key, and store it outside the repo.
- In Search Console, add the service account’s email as a Restricted user. Google’s permissions table describes a Restricted user as having “simple view rights on most data,” and Performance is on the list. The mcp-gsc README and other server guides say Full; reading search analytics does not need it.
- Put the key’s path and the property in a gitignored
.env:
# .env (gitignored; never paste these values into a chat)
GSC_SERVICE_ACCOUNT_KEY=/path/outside/the/repo/service-account.json
GSC_SITE_URL=sc-domain:example.com
- Request the read-only scope when the script signs its token. The line in my
scripts/gsc.mjs:
scope: "https://www.googleapis.com/auth/webmasters.readonly",
- Call
searchAnalytics/query. Google’s API reference capsrowLimitat 25,000 per request (default 1,000) and pages withstartRow.
These are the commands Claude runs for me. Both scripts are plain Node with no dependencies, about 140 and 300 lines:
npm run gsc -- queries 90 # every query, sorted by impressions
npm run gsc -- striking 90 # position 5 to 20, 100+ impressions
npm run gsc -- decoupling 90 # branded vs non-branded clicks and impressions
npm run gsc-gaps -- 28 # queries each post surfaces for but never covers, plus live PAA
The last one runs on a schedule. Every Monday a job branches off main, runs npm run gsc-gaps, and hands the report to a headless Claude run limited to reading and editing files (no shell, no web). It drafts FAQ additions for my review, commits them to a local branch, and stops; I approve each edit with a /gsc-review command before anything ships. The full build, flags and failures included, is in Claude Code for SEO.
The gsc api has no price tag. What it costs is the afternoon to write the first script, and the payoff is that every analysis below is one command.
The hosted route: OpenSEO’s Search Console MCP
A hosted SEO MCP is the shortest path to a google search console claude connection. You add one server, sign in with Google, and the vendor handles the API. OpenSEO is connected to this site’s Claude setup for keyword tracking, and its Search Console tool can answer a quick question without a script.
For Claude Code, OpenSEO’s setup page gives:
claude mcp add --transport http --scope user openseo https://app.openseo.so/mcp
OpenSEO requests webmasters.readonly and says “The agent can read and inspect. It cannot change anything in your account.” It exposes two Search Console tools, search performance (up to 16 months of history) and URL inspection, and neither spends credits on the $10 plan.
A real pull, November 28, 2026: I asked for queries at positions 5 to 20 with at least 50 impressions over the last 28 days. Top of the list was ahrefs vs semrush, position 5.2, 5,820 impressions, 28 clicks, a 0.48% CTR, for my Semrush vs Ahrefs comparison. That one row is a better keyword brief than any volume tool gives me, because Google already ranks the page for it.
One limit to know: OpenSEO’s tool description says position filters run over the top 1,000 rows by clicks. For a full sweep of a large property, use the API route.
Google Search Console keyword research: eight analyses I run through Claude
Google Search Console keyword research starts from queries Google already shows your pages for. That is first-party demand. A third-party volume estimate guesses at a market; a Search Console row proves Google already pairs the query with your page. These are the eight analyses I run, on client accounts in Search Console and on this site through Claude. They are the query-level half of AI for SEO as I practice it; the page-level half is a content audit. Each has the ask and what I do with the answer.
1. Striking distance keywords: positions 5 to 20
Striking distance keywords are queries where a page ranks between positions 5 and 20 with real impressions, close enough that one good edit can move them. In the 28 days to November 27, 2026, 36 queries on this site cleared my default bar of 100 impressions; 194 cleared a 20-impression bar.
Ask: npm run gsc -- striking 90, or in plain language: “Pull query rows for the last 90 days. List queries at average position 5 to 20 with at least 100 impressions, with the ranking page for each.”
Then: open the ranking page, find the section that should answer the query, and make it answer it in the first sentence, in the searcher’s words. If no section fits, add an H3. Lower the impression bar on a young site; mine returned four queries at 100 in July 2026, its first full month.
2. Coverage gaps: queries a page ranks for and never answers
A coverage gap is a query a page earns impressions for with no heading or FAQ that matches it. My gap engine flags a query when no single heading, FAQ, or title on the page holds 60% of its content words. The November 23, 2026 report found 504 uncovered queries across 44 posts.
Ask: npm run gsc-gaps -- 28. Through an MCP: “For each blog URL, list the queries it got impressions for in the last 28 days, then check each one against the page’s H2s, H3s, and FAQ. Flag the ones with no matching heading.”
Then: add the query, verbatim, as an FAQ question or H3 on the page that already ranks. That week’s strongest real gap was what saas content agency does human-first seo writing? (85 impressions, position 7.3) on my SaaS agency list; it is now an FAQ entry there. The weekly job drafted 6 Q&As across 5 posts from that report and skipped the rest as noise.
3. Search Console queries checked against People Also Ask
A query that shows up in Search Console and in Google’s live People Also Ask box is the highest-confidence content gap there is: your data and Google’s fan-out agree. For every page with gaps, my engine pulls the live PAA for the page’s top query through DataForSEO, at about $0.04 a run.
Ask: “For the page’s top query, pull the live People Also Ask questions and related searches, and mark which GSC gap queries they corroborate.”
Then: use the GSC phrasing as the heading and the PAA as raw material for the answer. When a whole cluster agrees and outgrows a section, it becomes a new post. The same report listed penalty recovery (34 impressions), penalty recovery services (15), and google penalty recovery services (5) in its bucket for queries with no matching blog post. That cluster now has one: a guide to choosing a Google penalty recovery service.
4. Branded vs non-branded split
The branded split separates queries that contain your name from everything else, and it comes before any other diagnosis. On the cybersecurity and legal SaaS accounts I run, branded queries were 7 to 10 of the 10 biggest losing queries in most reporting periods. A “traffic drop” that is mostly brand is a demand story.
Ask: npm run gsc -- decoupling 90 uses a brand regex. The API now also has a brandedClassification dimension, built on what Google calls “an internal, AI-assisted system” in its branded queries filter announcement. Ask Claude for both and compare.
Then: diagnose rankings on non-branded rows only. Google’s classifier covers typos and product names a regex misses, says “some queries may occasionally be misidentified,” and only runs on properties with enough volume, so keep the regex as a cross-check.
5. Decoupling: impressions up, clicks down
Decoupling is impressions rising while clicks fall at a steady or better position. On an HR-tech SaaS account I ran, one month brought about 650K more impressions and an average rank that improved from 17.1 to 12.6, while clicks fell by 7,100.
Ask: “Compare the last 28 days with the 28 days before by query. List queries where position held or improved, impressions rose, and clicks fell, grouped by page.”
Then: stop treating those pages as broken. Position is fine; the click is going to an AI Overview or the demand is shifting. AI Overviews eat top-of-funnel clicks first, so move effort to the bottom-funnel pages where clicks still convert. The long version is in The Great Decoupling.
6. CTR by position band
CTR by position band shows where ranking actually pays. On a marketing-tech SaaS account in July 2026, across 21,068 non-brand queries, positions 1 to 3 turned impressions into clicks at 1.01%; positions 4 to 10 converted at 0.06%.
Ask: “Group non-brand queries by average position band (1 to 3, 4 to 10, 11 to 20, 21 and up) and give total impressions, clicks, and CTR for each band.”
Then: set the target at the top three for commercial terms, starting with your bottom-of-funnel keywords. That analysis is why I retired “page one” as a success measure on that account. It reports fewer wins, and each one is worth more. I ran the same cut on this site’s own queries in organic CTR by position, split by query length and device.
7. Cannibalization: two pages on one query
Keyword cannibalization shows up in Search Console as one query with impressions on two or more URLs. On a marketing-tech SaaS account, merging a competing post into the stronger tools page took the “[category] software” term from 5 clicks in July 2026 to 563 in August.
Ask: “Pull query and page rows for the last 90 days. List queries where two or more of my URLs got impressions, with each URL’s position and clicks.”
Then: pick the page that matches the intent, merge the other into it, and redirect. Leave the pair alone when the two pages serve different intents and both rank.
8. Prompt-shaped queries
Prompt-shaped queries are long, conversational searches that read like questions typed to an assistant, and on this site they are growing fast. Queries of 10 or more words were 18.9% of distinct queries in July 2026 and 31.0% (1,458 of 4,705) in the 28 days to November 27. They carried 7.9% of impressions. Google says AI Mode and AI Overviews traffic is counted inside the Performance report’s “Web” search type, per its AI features documentation, so you cannot filter it out.
Ask: “List queries of eight words or more from the last 28 days, grouped by ranking page, with impressions and position.”
Then: read them as tracked-prompt candidates and FAQ wording. One mistake from my own tooling: until November 2026, my gap engine dropped every query over nine words as scraper noise. I wrote that rule in June, when long queries really were mostly junk, and never revisited it while prompt-shaped searches grew to almost a third of distinct queries on this site. The script was quietly throwing away the searches this section is about. It now keeps a long query when it reads like a person asking and drops it only when it reads like a keyword string.
What Search Console data hides from Claude
Search Console’s query table leaves out a large share of real searches, so any analysis Claude runs on it is a partial view. Google withholds anonymized queries, which its performance data deep dive defines as those “that aren’t issued by more than a few dozen users over a two-to-three month period.”
The share is big. Ahrefs analyzed 22 billion clicks across 887,534 GSC properties and found that in April 2025 “anonymized queries made up 46.77% of website traffic.” My own site lands in the same place. In the 28 days to November 27, 2026, the property logged 252 clicks and the query table accounted for 129; the other 123, or 48.8%, came from queries Google never showed. It is a small base, and it matches.
Three more limits shape what Claude sees:
- Row caps. One request returns at most 25,000 rows, and Google says API exports top out at “50,000 rows per day per site per search type, which may not be reached in all cases.”
- Fresh data moves. The API’s default
dataStatereturns finalized data;alladds the last few days, which still change. Recent days settle, so compare full weeks. - AI traffic is blended. Google Search Console AI reporting has no separate view: AI Overviews and AI Mode impressions sit inside Web. My guide to AI Overview impressions in Search Console covers how to read that blend.
So what: tell Claude to report page-level totals next to query-level findings, and never let it conclude “no demand” from a thin query list. Confirm a tool-reported loss in Search Console itself before acting on it.
Google Search Console MCP security: read-only scopes and keys out of chat
A Google Search Console MCP needs read access and nothing more. The Search Console API offers two scopes, per Google’s authorization docs: webmasters, “Read/write access,” and webmasters.readonly, “Read-only access.” Keyword research uses only the second.
- Pick the read-only scope and the Restricted role. mcp-gsc now “requests only the scope it needs (read-only by default, write only when
GSC_ALLOW_DESTRUCTIVE=true),” and keeps add-site, delete-site, and delete-sitemap tools off unless you flip that flag. Leave it off. - Never paste a key, token, or client secret into a chat. Point the server at a file path in an environment variable, keep that file outside the repo, and gitignore
.env. - Keep credentialed servers out of shared config. In Claude Code, use the
localoruserscope. A project-scoped.mcp.jsonis committed to git. - Read the server before you run it. Anthropic’s Claude Code docs say “Verify you trust each server before connecting it,” and its connector docs warn that custom connectors reach “arbitrary services that have not been verified by Anthropic.” Pin a version you have read.
- Give scheduled runs the fewest tools. My weekly job’s Claude run can read, search, and edit files and nothing else: no shell, no web fetches. A human approves every edit before it ships.
Frequently asked questions
What is GSC used for?
Google Search Console (GSC) is Google’s free tool for seeing how a site performs in Google Search: the queries it appears for, clicks, impressions, CTR, average position, indexing status, sitemaps, and manual actions. For keyword research, the Performance report is the part that matters, because it lists queries Google already associates with your pages.
How do I give access to Google Search Console?
An Owner gives access in Search Console under Settings, Users and permissions, Add user, with an email address and a permission level. Google says Owners “can add and remove other users.” For an MCP server or a script, add the service account’s email as a Restricted user, which can view the Performance report.
Do I need a Google Search Console API key?
You do not need a Google Search Console API key for search data, because the API does not accept one. Google’s docs say “Your application must use OAuth 2.0 to authorize requests. No other authorization protocols are supported.” You authorize with an OAuth client (a browser sign-in) or a service account’s JSON key.
Is the Search Console API free?
The Search Console API is free to use, and Google publishes quotas for it with no price. Its usage limits page sets Search Analytics at 1,200 queries per minute per site and per user, and notes: “Query load increases with the date range queried.” A weekly keyword job comes nowhere near those limits.
What’s the difference between GA4 and Google Search Console?
Google Analytics (GA4) measures what visitors do on your site after they arrive; Google Search Console measures what happens in Google Search before the click. Keyword research lives in Search Console. GA4 tells you whether the traffic those keywords bring converts. Google ships an official read-only MCP server for GA4 and none for Search Console.
Does Google Ads have an MCP server?
Google Ads has an official MCP server. Google open-sourced the Google Ads API MCP Server on October 7, 2025, and its announcement says “This initial release is read-only, meaning it can be used for reporting and diagnostics.” It is for paid search data; organic queries still come from Search Console.
If you want a second set of eyes on how your team uses Search Console and Claude for keyword research, that is part of my AI SEO consulting for B2B SaaS companies. More guides like this one live in AI marketing, including SEO automation and the full keyword research process for B2B SaaS.