Connects Claude to the Google Search Console API with support for search analytics queries, URL inspection, and site listing. You get clicks, impressions, CTR, and position data filtered by query, page, device, country, or date range. URL inspection returns indexing status, mobile usability, and rich results for any URL. Multi-client support lets you map different directories to different GSC properties. Built with cockatiel for retry logic and circuit breakers on API calls. Requires a Google Cloud service account with Search Console access. Reach for this when you need to debug indexing issues, analyze search performance trends, or audit multiple properties without leaving your editor.
MCP server for Google Search Console -- search analytics, URL inspection, and site management via Claude.
npm install mcp-google-gsc
git clone https://github.com/mharnett/mcp-search-console.git
cd mcp-google-gsc
npm install
npm run build
Security: Never share your .mcp.json file or commit it to git -- it may contain API credentials. Add .mcp.json to your .gitignore.
Create a config.json in the project root (see config.example.json for the full structure):
{
"default_credentials": "/path/to/service-account-key.json",
"clients": {
"my-project": {
"site_url": "sc-domain:example.com",
"credentials": "/path/to/service-account-key.json"
}
}
}
Alternatively, set GOOGLE_APPLICATION_CREDENTIALS to the path of your service account key file. The config file takes precedence when present.
Add to your Claude Code .mcp.json:
{
"mcpServers": {
"gsc": {
"command": "node",
"args": ["/path/to/mcp-gsc/dist/index.js"]
}
}
}
Or if installed globally:
{
"mcpServers": {
"gsc": {
"command": "npx",
"args": ["mcp-google-gsc"]
}
}
}
Claude Desktop: Add to ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows).
| Tool | Description |
|---|---|
gsc_get_client_context | Detect the GSC property from your working directory based on config mapping |
gsc_list_sites | List all verified Search Console properties accessible to the service account |
gsc_search_analytics | Query search performance data (clicks, impressions, CTR, position) with dimension and filter support |
gsc_inspection | Inspect a URL for indexing status, mobile usability, and rich results |
Supports dimensions: query, page, device, country, date. Filter by any dimension with operators like equals, contains, notContains. Date range defaults to the last 28 days.
Returns index coverage, crawl status, mobile usability verdict, and rich result details for a specific URL within a property.
MIT -- see LICENSE.
Built by Mark Harnett / drak-marketing
GOOGLE_APPLICATION_CREDENTIALS*Path to service account JSON credentials file
com.mcparmory/google-search
io.github.pipeworx-io/brave-search
marcopesani/mcp-server-serper
brave/brave-search-mcp-server
com.mcparmory/google-search-console
acamolese/google-search-console-mcp