Google Search Console MCP for analytics, indexing, sitemaps, and SEO diagnostics.
Part of the DigestSEO suite of open-source SEO tools.
The self-hosting launcher is available as @digestseo/mcp-gsc:
npx -y @digestseo/mcp-gsc
For Google OAuth and Cloudflare deployment configuration, follow SETUP.md.
Every deployed instance exposes the same endpoint shape:
https://<your-worker>.workers.dev/mcp
The DigestSEO-hosted instance is available at:
https://mcp-gsc.digestseo.com/mcp
Claude Code
claude mcp add --transport http gsc https://<your-worker>.workers.dev/mcp
Cursor
Kiro
Uses the hosted endpoint above; complete its Google OAuth flow on first use.
ChatGPT — add it as a custom connector; see Connect in your AI client below.
A self-hostable Model Context Protocol (MCP) server for Google Search Console. Connect it to Claude.ai, Cursor, ChatGPT, or any MCP-compatible client and ask your AI assistant about your site's organic search performance — impressions, clicks, top queries, index status, and sitemap health — straight from your own Google account.
It runs on Cloudflare Workers and ships with one-click Google OAuth onboarding: connect the server in your client, sign in with Google once, grant the requested Google Search Console permissions, and you're done. No API keys to copy around and no service-account JSON to manage.
Prefer zero setup? The hosted version — with automatic weekly email digests delivered to your inbox — is at digestseo.com. This repository is the open-source core you can run yourself.
By default (GSC_ACCESS_MODE=readwrite), this server exposes 17 tools. Read-only analytics and reporting tools are marked with MCP's readOnlyHint; the write tools below can change Search Console properties, sitemaps, or indexing state. Set GSC_ACCESS_MODE=readonly to request only the Search Console read-only scope and expose the 12 read-only tools.
| Tool | Access | What it does |
|---|---|---|
server.capabilities | Read | List every tool this server exposes and report whether your Google connection is currently authenticated (connected / not_connected). Takes no arguments — a good first call for discovery. |
sites.list | Read | List the Search Console properties the connected Google account can access (siteUrl, permissionLevel). |
analytics.query | Read | Impressions, clicks, CTR, and average position over a date range, with dimensions, filters, pagination, and selectable search type. |
urls.inspect | Read | Google's URL Inspection report for a single page. |
sitemaps.list / sitemaps.get | Read | List submitted sitemaps or retrieve one sitemap's details. |
insights.quick_wins / insights.cannibalization / insights.content_decay | Read | Surface optimization opportunities, competing pages, and declining content. |
indexing.list_pages / analytics.compare | Read | Analyze pages receiving impressions and compare two periods. |
reports.weekly_digest | Read | Generate a plain-language seven-day performance report with movers, top pages, and one recommended action. |
sites.add / sites.delete | Write | Add or remove a Search Console property. |
sitemaps.submit / sitemaps.delete | Write | Submit or remove a sitemap. |
indexing.request | Write | Requests indexing through Google's Indexing API. Google currently restricts this API to pages containing JobPosting structured data or livestream pages containing BroadcastEvent inside VideoObject. It is not available for general webpage submission. |
Read-write mode requests the Google Search Console read-write and Indexing API scopes. Read-only mode requests only https://www.googleapis.com/auth/webmasters.readonly (plus openid and email) and does not register the five write tools. Read-write remains the default so existing deployments retain their current behavior; see SETUP.md to select a mode before connecting users.
indexing.requesteligibility. Google's Indexing API is not a general-purpose page submission tool — as of this writing, Google's own documentation limits it to two content types: pages withJobPostingstructured data, and livestream pages withBroadcastEventstructured data nested insideVideoObject. Before submitting, the server fetches the target URL and checks its JSON-LD for one of those two types; if neither is present (or the page can't be fetched), it returns an error explaining why the URL is ineligible instead of calling the Indexing API. A successful submission is only an acknowledgment that Google received the notification — it does not guarantee the URL will be indexed.
Once connected, ask your assistant things like:
https://example.com/pricing indexed? When was it last crawled?"sc-domain:example.com ending today."Once you've deployed the server (see SETUP.md), connect it by pasting your Worker's /mcp URL into your client:
https://<your-worker>.workers.dev/mcp
/mcp URL. Leave Client ID and Client Secret blank. On first use, Claude opens a Google sign-in flow; grant the access requested by the deployment and the connector turns green./mcp URL./mcp URL.Any MCP-compatible client works — they all point at the same /mcp endpoint and share the same OAuth flow.
Self-hosting means bringing your own Google OAuth credentials and Cloudflare account. The full, copy-pasteable walkthrough is in SETUP.md — including an important note about Google's OAuth verification and the 7-day refresh-token limit while your app is unverified.
Quick shape:
git clone https://github.com/<you>/mcp-gsc.git
cd mcp-gsc
npm install
cp wrangler.example.jsonc wrangler.jsonc # then paste in your KV ids
# set GOOGLE_CLIENT_ID / GOOGLE_CLIENT_SECRET / TOKEN_ENCRYPTION_KEY as secrets
# choose GSC_ACCESS_MODE=readonly in wrangler.jsonc for a read-only deployment
npm run deploy
See SETUP.md for every step in detail.
npm install
npm test # typecheck + offline unit tests (what CI runs)
npm run dev # wrangler dev (local)
npm run test:smoke # structural smoke tests against a deployment
Contributions welcome — see CONTRIBUTING.md.
MIT © 2026 DigestSEO.
Built and maintained by Tomi Šeregi, the builder behind digestseo.com — weekly SEO digests for non-technical site owners.
Source-derived launch command. Check the maintainer’s required arguments and credentials before running:
npx -y @digestseo/mcp-gscMerge this template into ~/Library/Application Support/Claude/claude_desktop_config.json. Keep existing servers. Add any arguments, credentials, and permissions required by the maintainer; this template has not been install-tested.
{
"mcpServers": {
"io-github-akzar1el-mcp-gsc": {
"command": "npx",
"args": [
"-y",
"@digestseo/mcp-gsc"
]
}
}
}Restart Claude Desktop completely for changes to take effect. Confirm the server appears connected in the client’s tool list, then try a read-only example from its documentation.
Claude Desktop setup reference@digestseo/mcp-gscnpmGoogle Search Console works with any MCP-compatible client. Copy the config snippet from the Configuration section above and add it to the file shown for your client, then restart the application.
~/Library/Application Support/Claude/claude_desktop_config.jsonRestart Claude Desktop completely for changes to take effect.~/.cursor/mcp.jsonRestart Cursor for changes to take effect..vscode/mcp.jsonReload VS Code window for changes to take effect.~/.codeium/windsurf/mcp_config.jsonRestart Windsurf for changes to take effect..mcp.jsonSave at the project root, then start Claude Code in that project and review the MCP server approval prompt. Keep real credentials out of shared files.