mcp-search-console
Multi-account Google Search Console MCP server for operators who need one MCP surface across
multiple sites or clients without restarting the server.
Release posture: beta package, version 0.1.3 from pyproject.toml.
Choose your path
Architecture
flowchart TD
U[AI operator] --> C[MCP client]
C --> S[FastMCP server]
S --> M[Account manager]
M --> F[Accounts config]
M --> A[OAuth or service-account auth]
S --> R[Retry wrapper]
R --> G[Google Search Console API]
G --> R --> S
Request flow
flowchart TD
P[Operator asks for analytics or indexing data] --> T[Selected MCP tool]
T --> A[Resolve named or default account]
A --> B[Build authenticated GSC client]
B --> C[Call Search Console endpoint]
C --> D{API call succeeds?}
D -- yes --> E[Return normalized JSON]
D -- retryable --> F[Backoff and retry]
F --> D
D -- no --> G[Return error payload]
Quick start
- Install the package.
python -m pip install mcp-search-console-multi
- Create the accounts config.
mkdir -p ~/.config/mcp-search-console
cp accounts.example.json ~/.config/mcp-search-console/accounts.json
- Register it in your MCP client.
{
"mcpServers": {
"search-console": {
"command": "uvx",
"args": ["mcp-search-console-multi"],
"env": {
"GSC_ACCOUNTS_CONFIG": "/Users/you/.config/mcp-search-console/accounts.json"
}
}
}
}
Available tools
| Tool group | Tools | Purpose |
|---|
| Account routing | list_accounts, set_default_account, reauthenticate | Inspect accounts, switch defaults, refresh auth |
| Property inventory | list_properties, get_site_details | Discover accessible properties and permissions |
| Search analytics | get_search_analytics, get_performance_overview, compare_periods, get_advanced_search_analytics, get_search_by_page | Query search-performance data |
| Inspection and sitemaps | inspect_url, batch_inspect_urls, check_indexing_issues, list_sitemaps, get_sitemap, submit_sitemap, delete_sitemap | Inspect indexing and manage sitemap submissions |
submit_sitemap and delete_sitemap stay behind the destructive flag documented in
docs/start-here.md.
Runtime proof
Repo map
Validation
| Check | Command |
|---|
| Import compiles | python -m compileall gsc |
| Package builds | python -m build |
| README/docs links stay local | rg '\\]\\(([^)]+\\.md)\\)' README.md docs/ |
License
MIT