Skip to content
Agent Search Engine.

Record · google-analyMCP serverOpen sourceVerified Sep 23, 2026

Google Analytics MCP Server

Google's experimental MCP server for querying Google Analytics accounts, reports and realtime data.

Sources and review

Checked against public documentation on . Suitability guidance is our editorial judgment; this is not a performance benchmark or an endorsement.

Best for

Asking questions of GA4 data from Gemini CLI, Claude Code or another MCP client.

Avoid if

You need a supported product; Google labels the server experimental.

About Google Analytics MCP Server

This experimental local MCP server from Google Analytics uses the Admin and Data APIs to give LLMs tools for account and property details, Google Ads links, core and funnel reports, custom dimensions and metrics, and realtime reports. It authenticates with Google Cloud application default credentials.

Google Analytics MCP Server is an open-source project written primarily in Python, with 3.3k stars on GitHub. It was last updated in August 2026.

Add Google Analytics MCP Server to your MCP client

Generated from the launch command in the project's README. Your client starts the server on demand. Replace <project-id> with your own value first.

Claude CodeRun in your terminal
claude mcp add google-analytics-mcp -e GOOGLE_APPLICATION_CREDENTIALS=/path/to/credentials.json -e 'GOOGLE_PROJECT_ID=<project-id>' -- pipx run analytics-mcp
Cursor~/.cursor/mcp.json or .cursor/mcp.json
{
  "mcpServers": {
    "google-analytics-mcp": {
      "command": "pipx",
      "args": ["run", "analytics-mcp"],
      "env": {
        "GOOGLE_APPLICATION_CREDENTIALS": "/path/to/credentials.json",
        "GOOGLE_PROJECT_ID": "<project-id>"
      }
    }
  }
}
VS Code.vscode/mcp.json
{
  "servers": {
    "google-analytics-mcp": {
      "type": "stdio",
      "command": "pipx",
      "args": ["run", "analytics-mcp"],
      "env": {
        "GOOGLE_APPLICATION_CREDENTIALS": "/path/to/credentials.json",
        "GOOGLE_PROJECT_ID": "<project-id>"
      }
    }
  }
}
Claude Desktopclaude_desktop_config.json
{
  "mcpServers": {
    "google-analytics-mcp": {
      "command": "pipx",
      "args": ["run", "analytics-mcp"],
      "env": {
        "GOOGLE_APPLICATION_CREDENTIALS": "/path/to/credentials.json",
        "GOOGLE_PROJECT_ID": "<project-id>"
      }
    }
  }
}
Codex~/.codex/config.toml
[mcp_servers.google-analytics-mcp]
command = "pipx"
args = ["run", "analytics-mcp"]
env = { GOOGLE_APPLICATION_CREDENTIALS = "/path/to/credentials.json", GOOGLE_PROJECT_ID = "<project-id>" }

Check the project's README for required accounts, keys and permissions before connecting. Setup guide for each client →

For agent buildersMake your product part of the discovery.Explore advertising

Google Analytics MCP Server vs. the alternatives

All 163 alternatives →
RecordStarsPricing
Google Analytics MCP ServerMCP serverthis listing3.3kOpen source
MCP Reference ServersMCP server91kOpen source
context7MCP server62kOpen source
chrome-devtools-mcpMCP server53kOpen source
Playwright MCPMCP server37kOpen source
github-mcp-serverMCP server33kOpen source

See all 163 Google Analytics MCP Server alternatives, compared →