How to Connect Claude Code to Google Search Console via MCP (2026)
Connect Claude Code to Google Search Console in under 2 minutes using Cogny's managed MCP server. OAuth handled for you — no GCP project, no API setup.
TL;DR
Cogny provides a managed, remote MCP server for Google Search Console with built-in OAuth. Connect Claude Code to your Search Console properties without creating a GCP project or configuring API credentials.
What you get:
- Single federated MCP server at
app.cogny.com/mcp— tools determined by connected accounts - Search performance data — queries, pages, positions, click-through rates
- Index coverage and crawl data
- Automatic token refresh and credential management
- Works with Claude Code, Claude Desktop, Cursor, Windsurf, and any MCP client
Time required: 2 minutes | Difficulty: Beginner | Prerequisites: Google Search Console property with Viewer access or higher
Why Use a Managed MCP Server?
Connecting to the Search Console API yourself requires:
- Creating a Google Cloud Platform project
- Enabling the Search Console API
- Setting up OAuth credentials
- Implementing token refresh logic
- Hosting a server for the MCP endpoint
Cogny handles all of this. Sign in with Google, select your properties, and start querying organic search data immediately.
What Can Claude Do With Search Console?
With the Search Console MCP server, Claude can:
- Query search performance by keyword, page, country, device, and date
- Track ranking positions and click-through rate changes
- Identify content opportunities from impression data
- Detect ranking drops and traffic anomalies
- Analyze index coverage issues
- Cross-reference with Google Ads data for paid vs organic analysis (when connected)
Setup in 3 Steps
Step 1: Create a Cogny Account
Go to cogny.com, sign up, and create a warehouse.
Step 2: Connect Google Search Console
In your dashboard, find Search Console under the channels list and click connect.
Sign in with your Google account and select which properties to connect.
Step 3: Add to Claude Code
In your Cogny dashboard, generate an API key. Then add the Cogny MCP server to your Claude Code config. This is the same endpoint for all Cogny integrations — the tools available are determined by which accounts you've connected.
{
"mcpServers": {
"cogny": {
"type": "http",
"url": "https://app.cogny.com/mcp",
"headers": {
"Authorization": "Bearer YOUR_API_KEY"
}
}
}
}
Done. Claude can now query your organic search data — and any other platforms you connect through Cogny.
Example Prompts
- "What are my top 20 queries by clicks this month?"
- "Show me pages with impressions over 1,000 but CTR below 2% — title optimization opportunities"
- "Which queries dropped more than 3 positions in the last week?"
- "Compare organic performance this month vs last month by page"
- "Find queries where I rank on page 2 (positions 11-20) — quick win opportunities"
- "What's the trend in total organic clicks over the last 6 months?"
Works With Any MCP Client
- Claude Code (CLI) / Claude Desktop (Mac/Windows)
- Cursor / Windsurf / Continue
- Any custom client built with the MCP SDK
Standard HTTP+SSE transport.
Security
- Read-only access — Claude cannot modify your Search Console settings
- OAuth tokens encrypted in Supabase Vault
- Automatic token refresh before expiry
- Signed URLs with HMAC-SHA256 (5-minute expiry)
- Revoke access anytime from Cogny or Google account settings
Compared to Self-Hosted
| Feature | Cogny Managed | Self-Hosted |
|---|---|---|
| Setup time | 2 minutes | 30+ minutes |
| GCP project | Not needed | Required |
| API enablement | Automatic | Manual |
| Token refresh | Automatic | You build |
| Server hosting | Managed | You host |
Common Questions
Q: Do I need a Google Cloud project? No. Cogny's managed server handles API access.
Q: How far back does data go? Search Console provides up to 16 months of historical data through the API.
Q: Can I query multiple properties? Yes. Connect all properties through Cogny — accessible via one MCP endpoint.
Q: Does this include index coverage data? Yes. Both search performance and index coverage data are available.
Next Steps
- Connect GA4 via MCP — combine organic search + on-site behavior
- Connect Google Ads via MCP — paid vs organic analysis
- SEO Performance Signals — SEO optimization strategies
- GEO & Search Visibility — generative engine optimization
About Cogny MCP Servers
Cogny provides managed, remote MCP servers for 12+ marketing and business platforms with built-in OAuth, token management, and enterprise-grade security.
Last Updated: April 2026
Try Cogny free
Connect your marketing platforms to Claude Code in under 2 minutes. No credit card required.