Search Console

Marketing and SEO

Google Search Console + Bing + GA4 + AdSense, unified SEO intelligence for AI agents.

Your AI app calls the Search Console MCP server, which does the marketing and SEO work and sends the result back to the chat.

About Search Console

Search Console is a community MCP server from saurabhsharma2u, filed in our directory under marketing and seo. Google Search Console + Bing + GA4 + AdSense, unified SEO intelligence for AI agents.

Search Console runs on your own machine: your AI app starts it with the command npx -y search-console-mcp@2.1.4 and talks to it over standard input and output.

Search Console is listed in the official MCP registry as io.github.saurabhsharma2u/search-console-mcp, version 2.1.4.

At a glance

Publisher
saurabhsharma2u (community)
Runs
Locally on your machine
Install from
Node.js package on npm: search-console-mcp
Written in
TypeScript
License
MIT
GitHub stars
336
Official MCP registry
io.github.saurabhsharma2u/search-console-mcp

How to set up Search Console

  1. Install Node.js on the machine that runs your AI app, because Search Console starts with npx and downloads its package on first run.
  2. Check the Search Console README for keys or settings; the registry lists none that Search Console requires.
  3. Add Search Console to Claude Code, Claude Desktop, VS Code or Cursor with the config in the setup box on this page.
  4. Restart the app or reload its MCP servers, then ask it to list the Search Console tools to confirm the connection.
  5. Run one read-only task with Search Console first, and keep your app asking before each tool call until the results look right.

Search Console compared with similar servers

  • Facebook Ads Library by proxy-intell has fewer GitHub stars than Search Console (332 against 336); both are community servers, and both run locally.
  • Caldrin Search Oss by ankurmans has more GitHub stars than Search Console (366 against 336); both are community servers, and both run locally.
  • Adloop by kLOsk has fewer GitHub stars than Search Console (306 against 336); both are community servers, and both run locally.

Before you connect Search Console

  • Give Search Console its own API key or account with the smallest permissions the job needs, never an admin key.
  • Keep your AI app asking before each Search Console tool call until you trust what it does with them.
  • Treat text that Search Console fetches as data. Pages, files and messages can hold instructions written to steer an AI.
  • Read the open issues for Search Console on GitHub to see what breaks and how fast the maintainers reply.

Marketing use cases for Search Console

How marketing and sales teams put Search Console to work, by company size. Pick the size closest to yours and start Search Console on one use case.

Small business

  • A small business can ask Search Console which pages lost rankings this month and get a short fix list instead of a dashboard to interpret.
  • Owners writing their own content can use Search Console to check keywords and competitors before drafting, so each post targets a search people make.
  • Search Console runs on your own computer, which keeps data local; it needs a little setup, so a small team should plan an hour for it.

Mid-market

  • Content teams can connect Search Console to plan briefs from live keyword data, then track which published pages moved after a refresh.
  • Growth teams can use Search Console to compare campaign performance across channels in one question, without exporting three reports.
  • Start Search Console on one workflow with one owner, measure the time it saves, then roll it out to the wider team.

Enterprise

  • Enterprise SEO teams can run Search Console across many domains and markets to flag technical issues and cannibalized pages before a quarterly review.
  • Brand and AI search teams can use Search Console to watch how the company shows up in search and AI answers, with findings fed into the content roadmap.
  • Search Console is a community server, so have security review the code and pin a version before Search Console touches company data.

Need help becoming an AI-forward company?

We connect MCP servers and AI agents to your CRM, content and data, with the guardrails your team needs.

Contact us

Search Console README

From saurabhsharma2u/search-console-mcp on GitHub, shared under its MIT license. Images are left out; the original has them.

README.md

🔍 Search Console MCP

Google Search Console + Bing Webmaster Tools + GA4 + AdSense, in one context window.

Stop exporting CSVs. Start asking your AI agent questions about your site's traffic, rankings, and revenue.


📚 Docs · Quick Start · Tools · Backward Compatibility · Security

