Better Google Search Console
Get SEO data from Google Search Console with the Better Search Console MCP
Run a full SEO audit on your site using Claude and your real Google Search Console data.
Connect this MCP server, get your GSC seo data, and ask Claude to find your content decay, cannibalisation, striking distance keywords, CTR problems, and growth opportunities. Claude analyses your complete dataset — not the 1,000-row sample the API normally returns — and gives you prioritised, actionable recommendations. Just like a good seo consultant.

Navigation
How to audit your site | Quick start | vs SEOgets | Tools | Custom SQL | Data retention | Development
How to Audit Your Site with Claude
Once you've installed the server (quick start below), here's how to run a proper SEO audit using conversation with Claude. Each prompt targets a specific audit area, and Claude will query your full dataset to answer.
1. Get the lay of the land
Start broad. Ask Claude to show you the dashboard, then follow up:
"Show me my search console data for the last 3 months"
"What's my overall trajectory? Are clicks and impressions trending up or down?"
2. Find your quick wins (striking distance keywords)
These are queries where you're ranking 5-20 with decent impressions — close to page one but not there yet. Small improvements here deliver outsized returns.
"Find queries where I'm ranking between position 5 and 20 with more than 500 impressions. Which pages are these on and what would it take to push them to page one?"
3. Diagnose content decay
Pages that were performing well but are now losing traffic. Catch these early before they fall further.
"Which pages have lost the most clicks compared to the previous period? Focus on pages that had at least 50 clicks before."
"For my top 5 declining pages, what queries are they losing rankings on?"
4. Fix CTR problems
High impressions with low CTR means your title tags and meta descriptions aren't compelling enough, or there's a SERP feature stealing the click.
"Show me pages with more than 10,000 impressions but CTR below 2%. What's the average position for each?"
"For these low-CTR pages, suggest better title tags based on the queries driving impressions."
5. Find cannibalisation
Multiple pages competing for the same query splits your ranking signal.
"Find queries where more than one page is ranking. Sort by total clicks so I can see which cannibalisation is actually costing me traffic."
6. Spot new opportunities
Queries that just appeared in your data — you're starting to rank for something new.
"What new queries appeared this month that I wasn't ranking for last month? Which ones have the most impressions?"
7. Analyse by device and country
"Compare my mobile vs desktop CTR for my top 20 pages. Are there pages where mobile is significantly worse?"
"Which countries am I getting impressions from but almost no clicks? Is there a localisation opportunity?"
8. Get the full audit summary
"Based on everything you can see in my search console data, give me a prioritised list of the top 5 things I should work on this month to grow organic traffic."


Claude analyses the full dataset and returns prioritised, specific recommendations:

