search-console-mcp
Query and analyze Google Search Console data locally with 44 read-only SEO tools.
Check server health, list properties/permissions, and get property overviews.
Query performance data across web, image, video, news, Discover, and Google News with filters, dimensions, dates, sorting, and CSV export.
Compare periods, find winners/losers, new/lost queries/pages, and verify reported metrics.
Diagnose traffic drops, content decay, alerts, opportunities, cannibalization, branded/question segments, section performance, and multi-site health.
Generate weekly Markdown reports.
Read submitted sitemaps and their health/errors.
Build page-indexing reports from URL Inspection: queue URLs, run inspections/background jobs, report coverage reasons, track changes, and get fix guidance.
Inspect or diagnose individual URLs using Google data plus live fetches for redirects, status, noindex, canonicals, robots rules, and thin content.
Check robots.txt like Googlebot and keep version history/diffs/tests/watch lists.
Bulk-trace redirects and validate migration maps; check HTTPS/TLS/HSTS/mixed content, DNS records, and Google verification tokens.
Audit images, run PageSpeed Insights, and pull Core Web Vitals field data from CrUX.
Import Apache/Nginx/Varnish access logs and analyze crawl stats, including Googlebot verification and fake-bot detection.
Save property notes locally and export CSV/report files.
Cannot change anything in Search Console; only local files/database are written.
Provides read-only access to Google Search Console data for SEO analysis, including properties, performance queries and period comparisons, sitemaps, URL inspection, page indexing reports, robots.txt checks, redirects, HTTPS, Core Web Vitals, and crawl stats.
Runs PageSpeed Insights audits to retrieve Lighthouse scores, lab metrics, optimization opportunities, failing SEO audits, and real-user field data for pages.
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 pages lost the most clicks this month, and why?"
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.
Google Search Console MCP Server
A Google Search Console MCP server for Claude, built for real SEO work.
search-console-mcp connects Claude Desktop to Google Search Console and gives it 44 tools: performance analysis, a rebuilt Page indexing report, robots.txt monitoring, redirect and HTTPS checks, Core Web Vitals, and Crawl stats from your own server logs. It runs entirely on your machine, talks only to Google's official APIs and the sites you check (plus a public DNS resolver for check_dns), and cannot change anything in Search Console.
Built and maintained by MakashibK.
Example (illustrative numbers):
You: Which pages lost traffic on example.com this month, and why?
Claude: 14 pages lost 1,862 clicks (1-28 Sep vs 4-31 Aug, complete days only).
/women/dresses/ -412 clicks ranking_loss avg position 3.1 -> 7.4
/sale/ -390 clicks ctr_drop position 2.0 -> 2.1, CTR 18.2% -> 9.6%
/blog/linen-care/ -244 clicks demand_drop impressions -48%, position stable
...Quick start
Create a Google OAuth client and sign in with the read-only scope (steps 1 and 2).
Install the server:
pipx install git+https://github.com/makashibk/search-console-mcp.gitAdd it to Claude Desktop under the name
search-console-mcp(step 4).Quit and reopen Claude Desktop. Settings → Developer shows
search-console-mcpas Running.In a new chat, ask:
Use search-console-mcp: call server_status, then list_properties.
Related MCP server: gsc-ga4-mcp
Contents
Why another Search Console MCP server
Most Search Console MCP servers wrap the same four API endpoints and stop there. This one was built for agency work on Magento and other e-commerce sites, where the questions are rarely "what were my top queries" and usually "why did this category lose traffic", "which of these 40,000 URLs aren't indexed and why", or "is Googlebot wasting crawl budget on filter URLs".
What's different:
Strictly read-only. It asks Google for the
webmasters.readonlyscope only, has no write tools, and blocks any non-read request in code. See Read-only by design.Accurate comparisons. Period comparisons stop at the last complete day reported by Google, so fresh, still-processing data doesn't make the recent period look worse than it is.
Traceable numbers. Every performance result carries a
_sourceblock (property, dates, filters, data state), andverify_metricre-queries Google to confirm a number before you put it in a client report.Page indexing and Crawl stats, rebuilt. Google has no API for either report. search-console-mcp rebuilds the first from URL Inspection results stored locally, and the second from your web server's access logs.
Local only. No hosted service, no third-party server between you and Google, no telemetry. Credentials and data stay on your machine. The one outside call is
check_dns, which looks DNS records up over DNS-over-HTTPS atdns.google(falling back tocloudflare-dns.com), so that resolver sees the domain you ask about.Current MCP SDK. Built on the MCP Python SDK 2.3.
What it can do
44 tools, grouped from basic to advanced. You don't call them by name; you ask Claude in plain language and it picks the right tool. Every tool with its parameters, types and defaults is in the tool reference.
Properties and performance
Tool | What it does |
| Version, read-only mode, credentials file, local database, queues, background jobs, today's inspection quota |
| Every property the signed-in account can access, with permission level |
| Web and Discover performance vs the previous period, sitemap health, local indexing summary, robots.txt status |
| Totals vs the previous period, daily trend, top queries and pages. Works for web, image, video, news, Discover and Google News |
| Any combination of |
| Winners and losers between two periods, plus new and lost queries or pages |
| Performance per folder ( |
| Branded vs non-branded, question queries (English, Dutch, Swedish, Portuguese, French, German), query length, results page |
| Every property in one table, flagged as dropping, growing or stable |
| Re-queries Google to confirm a specific number |
| Submitted sitemaps with errors, warnings, last download and pending status |
| Context saved with a property: brand terms, migration dates, decisions |
Analysis
Tool | What it does |
| Pages or queries that lost clicks, each diagnosed as |
| Pages whose clicks fell in every one of N consecutive periods (default: three 30-day periods) |
| Severity-rated alerts: site-wide drop, queries falling off page one, CTR collapses at the same position, page click losses, pages that vanished |
| Striking-distance keywords, low CTR at top positions, and content gaps (impressions but ranking below 20). Web or image search |
| Queries where several of your URLs split impressions. URL variants (www/non-www, http/https, trailing slash, parameters, case) are reported separately from genuinely competing pages |
| All of the above in one Markdown report saved to disk |
Page indexing
Tool | What it does |
| Downloads every submitted sitemap (including indexes and |
| Queues every page that had impressions |
| Queues your own list of URLs |
| Inspects the queue, a specific list, or your top pages by clicks. Can also report whether Google recrawled each URL after a given time |
| Background inspection within the daily quota while Claude Desktop is open; resumes after restarts |
| Indexed vs not indexed, every coverage reason with its source (Website / Google systems), sample URLs, what to check and how to fix, canonical conflicts, fetch and robots states, crawl age, rich-result issues. Filter by sitemap or URL pattern |
| URL-level drill-down with filters (reason, rich result type, crawl age), sorting, paging, CSV export, and optional clicks per URL |
| URLs whose coverage reason changed between inspections: dropped out of the index, newly indexed |
| What each Page indexing reason means, what to check and how to fix it |
| Google's view of one URL |
| Google's view next to a live fetch: redirect chain, status, noindex (meta and header), canonicals, the robots.txt rule that applies, thin content |
Technical checks
Tool | What it does |
| Fetches robots.txt like Googlebot: status and Google's interpretation of it, size vs the 500 KiB limit, groups, Googlebot rules, sitemaps, syntax warnings, diff vs the last check |
| Checks robots.txt on every host that had search traffic (every subdomain of a Domain property) |
| Is a URL allowed for a given crawler? Returns the deciding rule and line number |
| Every stored check, each distinct version, and diffs between versions |
| Re-checks robots.txt in the background to build a version history |
| Bulk redirect tracing (up to 500 URLs): chains, loops, temporary redirects, https→http. Validates migration maps ( |
| Certificate validity, expiry and names, http→https redirect, HSTS, mixed content |
| A, AAAA, CNAME, MX, NS, TXT and CAA records, plus Google site-verification tokens in DNS and on the home page |
| Alt text, file names, width/height, lazy loading near the top, formats, file size, broken images, og:image and structured-data images |
| PageSpeed Insights: Lighthouse scores, lab metrics, top opportunities by savings, failing SEO audits, real-user field data |
| LCP, INP, CLS, FCP and TTFB at p75 from the Chrome UX Report (the data behind Search Console's Core Web Vitals report), latest or weekly history |
Crawl stats
Tool | What it does |
| Imports Apache, Nginx or Varnish access logs (plain or |
| Requests, download size and response time per day; breakdowns by response, file type, Googlebot type, purpose and host; robots.txt fetches; example and most-crawled URLs; fake Googlebots counted separately |
What Google's API can't do
The Search Console API has four parts: Search Analytics, Sitemaps, Sites and URL Inspection. Everything else in the Search Console interface has no API, so no MCP server can offer it directly.
Search Console report | Status in search-console-mcp |
Performance, Discover, Google News | Full API access |
URL Inspection | Full API access, 2,000 URLs per property per day |
Sitemaps | Read only (by choice) |
Page indexing | Rebuilt from stored URL Inspection results |
Crawl stats, Host status | Rebuilt from your server logs (Google-side DNS and connection failures can't be seen in logs) |
Core Web Vitals | Chrome UX Report API, same field data |
HTTPS | Checked directly with |
Shopping and Enhancements (Product snippets, Merchant listings, Breadcrumbs, Review snippets...) | Per URL, from URL Inspection rich results; no site-wide totals |
robots.txt report | Own fetch and version history; Google's own fetch history isn't available |
Video indexing, Links, Removals, Manual actions, Security issues, Achievements, Settings | Not available through any API |
Request indexing | Not available. Google's Indexing API is limited to job-posting and livestream pages, so it is deliberately not included |
How the numbers are calculated
Complete days only. When you request recent data, Google marks where still-processing data starts (metadata.firstIncompleteDate). Comparison tools end on the day before that, and say so in end_basis. If you pass explicit dates, they're used as given.
Traffic drop diagnosis. Clicks = impressions × CTR, so any click change splits exactly into two parts:
Δclicks = (I₁ − I₀) × CTR₀ + I₁ × (CTR₁ − CTR₀)
fewer impressions lower CTREach drop is labelled ranking_loss (average position worsened by ≥ 2, configurable), ctr_drop (CTR part dominates at a stable position), demand_drop (impressions part dominates at a stable position) or disappeared (no impressions at all). The diagnosis is based on Search Console data only; it doesn't see the search results page itself.
CTR benchmarks. "Low CTR" compares each query/page pair with the median CTR of your own site at the same rounded position. There is no generic industry CTR curve.
Aggregated positions (sections, segments) are impression-weighted averages of row positions, close to but not identical with the interface's figure.
Anonymised queries. Query-level rows exclude queries Google anonymises. Overviews report what share of clicks comes from visible queries.
Cannibalisation. URLs are normalised (host without www., lowercase path, no trailing slash, no parameters). When the competing URLs are really the same page, the query is listed under url_variant_splits with the reason (www vs non-www, http vs https, trailing slash, query parameters, letter case). Those need a redirect or canonical fix, not content changes.
Dates and time zone. All dates are Pacific Time, as in Search Console. The URL Inspection daily quota is counted per Pacific-Time day.
Read-only by design
search-console-mcp is read-only at three independent levels:
Google scope. The server only requests
https://www.googleapis.com/auth/webmasters.readonly. A token with this scope cannot submit, delete or change anything in Search Console, whatever the code does.No write tools. There is no tool to submit or delete sitemaps, or to add or remove properties.
Request guard. Every Search Console request is checked before it leaves your machine. Only
GETand the two read-onlyPOSTendpoints (Search Analytics query, URL Inspection) are allowed; anything else raisesWriteBlocked. A test verifies that blocked requests never reach Google, and another that no other module can bypass the guard.
Website checks (robots.txt, sitemaps, redirects, HTTPS, images) send GET or HEAD requests only. The Chrome UX Report API is queried with POST, which is how that API reads data.
The only things search-console-mcp writes are local files: its SQLite database, its log file, and CSV or report exports when you ask for them. A few tools that save results this way (for example inspect_url, which stores each inspection locally, and weekly_report, which writes a Markdown file) are marked as non-read-only in their MCP metadata, which some clients display as "write" tools. They only write to your own computer, never to Search Console.
Requirements
Claude Desktop (Windows or macOS). Local MCP servers don't work in Claude on the web.
Python 3.11 or newer, and pipx
Google Cloud CLI (
gcloud)A Google Cloud project with the Google Search Console API enabled
A Google account with access to the Search Console properties you want to analyse
Runs on Windows 10 with Python 3.13 and Claude Desktop. The test suite runs on Linux with Python 3.12; macOS should work the same way but hasn't been tried yet.
Installation
1. Create an OAuth client
Create or pick a project and enable the Google Search Console API.
Go to Google Auth Platform and configure the consent screen: app name, support email, audience External.
Under Audience → Test users, add every Google account you will sign in with. While the app is in Testing, Google only lets listed test users sign in; without this, sign-in stops with "Access blocked".
Under Clients → Create client, choose Desktop app, then Download JSON. Save it as
client_secret.json.
On Windows, check the file isn't saved as client_secret.json.json; Windows hides file extensions by default. Keep client_secret.json private: see Keep these private.
2. Sign in with gcloud
gcloud auth application-default login --scopes=https://www.googleapis.com/auth/webmasters.readonly,https://www.googleapis.com/auth/cloud-platform --client-id-file=PATH\TO\client_secret.jsonSign in, tick every permission checkbox, and note the path printed after Credentials saved to file:.
If you also use Google's Ads or Analytics MCP servers, sign in once with all their scopes in the same command; they all share this credentials file.
3. Install the server
pipx install git+https://github.com/makashibk/search-console-mcp.gitOr from a clone:
git clone https://github.com/makashibk/search-console-mcp.git
cd search-console-mcp
pipx install .On Windows, if pipx isn't recognised, use py -m pipx instead. Then find the installed program:
where search-console-mcp # Windows
which search-console-mcp # macOSIf the command isn't found, run pipx ensurepath and open a new terminal. The default locations are the ones used in the next step.
4. Add it to Claude Desktop
Open Settings → Developer → Edit Config. This opens claude_desktop_config.json, which lives at %APPDATA%\Claude\claude_desktop_config.json on Windows and ~/Library/Application Support/Claude/claude_desktop_config.json on macOS. Add the server under mcpServers and keep any existing content in the file.
The key is the name Claude shows. Use exactly search-console-mcp: that is the name you will see under Settings → Developer and under + → Connectors.
Replace every
<you>with your real Windows or macOS username before saving. A placeholder left in the path makes Claude Desktop fail to start the server (spawn ... ENOENTin its log). On Windows, double every backslash, as in the example.Keep the entry inside
mcpServers. If other servers are already listed, add a comma after the previous server's closing}. An entry placed outsidemcpServersis silently ignored. Claude Desktop keeps its own preferences in this file too, so leave everything else as it is.
Windows:
{
"mcpServers": {
"search-console-mcp": {
"command": "C:\\Users\\<you>\\.local\\bin\\search-console-mcp.exe",
"args": [],
"env": {
"GOOGLE_APPLICATION_CREDENTIALS": "C:\\Users\\<you>\\AppData\\Roaming\\gcloud\\application_default_credentials.json"
}
}
}
}macOS:
{
"mcpServers": {
"search-console-mcp": {
"command": "/Users/<you>/.local/bin/search-console-mcp",
"args": [],
"env": {
"GOOGLE_APPLICATION_CREDENTIALS": "/Users/<you>/.config/gcloud/application_default_credentials.json"
}
}
}
}Fully quit Claude Desktop (tray or menu bar → Quit, not just closing the window) and reopen it. Settings → Developer should show search-console-mcp as Running.
5. Check it works
In a new Claude Desktop chat:
Use search-console-mcp: call server_status, then list_properties.server_status should report "mode": "read-only ...", and list_properties should list your properties.
Updating
Quit Claude Desktop first (Windows locks files that are in use), then:
pipx install --force git+https://github.com/makashibk/search-console-mcp.gitIf you installed from a clone, run git pull and then pipx install --force . in the cloned folder. Your database and notes are stored separately and survive updates and reinstalls.
Keep these private
These hold live access to your Google account or your data. Never share them, post them in an issue, or commit them to Git (the repository's .gitignore already skips the first three):
File or folder | Why |
| Your OAuth client |
| Your signed-in Google login |
A service-account JSON key, if you use one | Full access as that service account |
| May contain API keys ( |
The data folder ( | Your inspection history, notes and crawl statistics |
If a credentials file was shared by mistake, run gcloud auth application-default revoke (see Uninstall) and sign in again. For a leaked service-account key or API key, delete it in Google Cloud Console and create a new one.
Uninstall
Want it gone again?
Each step is independent: do only what you need.
1. Remove it from Claude Desktop
Quit Claude Desktop from the tray or menu bar (Quit). On Windows, check in Task Manager that no Claude process is left. Then reopen it and open Settings → Developer → Edit Config.
Delete the whole
"search-console-mcp": { ... }block frommcpServers. Keep the JSON valid: if the block was the last one, also remove the comma after the entry before it.Save the file, fully quit Claude Desktop (tray or menu bar → Quit) and reopen it.
search-console-mcp then disappears from Settings → Developer and from + → Connectors. To pause it without removing anything, switch it off under + → Connectors instead.
Do the steps in this order: step 1 removes the server from Claude, and the later steps clean up what it left behind.
2. Uninstall the program
Quit Claude Desktop first (Windows locks files that are in use), then:
pipx uninstall search-console-mcpIf you installed from a clone, you can also delete the cloned folder.
3. Delete the local data (optional)
search-console-mcp keeps its data on your computer only. Deleting these folders removes your inspection history, queued URLs, robots.txt version history, property notes and imported crawl statistics. It can't be undone.
What | Windows | macOS |
Database, log file, cached Google IP ranges |
|
|
CSV exports and saved reports |
|
|
If you set SEARCH_CONSOLE_MCP_DATA_DIR or SEARCH_CONSOLE_MCP_EXPORT_DIR, delete those folders instead.
4. Revoke Google access (optional)
gcloud auth application-default revokeThis revokes the credentials created by gcloud auth application-default login and deletes the local credentials file. Other tools that share that file, such as Google's Ads or Analytics MCP servers, are signed out too, so sign in again for them afterwards. It doesn't touch a credentials file you pointed GOOGLE_APPLICATION_CREDENTIALS at yourself (for example a service-account key): delete that file, and remove the service account's email from your Search Console properties.
You can also remove the app on Google's side: open https://myaccount.google.com/permissions and remove the OAuth app you created in step 1. Don't do this if your other Google tools (Analytics, Ads, other MCP servers) use the same OAuth app: it cuts them off too. In that case just run the revoke command above and, if you like, remove the extra test users under Google Auth Platform → Audience.
5. Remove the Google Cloud setup (optional)
In Google Cloud Console: under APIs & Services → Credentials, delete the OAuth client; under APIs & Services → Library → Google Search Console API, click Disable API; or delete the whole project if you created it only for this. Then delete the downloaded client_secret.json from your computer (unless other Google tools still use it), and any API keys you created for CRUX_API_KEY or PAGESPEED_API_KEY. Python, pipx and the Google Cloud CLI can stay: other tools use them too.
6. Check it's gone
Reopen Claude Desktop: Settings → Developer no longer lists search-console-mcp. In a terminal, where search-console-mcp (Windows) should say it can't find the file, and which search-console-mcp (macOS) should print nothing. The data folder from step 3 should no longer exist.
Configuration
All settings are environment variables in the server's env block.
Variable | Default | Purpose |
| gcloud's default credentials path | OAuth user credentials or a service-account key |
|
| Database and log file |
|
| CSV exports and saved reports |
|
| Cap on URL inspections per property per day |
| (none) | Bill API quota to a specific Cloud project |
| (none) | Enables |
| (none) | API key for |
CRUX_API_KEY and PAGESPEED_API_KEY are ordinary Google API keys from a Cloud project that has the Chrome UX Report API (and, for PageSpeed, the PageSpeed Insights API) enabled. Example env block:
"env": {
"GOOGLE_APPLICATION_CREDENTIALS": "C:\\Users\\<you>\\AppData\\Roaming\\gcloud\\application_default_credentials.json",
"CRUX_API_KEY": "<your API key>"
}Service accounts. Point GOOGLE_APPLICATION_CREDENTIALS at a service-account JSON key and add the service account's email as a user on each Search Console property. The credential loader supports this; day-to-day use so far has been with OAuth user credentials.
Login expiry. While the OAuth app is in Testing status, Google expires the login after 7 days. Re-run the gcloud auth application-default login command; the server reloads the credentials file automatically, with no restart needed.
Usage
Ask in plain language. Some examples:
Overview of example.com for the last 28 days.
Which pages lost traffic this month, and why? Show the queries behind the three biggest drops.
Quick wins for example.com: striking-distance keywords with at least 500 impressions.
Check for keyword cannibalisation over the last 90 days.
Branded vs non-branded clicks for example.com. Brand terms: Example, Exmple.
Daily clicks for /blog/ pages on mobile in the Netherlands, last 6 months, as a chart.
Image search quick wins for example.com.
Which pages have declined three months in a row?
Run check_alerts for all my properties.
Do these old URLs redirect to their new URLs? [paste the migration map]
Is /women?color=red allowed for Googlebot on www.example.com?
HTTPS and DNS check for example.com.
Write a weekly report for example.com.
Verify that the homepage got 1,240 clicks between 2026-09-01 and 2026-09-28.search-console-mcp works alongside other MCP servers in the same chat, for example Google's Analytics and Ads servers:
Compare Search Console clicks with GA4 sessions and conversions for our top 20 landing pages.
Which queries do we rank top 3 for organically but still pay for in Google Ads?Page indexing workflow
The Page indexing report has no API, but URL Inspection returns the same coverage reasons ("Crawled - currently not indexed", "Excluded by 'noindex' tag" and so on). search-console-mcp inspects URLs, stores every result, and builds the report from the latest result per URL.
Fill the queue.
queue_from_sitemapsfor everything in your sitemaps,queue_from_performancefor pages Google shows, orqueue_urlsfor a specific list.Inspect.
run_inspectionsfor a batch now (default 100 URLs, 45-second budget; call again to continue), orinspection_job action=startto work through the whole queue in the background.Analyse.
indexing_reportfor the overview (optionally for one sitemap or URL pattern),list_inspected_urlsfor URL lists and CSV exports,diagnose_urlfor a single page,indexing_changesto see what moved.
Re-inspections build a history, so you can see pages drop out of the index over time, something Search Console itself doesn't show per URL.
With Google's quota of 2,000 inspections per property per day, a 50,000-URL store takes about 25 days to cover fully. Start the background job early.
Crawl stats from server logs
Copy access logs from the server to your machine (plain or
.gz; rotated files are fine).Import them:
Import C:\logs\access.log* for www.example.com.Imports run in the background, and files already imported are skipped. Ask "show import progress" to check.
Analyse:
Crawl stats for www.example.com for October: by response, file type and Googlebot type. Which 404 URLs does Googlebot request most?
Supported formats: Apache, Nginx and Varnish "combined" logs, optionally with a leading virtual-host field and a trailing response-time field. Decimal seconds (nginx $request_time) are read automatically; Apache %D needs response_time_unit="microseconds".
Every hit claiming to be Google is checked against Google's published crawler IP ranges, falling back to reverse and forward DNS. Hits with a Google user agent from a non-Google IP are counted as fake and excluded by default. If most hits fail verification, the log is probably recording a proxy or CDN IP (Varnish, Cloudflare, a load balancer) instead of the client IP; fix the real-IP setting or import with verify=false.
"Purpose" is approximate: Discovery means the URL appears for the first time in your imported logs, otherwise it's Refresh.
Quotas and limits
Limit | Value |
URL Inspection (Google) | 2,000 per property per day, 600 per minute. The server paces itself at 8 per second and stops cleanly at the quota |
Search Analytics rows per request (Google) | 25,000; the server pages automatically, up to 100,000 rows per call |
Search Analytics history (Google) | About 16 months |
Response cache | Identical Search Analytics requests are served from memory for 10 minutes |
Rate-limit handling | Search Analytics: up to 4 retries with back-off on HTTP 429. URL Inspection: stops cleanly at the quota and resumes the next Pacific-Time day |
| Up to 500 URLs and 240 seconds per call (defaults 100 and 45) |
| Up to 500 URLs per call |
Very large sites may hit Google's own row limits in Search Analytics. For complete, unsampled data at that scale, Search Console's BigQuery bulk export is the better source.
Where data is stored
What | Where |
Database (inspections, URL queue, jobs, robots.txt history, notes, crawl statistics) |
|
Log file (rotated: 1 MB each, 3 backups) |
|
Cached Google crawler IP ranges |
|
CSV exports and reports |
|
Google credentials | Wherever |
Server logs you import stay where they are. Only aggregated counts and crawled URLs are stored in the database.
Troubleshooting
Symptom | Cause and fix |
| The JSON in |
Claude Desktop's log shows | The path in |
The server is in the config but never appears | The entry sits outside |
"Access blocked" in the browser when signing in | That Google account isn't a test user of the OAuth app. Add it under Google Auth Platform → Audience → Test users, then sign in again |
Claude says the tools aren't available | The chat isn't loading local servers. Use a new chat in the Claude Desktop app (not the browser) and check + → Connectors that |
Server shows Failed, log has | The server took longer than about 60 seconds to start. The first start after installing can be slow on Windows while Defender scans the new files; restart Claude Desktop. If it keeps happening, add a Defender exclusion for the pipx folder |
| Run the |
| The login expired (7 days in Testing mode) or was removed. Run the login command again; no restart needed |
| The login doesn't include |
| Enable the API in the Cloud project that owns your OAuth client |
| The signed-in account has no access to that property, or the property string is wrong. Use the exact value from |
| Daily inspection quota used up. It resets at midnight Pacific Time; background jobs resume by themselves |
pipx: | You pointed pipx at the wrong folder level. Use the folder that contains |
pipx (Windows): | An empty file named |
pipx: | Claude Desktop is still running the server. Quit it fully, then reinstall |
Crawl stats: most Google hits marked "not google ip" | The log records a proxy/CDN IP. See Crawl stats from server logs |
The server writes errors to server.log in the data folder. Claude Desktop's Settings → Developer → View logs shows startup and protocol messages.
Development
git clone https://github.com/makashibk/search-console-mcp.git
cd search-console-mcp
pip install -e . pytest
python -m pytest -q testsThe tests use a fake Search Console API, a local web server, synthetic server logs and a self-signed TLS server, so they need no Google account or network access to Google. (The TLS test needs openssl on your PATH and is skipped without it.) They cover the robots.txt matching rules (including Google's documented precedence examples), the read-only guard, pagination, the drop decomposition, decay, alerts, sections, segments, the indexing pipeline and quotas, site checks and log parsing.
Two tests keep the documentation honest: one checks that the tools in the README tables are exactly the tools the server registers, the other that docs/tools.md is up to date. After adding or changing a tool, regenerate the reference:
python scripts/gen_tools_doc.pyProject layout:
search_console_mcp/
server.py MCP tool definitions
api.py Search Console API client, read-only guard, cache, retries
auth.py Credentials loading and per-thread sessions
performance.py Search Analytics queries and analyses
inspector.py URL Inspection runner, quotas, background jobs
indexing.py Page indexing reports from stored inspections
playbook.py Coverage reasons: source, meaning, checks, fixes
robots.py robots.txt fetching, Google-style matching, history
livecheck.py Live page fetch for diagnose_url
sitechecks.py Redirects, HTTPS/TLS, DNS, images, PageSpeed
crux.py Chrome UX Report (Core Web Vitals)
crawllogs.py Access-log import and crawl stats
sitemap_fetch.py Sitemap download and parsing
report.py Weekly Markdown report
db.py, util.py Storage and helpers
docs/tools.md Generated reference of every tool and parameter
scripts/ gen_tools_doc.py
tests/ Offline test suiteBug reports and feature requests: GitHub Issues.
Changelog
1.2.0
Read-only: the server requests
webmasters.readonlyonly, the sitemap submit/delete tools are removed, and a request guard blocks every non-read call.
1.1.0
Period comparisons aligned to the last complete day; provenance (
_source) on results;verify_metric.New analyses:
traffic_drops(with exact decomposition),content_decay,check_alerts,section_performance,query_segments,multi_site_dashboard,weekly_report.find_opportunitiesadds content gaps and image search;find_cannibalizationseparates URL variants.run_inspectionscan inspect top pages and check recrawls since a given time.Site checks:
check_redirects(with migration maps),check_https,check_dns,image_audit,pagespeed_audit.property_notes; Crawl stats from server logs (import_access_logs,crawl_stats).10-minute response cache and back-off on rate limits.
1.0.0
Performance queries and analyses, sitemaps, URL Inspection with a local database, rebuilt Page indexing report, background inspection jobs,
diagnose_url, robots.txt monitoring with history, Core Web Vitals via CrUX.
License
MIT. Copyright (c) 2026 MakashibK. See LICENSE.
Disclaimer
This is an independent, community-built tool. It is not affiliated with, endorsed by or sponsored by Google or Anthropic.
It is provided "as is", without warranty (see LICENSE). Use it at your own risk and check important numbers before acting on them or sending them to clients;
verify_metricis there for that.Analysis such as traffic-drop diagnoses, opportunities and alerts is based only on Search Console data and is guidance, not a guarantee of cause or ranking outcome.
You are responsible for your own Google Cloud project, OAuth client and API keys, for keeping credentials private, and for following Google's API terms and quotas.
It runs on your computer and sends no data to the author. The tools that contact websites or services (live page checks, PageSpeed Insights, Chrome UX Report, DNS lookups) send requests from your machine to those services.
The author is not liable for losses, including loss of traffic or revenue, resulting from its use.
Available Tools
44 toolscheck_alertsBRead-only
Severity-rated alerts: site-wide click drop, query position drops (incl. falling off page one), CTR collapses at the same position, page click losses, pages that vanished.
Inputs: site (required), days, min_clicks, search_type, +5 more.
check_dnsCRead-only
DNS records (A, AAAA, CNAME, MX, NS, TXT, CAA) plus Google site-verification tokens found in DNS TXT and on the home page.
Inputs: domain (required), include_www.
check_httpsBRead-only
HTTPS health (Search Console's HTTPS report has no API): certificate validity/expiry/names, http->https redirect, HSTS, mixed content.
Inputs: host_or_url (required), urls.
check_redirectsARead-only
Trace redirect chains in bulk: every hop, final status, chains, loops, temporary redirects, https->http; validates migration redirect maps.
Inputs: urls, pairs, concurrency.
compare_periodsBRead-only
Winners and losers between two periods (default: previous equal-length period), with new and lost queries/pages.
Inputs: site (required), days, top_n, filters, +7 more.
content_decayBRead-only
Pages (or queries) whose clicks fell in every one of N consecutive periods: slow decay, not a one-off dip.
Inputs: site (required), top_n, periods, dimension, +4 more.
core_web_vitalsARead-only
Core Web Vitals field data (LCP, INP, CLS, FCP, TTFB at p75) from the Chrome UX Report, the data behind Search Console's CWV report. Needs CRUX_API_KEY.
Inputs: target (required), history, form_factor.
crawl_statsBRead-only
Crawl stats from your logs: requests, download size, response time per day; breakdowns by response, file type, Googlebot type, purpose and host; robots.txt fetches; example URLs.
Inputs: host, end_date, examples, response, +4 more.
diagnose_urlA
Why is this URL (not) indexed? Combines Google's inspection with a live fetch: redirect chain, status, noindex, canonicals, robots.txt rule, thin content.
Inputs: url (required), site (required), user_agent, use_cached_inspection.
find_cannibalizationARead-only
Queries where 2+ of your URLs split impressions. URL variants (www/non-www, http/https, slash, parameters) are reported separately from genuinely competing pages.
Inputs: site (required), days, top_n, end_date, +4 more.
find_opportunitiesBRead-only
Quick wins: striking-distance query/page pairs, top positions with low CTR (vs this site's own CTR by position), and content gaps (demand, but ranking below 20).
Inputs: site (required), days, top_n, end_date, +5 more.
get_sitemapBRead-only
Details of one submitted sitemap.
Inputs: site (required), sitemap_url (required).
image_auditBRead-only
Image SEO audit of pages: alt text, file names, width/height, lazy loading near the top, formats, file size, broken images, og:image and structured-data images.
Inputs: urls (required), large_kb, max_images, check_files.
import_access_logsA
Import Apache/Nginx/Varnish access logs to rebuild Crawl stats. Runs in the background; already-imported files are skipped.
Inputs: host, paths, verify, response_time_unit.
indexing_changesCRead-only
URLs whose coverage reason changed between their last two inspections (dropped out of the index, newly indexed, ...), plus per-day inspection trend.
Inputs: site (required), days, limit.
indexing_fix_guideARead-only
What each Page indexing reason means, whether it's a Website or Google-systems issue, what to check and how to fix it.
Inputs: reason.
indexing_reportBRead-only
Page-indexing report from local inspections: indexed vs not, every reason with source, samples, checks and fixes; canonicals, fetch/robots states, crawl age, rich results.
Inputs: site (required), source, samples, sitemap, +2 more.
inspection_jobC
Background inspection while Claude Desktop is open: works through the queue within the daily quota and resumes after restarts.
Inputs: site (required), action, stale_days, daily_limit.
inspect_urlC
Live URL Inspection result from Google (index status, coverage reason, canonicals, last crawl, robots, sitemaps, referring URLs, rich results). Stored locally.
Inputs: url (required), site (required), language.
list_inspected_urlsBRead-only
URL-level drill-down of stored inspections with filtering, sorting, paging and CSV export.
Inputs: site (required), limit, offset, indexed, +11 more.
list_propertiesARead-only
All Search Console properties this Google account can access, with permission level.
Inputs: no named parameters.
list_sitemapsCRead-only
Sitemaps submitted for the property: last submitted/downloaded, pending, errors, warnings, submitted URL counts by type.
Inputs: site (required), sitemap_index.
multi_site_dashboardBRead-only
Health check across many properties at once: clicks, impressions, CTR, position vs previous period, flagged dropping/growing.
Inputs: days, drop_pct, properties.
pagespeed_auditBRead-only
PageSpeed Insights: Lighthouse scores, lab metrics, top opportunities by savings, failing SEO/other audits, and real-user field data. Uses PAGESPEED_API_KEY or CRUX_API_KEY if set.
Inputs: url (required), strategy, categories.
performance_overviewBRead-only
Totals vs the previous equal-length period, daily series, top queries and pages. Use search_type='discover' for Discover.
Inputs: site (required), days, end_date, start_date, +1 more.
performance_queryBRead-only
Search performance (clicks, impressions, CTR, position) for any dimension combination, search type, date range and filters.
Inputs: site (required), days, filters, sort_by, +9 more.
property_notesC
Context saved with a property for future chats: brand terms, migration dates, decisions, site changes.
Inputs: site (required), kind, text, action, +1 more.
property_overviewARead-only
One-call overview: web + Discover performance vs previous period, sitemaps health, local indexing summary, robots.txt status.
Inputs: site (required), days.
query_segmentsCRead-only
Queries split into branded vs non-branded, questions (EN/NL/SV/PT/FR/DE), query length, results page, and chat-style fragments.
Inputs: site (required), days, top_n, end_date, +3 more.
queue_from_performanceB
Queue every page that got impressions in Search (useful to inspect the pages Google actually shows).
Inputs: site (required), days, max_urls, search_type, +1 more.
queue_from_sitemapsA
Download sitemaps (indexes, .gz) and queue every page URL for inspection, remembering which sitemap each URL came from.
Inputs: site (required), max_urls, sitemap_url.
queue_urlsB
Add URLs to this property's local inspection queue.
Inputs: site (required), urls (required), label.
robots_txt_checkA
Fetch robots.txt like Googlebot: status and Google's interpretation, size vs the 500 KiB limit, groups, Googlebot rules, sitemaps, syntax warnings, and a diff if it changed since the last check. Saved to history.
Inputs: host_or_url (required).
robots_txt_check_propertyA
Check robots.txt on every host that had Search traffic in the property (all subdomains of a Domain property).
Inputs: site (required), days, max_hosts.
robots_txt_diffARead-only
Unified diff between two stored robots.txt checks (ids from robots_txt_history).
Inputs: to_check_id (required), from_check_id (required).
robots_txt_historyBRead-only
Every stored robots.txt check for a host (date, status, size, hash, response time) and each distinct version with first/last seen.
Inputs: host_or_url (required), limit.
robots_txt_testARead-only
Is this URL allowed for this crawler? Returns the deciding rule and line, using Google's matching rules.
Inputs: url (required), check_id, user_agent, show_content.
robots_txt_watchB
Keep checking robots.txt for a host in the background (while Claude Desktop is open) to build version history.
Inputs: action, host_or_url, interval_hours.
run_inspectionsA
Inspect URLs now: the queue (never-inspected first, then stale), an explicit list, or your top pages. Respects the 2,000/day and 600/minute per-property quotas.
Inputs: site (required), urls, max_urls, top_pages, +4 more.
section_performanceARead-only
Performance per site section (URL folder or custom prefixes) with share of clicks and change vs the previous period. Domain properties are split per host.
Inputs: site (required), days, level, top_n, +5 more.
server_statusBRead-only
Server health: credentials, local database, inspection queues, background jobs, robots.txt watches, today's inspection quota use.
Inputs: no named parameters.
traffic_dropsARead-only
Pages/queries that lost clicks vs the previous period, each diagnosed: ranking loss, CTR drop, demand drop or disappeared, with the click loss split exactly into fewer impressions vs lower CTR.
Inputs: site (required), days, top_n, end_date, +6 more.
verify_metricBRead-only
Re-query Google to confirm a number before presenting it (e.g. 'this page got 500 clicks').
Inputs: site (required), metric (required), expected (required), days, +8 more.
weekly_reportB
Full report in one call (performance, alerts, drops, quick wins, content gaps, decay, cannibalisation, sitemaps, indexing, robots.txt), saved as a Markdown file.
Inputs: site (required), days, top_n.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 44 tools
Most tools occupy distinct slots: performance_query vs performance_overview vs compare_periods are clearly layered, and the robots_txt_* family separates check/history/diff/test/watch cleanly. A few clusters blur together — property_overview vs weekly_report vs multi_site_dashboard, and inspect_url vs diagnose_url vs run_inspections vs inspection_job — but the descriptions do enough to steer selection.
Everything is snake_case with recognizable domain prefixes (robots_txt_*, queue_from_*, check_*, list_*, find_*) and no camelCase or style mixing. However, only about half the names follow the verb_noun pattern; many are bare nouns (server_status, content_decay, traffic_drops, cron_stats, image_audit), which weakens predictability.
44 tools is a large surface for one server, and several are convenience wrappers over combinations of other tools (weekly_report, multi_site_dashboard, property_overview, verify_metric). While the domain genuinely spans performance, indexing, robots.txt, technical SEO and logs, the count pushes well past a comfortably scannable set.
Coverage is unusually thorough: performance analytics, indexing inspections, sitemaps, robots.txt lifecycle, redirects/DNS/HTTPS, CWV, log-based crawl stats, and persistent property notes. The notable gap is write operations on sitemaps (list/get only, no submit/delete) and no way to manage properties beyond reading them.
Maintenance
Related MCP Connectors
SEO research, Search Console, GA4 and PPC tools for Claude and ChatGPT.
Read-only Google Ads, GA4 and Search Console data for Claude, with no Google Cloud setup.
Google Search Console for AI assistants: traffic, rankings, indexing and page checks. Read-only.
Google Search Console, GA4, Bing Webmaster and PageSpeed MCP for Claude, ChatGPT, Cursor. Free.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables Claude to access Google Search Console data including search performance, URL indexation, sitemaps, and built-in SEO analysis tools such as trending queries, cannibalization detection, and traffic drop diagnostics.10-
- AlicenseCqualityCmaintenanceEnables Claude Code to read Google Search Console and GA4 data locally with read-only access, and provides combined SEO analysis tools for comparing datasets and identifying opportunities.20MIT
- FlicenseNot gradedqualityNot gradedmaintenanceEnables users to query Google Search Console data interactively from Claude Desktop and via CLI, providing search analytics, period comparisons, branded split, indexing status, sitemaps, and full CSV exports.-
- 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.2825 npmMIT