GSC MCP Server
Provides read-only access to Google Search Console data, including query performance, top pages, top queries, page-query mapping, position tracking, CTR analysis, site listing, and URL inspection.
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., "@GSC MCP ServerWhat 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.
GSC MCP Server
A Model Context Protocol server that gives Claude (and any MCP client) read-only access to your Google Search Console data. Ask Claude about your SEO performance, rankings, click-through rates, and indexing status — all from natural conversation.
What You Get
9 tools that cover the full range of GSC data analysis:
Tool | What it does |
| Flexible raw queries with full filter control — dimensions, date ranges, device, country |
| Top performing pages ranked by clicks, impressions, CTR, or position |
| Top search queries driving traffic to your site |
| "What queries does this page rank for?" |
| "Which pages rank for this query?" — cannibalization detection |
| Compare two date ranges to find ranking changes — flags significant movers |
| Quick wins: pages with high impressions but low CTR (title/meta optimization targets) |
| List all GSC properties your account can access |
| Check index status, crawl info, mobile usability, and rich results for any URL |
All tools support response_format: "markdown" | "json" and a site_url parameter for multi-site use.
Related MCP server: MCP Search Analytics Server
Example Usage
Once configured, just ask Claude things like:
"What are my top search queries this month?"
"What is alloypartners.com/blog/venture-builder ranking for?"
"Find pages with high impressions but low CTR — where can I improve titles?"
"Which of my pages rank for 'venture studio'? Is there cannibalization?"
"How have my rankings changed compared to last month?"
"Is this URL indexed by Google?"
Quick Start
1. Clone and build
git clone https://github.com/drewbeechler/gsc-mcp-server.git
cd gsc-mcp-server
npm install
npm run build2. Set up Google Cloud credentials (one-time)
You need OAuth 2.0 credentials to authenticate with the Search Console API. See Google Cloud Setup below for the full walkthrough.
3. Add to Claude
Claude Code — add to ~/.claude.json:
{
"mcpServers": {
"gsc": {
"command": "node",
"args": ["/path/to/gsc-mcp-server/dist/index.js"],
"env": {
"GSC_OAUTH_SECRETS_FILE": "/path/to/client_secrets.json",
"GSC_SITE_URL": "sc-domain:yoursite.com"
}
}
}
}Claude Desktop — add the same config to ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows).
4. Authorize
The first time a GSC tool is called, your browser will open for Google OAuth authorization. Sign in, approve, and the token is cached at ~/.gsc-mcp/token.json for all future sessions.
Google Cloud Setup
One-time setup to get OAuth credentials. Takes about 5 minutes.
Step 1: Create a Google Cloud Project
Go to Google Cloud Console
Click the project dropdown at the top → New Project
Name it something like
gsc-mcp-server→ click CreateMake sure the new project is selected
Step 2: Enable the Search Console API
Go to APIs & Services → Library
Search for "Google Search Console API"
Click on it → click Enable
Step 3: Configure OAuth Consent Screen
Go to APIs & Services → OAuth consent screen (may show as "Google Auth Platform")
Fill in App name (e.g.,
GSC MCP Server) and your emailFor Audience/User type, select External (or Internal if you're on Google Workspace)
Add your email as a test user if prompted
Complete the setup
Note: The scopes are requested at runtime by the server — you don't need to manually add them in the console.
Step 4: Create OAuth Credentials
Go to APIs & Services → Credentials (or Clients in the new Auth Platform UI)
Click + Create Credentials → OAuth client ID
Application type: Desktop app
Click Create → Download JSON
Save the file somewhere safe:
mkdir -p ~/.gsc-mcp mv ~/Downloads/client_secret_*.json ~/.gsc-mcp/client_secrets.json
Step 5: Test it
npx @modelcontextprotocol/inspector node dist/index.jsThis opens an interactive UI where you can test any tool. Try gsc_list_sites first to verify auth works.
"Unverified app" warning: If you set user type to External, you'll see this on first auth. Click Advanced → Go to GSC MCP Server (unsafe). This is normal for personal-use OAuth apps.
Environment Variables
Variable | Required | Description |
| Yes | Path to your |
| No | Default GSC property (e.g., |
You can set these in a .env file in the project root — the server loads it automatically via dotenv.
Troubleshooting
"Authentication failed (401)" — Delete ~/.gsc-mcp/token.json and restart to re-authorize.
"Site not found (404)" — Check the site_url format. Domain properties use sc-domain:example.com, URL-prefix properties use the full URL like https://example.com/.
"Access denied (403)" — Make sure your Google account has access to the Search Console property. Verify at search.google.com/search-console.
"No data returned" — GSC data lags 2-3 days. Default date ranges account for this, but if you've overridden dates to include today, that's likely the issue.
Tech Stack
TypeScript + Node.js
MCP SDK (
@modelcontextprotocol/sdk) — stdio transportGoogle APIs (
googleapis) — handles OAuth + token refresh nativelyZod — runtime input validation
License
MIT
This server cannot be installed
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- 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/drewbeechler/gsc-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server