
search-console-mcp
MCP server for Google Search Console, Bing Webmaster Tools & GA4. SEO data analysis for AI agents with multi-account sup
An MCP server that provides unified access to Google Search Console, Bing Webmaster Tools, and Google Analytics 4 data for AI agents and automation workflows.
About search-console-mcp
search-console-mcp is a community-built MCP server published by saurabhsharma2u that provides AI assistants with tools and capabilities via the Model Context Protocol. MCP server for Google Search Console, Bing Webmaster Tools & GA4. SEO data analysis for AI agents with multi-account sup It is categorized under other. This server exposes 12 tools that AI clients can invoke during conversations and coding sessions.
How to install
You can install search-console-mcp in your AI client of choice. Use the install panel on this page to get one-click setup for Cursor, Claude Desktop, VS Code, and other MCP-compatible clients. This server runs locally on your machine via the stdio transport.
License
search-console-mcp is released under the MIT license. This is a permissive open-source license, meaning you can freely use, modify, and distribute the software.
Tools (12)
Master tool for raw Search Console data with dimensions, filters, and aggregation support
Detect rising/falling trends for specific queries or pages
Detect statistical anomalies in daily traffic patterns
Attribute traffic drops to mobile/desktop or correlate with Google Algorithm Updates
Advanced time series analysis with rolling averages, seasonality detection, and forecasting
Search Console MCP
A Model Context Protocol (MCP) server that transforms how you interact with Google Search Console, Bing Webmaster Tools, and Google Analytics 4. Stop exporting CSVs and start asking questions.
Why use this?
β The Old, Broken Way
- Data Silos: Manually checking Google, then Bing, then GA4.
- Manual Correlation: Exporting 3 different CSVs and using VLOOKUPs to see if your #1 ranking page actually converts.
- Switching Fatigue: Logging in and out to manage multiple clients or properties.
- AI Context Limits: Uploading giant spreadsheets that hit context limits and cause model hallucinations.
β The Search Console MCP Way
- Platform Synergy: GSC + Bing + GA4 in a single context window. Stop exporting, start analyzing.
- Deterministic Intelligence: The server performs the complex SEO math (cannibalization, Z-score anomalies, striking distance) so your AI agent gets curated insights, not raw data piles.
- Cross-Platform ROI: Use the Opportunity Matrix to prioritize keywords that have high search visibility (GSC) but poor on-site engagement (GA4).
- Zero-Config Multi-Account: Connect 20+ accounts. The server automatically resolves the correct credentials for every site URL.
One Server. Three Platforms. Infinite Accounts. Actionable Intelligence.
π― Magic Prompts
Copy and paste these into your MCP client (Claude Desktop, etc.) to see the intelligence engine in action:
π The Traffic Detective
"My traffic dropped this week compared to last. Use the anomaly detection and time-series tools to find exactly when the drop started and which pages are responsible."
π― The "Striking Distance" Hunter
"Find keywords for https://example.com where I'm ranking in positions 8-15 but have at least 1,000 impressions. These are my best opportunities for a quick traffic boost."
βοΈ The Cannibalization Cleaner
"Check for keyword cannibalization. Are there any queries where two or more of my pages are competing and splitting the traffic? Suggest which one should be the primary authority."
π The SEO Opportunity Scoreboard
"Analyze my top 50 keywords for the last 90 days. Rank them by a custom 'Opportunity Score' (Impressions / Position). Give me the top 5 specific pages to focus on."
π The Executive Health Check
"Run a full SEO health check for my site. Segment the results by Brand vs. Non-Brand and give me 3 high-impact actions for the upcoming week."
β‘ The Speed vs. Ranking Correlator
"Fetch the top 5 pages by impressions. For these pages, run a PageSpeed audit. Is there any correlation between low performance scores and recently declining positions?"
π Multi-Engine Comparison
"Compare my performance between Google and Bing for the last 30 days. Which keywords are ranking better on Bing but have lower traffic on Google?"
π― Bing Opportunity Finder
"Show me keywords where I'm in the top 5 on Google but not ranking on Bing. These are my easy Bing wins."
β οΈ Google Dependency Check
"Am I too dependent on Google? Check my click share across both engines and flag any keywords where over 85% of traffic comes from Google."
π° The ROI Prioritizer (GSC + GA4)
"Run an
opportunity_matrixfor my top 20 pages. Which high-visibility pages have the lowest engagement or conversion rates? These are my conversion optimization priorities."
π Authentication (Desktop Flow)
Search Console MCP uses a Secure Desktop Flow. This provides high-security, professional grade authentication for your Google account:
- Multi-Account Support: Connect multiple Google and Bing accounts. The server automatically picks the right one for each site.
- System Keychain Primary: Tokens are stored in your OS's native credential manager (macOS Keychain, Windows Credential Manager, or Linux Secret Service).
- AES-256-GCM Hardware-Bound Encryption: Fallback storage is encrypted with AES-256-GCM using a key derived from your unique hardware machine ID. Tokens stolen from your machine cannot be decrypted on another computer.
- Silent Background Refresh: Tokens auto-refresh silently when they expire.
π Step 1 β Initiate Login
Run the following command to start the authorization process:
npx search-console-mcp setup
The CLI will:
- Briefly start a secure local server to handle the redirect.
- Open your default web browser to the Google Authorization page.
- Automatically fetch your email after authorization to label your credentials securely.
π Step 2 β Logout & Management
To wipe your credentials from both the keychain and the disk:
# Logout of the default account
npx search-console-mcp logout
# Logout of a specific account
npx search-console-mcp logout user@gmail.com
π Alternative: Service Account (Advanced)
For server-side environments or automated tasks where interactive login isn't possible, you can use a Google Cloud Service Account.
Setup:
- Create Service Account: Go to the Google Cloud Console and create a service account.
- Generate Key: Click "Keys" > "Add Key" > "Create new key" (JSON). Download this file.
- Share Access: In Google Search Console, add the service account's email address (e.g.,
account@project.iam.gserviceaccount.com) as a user with at least "Full" or "Restricted" permissions. - Configure: Point the server to your key file:
export GOOGLE_APPLICATION_CREDENTIALS="/path/to/your/key.json"
π Bing Webmaster Tools (API Key)
To access Bing data, you simply need an API Key.
Setup:
- Get Your API Key: Go to Bing Webmaster Tools Settings.
- Configure: Set the API key in your environment:
export BING_API_KEY="your-api-key-here" - IndexNow: Bing tools also support IndexNow for instant URL submission.
π Google Analytics 4 (GA4)
Connect your GA4 properties to correlate ranking data with user behavior.
Setup:
- Run Setup:
npx search-console-mcp setup --engine=ga4 - Auth Method: Choose Service Account (JSON Key). This is the recommended method for server-side integrations.
- Service Account: You must add the service account email as a user in GA4 Admin > Property Settings > Property Access Management.
- Property Selection: The tool will automatically fetch all available GA4 properties for your account and let you select one from a list. You can also enter a Property ID manually if needed.
π₯ Multi-Account Management
Manage multiple Google and Bing accounts from the CLI:
# List all connected accounts
npx search-console-mcp accounts list
# Remove an account
npx search-console-mcp accounts remove --account=marketing@company.com
# Add a site boundary to an account
npx search-console-mcp accounts add-site --account=marketing@company.com --site=example.com
When your AI agent queries a site, the server automatically resolves which account to use. Learn more β
π‘οΈ Fort Knox Security
This MCP server implements a multi-layered security architecture:
- Keychain Integration: Primarily uses the macOS Keychain, Windows Credential Manager, or libsecret (Linux) to store tokens.
- Encrypted Config: Account configuration is stored in
~/.search-console-mcp-config.encusing AES-256-GCM encryption. - Machine Fingerprinting: The encryption key is derived from your unique hardware UUID and OS user. The encrypted file is useless if moved to another machine.
- Minimalist Storage: Only the
refresh_tokenandexpiry_dateare stored. - Legacy Support: Automatically detects credentials from older versions (tokens files, environment variables).
- Strict Unix Permissions: Config files are created with
mode 600(read/write only by your user).
Tools Reference
Google Analytics
| Tool | Description |
|---|---|
analytics_query | Master tool for raw data. Supports dimensions, filters, aggregationType (byPage/byProperty), dataState (final/all), and type (web/image/news/discover). |
analytics_trends | Detect trends (rising/falling) for specific queries or pages. |
analytics_anomalies | Detect statistical anomalies in daily traffic. |
analytics_drop_attribution | [NEW] Attribute traffic drops to mobile/desktop or correlate with known Google Algorithm Updates. |
analytics_time_series | [NEW] Advanced time series with rolling averages, seasonality detection, and forecasting. |
analytics_compare_periods | Compare two date ranges (e.g., WoW, MoM). |
seo_brand_vs_nonbrand | [NEW] Analyze performance split between Brand vs Non-Brand traffic. (Supports Google & Bing). |
SEO Opportunities (Opinionated)
| Tool | Description |
|---|---|
seo_low_hanging_fruit | Find keywords ranking in pos 5-20 with high impressions. |
seo_striking_distance | [NEW] Find keywords ranking 8-15 (Quickest ROI wins). |
seo_low_ctr_opportunities | [NEW] Find top ranking queries (pos 1-10) with poor CTR. |
seo_cannibalization | [Enhanced] Detect pages competing for the same query with traffic conflict. |
seo_lost_queries | [NEW] Identify queries that lost all traffic in the last 28 days. (Supports Google & Bing). |
SEO Primitives (Atoms for Age
README truncated. View full README on GitHub.
Alternatives
Related Skills
Browse all skillsCreate professional draw.io (diagrams.net) diagrams in XML format (.drawio files) with integrated PMP/PMBOK methodologies, extensive visual asset libraries, and industry-standard professional templates. Use this skill when users ask to create flowcharts, swimlane diagrams, cross-functional flowcharts, org charts, network diagrams, UML diagrams, BPMN, project management diagrams (WBS, Gantt, PERT, RACI), risk matrices, stakeholder maps, or any other visual diagram in draw.io format. This skill includes access to custom shape libraries for icons, clipart, and professional symbols.
Presentation creation, editing, and analysis. When Claude needs to work with presentations (.pptx files) for: (1) Creating new presentations, (2) Modifying or editing content, (3) Working with layouts, (4) Adding comments or speaker notes, or any other presentation tasks
Downloads videos from YouTube and other platforms for offline viewing, editing, or archival. Handles various formats and quality options.
Comprehensive document creation, editing, and analysis with support for tracked changes, comments, formatting preservation, and text extraction. When Claude needs to work with professional documents (.docx files) for: (1) Creating new documents, (2) Modifying or editing content, (3) Working with tracked changes, (4) Adding comments, or any other document tasks
Install Codex skills into $CODEX_HOME/skills from a curated list or a GitHub repo path. Use when a user asks to list installable skills, install a curated skill, or install a skill from another repo (including private repos).
Provides comprehensive technical analysis for stocks and ETFs using RSI, MACD, Bollinger Bands, and other indicators. Activates when user requests stock analysis, technical indicators, trading signals, or market data for specific ticker symbols.