Search Console for agents: index status, unindexed-URL discovery, Request Indexing, sitemaps.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
π‘ Paste into ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
An MCP server that gives Claude and other AI agents real control over Google Search Console β list your properties, check whether a URL is indexed, find the pages Google left out, run URL inspection in bulk, submit sitemaps, request indexing, and pull search analytics, all from a conversation.
Built for SEO practitioners tired of checking index status and submitting sitemaps by hand, one property at a time, and for the AI agents that can do it for them.
shahidali.co/tools/gsc-mcp is the project page: the same install lines, the tool list, and what the quota rules actually are, written for people who have not opened this repo.
Claude Code, in one command:
Anything else that speaks MCP, by hand β this is the whole config:
uvx fetches and runs the published package with nothing installed first, which
is why every button above is a one-liner. A .mcp.json with exactly
that content sits in this repo, so cloning it is also enough.
No API key goes in any of these. Sign-in happens once, in your browser, when you
first call gsc_setup() β see The OAuth client is handled for you.
Beta. The whole surface is wired up, and it has now met a real Google account β on one operating system, driven by one person.
0.1.0 drops the pre-release suffix so that pip install finds it without
--pre. That is a decision about reach, not a claim of maturity: this project
needs bug reports from people who are not its author, and a package pip refuses
to install by default does not get them. Read the Known issues in
CHANGELOG.md before pointing it at a property you care about β
in particular, a transient rate-limit from Google currently ends the whole
batch. Bug reports are the point; please file them.
Fifteen tools are registered on the server and covered by a wire-level smoke test that connects a real MCP client session and confirms every tool answers with a description. Storage, quota accounting, OAuth, and config are the foundation underneath them. Sign-in has been walked for real, on Windows against a live Google account β see docs/manual-smoke.md, which is also where the defects that run found are recorded. Submission has since driven a real browser and had Google confirm real Request Indexing calls, in Chrome and in Brave, against live properties. That is one platform and one operator, and every automated assertion about it is still made against a fake; see Known gaps for what that does and does not buy you.
| Milestone | Scope | State |
|---|---|---|
| 1. Foundation | Paths, logging, SQLite store, quota engine, OAuth + PKCE, config | Done |
| 2. MCP surface | The tools below, exposed over MCP | Done |
| 3A. Onboarding | Guided sign-in, browser/profile detection, the bridge extension | Done |
| 3B. Submission | Browser-driven Request Indexing, job control | Verified live on Windows |
| 4. Reporting | Indexation discovery and audits | Verified live on Windows |
Released versions and what changed in them are in CHANGELOG.md. Watch or star the repo if you want to know when the milestones above are verified on a platform other than Windows.
Shipped and registered on the MCP server today:
| Tool | What it does |
|---|---|
gsc_list_sites | List every Search Console property the account can reach |
gsc_doctor | Diagnose auth, config and environment problems |
gsc_check_status | Index status for one or more URLs via the URL Inspection API (read-only, spends no Request-Indexing slot) |
gsc_quota | Request-Indexing and URL Inspection budget remaining today, per property |
gsc_performance | Clicks, impressions, CTR and position from Search Analytics |
gsc_submit_sitemaps | Submit or resubmit sitemaps to a property |
gsc_setup | Walk through sign-in and setup; idempotent, returns the single next step |
gsc_detect_browsers | Locate installed browsers and profiles for browser-driven submission |
gsc_use_browser | Pin the browser profile to drive, overriding the detector's recommendation |
gsc_request_indexing | Submit up to five URLs for indexing, one at a time. Blocks for minutes β see Submitting URLs |
gsc_start_indexing_job | Queue a background submission run over any number of URLs; returns at once |
gsc_job_status | Progress and state for one submission job, or the most recent |
gsc_stop_job | Ask a running submission job to stop after the URL in flight |
gsc_find_unindexed | Find which of a property's URLs are not indexed, and why β see Finding what is not indexed |
gsc_audit | The current indexation position for a property, read from the local store; spends no quota |
Most tools in this space get Google's limits wrong, then get throttled and blame detection. Both limits that matter are per property, not per account:
| Limit | Value | Mechanic |
|---|---|---|
| Request Indexing | ~11 slots per property | Rolling β each slot frees 24h + 1 min after its own use |
| URL Inspection | 2,000 per day per property | Daily reset |
| URL Inspection | 600 per minute per property | Rate limit |
Properties are independent, so eight properties means eight independent budgets. This server tracks slots individually rather than counting a daily total, so it knows the exact minute the next slot opens β and it deliberately over-counts rather than under-counts when a race is possible, because a short wait is cheaper than a hard Quota Exceeded.
gsc_find_unindexed collects candidate URLs β from the property's registered sitemaps, from URLs already in the local store, or both β inspects the ones whose last inspection has gone stale, and reports each unindexed URL with a reason. limit caps how many URLs are inspected, not how many come back: an inspection spends budget, and a cap that only trimmed the output would pay full price for an answer it discarded. Which URLs a capped run reaches follows the store's own URL ordering (alphabetical), not staleness, so a capped run is a sample rather than a worst-first sweep.
gsc_audit answers the same question from the store alone β no HTTP inspection, no budget spent. It is point-in-time: it reports what the last inspection found, and carries as_at and a stale count so you can tell how old that picture is. There are deliberately no movement numbers.
There are ten of them. submitting_helps on each row is the one to act on before calling gsc_request_indexing:
| Reason | submitting_helps | What it means |
|---|---|---|
discovered-not-indexed | yes | Google knows the URL but has not crawled it |
unknown-to-google | yes | Google has never seen the URL |
crawled-not-indexed | yes | Google crawled it and chose not to index it β improve it, then submit |
404 | no | The URL returns not-found |
redirect | no | The URL redirects elsewhere |
noindex | no | A noindex directive on the page or its response |
soft-404 | no | Returns 200 but reads as an error or empty page |
robots-blocked | no | robots.txt blocks the URL |
duplicate | no | Google chose a different canonical |
alt-canonical | no | An alternate page pointing at its own canonical β no action |
If you have read the eight-code list in the design notes and counted ten here, the extra two are discovered-not-indexed and unknown-to-google, kept separate from crawled-not-indexed on purpose. All three answer yes to "can a quota slot move this", but not to "what do I do first", and that is the part you act on. Discovered and unknown are pages Google has not judged β it has not fetched them yet, so submitting is the whole remedy. Crawled-not-indexed is a page it fetched and passed on; a fresh crawl can reverse that verdict, but resubmitting byte-identical content re-crawls to the same one. Improve the page, then submit it.
Slots are roughly eleven per property per rolling day and unrecoverable, and crawled-not-indexed is usually the biggest bucket on a real site. submitting_helps: true means the slot can work, not that today is the day to spend it.
A URL whose state could not be established β a failed inspection, or a result a re-check could not confirm β is reported as undetermined, never as unindexed. Absence of evidence is not a finding.
Google has no API for Request Indexing that a tool like this can use, so submission goes through your own browser: the bridge extension, loaded into the profile you paired during gsc_setup, clicks Request Indexing in a real Search Console session. That has three consequences worth knowing before you spend anything.
It is slow, and the slowness is the feature. Submissions are paced 130β180 seconds apart. That gap is not a placeholder and not a bug report β it is the interval proven not to draw a throttle over long runs. Five URLs is therefore up to fifteen minutes of wall clock, and the tool that does it blocks for all of it.
Quota is per property and small. Roughly eleven slots per property, on a rolling 24-hour window β each slot frees 24 hours and a minute after its own use, not at midnight. Properties are independent budgets. Call gsc_quota first and act on spendable_free, not free: spendable_free subtracts the daily_reserve you set aside in config. A spent slot is unrecoverable; there is no undo.
One run at a time. The bridge drives a single browser tab in your real profile and listens on one fixed local port, so a second run while one is going is refused outright rather than queued. That covers both directions: gsc_start_indexing_job while a job or a gsc_request_indexing call is in flight, and gsc_request_indexing while a job is running.
| You have | Use | Because |
|---|---|---|
| One to five URLs, and you can wait | gsc_request_indexing | Synchronous. Returns the outcome of every URL. Hard-capped at five β sync_submit_cap in config can lower that, never raise it. |
| More than five, or you want your session back | gsc_start_indexing_job | Returns a job_id immediately; the run continues in the background. No cap. |
| A job in flight | gsc_job_status | Progress, per-URL results, and whether a worker is still on it. Called with no argument it reports the most recent job. |
| A job you want to end | gsc_stop_job | Stops after the URL in flight, never mid-URL: a submission already sent has spent its slot and its ledger row has to settle with the real outcome. |
A run stops early rather than burning the rest of the batch against a server that is already refusing: a quota_exceeded, a captcha, a rate limit, or a signed-out session ends it. stopped_early and stop_reason in the result say so, and the URLs never attempted keep their slots. A job that ended this way lands in state stopped_throttled; one you stopped by hand lands in stopped_user.
URLs that could not be routed to any known property come back as no_property, and ones that found no spendable slot as no_quota. Neither reached the browser and neither cost anything β they are reported apart from failures on purpose, because the fixes are different: run gsc_list_sites for the first, wait for the second.
If the server is restarted while a job is running, that job's row is closed out as failed at the next startup, and any submission row left open is settled against the property's ledger. Nothing is silently resumed β a background worker does not survive the process that owns it.
The extension must be loaded in the browser profile you paired, and the browser must be one this server can drive. gsc_setup walks both; gsc_doctor re-checks them. If the browser is closed, auto_launch_browser (on by default) opens it. The first run of all pairs the extension to the bridge, which needs the browser window in front of you.
gsc_setup
loads a browser extension into one of your existing profiles, and there
is no way to complete setup without one. Firefox and Safari are not
Chromium and will not work.gsc_setup fetches the OAuth client this project
ships. You can still supply your own β see Install below.The distribution is gsc-indexer-mcp. Note the indexer: plain gsc-mcp
on PyPI is an unrelated project by another author, so installing that name gets
you someone else's server. Everything inside this one is still gsc_mcp β the
import package, the console script, the config directory.
Versions up to and including 0.1.0a6 were pre-releases and needed --pre.
From 0.1.0 they do not.
Or skip installing entirely and let uvx gsc-indexer-mcp fetch it on demand,
which is what the buttons at the top of this page do.
You can also take the wheel from the latest release β that one differs in one way, described below: it carries the OAuth client, where the PyPI build downloads it at first setup.
Or from a checkout, which is what you want if you intend to change anything:
You do not need a Google Cloud project. gsc_setup() finds a client in
this order β environment variables, the client baked into a release wheel,
then a one-time download of the client this project ships, cached in your
config directory. A source checkout takes the third path; everything after
the first run is offline.
The tracked source deliberately contains no client. A secret committed to a public repository is permanent in git history, and GitHub reports Google client secrets to Google, which can revoke them β breaking every user at once. So it is delivered as a release asset and a build-time injection instead; docs/google-cloud-oauth.md has the mechanism. To be plain about it: that asset is public and anyone can read it, exactly like the wheel. What it buys is rotation, not secrecy β an installed app's security comes from PKCE, which this uses.
Optional. Worth doing if you want the consent screen to carry your own
app name, or your organisation requires its own client. Set
GSC_MCP_CLIENT_ID and GSC_MCP_CLIENT_SECRET and they override
everything above, in a release build or a source checkout alike.
All of this happens in Google Cloud Console, free, and takes about five minutes. Do the steps in order β step 4 is the one people skip, and skipping it fails at the very end.
Create a project. Use the project dropdown in the top bar β New project. Any name. Wait for it to be created, then make sure it is the project selected in that dropdown; everything below applies to the selected project only.
Enable the Search Console API. Search "Search Console API" in the console's search bar, open it, and click Enable. Without this, every call returns a 403 that mentions the API being disabled.
Configure the OAuth consent screen. In the left menu: APIs & Services β OAuth consent screen.
Publish the app β or add yourself as a Test user. Either works; publishing is better, and this is the step people skip.
Every new app starts in Testing status, where Google lets only
listed test users sign in. Everyone else gets 403: access_denied on
the consent screen β after creating the project, enabling the API,
creating the client, setting the environment variables and running
gsc_setup. Nothing earlier warns you. A Testing app also expires its
refresh token every 7 days, so sign-in breaks a week later in a way
that looks like a bug here and is not.
Both Search Console scopes are classed non-sensitive by Google, so publishing costs nothing: no verification, no security assessment, no user cap. Audience β Publishing status β Publish app, and both problems above disappear.
If you would rather stay in Testing, find Test users (on newer consoles: Audience β Test users) and add the Google address that owns your Search Console properties. That works indefinitely for your own account, at the cost of signing in again every 7 days.
Create the OAuth client. APIs & Services β Credentials β Create credentials β OAuth client ID, application type Desktop app. Copy the client ID and client secret it shows you β the secret is shown once, though you can always create another client.
Desktop app is the right type: this server signs you in over a
loopback redirect on 127.0.0.1, which is what that type allows. Do
not pick "Web application" and do not add a redirect URI by hand.
Set the two environment variables below before starting the server.
Without them, any tool that needs to talk to Google returns
{"ok": false, "error": "not_configured", ...} rather than doing
anything β gsc_list_sites, gsc_check_status, gsc_performance, and
gsc_submit_sitemaps all behave this way. gsc_doctor and gsc_quota
are the two exceptions: gsc_doctor still runs and reports
oauth_client: not ok as one line in its checks list rather than
failing outright, which makes it the right first tool to run when
something is stuck; gsc_quota is local-only and returns [] on an
empty store regardless of OAuth configuration.
Point your MCP client at the installed console script. For Claude
Desktop, add to its claude_desktop_config.json:
On POSIX, use .venv/bin/gsc-mcp as the command instead. Any other
MCP-speaking client that can launch a stdio server works the same way β
the entry point is the gsc-mcp console script installed above, and the
server talks the standard MCP stdio transport (gsc_mcp.server:main).
This has been exercised against a real Google account through a real MCP client session on Windows; it has not been run against Claude Desktop specifically, nor on macOS or Linux. See Known gaps.
Once the server is installed and connected, the whole of setup is one tool
called repeatedly. gsc_setup() is idempotent: it never resumes a session,
it re-reads the whole state on every call, and it hands back the single
next thing to do. Call it in a loop until it returns ok: true.
1. Install and connect β see Install above.
2. Nothing. The OAuth client is handled for you β gsc_setup()
downloads it on the first run and caches it. Set GSC_MCP_CLIENT_ID and
GSC_MCP_CLIENT_SECRET only if you want to
use your own.
3. Run gsc_setup(). It opens a Google consent screen in your browser
and returns the URL as well, so a headless machine can still complete it by
hand. Approve it, then call gsc_setup() again β the second call collects
the redirect, stores the token, and moves on. Nothing about your sign-in is
returned to the caller: not the token, not the authorization code, not the
PKCE verifier.
4. Load the bridge extension. gsc_setup() will tell you where it
extracted the extension to and which browser profile to load it into. In
that browser: open its extensions page (chrome://extensions,
brave://extensions, edge://extensions, and so on β gsc_setup() gives
you the exact URL for your browser), turn on Developer mode, choose
Load unpacked, and select the folder it named.
You will see a warning banner, and it is expected. The extension asks for the
debuggerpermission, so Chromium shows a prominent bar saying an extension is debugging your browser, and may warn you when you enable Developer mode. That permission is not incidental. Search Console applies a soft throttle to Request Indexing clicks that did not come from a real pointer, and synthetic DOM clicks trip it. The extension therefore issues trusted input events through the Chrome DevTools Protocol instead, which is whatdebuggergrants and the only way to grant it. The banner is Chromium correctly reporting a real capability β read it as "yes, this is the extension you just installed", not as malware. It only ever attaches tosearch.google.com, the one host in itshost_permissions.
5. Run gsc_doctor(). Seven checks, in order: oauth_client, token,
config, store, properties, browser, extension. Every failing one
carries a concrete fix. Sample output, on a machine where everything is
working:
These two are about your local machine rather than your Google account, and they are worded carefully because the failure modes are easy to misread.
"Could not be checked" never means "not installed." The extension check
reads your browser's own preferences files. Those files are frequently
locked, mid-write, cloud-synced, or held open by antivirus. When a read
does not happen, the check says the question could not be checked and
that the extension may already be there. That is not a polite way of saying
it is missing, and the fix is to run gsc_doctor() again (closing the
browser first if it is running) β not to reinstall an extension that is
sitting right where you put it. The same distinction runs through
gsc_detect_browsers, whose has_extension field is three-valued: true
present, false every preferences file was read and it was not among them,
null the check could not be performed.
Microsoft Edge can report a Microsoft account where a Google one is expected. Edge stores signed-in account addresses in the same file and the same key Chrome uses for Google accounts, but by default it signs profiles in to Microsoft identities. Nothing on disk tells the two apart. So for an Edge profile, an address found is not evidence of a Google sign-in β and if your Microsoft address happens to be the same as your Google one, what looks like a confirmed match is not confirmed at all. The tools hedge this rather than assert it: an Edge profile is reported with "this profile's Google sign-in could not be confirmed". Check it yourself before relying on it. Brave, Vivaldi, Opera and plain Chromium record no Google account at all and are hedged for the different reason that there is nothing to read.
A changed extension ID means re-pairing, not breakage. The extension
ships with no manifest key, so Chromium derives its ID by hashing the
absolute path it was loaded from. That ID is stable for as long as the
extraction directory is stable β and it changes if that directory moves:
an upgrade that relocates the config directory, a different GSC_MCP_HOME,
a migration to a new machine. When it changes, the extension check stops
recognising the loaded copy and reports it as not installed. Nothing is
broken and nothing is corrupted; the fix is to load the unpacked extension
again from the new folder, exactly as in step 4.
A green extension check means registered, not running. It says the
extension is loaded into that profile at that version. Whether its MV3
background service worker is alive is a separate question, and only the
bridge can answer it: at submission time it waits for a connection, wakes
an evicted worker if none arrives, and fails with extension_not_connected
if that does not work either. gsc_doctor still reports registration only.
gsc_core is a standalone engine with no MCP dependency, so it can be driven by the MCP server, a CLI, or a future desktop app without change.
| Module | Responsibility |
|---|---|
gsc_core/paths.py | Where files live, per platform |
gsc_core/runlog.py | Logging to stderr and file β never stdout, which MCP reserves for JSON-RPC |
gsc_core/store.py | SQLite: sites, urls, submissions, jobs, quota slots |
gsc_core/quota.py | Per-property rolling slot accounting |
gsc_core/gauth.py | OAuth 2.0 with PKCE S256, hardened token storage, refresh |
gsc_core/config.py | User-tunable settings with validation |
gsc_core/browsers.py | Which Chromium browsers are installed, and where they keep their state |
gsc_core/profiles.py | Which profiles each browser has, and which Google account is signed into each |
gsc_core/pairing.py | Where the bridge extension is extracted to, and what ID Chromium gave it |
gsc_core/bridge.py | The localhost WebSocket server the browser extension connects back to |
gsc_core/submit.py | The per-URL submission loop: routing, atomic quota reservation, outcomes |
To tell you which browser profile to use, this tool reads the profile list and the signed-in account address out of the browser's own files on your machine β Local State and each profile's Preferences / Secure Preferences. The same files are read a second time, for a different reason, to find out whether the bridge extension is loaded in that profile and at what version.
That read is entirely local. The address is used in memory to show you which profile is signed into which account, and:
Nothing in the tool opens these files for writing. No address is ever returned by a tool either, in either direction β not one found in a profile, and not your own authorised address. A tool result is rendered into a transcript and retained by whatever MCP client is driving the server, none of which this project controls, so a profile is identified by browser and profile directory and nothing else.
One path is the exception, and it is deliberate. When gsc_setup finds the bridge extension is not loaded yet, its result carries the directory the extension was unpacked to β on Windows, C:\Users\<your username>\AppData\Roaming\gsc-mcp\extension. On most machines that path contains your operating-system account name. It is returned because "Load unpacked" in Chrome asks you to pick that exact folder, and a set-up instruction you cannot follow is not a privacy win. It is the only path any tool returns, it appears only in the one step that needs it, and it is never written to the log. If your account name is something you would rather not have in a transcript, run that step, then clear the transcript.
Stated plainly, because they are the things a reviewer should look at first:
icacls actually applied an ACL on Windows β the Windows test only observes that the call was made, so _harden could no-op there and the suite would stay green. The POSIX equivalents now execute on Linux and macOS on every push, so this gap is Windows-only.chrome.runtime.getManifest().version over the bridge, which is a protocol change and is deferred until the bridge has been exercised against a real submission.gsc-mcp process, or anything else already on that port, fails to bind β the run now fails within seconds naming the port and the remedy, rather than blaming the extension after the full connect timeout. Moving the port (bridge_port in config) requires setting the same port in the extension's options page; the two are paired, not discovered.gsc_detect_browsers reports matches_authorised_account as null on every real machine today. The flag reads an account_email key from the stored token, and nothing writes it: the current scope set returns no identity claim and the consent step does not record the authorising account. The plumbing is correct and inert. Treat the field as "unknown", not as "does not match".extension check reports whether the extension is registered, not whether it is working. Only the bridge learns whether the MV3 worker is alive, and only at submission time.gsc-indexer-mcp, not gsc-mcp β that name belongs to an unrelated project by another author, and installing it gets you their server, not this one. The two distribution channels also differ in one substantive way: the GitHub release wheel embeds this project's OAuth client, while the PyPI wheel deliberately does not (a secret on a public index is a revoked secret), so a PyPI install downloads the client from the client release asset at first gsc_setup(). Both paths have been exercised, but they are not the same path, and a bug in one would not show up in the other.mcp is pinned >=2.0,<3. The server is written against mcp 2.0's MCPServer API β 1.x spelled it FastMCP and the two shapes are mutually exclusive, so this package now hard-conflicts with anything still requiring mcp<2 (the mirror image of the conflict the old <2.0 cap created).Contributions are genuinely welcome β issues, pull requests, bug reports, docs fixes, all of it. Start with CONTRIBUTING.md. Good first issues are the CI legs listed under Known gaps.
The single most useful thing you can contribute right now is a bug report from a machine that is not Windows. Everything here has been exercised by hand on one operating system, by one person; see Known gaps.
Functional Source License 1.1 with an Apache 2.0 future grant (FSL-1.1-ALv2).
In plain terms: use it, modify it, contribute to it, run it on client work β just don't sell a competing product built from it. Every release converts to Apache 2.0 two years after publication, so nothing here is locked away permanently.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/gsc-indexer-mcp)<a href="https://allmcps.com/mcp/gsc-indexer-mcp"><img src="https://allmcps.com/api/badge/gsc-indexer-mcp?style=directory" alt="Gsc Indexer Mcp on AllMCPs" /></a>