GA4 SEO MCP logo

GA4 SEO MCP

Audits and configures GA4, Search Console, and PageSpeed measurement through read-only tools with optional guarded writes.

Install GA4 SEO MCP

Pick your client, then add it in one click or paste the config.

STDIOPython
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "ga4-seo-mcp": {
      "command": "uvx",
      "args": [
        "ga4-seo-mcp"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Claude Code command
claude mcp add --transport stdio ga4-seo-mcp -- uvx ga4-seo-mcp

Run in your terminal. Add --scope project to share it with your team through .mcp.json.

We couldn’t confirm it starts correctly

We hit an unexpected error while testing this listing automatically.

uvx ga4-seo-mcp

Rate limit exceeded, please try again later - you have reached the maximum number of concurrent E2B sandboxes (20). If you need more, please visit 'https://e2b.dev/docs/billing'

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

GA4 SEO MCP connects AI agents to Google Analytics 4, Search Console, PageSpeed Insights, and optional keyword research services. It provides reporting, SEO audits, site measurement planning, and an idempotent bootstrap flow for GA4 properties, web streams, key events, custom dimensions, and Search Console setup. Read-only operation is the default; write tools are only registered when explicitly enabled. Reach for it when launching a site, auditing measurement, reviewing SEO data, or establishing a PageSpeed baseline.

Use cases

  • Audit GA4 configuration and recent site traffic
  • Plan and apply measurement for a newly launched site
  • Review Search Console queries, pages, and sitemaps
  • Run PageSpeed and Core Web Vitals checks
  • Research keywords with optional Google services

Key features

  • GA4 administration and reporting
  • Search Console queries, sitemaps, and verification
  • PageSpeed Lighthouse and CrUX audits
  • Read-only defaults with explicit write enablement
  • Idempotent site measurement bootstrap
  • Optional keyword research toolsets

Tools24

What GA4 SEO MCP lets your agent do. Expand a tool for its parameters.

Verified live~3.6k tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

11/11 checks healthy over the last 45d

What it can do

From the 24 tools this server returned when we ran it; 24 declare their own safety hints.

Runs commands · 1Handles credentials · 1Makes network requests · 24Read-only tools · 23
Network at startup2 connections
Files written at startup30

Observed 2026-11-01 in an isolated sandbox. A description of reach, not a security audit.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 12d ago via OSV.dev · ga4-seo-mcp (PyPI)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars1Stargazers on the source repository.
Last commit29d agoMost recent push to the default branch.
Install checkInconclusiveWe hit an unexpected error running the automated check.
Tools exposed24Callable tools this server registers over MCP.

How GA4 SEO MCP works

What GA4 SEO MCP does

GA4 SEO MCP gives AI agents access to Google Analytics 4 administration and reporting, Google Search Console, and PageSpeed Insights. Its scope covers both ongoing analysis and the initial setup work required to measure a site. Agents can inspect GA4 accounts and properties, query traffic and event data, review Search Console performance, examine sitemaps, and run PageSpeed and CrUX checks.

The server also includes an end-to-end measurement workflow. bootstrap_site_measurement can find existing resources for a domain and produce a plan covering a GA4 property, web stream, key events, custom dimensions, and a Search Console domain property. Optional follow-up operations handle DNS verification and sitemap submission. Keyword research is available through DataForSEO and, with an extra package, Google Ads Keyword Planner.

How it works

The server runs in Python and supports both stdio and Streamable HTTP MCP transports. The documented runtime requirement is Python 3.11 or newer. Clients launch it through uvx; the quick-start flow uses uvx ga4-seo-mcp after installing uv 0.13.4 or newer.

Toolsets control which functions are registered and which Google scopes are requested. The default groups are admin, data, gsc, and psi. Additional groups enable DataForSEO or Google Ads keyword research. The server can expose 24 tools with the defaults, 37 when writes are enabled, or 41 when every toolset is active with writes.

bootstrap_site_measurement is planning-only by default. With apply=False, it identifies existing resources and reports proposed creations without changing anything. With apply=True, it executes the plan only when write mode is enabled, skips resources that already exist, and returns a report containing the GA4 measurement ID and DNS TXT token. DNS publication remains a human-controlled step before verification and sitemap submission.

Setup and configuration

Authenticate Google access with Application Default Credentials using a custom OAuth client or a service account. The auth-command command prints a gcloud login command with scopes matching the selected toolsets. GA4 and Search Console access uses Google Analytics and Webmaster scopes; write operations additionally require the relevant edit, Webmaster, and site-verification scopes.

A typical setup checks credentials before connecting an MCP client:

bash
uvx ga4-seo-mcp doctor
claude mcp add ga4-seo -- uvx ga4-seo-mcp

Use --toolsets or GA4SEO_TOOLSETS to select tool groups. Enable writes with --enable-writes or GA4SEO_ENABLE_WRITES=1. PageSpeed does not require Google login, although PAGESPEED_API_KEY is recommended. DataForSEO uses DATAFORSEO_LOGIN and DATAFORSEO_PASSWORD; Google Ads keyword tools require installing the optional ads package.

Tools and capabilities

  • GA4 Admin operations for accounts, properties, web streams, key events, custom dimensions, Ads links, and measurement bootstrapping.
  • GA4 Data API reports covering realtime data, top pages, events, traffic sources, and portfolio performance.
  • Search Console queries, page data, sitemaps, domain registration, and DNS verification.
  • PageSpeed Insights Lighthouse audits and CrUX field data.
  • Optional DataForSEO keyword ideas and exact search volumes.
  • Optional Google Ads Keyword Planner volumes, with bucketed results.
  • Guided prompts for GA4 audits, SEO audits, portfolio digests, and site measurement launches.

Limitations and notes

Write-capable tools are absent from the registry unless write mode is enabled, rather than merely blocked after registration. The default bootstrap operation only plans changes. DNS verification requires publishing the returned TXT record first, and sitemap submission remains an explicit follow-up action.

DataForSEO is a paid service. Google Ads keyword research requires the optional dependency and the adwords scope. Keyword research defaults to es-MX, with an override available. PageSpeed requests can run without Google authentication, but an API key is recommended. The server is intended to use minimum scopes for the selected toolsets, so enabling fewer groups reduces the requested access.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about GA4 SEO MCP

GA4 SEO MCP is an MCP server that connects AI agents to Google Analytics 4, Search Console, and PageSpeed Insights. Its main tools provide GA4 administration and reports, Search Console queries and sitemap actions, PageSpeed audits, and an optional site-measurement bootstrap workflow with guarded writes.

Install `uv` 0.13.4 or newer, then launch the package with `uvx ga4-seo-mcp`. Authenticate Google access with Application Default Credentials, run `uvx ga4-seo-mcp doctor`, and add the stdio server to an MCP client such as Claude Code.

Yes, GA4 SEO MCP works with Cursor. It supports MCP over stdio, and the project lists Cursor among its intended clients. Configure Cursor to launch `uvx ga4-seo-mcp` after completing Google authentication and the diagnostic check.

Enable writes with `--enable-writes` or `GA4SEO_ENABLE_WRITES=1`. Without that setting, write-capable tools are not registered. The bootstrap operation still plans changes by default, while applying a plan requires write mode and the corresponding Google scopes.

GA4 and Search Console use Google Application Default Credentials, configured with a custom OAuth client or service account. The selected toolsets determine the required scopes. PageSpeed needs no Google login, while DataForSEO requires its login and password variables.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewGA4 SEO MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/ga4-seo-mcp?style=directory)](https://allmcps.com/mcp/ga4-seo-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/ga4-seo-mcp"><img src="https://allmcps.com/api/badge/ga4-seo-mcp?style=directory" alt="GA4 SEO MCP on AllMCPs" /></a>