Google Search ConsoleSAFE
Search & analytics data as infrastructure — MCP server for Google Search Console, Bing Webmaster Tools, Google Adsense and GA4, designed for AI agents and automation.
Overview
From the repository's own README, as read at the audited commit. Badges and raw HTML are left out.
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.
[](https://opensource.org/licenses/MIT) [](https://github.com/saurabhsharma2u/search-console-mcp/actions/workflows/ci.yml) [](https://github.com/saurabhsharma2u/search-console-mcp/stargazers)
[](https://github.com/saurabhsharma2u/search-console-mcp/releases/latest/download/search-console-mcp.mcpb)
📚 Docs · Quick Start · Tools · Backward Compatibility · Security
⚡ 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 →
- 🪲 `analytics_query` fix:
rowLimitis now honored instead of being silently ignored (previously always returned up to 1000 rows);limitremains as a backward-compatible alias.
What's New in v2.1.0
- 💰 Google AdSense Integration: Earnings repo
c665d2ed7d16OBSERVED · 2026-10-06Connect
Built from this server's own package name, version and transport as found in its source — not copied from anyone's documentation, so it cannot drift against a page we do not control. Replace the environment placeholders with a token scoped to the least it needs.
claude mcp add search-console-mcp --env GOOGLE_APPLICATION_CREDENTIALS=${GOOGLE_APPLICATION_CREDENTIALS} --env BING_API_KEY=${BING_API_KEY} --env PAGESPEED_API_KEY=${PAGESPEED_API_KEY} -- npx -y [email protected]Exposed tools (20)
20 read · 0 write · 0 destructive.
| Tool | Risk | Description |
|---|---|---|
coerce_tool | read | coerces |
demo | read | Demo tool |
echo | read | Echo a query |
empty_table | read | empty table |
err_obj_tool | read | returns error object |
fail_tool | read | fails |
flag_seq | read | flag sequence |
flatten_check | read | flatten check |
help_tool | read | Help tool desc |
legacy_zod | read | legacy |
non_str_err | read | non-string error |
non_text | read | non-text result |
plain_string_output | read | plain string output |
raw_fallback | read | raw fallback |
rows | read | Rows tool |
space_args | read | space args |
table_demo | read | Table demo tool |
throw_primitive | read | throws primitive |
valid_tool | read | valid tool desc |
zod_coalesce | read | coalesce |
Trust audit
SAFEgrade B · trust 89/100 Nothing in the source contradicts what it says it does. Grade A is reserved for packages that have also passed the behavioural sandbox.
| Layer | What it checks | Result |
|---|---|---|
| L0 | Provenance & inventory | PASS |
| L1 | Static analysis of the code | PASS |
| L2 | Instruction surface (what it tells the agent) | PASS |
| L3 | Class-specific surface | PASS |
| L4 | Behavioural (sandbox) | SKIPPED |
What the source does
- Filesystem
- declared (5 observation(s))
- Network
- declared (5 observation(s))
- Shell
- declared (3 observation(s))
- Dependencies
- not all pinned
- Secrets in source
- none-found
Findings (16)
.mcpbignore
import { loadConfig } from '../../common/auth/config.js';import { parseMicrosoftDate, startOfDay, endOfDay } from '../../common/utils/dates.js';import { parseMicrosoftDate, startOfDay, endOfDay } from '../../common/utils/dates.js';import { limitConcurrency } from '../../common/concurrency.js';import { resolveSiteProperty } from '../../common/auth/resolver.js';const req = http.get(`http://127.0.0.1:${PORT}${path}`, (res) => {`http://127.0.0.1:${PORT}/messages?sessionId=bogus-session`,@adobe/structured-data-validator, @clack/prompts, @google-analytics/data, @modelcontextprotocol/sdk, @napi-rs/keyring, cheerio, dotenv, googleapis
- Full access to the user’s operating system account
You are a Senior SEO Forensic Auditor. I've noticed a traffic drop. Help me find out WHY.
- Does not collect Google account passwords
By default, a connected account can access **all sites** on that credential. If you want to limit it to specific sites, add a site boundary:
To access Bing data, you simply need an API Key.
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 `ss
* **No Credential Leakage:** The server is designed to prevent leaking your service account email or project ID to the model unless explicitly required.
Gates applied: no_behavioural_pass.
c665d2ed7d16full audit observations/trust-audit/mcp-server/saurabhsharma2u__google-search-console-5.json · Report an issue / request a re-scanAudit history
Every audit this server has had. A grade with a past is a grade somebody is still checking.
| Date | Source | Verdict | Grade | Score | Change |
|---|---|---|---|---|---|
| 2026-10-06 | c665d2ed7d16 | SAFE | B | 89 | first audit |
Questions
What is the Google Search Console MCP server?
Search & analytics data as infrastructure — MCP server for Google Search Console, Bing Webmaster Tools, Google Adsense and GA4, designed for AI agents and automation.
What tools does Google Search Console expose?
20 in total: 20 read-only, 0 that write, and 0 that can delete or overwrite. Every one is listed on this page with its risk.
Is Google Search Console safe to connect to an agent?
The audit found nothing in the source that contradicts what it says it does, and graded it B (89/100). Grade A is held back for packages that have also passed a sandboxed behavioural run, which is why a clean server reads B.
What credentials does Google Search Console need?
It reads BING_API_KEY, GOOGLE_APPLICATION_CREDENTIALS, GOOGLE_CLIENT_SECRET, GOOGLE_PRIVATE_KEY and PAGESPEED_API_KEY from the environment. Give it a token scoped to the least it needs — an agent that can be talked into calling a tool can be talked into calling it with your credentials.
How does Google Search Console run?
It speaks sse and stdio, so it runs as a local process your client starts. It is published on npm as search-console-mcp at 2.1.3.
How current is this page?
The grade is for one exact copy of the source (c665d2ed7d16), read on 2026-10-06. The repository is watched and re-audited when it changes.