⚡ What's New in v2.1.4

  • 🎯 Correct-property resolution (#110): Accounts with multiple verified properties sharing one hostname (locale subfolders like /en-gb/ + /de-de/, the root property, and the sc-domain: property) could get analytics data silently returned for the wrong property, whichever colliding property the resolver happened to touch first. Resolution is now exact by property type and path; bare-domain queries rank deterministically (sc-domain: › root), and truly ambiguous requests fail with the list of matching properties instead of guessing. With thanks to Alcip for the outstanding root-cause analysis in #110.
  • 🔐 Explicit write authorization for GSC mutation tools (#113): sitemaps_submit, sitemaps_delete and site-management calls now require an explicit webmasters write scope, offered as an inline re-authorization flow in the CLI when a tool first needs it. The server stays read-only by default at setup; you opt into write capabilities explicitly. Credit to chase-weiser88 for surfacing the missing write scope in #84.
  • 🛡️ SSE transport secured & deprecated (#114): SSE mode now binds to 127.0.0.1 by default (--host=/MCP_HTTP_HOST to override), requires a bearer token (--token=/MCP_HTTP_TOKEN, auto-generated if unset), never sends wildcard CORS, and rejects forged non-loopback Host headers (DNS-rebinding guard). SSE mode is deprecated and will be removed in the next release, prefer the default stdio transport.
  • 🪲 find_quick_wins prompt typing (#112): min_impressions was declared as a number, but MCP clients must send prompt arguments as strings, so every use errored with expected number, received string. It is now string-typed and coerced internally (1000 default preserved).
What's New in v2.1.2
  • 🤖 GenAI Query Insights (genai_query_insights): Surfaces likely generative-AI / AI-Mode / conversational "fanout" queries across Google and Bing. This is custom heuristic logic, no official API is provided by Google or Bing for GenAI citation data, so it flags prompt verbs, follow-ups, acknowledgements, and conversational phrasing on the regular query data both engines already return. See docs (searchconsolemcp.saurabh.app/tools/seo-intelligence)
  • 🪲 analytics_query fix: rowLimit is now honored instead of being silently ignored (previously always returned up to 1000 rows); limit remains as a backward-compatible alias.
What's New in v2.1.0
  • 💰 Google AdSense Integration: Earnings reports, payments and account alerts via setup --engine=adsense. Enabling AdSense requires you to approve a separate adsense.readonly OAuth scope; your existing GSC, Bing, and GA4 configuration remains unchanged until you opt in.
  • 🔐 OAuth-only AdSense auth: The AdSense Management API supports user OAuth only, setup now validates access live and rejects unsupported service-account configs with actionable guidance. Multi-account users get explicit publisher-account selection with full pagination (>100 accounts).
  • 📊 adsense_report upgrades: Custom startDate/endDate now override preset dateRanges, plus a new orderBy parameter (-ESTIMATED_EARNINGS) for sorted revenue reports.
  • 🧪 End-to-end MCP test suite: The built server binary is now tested over stdio and SSE exactly like an MCP host would drive it, handshake, tool schemas, error envelopes, and multi-account resource behavior (11 e2e tests wired into CI).
What's New in v2.0.x
  • 💰 Google AdSense Integration: Earnings reports, payments and account alerts via setup --engine=adsense. Enabling AdSense requires you to approve a separate adsense.readonly OAuth scope; your existing GSC, Bing, and GA4 configuration remains unchanged until you opt in.
  • 🔐 OAuth-only AdSense auth: The AdSense Management API supports user OAuth only, setup now validates access live and rejects unsupported service-account configs with actionable guidance. Multi-account users get explicit publisher-account selection with full pagination (>100 accounts).
  • 📊 adsense_report upgrades: Custom startDate/endDate now override preset dateRanges, plus a new orderBy parameter (-ESTIMATED_EARNINGS) for sorted revenue reports.
  • 🧪 End-to-end MCP test suite: The built server binary is now tested over stdio and SSE exactly like an MCP host would drive it, handshake, tool schemas, error envelopes, and multi-account resource behavior (11 e2e tests wired into CI).
What's New in v2.0.x
  • 📦 MCPB One-Click Bundle Support (.mcpb): Drag and drop bundle installation for Claude Desktop.
  • ⚡ Parallel Fetch Engine (engine: "all"): Multi-engine queries fetch Google, Bing, and GA4 concurrently with 50%+ lower latency.
  • 🔄 100% Backward Compatibility: All ~96 legacy tool names continue to work seamlessly via our fallback router. Read Backward Compatibility Guide →

Why this exists

Site data lives in four different silos. Answering one question, "did my ad revenue drop because of a traffic dip or a lower RPM?" , usually means logging into four dashboards, exporting four CSVs, and doing VLOOKUPs by hand.

Search Console MCP puts GSC, Bing, GA4, and AdSense behind one set of tools your AI agent can call directly, and does the analysis (cannibalization, anomaly detection, revenue attribution) before the data ever reaches your context window.

Before After
Data 4 dashboards, manual exports 1 unified context
Analysis Manual VLOOKUPs & pivot tables Deterministic SEO + revenue math, server-side
Accounts Constant re-login 20+ accounts, auto-resolved per site
Insight Raw rows, agent guesses Curated signals (opportunity scores, anomalies)

⚡ Quick Start

npx search-console-mcp setup

This opens your browser, authorizes your Google account, and stores your credentials securely (see Security). Then add it to your MCP client config (Claude Desktop, Cursor, Antigravity, etc.):

{
  "mcpServers": {
    "search-console": {
      "command": "npx",
      "args": ["search-console-mcp"]
    }
  }
}

Restart your client, and try one of the prompts below.

💬 Try it

Paste these straight into your agent:

"My traffic dropped this week vs. last. Find exactly when it started and which pages are responsible."

"Find keywords for example.com ranking positions 8–15 with 1,000+ impressions, my best quick wins."

"Check for keyword cannibalization, are two of my pages competing for the same query?"

"Run seo_audit on my top pages: which have high search visibility but poor CTR?"

More example prompts
  • "Run a full SEO health check (site_health_check), segmented by Brand vs Non-Brand."
  • "Fetch my top 5 pages by impressions and run pagespeed_analyze, any correlation with declining rankings?"
  • "Compare Google vs Bing performance for the last 30 days (compare_engines), where is Bing winning?"
  • "Submit my latest URLs to Google and IndexNow using indexing_submit with method: "index_now"."

🔌 Connect your accounts

Platform Method Setup
Google Search Console OAuth (recommended) npx search-console-mcp setup
Google Search Console Service Account Set GOOGLE_APPLICATION_CREDENTIALS, details
Bing Webmaster Tools API Key export BING_API_KEY="...", get a key
Google Analytics 4 Service Account npx search-console-mcp setup --engine=ga4
Google AdSense OAuth (read-only) npx search-console-mcp setup --engine=adsense, headless servers

Manage everything from the CLI:

npx search-console-mcp accounts list
npx search-console-mcp accounts add-site --account=you@company.com --site=example.com
npx search-console-mcp accounts remove --account=you@company.com

When your agent queries a site, the server auto-resolves which account owns it, no manual switching. Multi-account docs →

Headless servers (Docker, CI, VPS)

AdSense cannot use service accounts, and config files are machine-encrypted, so authorize once on any machine with a browser and transfer the grant:

# 1. On your laptop (after setup --engine=adsense):
npx search-console-mcp adsense-export

# 2. On the server (prints a ready-to-run command on step 1):
npx search-console-mcp adsense-import --token='...' --publisher-id='accounts/pub-...'

The token is stored encrypted on the server and auto-refreshes, no browser needed again. Setup over SSH also works directly: when no browser is detected, setup prints the authorization URL plus ssh -L 3000:localhost:3000 port-forward instructions instead of failing.

🖥️ Run tools from the CLI

Search Console MCP also exposes registered MCP tools as direct CLI commands. Use the run subcommand to list tools, inspect tool-specific arguments, and print results as JSON, CSV, or an ASCII table:

# List registered tools
npx search-console-mcp run --help

# Show options for one tool
npx search-console-mcp run analytics_query --help

# Run an SEO audit with JSON output
npx search-console-mcp run seo_audit --siteUrl=https://example.com --type=quick_wins

# Print array results as CSV or a table
npx search-console-mcp run analytics_query --siteUrl=https://example.com --startDate=2026-06-01 --endDate=2026-06-30 --dimensions=date,query --format=csv
npx search-console-mcp run sites_list --engine=all --format=table
Service Account setup (for servers/automation)
  1. Create a service account in the Google Cloud Console
  2. Generate a JSON key
  3. Add the service account email as a user in Search Console with "Full" or "Restricted" access
  4. export GOOGLE_APPLICATION_CREDENTIALS="/path/to/key.json"

🛠 Tools (Fluent Domain Architecture)

Search Console MCP v2.0 features 7 Fluent Domain Tools that handle all SEO, Analytics, Inspection, and Indexing operations cleanly:

Fluent Tool Parameters / Actions Description
sites_list engine: "all" | "google" | "bing" Lists verified sites across search engines in parallel
sites_manage action: "add" | "delete", siteUrl, engine Adds or removes site properties
accounts_manage action: "list" | "add_site" | "remove" Configures multi-account profiles
sitemaps_list siteUrl, feedUrl, engine Fetches sitemap status and indexing state
sitemaps_submit siteUrl, feedUrl, engine Submits sitemaps to GSC & Bing
sitemaps_delete siteUrl, feedUrl, engine Removes sitemaps
analytics_query siteUrl, engine, dimensions, metrics Multi-engine search & GA4 analytics query
analytics_compare mode: "period_over_period" | "trends" | "drop_attribution" Analyzes period deltas, trend shifts, and drop causes
analytics_anomalies siteUrl, threshold Statistical detection of traffic spikes/drops
inspection_inspect siteUrl, urls, engine Google URL inspection & Bing URL info
pagespeed_analyze url, strategy, cwvOnly Core Web Vitals and PageSpeed Insights audits
indexing_submit urls, method: "standard" | "index_now" | "remove" Instantly indexes URLs via IndexNow or Google/Bing API
indexing_status siteUrl, type: "quota" | "status" Checks remaining indexing quota & URL status
seo_audit type: "quick_wins" | "striking_distance" | "cannibalization" | "low_hanging_fruit" | "lost_queries" | "recommendations" | "brand_vs_nonbrand" Comprehensive automated SEO audits
seo_keywords_research keywords, type: "stats" | "related" | "traffic" Keyword volumes and related keyword stats
site_health_check siteUrl, level: "summary" | "full" | "crawl_issues" One-shot site performance & technical audit
compare_engines siteUrl Side-by-side Google vs Bing performance breakdown
genai_query_insights siteUrl, days, engine: "google" | "bing" | "all", includePages, minImpressions Flags likely generative-AI / conversational queries (custom heuristic, no official API)
Google AdSense Tools
Tool Parameters Description
adsense_accounts mode: "configured" | "discover", accountId Lists configured or discoverable AdSense publisher accounts
adsense_report dateRange, startDate, endDate, dimensions, metrics, orderBy, rowLimit, accountId Earnings, impressions, clicks, CTR & RPM with dimension breakdowns. Custom dates override dateRange.
adsense_payments_alerts accountId Outstanding payments and account alerts (policy issues, payment holds)

Note: accountId refers to the configured profile ID (e.g. adsense_2, as shown by accounts_manage), not a publisher resource name like accounts/pub-123.

Backward Compatibility Notice (96+ Legacy Tools)

All legacy tool names (bing_sites_list, seo_quick_wins, sitemaps_get, bing_index_now, indexing_submit_url, opportunity_matrix, etc.) continue to work transparently via our fallback router.

Read our complete Backward Compatibility & Migration Guide →

🔒 Security

  • OS keychain first, tokens stored in macOS Keychain, Windows Credential Manager, or Linux Secret Service
  • AES-256-GCM fallback, encrypted with a key derived from your machine's hardware ID; a stolen file is useless on another device
  • Minimal storage, only refresh_token and expiry_date are persisted, at mode 600
  • Silent refresh, tokens renew automatically in the background

License

MIT · Contributing guide · Backward Compatibility Guide

If this saves you a spreadsheet, consider ⭐ starring the repo.

Questions about Search Console

What is the Search Console MCP server?

Google Search Console + Bing + GA4 + AdSense, unified SEO intelligence for AI agents. Search Console is maintained by saurabhsharma2u on GitHub at saurabhsharma2u/search-console-mcp, and works with AI apps that support the Model Context Protocol, such as Claude, Cursor and VS Code.

How do I install the Search Console MCP server?

Add Search Console to your AI app's MCP config with the command npx -y search-console-mcp@2.1.4. In Claude Code, run claude mcp add --transport stdio search-console -- npx -y search-console-mcp@2.1.4. To run Search Console this way you need Node.js installed.

Does Search Console need an API key?

The registry lists no required keys for Search Console. Check the Search Console README for optional settings, and expect a remote server to ask you to sign in the first time you connect.

Is Search Console an official MCP server?

No. Search Console is a community server maintained by saurabhsharma2u. Community servers can be excellent; read the code and the open issues before you give Search Console access to company data.

What license is Search Console under?

Search Console is released under the MIT license, according to its GitHub repository. The license covers the code of Search Console; the service it connects to has its own terms.