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.
Asking questions of GA4 data from Gemini CLI, Claude Code or another MCP client.
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 listed in this index written primarily in Python, with 3.6k stars on GitHub. Its latest recorded repository push was in November 2026; that is not an ASE editorial review date.
Before connecting: access and data
This record's specific permissions have not been reviewed by ASE. Read the publisher's documentation before copying setup or connecting.
- List the accounts, files and services the enabled tools can read, change or execute. Check your actual credentials and discovered tools.
- Use narrowly scoped credentials and read-only mode where supported. Review proposed writes before approving them; a generated configuration does not apply these limits for you.
- Local launch is not local-only data processing. External services receive requests, and your client may pass tool results to its model provider. Check both destinations before sharing private data.
- Keep keys and browser session files out of shared config, repositories and screenshots. Know how to disconnect the server and separately revoke its credentials or account sessions.
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 Code
claude mcp add google-analytics-mcp -e GOOGLE_APPLICATION_CREDENTIALS=/path/to/credentials.json -e 'GOOGLE_PROJECT_ID=<project-id>' -- pipx run analytics-mcpCursor
{
"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
{
"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 Desktop
{
"mcpServers": {
"google-analytics-mcp": {
"command": "pipx",
"args": ["run", "analytics-mcp"],
"env": {
"GOOGLE_APPLICATION_CREDENTIALS": "/path/to/credentials.json",
"GOOGLE_PROJECT_ID": "<project-id>"
}
}
}
}Codex
[mcp_servers.google-analytics-mcp]
command = "pipx"
args = ["run", "analytics-mcp"]
env = { GOOGLE_APPLICATION_CREDENTIALS = "/path/to/credentials.json", GOOGLE_PROJECT_ID = "<project-id>" }