Allows querying search performance data including clicks, impressions, CTR, and position data, as well as managing sitemaps, inspecting URL indexing status, and identifying SEO opportunities like keyword cannibalization and low-CTR keywords.
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-ServerShow me my top performing keywords from the last 30 days."
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
Google Search Console MCP Server β Connect Google Search Console to Claude, Cursor, and other MCP clients.
Features
π Search Analytics β Query clicks, impressions, CTR, and position data
π SEO Opportunities β Find low-CTR keywords, detect cannibalization issues
π Reports β Weekly summaries, period comparisons
πΊοΈ Sitemaps β List, submit, and manage sitemaps
π URL Inspection β Check indexing status (requires full scope)
πΎ Caching β SQLite cache for faster repeated queries
π Secure β OAuth tokens stored in OS keychain
Quick Start
Prerequisites
1. Create Google Cloud OAuth Credentials
You need to create your own OAuth credentials in Google Cloud Console:
Go to Google Cloud Console
Create a new project or select an existing one
Enable the Google Search Console API:
Go to "APIs & Services" β "Library"
Search for "Google Search Console API"
Click "Enable"
Create OAuth credentials:
Go to "APIs & Services" β "Credentials"
Click "Create Credentials" β "OAuth client ID"
Choose "Desktop application"
Name it (e.g., "GSC-MCP")
Click "Create"
Copy the Client ID and Client Secret
Add test users (required while app is in testing mode):
Go to "APIs & Services" β "OAuth consent screen"
Scroll to "Test users" section
Click "Add users"
Add the Google account email(s) you'll use to authenticate
Click "Save"
Note: While your app's publishing status is "Testing", only test users can authenticate. You can add up to 100 test users.
2. Configure GSC-MCP
Run the init command and enter your credentials:
This will:
Prompt for your Client ID and Client Secret
Open a browser for Google authentication
Store your refresh token securely in the OS keychain
Usage
CLI Commands
MCP Client Configuration
Claude Desktop
Add to your Claude Desktop config (~/Library/Application Support/Claude/claude_desktop_config.json on macOS):
VS Code (Copilot)
Add to your VS Code MCP settings (~/.vscode/mcp.json or workspace settings):
Cursor
Add to your Cursor MCP config:
Available Tools
Search Analytics
Tool | Description |
| Query search performance data with dimensions and filters |
| Compare two time periods |
Sitemaps
Tool | Description | Scope |
| List all sitemaps | readonly |
| Get sitemap details | readonly |
| Submit a sitemap | full |
| Delete a sitemap | full |
URL Inspection
Tool | Description | Scope |
| Inspect a URL's indexing status | full |
| Inspect multiple URLs | full |
SEO Opportunities
Tool | Description |
| Find quick-win keywords (position 4-20, low CTR) |
| Detect keyword cannibalization |
| Generate weekly performance summary |
Export
Tool | Description |
| Export data as CSV |
| Export data as JSON |
Resources
The server exposes browsable resources:
gsc://sitesβ List all propertiesgsc://sites/{siteUrl}/sitemapsβ List sitemaps for a property
Scopes
GSC-MCP supports two permission levels:
Readonly (default)
Search analytics queries
List sitemaps
SEO analysis tools
Full
Everything in readonly, plus:
Submit/delete sitemaps
URL inspection
Configuration Files
GSC-MCP stores configuration in platform-specific locations:
Platform | Config Path |
macOS |
|
Linux |
|
Windows |
|
Files:
config.jsonβ OAuth client ID/secret, scope settingscache.sqliteβ Query cache and saved presets
Tokens are stored securely in the OS keychain when available.
Service Account Setup
For automated/server use, you can use a service account instead of OAuth:
Create a service account in Google Cloud Console
Download the JSON key file
Add the service account email as an owner in Google Search Console
Initialize:
API Quotas
Google Search Console API has a default quota of 1,200 queries per day. GSC-MCP includes:
Automatic retry with exponential backoff
Query caching to reduce API calls
Pagination handling for large result sets
Examples
Find Quick-Win Keywords
Weekly Report
Compare Periods
Export Data
Development
License
MIT
Contributing
Contributions are welcome! Please open an issue or PR.
Credits
Built with: