Skip to main content
Glama
GA4 MCP

GA4 MCP

by tagpilot

Tag Pilot MCP servers

Free, read-only Model Context Protocol servers from Tag Pilot. No Google Cloud setup and no API key to copy: add a server, ask a question, and approve once in your browser.

Package

What it reads

Install (Claude Code)

@tagpilot/ga4-mcp

Google Analytics 4: reports, funnels, realtime, property setup, tracking-health checks

claude mcp add ga4 -- npx -y @tagpilot/ga4-mcp

@tagpilot/search-console-mcp

Google Search Console: search performance, period comparisons, SEO opportunities, URL inspection, sitemaps

claude mcp add search-console -- npx -y @tagpilot/search-console-mcp

Each package README has the install options for Claude Desktop (.mcpb), Cursor, VS Code and Gemini CLI, how connecting works and what Tag Pilot sees, the tools and troubleshooting. gemini extensions install https://github.com/tagpilot/ga4-mcp installs the GA4 server (Gemini CLI only installs from a repo root).

Repository layout

packages/mcp-core            shared, not published: device connect, PKCE, token cache, broker
                             endpoints, CLI (serve/login/logout/status), Google HTTP client
packages/ga4-mcp             @tagpilot/ga4-mcp
packages/search-console-mcp  @tagpilot/search-console-mcp
scripts/                     build (esbuild), .mcpb build and smoke test

The published packages bundle the core into dist/index.js with esbuild; the MCP SDK and zod stay npm dependencies. The .mcpb extensions are one fully bundled file each.

Related MCP server: GA4 MCP Server

Development

npm install
npm run check      # typecheck + lint + unit tests (all packages)
npm run build      # → packages/*/dist/index.js
npm run e2e        # built servers over stdio against a mock broker and mock Google
npm run mcpb       # → packages/*/tagpilot-<name>-<version>.mcpb
npm run mcpb:smoke # unpack each bundle, check its tools, run the e2e against it

Releasing

Per package, from its directory: bump the version in package.json, src/version.ts, server.json, mcpb/manifest.json and the Gemini extension (GA4: repo-root gemini-extension.json); npm test checks they match. Then:

  1. npm publish --access public from the package directory.

  2. Push a tag <package>-v<version> (ga4-mcp-v0.3.1, search-console-mcp-v0.1.0): the Publish to MCP Registry workflow publishes that package's server.json.

  3. Create a GitHub release for the tag (gh release create <tag> --generate-notes). The Release .mcpb extensions workflow builds, smoke-tests and attaches both tagpilot-ga4-mcp.mcpb and tagpilot-search-console-mcp.mcpb to every release, so the releases/latest/download/<asset> links in the READMEs, the app and the website always work, whichever package was released last. Two assets also keep gemini extensions install on the source archive: with a single asset, Gemini CLI would try to install that file as the extension.

License

Apache License 2.0. The license does not cover the Tag Pilot name or logo (see NOTICE).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      B
      maintenance
      Connects Google Analytics 4 data to Claude, Cursor and other MCP clients, enabling natural language queries of website traffic, user behavior, and analytics data with access to 200+ GA4 dimensions and metrics.
      12
      2,370 PyPI
      244
      MIT
    • A
      license
      A
      quality
      C
      maintenance
      Connects MCP clients like Claude Desktop to Google Analytics 4 Data API, enabling natural language queries for reports, top pages, traffic sources, conversions, realtime users, and period comparisons.
      7
      64 PyPI
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables querying Google Analytics 4 data using natural language through MCP clients like Claude and Cursor, supporting 200+ dimensions and metrics for traffic, user behavior, and e-commerce analysis.
      MIT
    • F
      license
      Not graded
      quality
      C
      maintenance
      Enables querying Google Analytics 4 data from Claude via a secure, read-only Cloudflare Workers MCP server with per-user OAuth sign-in, requiring no local installation.
      -