MCP server· v1.0.0

Search Console + GA4 MCP

Your Search Console and GA4 data, analysed by your AI agent.

Read-only MCP server for Google Search Console and GA4: 15 tools incl. striking-distance keywords, pages losing clicks, content decay and cannibalization.

  • Claude Code
  • Claude Desktop
  • Cursor
  • VS Code
  • Codex
  • Google Search Console
  • Google Analytics 4
  • Docker

What you get out of it

  1. 01A weekly SEO review in one prompt instead of an afternoon of exports
  2. 02A ranked list of quick wins: keywords just off page one
  3. 03Click losses explained: rankings, demand or CTR
  4. 04Refresh, merge or leave decisions for decaying and competing pages
€79

One-time purchase · incl. VAT

Overview

SEO answers without the spreadsheet

Most SEO questions are not hard, they are tedious. Which pages lost clicks this month and why? Which keywords sit on page two with real impressions? Are two of our articles competing for the same query? Answering them means exporting from Search Console, pivoting in a spreadsheet, cross-checking GA4. Every week, for every client.

Search Console + GA4 MCP lets your AI agent do that work. It connects Claude, Cursor, VS Code, Codex or any MCP client to Google Search Console and Google Analytics 4 with read-only access, and ships the analyses as ready-made tools, so the agent doesn't have to improvise them from raw rows.

15 tools, all read-only

Search Console (4): list properties; performance queries by query, page, country, device, date or search appearance with filters, all search types (web, image, video, news, Discover) and pagination; sitemaps with errors and warnings; URL Inspection for up to 20 URLs (index verdict, last crawl, Google vs. declared canonical, rich result issues).

GA4 (7): list properties; any Data API report with filters and ordering; realtime; a dimension/metric lookup incl. custom definitions; traffic by channel, landing pages and key events, each with comparison to the previous period or last year.

SEO analyses (4):

  • Striking distance: query + page pairs at average position 8–20 with real impressions, ranked by estimated extra clicks, brand terms excluded on request.
  • Pages losing clicks: period-over-period or year-over-year, with a likely cause per page (rankings, demand, CTR, lost visibility) and the queries that lost the most.
  • Content decay: pages whose clicks fell steadily over several consecutive periods from their peak, the classic refresh list.
  • Cannibalization: queries where two or more of your URLs each take a real share of impressions.

Plus 3 prompts: a weekly SEO review, a content refresh plan (refresh, merge or leave per page) and a keyword opportunities brief.

Made for agencies, fine for one site

Authenticate with a service account: add its email to each client's Search Console and GA4 property, and one server answers for all of them (pass the site or property per question). Or use an OAuth refresh token for your own Google account; a built-in auth command handles the browser sign-in.

Honest numbers

Search Console data lags about three days, so ranges end three days ago by default. Analyses page through the 25,000-row API limit and tell you when results were cut off. Estimates are labelled as estimates. CTR comes as a percentage, not a fraction the model might misread.

Private by design

The server requests only webmasters.readonly and analytics.readonly. It cannot change anything in your Google accounts. It talks to Google's APIs directly: no googleapis SDK, no proxy, no telemetry.

What you need

Node.js 20+, a Google Cloud project with three free APIs enabled, and a service account key or OAuth client. The README walks you through both, screen by screen.

Made for

  • SEO consultants and agencies reporting on many sites
  • In-house marketers who own organic traffic
  • Developers and content teams deciding what to update next

Inside the tool

Features

  • 4 SEO analyses built in

    Striking distance, pages losing clicks, content decay and cannibalization as single tool calls, not ad-hoc spreadsheets.

  • Full Search Console access

    Performance by any dimension with filters and pagination, sitemaps, and URL Inspection for up to 20 URLs per call.

  • GA4 reports with comparison

    Traffic by channel, landing pages and key events with change vs. previous period or last year, plus any custom report.

  • Service account or OAuth

    One service account for all client properties, or your own Google account via the built-in auth command.

  • Read-only scopes

    Only webmasters.readonly and analytics.readonly are requested. The server cannot modify anything.

  • Agent-friendly output

    Flat rows, CTR in percent, positions rounded, truncation flagged, clear hints for permission and API errors.

Demo

See it work

Pages losing clicks
prompt

You

Which pages lost the most organic clicks in the last 28 days vs. the 28 days before, and why?

Agent

Site clicks: 18,240 vs. 21,950 (−16.9%). The drop is concentrated on 4 pages:

1. /blog/woocommerce-speed/ −930 clicks. Position 2.8 → 6.1 for "woocommerce speed" and "woocommerce slow": a rankings drop, not demand. Worth a refresh.

2. /guides/core-web-vitals/ −410. Impressions −35%, position stable: seasonal demand, no action.

3. /tools/image-compression/ −260. Position stable, CTR 6.2% → 3.9%: likely a new SERP feature or a weaker snippet. Test a new title.

4. /blog/lazy-load-2023/ −190. No impressions at all now: check whether it was redirected or noindexed (gsc_inspect_url).

(Used seo_pages_losing_clicks with include_top_queries: 3.)

Striking-distance keywords
json

→ seo_striking_distance { "days": 28, "brand_terms": ["acme"], "limit": 2 }

