Search Console MCP
Connects to Google Search Console to retrieve search performance, URL inspection, and sitemap data, and to analyze keyword opportunities, CTR issues, cannibalization, traffic changes, content gaps, and indexing/sitemap health. Sitemap submission and deletion are available only when write mode is enabled.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Search Console MCP Which keywords are we close to ranking on page one for?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Search Console MCP
An MCP server that connects Claude, Cursor and other AI assistants to Google Search Console.
It gives the assistant the raw data (search performance, URL inspection, sitemaps) and does the analysis on top: which keywords are one push from page one, which pages rank but are not clicked, which pages compete with each other, what lost traffic and why, and how much of your sitemap is indexed.
It runs on your machine, talks only to Google's API, and is read-only unless you switch writing on.
What you can ask
"How did organic search do in the last 28 days compared with the month before?"
"Which keywords are we close to ranking on page one for?"
"Which pages rank in the top 10 but hardly get clicked? Suggest better titles."
"Traffic dropped last week. What happened?"
"Are any of our pages competing for the same keyword?"
"Is https://example.com/pricing indexed? If not, why not?"
"How much of our sitemap is indexed, and what is wrong with the rest?"
"Pick the five blog posts most worth refreshing and write a brief for each."
What to use it for goes through each of these: what runs, what comes back and what to do with it.
Related MCP server: GSC-MCP
Why this one
It analyses, not only fetches. The opportunity tools return a ranked list of things to act on, with the numbers behind each.
Estimates come from your own site. Expected click-through is measured on your data, not taken from a generic table.
It says what the numbers do not show. Row caps, samples, hidden queries, incomplete days and empty comparison periods are stated in every result.
Forgiving inputs. Say
example.comor paste a page URL. Leave out the dates and you get the last 28 complete days.Read-only by default, with errors that tell you how to fix them and a
doctorcommand that checks the setup.
Quick start
You need Node.js 22 or newer and a Google account with access to the Search Console properties you want to use.
1. Get Google credentials
Both ways are free. The authentication guide has every click.
Service account | Your own Google account (OAuth) | |
Best for | Agencies, servers, automation | One person with many properties |
Sees | Only properties you add it to | Everything your account can see |
Setup | Create a key, add its email as a user on each property | Create a "Desktop app" client, sign in once in the browser |
Service account: in Google Cloud enable the Google Search Console API, create a service account, download a JSON key, then in Search Console add the service account's email under Settings > Users and permissions for each property.
Your own account: in Google Cloud enable the Google Search Console API, create an OAuth client of type Desktop app, download its JSON, then run:
GSC_OAUTH_CLIENT_FILE=/path/to/client_secret.json npx -y @pixfrix/search-console-mcp auth login2. Add the server to your assistant
claude mcp add search-console \
--env GSC_SERVICE_ACCOUNT_KEY=/path/to/service-account.json \
-- npx -y @pixfrix/search-console-mcpIf you signed in with auth login, leave out the --env line.
Open Settings > Developer > Edit Config and add:
{
"mcpServers": {
"search-console": {
"command": "npx",
"args": ["-y", "@pixfrix/search-console-mcp"],
"env": {
"GSC_SERVICE_ACCOUNT_KEY": "/path/to/service-account.json"
}
}
}
}Restart Claude Desktop afterwards.
Add to ~/.cursor/mcp.json (or .cursor/mcp.json in a project):
{
"mcpServers": {
"search-console": {
"command": "npx",
"args": ["-y", "@pixfrix/search-console-mcp"],
"env": {
"GSC_SERVICE_ACCOUNT_KEY": "/path/to/service-account.json"
}
}
}
}Add to .vscode/mcp.json:
{
"servers": {
"search-console": {
"type": "stdio",
"command": "npx",
"args": ["-y", "@pixfrix/search-console-mcp"],
"env": {
"GSC_SERVICE_ACCOUNT_KEY": "/path/to/service-account.json"
}
}
}
}The server speaks MCP over stdio. Run npx -y @pixfrix/search-console-mcp as the command and pass the environment variables from Configuration.
On Windows, use forward slashes or doubled backslashes in JSON paths (C:/keys/gsc.json). If your client cannot start npx directly, use "command": "cmd" with "args": ["/c", "npx", "-y", "@pixfrix/search-console-mcp"].
3. Check that it works
GSC_SERVICE_ACCOUNT_KEY=/path/to/service-account.json npx -y @pixfrix/search-console-mcp doctor[ ok ] Credentials: service account (seo-bot@my-project.iam.gserviceaccount.com)
[ ok ] Google sign-in
[ ok ] Search Console API
[ ok ] Properties (2):
sc-domain:example.com [siteFullUser]
https://shop.example.com/ [siteRestrictedUser]If a step fails, doctor says what to change. Then ask your assistant: "List my Search Console properties."
Documentation
Guide | What is in it |
Each job with the question to ask, what comes back and what to do next | |
Where the numbers come from, the rules behind each analysis, limits and safety | |
Service account and browser sign-in, step by step | |
Every tool and parameter |
Tools
Performance
Tool | What it answers |
| Which properties can this account read? |
| How is the site doing? Totals against a comparison period, the trend, and the top queries, pages, countries, devices and search appearances, in one call |
| Any custom question: every dimension (including hourly data), regex filters, every search type, paging to any depth, sorting by any metric |
| What changed? Gainers, decliners, new and lost rows against the previous period, the previous year or a custom range |
| Did traffic drop or spike, and was it one day or a lasting shift? |
| How much of the traffic is people searching for the brand, and how is the rest doing? |
Opportunities
Tool | What it answers |
| Which keywords rank just below the top results and would pay off fastest? |
| Which results rank well but get clicked far less than their position should earn? |
| Which queries are split between several of my pages? |
| Which pages or queries lost the most clicks, and was it rankings, impressions or click-through? |
| Where does the site show up without a page that serves the search, and which questions are people asking? |
| Everything about one URL: its queries, which to target, devices, countries, trend and index status |
Indexing and sitemaps
Tool | What it answers |
| Is this URL indexed, and if not, why? |
| The same for up to 50 URLs, as one table |
| How much of my sitemap is indexed, and what is wrong with the rest? |
| Which sitemaps are submitted, when were they last read, and do they have errors? |
| Submit or resubmit a sitemap. Only with |
| Remove a sitemap from Search Console. Only with |
Prompts
Clients that support MCP prompts (Claude Desktop and Claude Code show them as slash commands) get six ready-made workflows:
Prompt | What it produces |
| What moved in the last seven days and why |
| A prioritised action plan across every opportunity tool |
| When a drop started, where it is concentrated and the likely cause |
| The existing pages most worth updating, with what to change |
| Sitemap and indexing problems, by importance |
| A data-backed brief for one URL |
Configuration
Everything is set through environment variables. Only credentials are required.
Variable | Purpose |
| Path to a service account JSON key |
| The key itself as a JSON string, for hosts without a file system |
| Google's standard variable, honoured when the two above are not set |
| Path to an OAuth "Desktop app" client secret file, used by |
| Default property, so you do not have to name it. Example: |
| Comma-separated brand names, to keep brand searches out of opportunity lists and to split branded from non-branded traffic |
|
|
| Where the saved sign-in lives. Default: |
Credentials are looked up in this order: GSC_SERVICE_ACCOUNT_JSON, GSC_SERVICE_ACCOUNT_KEY, GOOGLE_APPLICATION_CREDENTIALS, a saved auth login, then Google's Application Default Credentials.
search-console-mcp Start the MCP server (what your client runs)
search-console-mcp doctor Check credentials and list the properties you can read
search-console-mcp auth login Sign in with your own Google account (--write for sitemap changes)
search-console-mcp auth logout Forget the saved sign-inTroubleshooting
Run doctor first: it tests credentials, sign-in, API access and property permissions in order and explains the first failure.
Symptom | Cause and fix |
"The signed-in account cannot read this property" | The account is not a user of the property. In Search Console open Settings > Users and permissions and add it. For a service account, add its |
"Enable the Google Search Console API" | The API is off in your Google Cloud project. Enable it under APIs & Services > Library |
Sign-in expires every week | Your OAuth consent screen is in Testing. Publish it under Google Auth Platform > Audience |
"No Search Console property matches" | Call |
No data for a page | Search Console matches page URLs exactly, including |
Rows by query do not add up to the total | Expected. Google hides rare queries for privacy |
Numbers differ from the Search Console website | Compare the same dates. The website's default range runs up to today and includes incomplete days; the server's default stops at the last complete day |
The server does not appear in the client | Check the client's MCP log. On Windows try the |
Privacy and security
The server runs locally as a child process of your MCP client. It contacts
googleapis.com, and your own site whenaudit_sitemap_indexingreads a sitemap. There is no telemetry.Credentials stay on your machine. A browser sign-in is stored as a refresh token in
GSC_CONFIG_DIR. Delete it withauth logout.The default scope is read-only. Search data returned by the tools becomes part of your conversation with the AI assistant, under that assistant's own privacy terms.
See SECURITY.md to report a vulnerability.
Development
git clone https://github.com/PixFrixSystems/search-console-mcp.git
cd search-console-mcp
npm install
npm run build
npm testThe tests run against a stand-in for Google's API, so they need no credentials. With credentials, npm run live-check -- --site example.com runs every read-only tool against a real property and checks that the numbers agree with each other.
Contributions are welcome. See CONTRIBUTING.md.
License
Built and maintained by PixFrix. This project is not affiliated with or endorsed by Google. Google Search Console is a trademark of Google LLC.
Available Tools
16 toolsanalyze_pageAnalyse one pageARead-onlyIdempotent
Everything Search Console knows about a single page: its totals against a comparison period, the queries it ranks for with their change, the queries worth optimising for (ranked 4 to 20 with the most impressions), devices, countries, the trend, and its index status. Use it before rewriting or refreshing a page.
Inputs: page_url (required), days, end_date, site_url, +7 more.
audit_sitemap_indexingAudit how much of a sitemap is indexedARead-onlyIdempotent
Reads the URLs listed in the property's sitemaps, inspects a sample of them and reports how many are indexed, the reasons the others are not, and the affected URLs. This is the closest the API gets to the Page indexing report. Each inspected URL uses one of the 2,000 daily inspections per property, so the sample is small by default.
Inputs: max_urls, sampling, site_url, sitemap_url, +1 more.
compare_periodsCompare two periodsARead-onlyIdempotent
Compares two periods row by row for one dimension (queries, pages, countries, devices or search appearances) and returns the biggest gainers and decliners plus what is new and what disappeared. Use it to explain why traffic moved.
Inputs: days, limit, filters, sort_by, +9 more.
detect_traffic_anomaliesDetect traffic drops and spikesARead-onlyIdempotent
Scans the daily trend for days that differ sharply from the same weekday in the preceding weeks, so the weekly rhythm does not trigger false alarms. Returns the unusual days with the expected value and how the latest week compares with a typical one. Use it for monitoring and as the first step when someone asks "did our traffic drop?".
Inputs: days, metric, filters, end_date, +3 more.
find_content_gapsFind content gaps and question keywordsARead-onlyIdempotent
Finds topics the site is visible for but does not serve well: queries with real impressions where the best page ranks beyond the second results page, and question-style queries (who, what, how ...) that suit FAQ sections, how-to content or new articles. Use it to plan new content.
Inputs: days, limit, filters, end_date, +8 more.
find_ctr_opportunitiesFind pages with weak click-throughARead-onlyIdempotent
Finds results that rank well but are clicked much less than their position should earn, judged against the site's own CTR-by-position curve. These are candidates for a better title, meta description or structured data. Returns the underperforming pages (rolled up across their queries) and the individual query and page pairs, each with the clicks being missed.
Inputs: days, limit, filters, end_date, +8 more.
find_declining_pagesFind declining pagesARead-onlyIdempotent
Finds the pages (or queries) that lost the most clicks against a comparison period and gives a first reading of why: a ranking loss, fewer impressions, or a lower click-through rate. For the worst cases it also lists what lost the most underneath (the queries of a page, or the pages of a query). Use it to plan content refreshes and to investigate traffic drops.
Inputs: days, limit, filters, end_date, +11 more.
find_keyword_cannibalizationFind keyword cannibalizationARead-onlyIdempotent
Finds queries for which two or more pages of the site each take a meaningful share of the impressions, which often means the pages compete with each other. Returns each query with the competing pages, their share of impressions and their positions, ordered by how many impressions are split away from the strongest page.
Inputs: days, limit, filters, end_date, +7 more.
find_quick_winsFind quick-win keywordsARead-onlyIdempotent
Finds "striking distance" keywords: queries where a page already ranks just below the top results (positions 4 to 20 by default) and is being seen. These are the cheapest rankings to improve. Returns each query with its page and an estimate of the extra clicks from reaching the target position, plus the pages with the most combined potential.
Inputs: days, limit, filters, end_date, +9 more.
get_brand_splitBranded versus non-branded searchBRead-onlyIdempotent
Splits search performance into branded queries (containing the brand name), non-branded queries and anonymised queries, with the change against a comparison period. Non-branded traffic is the part SEO work actually wins, so this separates real organic growth from brand demand.
Inputs: days, filters, end_date, site_url, +6 more.
get_performance_overviewPerformance overviewARead-onlyIdempotent
One-call snapshot of a property: total clicks, impressions, CTR and position against a comparison period, the trend over time, and the top queries, pages, countries, devices and search appearances. The best starting point for a report or before digging into a specific question.
Inputs: top, days, filters, end_date, +6 more.
inspect_urlInspect a URLARead-onlyIdempotent
Asks Google how it sees one URL: whether it is indexed and why not, the canonical Google chose against the declared one, when it was last crawled and as which device, robots.txt and noindex state, the sitemaps and pages that point to it, and structured data problems. It reports the indexed version, not a live test. Counts against a quota of 2,000 inspections per day per property.
Inputs: url (required), site_url, language_code.
inspect_urlsInspect several URLsARead-onlyIdempotent
Runs URL inspection for up to 50 URLs of one property and returns a compact table of which are indexed, their coverage state, last crawl and the problems found. Each URL uses one of the 2,000 daily inspections per property.
Inputs: urls (required), site_url, language_code.
list_sitemapsList sitemapsBRead-onlyIdempotent
Lists the sitemaps submitted for a property with their processing state, when Google last read them, error and warning counts, and how many URLs each one submits.
Inputs: site_url, sitemap_index.
list_sitesList Search Console propertiesARead-onlyIdempotent
Lists every Search Console property the connected Google account can read, with its type and permission level. Call this first when you do not know the exact property name.
Inputs: no named parameters.
search_analyticsQuery search performance dataARead-onlyIdempotent
Runs a raw Search Console performance query: clicks, impressions, CTR and average position, broken down by any mix of query, page, country, device, date, hour and search appearance, with filters. Use it for anything the specialised tools do not cover. Rows come back sorted by clicks unless order_by says otherwise.
Inputs: days, order, filters, end_date, +9 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 16 tools
Most tools target clearly distinct analyses or resources (content gaps vs quick wins vs CTR opportunities vs cannibalization), and descriptions emphasize the different signals. The closest overlaps are find_declining_pages vs compare_periods (both surface decliners) and find_quick_wins vs search_analytics, but the specialized 'why' breakdown and raw-vs-diagnostic framing keep them separable.
All 16 tools use consistent snake_case verb_noun form. The verbs vary (find, get, detect, analyze, inspect, list, search, compare, audit) but each reflects its action in a predictable way, and plural/singular distinctions (inspect_url vs inspect_urls) are used meaningfully.
16 tools is slightly above the comfortable 3-15 range but each earns its place in a genuinely broad Search Console surface (performance, indexing, sitemaps, diagnostics). A couple of the find_* analyses could arguably be folded into search_analytics, but the count is reasonable for the scope.
The read/analysis surface is thorough: performance snapshots, period comparison, indexing inspection (single and batch), sitemap listing and audit, brand split, and anomaly detection are all covered. Minor gaps exist on the write side—no sitemap submission/deletion and no property add/remove—but these are small for an analysis-focused toolset.
Related MCP Connectors
SEO audits, Search Console, GA4, keyword and backlink data for Claude, ChatGPT and Cursor.
SEO data your AI can cite: Search Console, GA4, keywords, backlinks, SERPs and AI visibility.
AI SEO agent on your Google Search Console data: audits, quick wins, content, WordPress publishing.
Turn Search Console data into SEO actions, content, publishing, indexing, and AI insights.
Related MCP Servers
- AlicenseAqualityBmaintenanceIntegrates SEO analysis and Google Search Console data directly into Claude Code and Cursor. Performs real-time site audits, detects technical SEO issues, validates meta tags, generates structured data, and provides AI-powered recommendations for both production sites and local development servers.193MIT
- AlicenseNot gradedqualityDmaintenanceEnables natural language analysis of Google Search Console data through Claude, with pre-built tools for quick wins, cannibalization detection, content decay, and more.Apache 2.0
- AlicenseBqualityCmaintenanceConnects Claude to Google Search Console, GA4, Bing Webmaster Tools, IndexNow, PageSpeed Insights, AdSense and Google Ads Keyword Planner, plus live technical SEO audits of pages and sitemaps. Users ask plain-language questions about traffic drops, index status, canonicals, AI referral traffic and keyword volumes, and answers are pulled live from the APIs in real time.2818 npmMIT
- FlicenseNot gradedqualityCmaintenanceConnects Google Search Console to AI assistants so users can query and analyse SEO performance data in natural language. Provides search analytics, SEO insights, URL inspection, indexing, sitemaps, hourly reporting, and CSV export.-