google-search-console
Provides tools for querying search analytics (clicks, impressions, CTR, position), checking URL indexing status, and managing sitemaps (list, get details, submit, delete) in Google Search Console.
Click on "Install 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., "@google-search-consoleWhat are my top search queries this month?"
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
Connect Claude to your Google Search Console data. Query search analytics, check indexing status, and manage sitemaps through natural conversation.
Runs in 2 modes:
Remote (HTTP): a long-lived HTTP service you deploy anywhere, then add to claude.ai as a custom connector or to Claude Code as an HTTP MCP server. Works from web and cloud sessions.
Local (stdio): the classic
npx gsc-mcp-serversetup for Claude Desktop on your machine.
Breaking change in v2: the bundled shared OAuth client has been removed. Every deployment now needs its own Google Cloud credentials. See Create your Google credentials.
Available Tools
Tool | Description |
| List all your Search Console properties |
| Query clicks, impressions, CTR, and position |
| Check if a URL is indexed |
| List submitted sitemaps |
| Get sitemap details |
| Submit a new sitemap |
| Remove a sitemap |
Related MCP server: GSC MCP Server v2 - Remote Edition
1. Create your Google credentials
Pick one of the 2 options. Both require a Google Cloud project with the Search Console API enabled (console.cloud.google.com > APIs & Services > Enable APIs > Search Console API).
Option A: Service account (recommended for remote deployments)
No browser flow, no token expiry headaches.
In Google Cloud Console, go to IAM & Admin > Service Accounts > Create.
Create a JSON key for it and download the file.
In Google Search Console, open each property > Settings > Users and permissions > Add user, and add the service account's email (
something@project.iam.gserviceaccount.com). Grant "Full" for sitemap management or "Restricted" for read-only analytics.
Set GSC_READ_ONLY=true on the server if you only want the read-only Search Console scope requested.
Option B: OAuth client + refresh token
Uses your own Google account's access.
In Google Cloud Console, go to APIs & Services > Credentials > Create Credentials > OAuth client ID > Desktop app.
Note the client ID and client secret.
Get a refresh token by running the setup flow locally:
GOOGLE_CLIENT_ID=your-client-id GOOGLE_CLIENT_SECRET=your-client-secret npx gsc-mcp-server --setupA browser opens for Google sign-in. When it finishes, the terminal prints the GOOGLE_REFRESH_TOKEN value to use in your deployment.
2. Environment variables
Variable | Required | Description |
| Option A | Service account key JSON, raw or base64-encoded |
| Option A (alt) | Path to the key JSON file |
| Option B | OAuth client ID |
| Option B | OAuth client secret |
| Option B | Refresh token from |
| Strongly recommended | Shared secret MCP clients must present. Without it, anyone who can reach the server can read your GSC data |
| No | HTTP listen port, default |
| No |
|
Service account credentials take precedence if both configurations are set.
3. Remote deployment (HTTP)
Run it as a normal Node HTTP service:
npm install && npm run build
GOOGLE_SERVICE_ACCOUNT_KEY_FILE=/path/to/key.json MCP_AUTH_TOKEN=$(openssl rand -hex 24) npm startOr via npx without cloning:
npx -p gsc-mcp-server gsc-mcp-server-httpThe MCP endpoint is POST /mcp (streamable HTTP, stateless). A health check is at GET /healthz.
It works on any host that runs Node 18+: Railway, Render, Fly.io, Replit, or a VPS behind a reverse proxy. A Dockerfile is included:
docker build -t gsc-mcp-server .
docker run -p 8080:8080 -e GOOGLE_SERVICE_ACCOUNT_KEY="$(cat key.json)" -e MCP_AUTH_TOKEN=your-secret gsc-mcp-serverPut it behind HTTPS. claude.ai requires an https:// URL for custom connectors, so use your host's built-in TLS (Railway/Render/Fly/Replit all provide it) or a reverse proxy like Caddy on a VPS.
Authentication of MCP clients
If MCP_AUTH_TOKEN is set, the server accepts either:
Authorization: Bearer <token>header, orthe token as a path segment:
https://your-host/mcp/<token>(for clients that can't send custom headers, like claude.ai custom connectors)
Connect from claude.ai (custom connector)
Go to claude.ai > Settings > Connectors > Add custom connector.
Enter the URL:
https://your-host/mcp/<your MCP_AUTH_TOKEN>Save. The GSC tools become available in claude.ai chats and Claude Code web/cloud sessions.
Connect from Claude Code (CLI)
claude mcp add --transport http google-search-console https://your-host/mcp --header "Authorization: Bearer your-secret"4. Local use with Claude Desktop (stdio)
Run setup
GOOGLE_CLIENT_ID=your-client-id GOOGLE_CLIENT_SECRET=your-client-secret npx gsc-mcp-server --setupAlternatively, save the OAuth client JSON downloaded from Google Cloud Console to ~/.gsc-mcp-server/credentials.json and run npx gsc-mcp-server --setup without env vars.
Add to Claude Desktop
Open your Claude Desktop config file:
macOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%\Claude\claude_desktop_config.json
Add the server configuration:
{
"mcpServers": {
"google-search-console": {
"command": "npx",
"args": ["-y", "gsc-mcp-server"]
}
}
}Then restart Claude Desktop.
Usage
Once connected, ask Claude things like:
What you want | Example prompt |
Top search queries | "What are my top 10 search queries this month?" |
Page performance | "How is my /blog page performing in search?" |
Check indexing | "Is https://mysite.com/new-post indexed?" |
Compare periods | "Compare my search traffic this week vs last week" |
Find opportunities | "Show me queries with high impressions but low CTR" |
Manage sitemaps | "List my sitemaps" or "Submit my new sitemap" |
Troubleshooting
"Permission denied" for a site? Make sure the Google account (or service account) has access to that property in Search Console.
Server exits with "credentials required"? Set the environment variables from the table above. The server no longer ships with built-in credentials.
Need to re-authenticate locally?
Run npx gsc-mcp-server --setup again.
401 Unauthorized from the remote server?
Your client isn't presenting MCP_AUTH_TOKEN. Use the bearer header or put the token in the URL path.
Privacy
See our Privacy Policy.
License
MIT
About Me
I'm Sofian Bettayeb.
By day, I'm a martech consultant, working with billion-dollar brands. By night, I build tools like AI SEO Copilot (15k+ installs), AEO Copilot, and blueprints like Webflow SEO Checklist (1k+ downloads) to help my Webflow friends make money with SEO and AEO.
In between, I ride my bikes and play with my kids in Bern, Switzerland.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.
No tool schema history has been recorded yet.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Connectors
Turn Search Console data into SEO actions, content, publishing, indexing, and AI insights.
SEO & marketing toolkit for AI agents: GA4, Search Console, AdSense, GTM, PageSpeed, Trends.
Query your SEO data in plain language: rankings, audits, backlinks, competitors and AI visibility.
Search rankings, clicks, and indexing for your site — in chat.
Related MCP Servers
- AlicenseBqualityCmaintenanceConnects Google Search Console with Claude AI to enable SEO professionals to analyze their SEO data through natural language conversations, providing access to property information, search analytics, URL inspection, and sitemap management.1,458MIT
- AlicenseNot gradedqualityNot gradedmaintenanceConnects Claude AI to Google Search Console with OAuth 2.0 authentication, enabling users to analyze search performance, inspect URLs, manage sitemaps, and export analytics data through natural language conversations.2-
- AlicenseNot gradedqualityDmaintenanceConnects Google Search Console with Claude AI to analyze SEO data through natural language, enabling search analytics reporting, URL inspection, indexing status checks, sitemap management, and data visualization for SEO professionals.MIT
- AlicenseNot 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.13211MIT
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/sofianbettayeb/gsc-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server