{
 "range": { "start": "2026-10-29", "end": "2026-11-25" },
 "criteria": { "position": "8–20", "min_impressions": 50 },
 "found": 37,
 "opportunities": [
  { "query": "woocommerce mcp server", "page": "https://example.com/woocommerce-mcp/", "clicks": 5, "impressions": 2000, "ctr": 0.25, "position": 9.2, "est_extra_clicks": 195 },
  { "query": "pagespeed api agent", "page": "https://example.com/pagespeed/", "clicks": 2, "impressions": 300, "ctr": 0.67, "position": 14.8, "est_extra_clicks": 28 }
 ],
 "note": "est_extra_clicks = impressions × ~10% (typical CTR at position 3) − current clicks. A prioritisation aid, not a forecast."
}
Traffic by channel
json

→ ga4_traffic_by_channel { "days": 28, "compare": "previous" }

{
 "range": { "start": "2026-10-31", "end": "2026-11-27" },
 "totals": { "sessions": 24810, "key_events": 412, "sessions_change_pct": 6.4 },
 "rows": [
  { "channel": "Organic Search", "sessions": 14120, "sessions_change_pct": -4.1, "engagement_rate_pct": 61.8, "key_events": 198, "key_events_change_pct": -9.2 },
  { "channel": "Direct", "sessions": 5230, "sessions_change_pct": 12.5, "engagement_rate_pct": 55.2, "key_events": 101, "key_events_change_pct": 3.1 }
 ]
}

What's inside

The exact contents of the zip you download.

search-console-ga4-mcp.zip
  • search-console-ga4-mcp/
  • src/TypeScript source: 15 tools, 3 prompts, Google auth (JWT + refresh token), OAuth helper
  • dist/Prebuilt JavaScript, runs with node dist/index.js
  • test/Vitest unit tests with mocked Google API responses
  • README.de.mdService account and OAuth setup step by step, client configs, tool reference
  • .env.exampleEvery configuration option, documented
  • DockerfileContainer image for stdio or HTTP mode
  • LICENSE.md, CHANGELOG.mdCommercial license and version history

Install

  1. Unzip and build (a prebuilt dist/ is included):

    cd search-console-ga4-mcp && npm install && npm run build
  2. In Google Cloud Console enable Google Search Console API, Google Analytics Data API and Google Analytics Admin API, create a service account and download a JSON key.

  3. Add the service account email as a user in Search Console (Restricted) and in GA4 → Property access management (Viewer).

  4. Register the server, e.g. in Claude Code:

    claude mcp add search-console \
      -e GOOGLE_APPLICATION_CREDENTIALS=/absolute/path/to/key.json \
      -e GSC_SITE_URL=sc-domain:example.com \
      -e GA4_PROPERTY_ID=123456789 \
      -- node /absolute/path/to/search-console-ga4-mcp/dist/index.js

    Prefer your own Google account? Create a Desktop OAuth client and run node dist/index.js auth to get a refresh token. Configs for Claude Desktop, Cursor, VS Code and Codex are in the README.

  5. Ask: "Find striking-distance keywords for my site."

Requirements

  • Node.js 20 or newer (or Docker)
  • Google Cloud project with Search Console API, Analytics Data API and Analytics Admin API enabled (free)
  • A service account key or an OAuth client (Desktop app) with access to your properties
  • An MCP client such as Claude Code, Claude Desktop, Cursor, VS Code or Codex

Works with

  • Claude Code
  • Claude Desktop
  • Cursor
  • VS Code
  • Codex
  • Google Search Console
  • Google Analytics 4
  • Docker

Frequently asked

Can the server change anything in Search Console or GA4?

No. It only requests the read-only scopes webmasters.readonly and analytics.readonly and has no write tools, so it cannot submit sitemaps, change settings or delete data.

How are my Google credentials handled?

The service account key or refresh token stays in your MCP client config or environment on your machine. Access tokens are kept in memory only and never appear in tool output or logs. Traffic goes only to Google's APIs and, if you set a license key, once to provencart.com for the license check.

Service account or OAuth, which should I use?

Agencies: a service account. Add one email to every client property and a single server can answer for all of them. Freelancers or single sites: OAuth with your own account via the built-in auth command is quicker if your organisation blocks service account keys.

Why does Search Console data end three days ago?

Google finalises Search Console data with a delay of roughly two to three days, so the tools default to ending ranges three days ago to avoid comparing incomplete days. You can request fresh, not yet final data with data_state: "all".

Can I run it on a server for my team?

Yes. Besides stdio it runs as a Streamable HTTP server (--http --port) with an optional bearer token, and a Dockerfile is included. Keep it behind TLS if it leaves your machine.

How do updates and licensing work?

You get 12 months of updates from your ProvenCart library; downloaded versions keep working forever. The license covers unlimited own and client projects; reselling or redistributing the files is not allowed. Setting PROVENCART_LICENSE_KEY enables an optional check (key, product and an anonymous installation ID) that only logs a message and never blocks the server.

Can I get a refund?

It's a digital product: at checkout you agree that the download starts immediately, so the statutory right of withdrawal expires (§ 356 (5) BGB). If something doesn't work for your setup, write us via the support page and we'll help you get it running.

Changelog

  1. v1.0.0Latest

    1.0.0 – First release: 15 read-only tools (4 Search Console, 7 GA4, 4 SEO analyses), 3 prompts, service account or OAuth auth with built-in auth command, stdio + HTTP transport, Dockerfile.

MCP server

WooCommerce MCP

Run your WooCommerce store from Claude, with guard rails.

€79

MCP server

PageSpeed MCP

Core Web Vitals and Lighthouse fixes, straight into your agent.

€49
−27%

Bundle· 6 products

Developer Bundle

MCP servers, Claude Code setup and production rules for client web projects.

€279instead of €384