Related MCP server: seoagent
Better Search Console vs SEOgets
This project was inspired by SEOgets, which is an excellent GSC analytics platform. If you want a polished, hosted UI with content grouping and topic clustering, check them out — they're worth the $49/month for teams that need a production dashboard.
That said, this MCP server exists because we wanted something different: an AI-native workflow where Claude directly queries your data and gives you recommendations, not just charts.
Here's an honest comparison:
Feature | Better Search Console | |
Price | Free, open source | $49/month |
Row limit | None (full pagination) | 50,000 rows |
Data storage | Local SQLite, unlimited retention | Cloud-hosted |
AI analysis | Claude queries your data directly, gives recommendations | No LLM integration |
Custom SQL | Full SQL access to raw data | No |
Content grouping | No (ask Claude to group by pattern) | Yes, one-click |
Topic clustering | No (ask Claude to cluster) | Yes, one-click |
Cannibalisation report | Yes (via SQL or ask Claude) | Yes, built-in |
Striking distance | Yes (built-in insight) | Yes, built-in |
Content decay | Yes (via SQL or ask Claude) | Yes, heatmap |
Index monitoring | No | Yes, up to 5,000 pages |
Shareable reports | No | Yes, client portal |
SEO testing | No | Yes, built-in |
Multi-user | No | Yes, unlimited users |
Hosting | Self-hosted (your machine) | Fully hosted |
Where SEOgets wins: Content grouping, topic clustering, index monitoring, shareable client portals, SEO testing, and a polished hosted UI that doesn't require any setup beyond OAuth. If you're an agency sending reports to clients, SEOgets is the better choice.
Where Better Search Console wins: No row limits (we sync everything, not 50K rows), direct AI analysis with actionable recommendations, full SQL access to raw data, completely free, and your data never leaves your machine. If you want Claude to audit your site and tell you what to fix, this is what it's built for.
They solve different problems. Use both if you want.
Quick Start
Step 1: Set Up Google Credentials
You need a Google Cloud service account with Search Console API access.
Create a Google Cloud project and enable the API
Go to the Google Cloud Console
Create a new project (or select an existing one)
Go to APIs and Services > Library
Search for Google Search Console API and click Enable
Create a service account
Go to APIs and Services > Credentials
Click Create Credentials > Service account
Give it a name (e.g.
search-console-mcp) and click Create and ContinueSkip the optional role and user access steps, click Done
Click on the service account you just created
Go to the Keys tab
Click Add Key > Create new key > JSON
Save the downloaded JSON file somewhere safe (e.g.
~/credentials/gsc-service-account.json)
For full details, see the Google Workspace credentials guide.
Grant the service account access to Search Console
Open the JSON key file and copy the
client_emailvalueGo to Google Search Console
Select a property
Go to Settings > Users and permissions > Add user
Paste the service account email and set permission to Full
Repeat for each property you want to access
Step 2: Add to Claude Desktop
Add this to your Claude Desktop config file:
Windows:
%APPDATA%\Claude\claude_desktop_config.jsonmacOS:
~/Library/Application Support/Claude/claude_desktop_config.json
{
"mcpServers": {
"better-search-console": {
"command": "npx",
"args": ["-y", "@houtini/better-search-console"],
"env": {
"GOOGLE_APPLICATION_CREDENTIALS": "/path/to/your-service-account.json"
}
}
}
}Claude Code (CLI)
claude mcp add \
-e GOOGLE_APPLICATION_CREDENTIALS=/path/to/your-service-account.json \
-s user \
better-search-console -- npx -y @houtini/better-search-consoleVerify with claude mcp get better-search-console — you should see Status: Connected.
Step 3: Start your audit
Tell Claude: "Show me my search console data"
The setup tool discovers your properties, syncs them in the background, and shows an overview. Initial sync takes 30 seconds to a few minutes depending on data volume. Then follow the audit guide above.
Environment Variables
Variable | Required | Default | Description |
| Yes | — | Path to the service account JSON key file |
| No |
| Where SQLite databases are stored |
Tools
Setup and Sync
Tool | Description |
| First-run experience. Lists properties, syncs all, returns overview |
| Sync a single property. Full pagination, no row limits |
| Sync every accessible property (up to 2 in parallel) |
| Poll sync progress. Omit job ID to see all jobs |
| Stop a running sync |
Analysis
Tool | Description |
| All properties at a glance with sparkline trends |
| Deep dive: metrics, trend chart, top queries/pages, countries, ranking distribution, new/lost queries, branded split |
| 16 pre-built analytical queries (see below) |
| Compare two date ranges across any dimension |
| Run any SELECT query against the raw data |
| Apply data retention policy (preview mode available) |
Insight Types
Insight | Description |
| Aggregate metrics with period-over-period changes |
| Highest-traffic queries |
| Highest-traffic pages |
| Queries gaining or losing clicks |
| Pages gaining or losing clicks |
| Queries ranking 5-20 with high impressions — your quick wins |
| Desktop vs mobile vs tablet |
| Traffic by country |
| Queries for a page, or pages for a query |
| Day-by-day metrics |
| Queries that appeared or disappeared |
| Branded vs non-branded traffic |
Dashboard Rendering
The interactive dashboards are built with Chart.js and Vite, bundled into self-contained HTML files using vite-plugin-singlefile, and served via the MCP ext-apps protocol as embedded iframes in Claude Desktop.
Features include metric toggles (clicks, impressions, CTR, position), period comparison with dashed overlays, regex query/page filtering, date range presets, and automatic light/dark theme. Site logos load dynamically via logo.dev.
If your MCP client doesn't support ext-apps, all tools return structured data that Claude can analyse in text.
Custom SQL
The query_gsc_data tool accepts any SELECT against the search_analytics table:
search_analytics (
date TEXT, -- YYYY-MM-DD
query TEXT,
page TEXT,
device TEXT, -- DESKTOP, MOBILE, TABLET
country TEXT, -- ISO 3166-1 alpha-3 lowercase
clicks INTEGER,
impressions INTEGER,
ctr REAL,
position REAL
)Find cannibalisation:
SELECT query, COUNT(DISTINCT page) as pages, SUM(clicks) as clicks
FROM search_analytics
WHERE date >= '2025-01-01'
GROUP BY query HAVING pages > 1
ORDER BY clicks DESC LIMIT 20Content decay detection:
SELECT page,
SUM(CASE WHEN date >= date('now', '-28 days') THEN clicks END) as recent,
SUM(CASE WHEN date BETWEEN date('now', '-56 days') AND date('now', '-29 days') THEN clicks END) as prior
FROM search_analytics
GROUP BY page HAVING prior > 10
ORDER BY (recent * 1.0 / NULLIF(prior, 0)) ASC LIMIT 20Data Retention
Large properties generate millions of rows. The retention system prunes automatically after each sync:
Recent data (last 90 days) is never touched
Target countries (US, UK, EU, AU, CA): zero-click rows kept only if 5+ impressions
Non-target countries: zero-click rows deleted entirely
Rows with clicks are never deleted
On a 9.8M row database, initial prune removed 6.3M rows (64%), reduced size from 6GB to 2.2GB, and preserved every click.
Run manually with prune_database (use preview=true to see what would be deleted first).
Development
git clone https://github.com/houtini-ai/better-search-console.git
cd better-search-console
npm install
npm run buildCommand | Description |
| Build everything (server + UI bundles) |
| TypeScript compilation only |
| Vite builds for all three UI views |
| Watch mode for server TypeScript |
| Run the compiled server |
Troubleshooting
"No Google Search Console properties found" — The service account needs to be added as a user on each property in Search Console > Settings > Users and permissions.
Sync takes a long time — Large properties with years of data can have millions of rows. Initial sync for 10M rows takes 5-10 minutes. Subsequent syncs are incremental.
ext-apps UI not rendering — The dashboards require Claude Desktop with ext-apps support. Text-based fallback responses still contain all the data.
Licence
Apache-2.0. See LICENSE for details.
Built by Houtini for the Model Context Protocol community. Inspired by the excellent SEOgets.
Available Tools
12 toolscancel_syncA
Cancel a running sync job. The job will stop gracefully after completing the current API call.
Inputs: jobId (required).
check_sync_statusA
Check the status of a background sync job. If no jobId provided, returns all active and recent jobs. Use after sync_gsc_data or sync_all_properties to monitor progress.
Inputs: jobId.
compare_periodsA
Compare two arbitrary date ranges side-by-side across any dimension (query, page, device, country). Shows absolute and percentage changes. Useful for before/after analysis, seasonal comparisons, or measuring the impact of changes. Requires synced data — run setup first if needed.
Inputs: siteUrl (required), period1Start (required), period1End (required), period2Start (required), +4 more.
get_dashboardSearch Console DashboardA
Drill into a single property. Shows an interactive dashboard with hero metrics, trend chart, top queries, top pages, country breakdown, ranking distribution, new/lost queries, and branded split. Use the siteUrl from get_overview results. Requires synced data — run setup first if needed.
Inputs: siteUrl (required), dateRange, comparisonMode, matchWeekdays, +1 more.
get_insightsA
Run pre-built analytical queries against synced GSC data. Choose from 16 insight types: summary, top_queries, top_pages, growing_queries, declining_queries, growing_pages, declining_pages, opportunities (queries ranking 5-20 with high impressions — your quick wins), device_breakdown, country_breakdown, page_queries, query_pages, daily_trend, new_queries, lost_queries, branded_split. Requires synced data — run setup first if needed.
Inputs: siteUrl (required), insight (required), dateRange, pageFilter, +7 more.
get_overviewAll Properties OverviewA
See all your sites at a glance. Shows an interactive grid of every synced GSC property with clicks, impressions, CTR, position, percentage changes, and sparkline trends. Click any property card to open its full dashboard. If no data appears, run setup first to sync your properties.
Inputs: dateRange, sortBy, search.
list_propertiesA
List all Google Search Console properties accessible via the service account, with permission level and local sync status. Usually not needed — setup handles this automatically.
Inputs: no named parameters.
prune_databaseA
Apply data retention policy to a synced property database. Removes low-value rows (zero clicks, low impressions) from older data while preserving all recent data and actionable historical data. Runs VACUUM afterwards to reclaim disk space. This runs automatically after each sync, but you can also trigger it manually. Use preview_prune first to see what would be deleted.
Inputs: siteUrl (required), recentDays, targetMinImpressions, preview.
query_gsc_dataA
Run a read-only SQL query against a synced GSC property database. Supports any SELECT query. INSERT/UPDATE/DELETE/DROP/ALTER/CREATE are blocked. The table is "search_analytics" with columns: date, query, page, device, country, clicks, impressions, ctr, position. Requires synced data — run setup first if needed.
Inputs: siteUrl (required), sql (required), params.
setupSetup — First RunA
First time? Start here. Connects to Google Search Console, syncs all your properties (fetches up to 3 months of data), and shows a visual overview of every site. Takes a few minutes depending on how many properties you have. After setup, use get_overview to see all sites at a glance, or get_dashboard to drill into one.
Inputs: no named parameters.
sync_all_propertiesSync All PropertiesA
Sync search analytics data for ALL accessible GSC properties in one call. Syncs up to 2 properties in parallel for faster completion. Returns immediately with a job ID — use check_sync_status to monitor progress.
Inputs: startDate, endDate, dimensions, searchType.
sync_gsc_dataSync Property DataA
Fetch Google Search Console search analytics data into a local SQLite database. Supports full pagination to capture ALL rows (no 1,000-row limit). Default date range is 3 months. Pass explicit startDate for longer ranges (up to 16 months). Returns immediately with a job ID — use check_sync_status to monitor progress.
Inputs: siteUrl (required), startDate, endDate, dimensions, +1 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 12 tools
Most tools have distinct purposes, such as setup for initial configuration, sync_gsc_data for data fetching, and get_insights for analysis. However, there is some overlap between sync_gsc_data and sync_all_properties, as both handle data syncing but differ in scope (single vs. all properties), which could cause minor confusion for agents. Overall, descriptions help clarify differences, but the redundancy in syncing tools slightly reduces clarity.
Tool names consistently follow a verb_noun pattern, such as cancel_sync, check_sync_status, compare_periods, and get_dashboard. All tools use snake_case without deviations, making the naming predictable and easy to parse. This uniformity enhances agent usability and reduces cognitive load when selecting tools.
With 12 tools, the server is well-scoped for managing Google Search Console data, covering setup, syncing, monitoring, analysis, and maintenance. Each tool serves a specific function, such as data retrieval (sync_gsc_data), insights (get_insights), and cleanup (prune_database), ensuring comprehensive coverage without bloat. The count aligns well with the domain's complexity.
The tool set provides complete coverage for the Google Search Console domain, including initial setup (setup), data syncing (sync_gsc_data, sync_all_properties), monitoring (check_sync_status, cancel_sync), analysis (get_insights, compare_periods, query_gsc_data), visualization (get_overview, get_dashboard), and maintenance (prune_database, list_properties). There are no obvious gaps, supporting full CRUD-like workflows from data ingestion to insights.
Maintenance
Related MCP Connectors
Query your SEO data in plain language: rankings, audits, backlinks, competitors and AI visibility.
SEO audits, Search Console, GA4, keyword and backlink data for Claude, ChatGPT and Cursor.
AI SEO agent on your Google Search Console data: audits, quick wins, content, WordPress publishing.
Search Console, Google Analytics and keyword data for your AI agent.
Related MCP Servers
- AlicenseAqualityFmaintenanceA comprehensive website crawler and SEO analyzer that stores site data in a local SQLite database for AI-driven auditing. It enables users to detect technical SEO issues, broken links, and security vulnerabilities through natural language queries or terminal commands.4165 npm16Apache 2.0
- AlicenseNot gradedqualityDmaintenanceAgent-first SEO toolkit with 24 MCP tools for keyword research, rank tracking, site audits up to 50k pages, competitor analysis, content gap detection, domain reputation, backlink intelligence, Google Search Console integration, and AI-powered strategy generation with Claude, GPT, and Ollama. SQLite-backed and bring-your-own-key.MIT
- AlicenseNot gradedqualityCmaintenanceSyncs Google Search Console performance data into a local ClickHouse database and exposes prepared SEO analysis tools to AI agents. Enables diagnosing traffic drops, finding striking-distance keywords, detecting cannibalization, auditing indexing, and generating weekly SEO reports through natural language.MIT
- AlicenseAqualityBmaintenanceGoogle Search Console for Claude and other MCP clients. Sign in with Google in one click, then ask about clicks, queries, rankings and indexing, export every GSC report as CSV (beyond the 1,000-row UI limit), inspect URLs, submit sitemaps and verify sites. Includes a local SEO dashboard. Free, open source, runs on your computer.1879 npm2MIT