Google Analytics MCP
GA4 MCP server for AI agents: schema discovery, server-side aggregation, analysis-ready…
- Pricing
- Open source
- Runs
- Locally
- Version
- 2.11.7
- Listing updated
- 4 days ago
About Google Analytics MCP
Google Analytics MCP is an open-source MCP server for analytics and data. It runs locally on your machine and is started by your AI client.
GA4 MCP server for AI agents: schema discovery, server-side aggregation, analysis-ready defaults.
Install
Run in a terminal
claude mcp add google-analytics-mcp --env GOOGLE_APPLICATION_CREDENTIALS='<GOOGLE_APPLICATION_CREDENTIALS>' --env GA4_PROPERTY_ID='<GA4_PROPERTY_ID>' -- uvx google-analytics-mcpAdd to claude_desktop_config.json
{
"mcpServers": {
"google-analytics-mcp": {
"command": "uvx",
"args": [
"google-analytics-mcp"
],
"env": {
"GOOGLE_APPLICATION_CREDENTIALS": "<GOOGLE_APPLICATION_CREDENTIALS>",
"GA4_PROPERTY_ID": "<GA4_PROPERTY_ID>"
}
}
}
}Add to ~/.cursor/mcp.json
{
"mcpServers": {
"google-analytics-mcp": {
"command": "uvx",
"args": [
"google-analytics-mcp"
],
"env": {
"GOOGLE_APPLICATION_CREDENTIALS": "<GOOGLE_APPLICATION_CREDENTIALS>",
"GA4_PROPERTY_ID": "<GA4_PROPERTY_ID>"
}
}
}
}Add to .vscode/mcp.json
{
"servers": {
"google-analytics-mcp": {
"type": "stdio",
"command": "uvx",
"args": [
"google-analytics-mcp"
],
"env": {
"GOOGLE_APPLICATION_CREDENTIALS": "<GOOGLE_APPLICATION_CREDENTIALS>",
"GA4_PROPERTY_ID": "<GA4_PROPERTY_ID>"
}
}
}
}Add to ~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"google-analytics-mcp": {
"command": "uvx",
"args": [
"google-analytics-mcp"
],
"env": {
"GOOGLE_APPLICATION_CREDENTIALS": "<GOOGLE_APPLICATION_CREDENTIALS>",
"GA4_PROPERTY_ID": "<GA4_PROPERTY_ID>"
}
}
}
}Add to your client's MCP settings (most use this shape)
{
"mcpServers": {
"google-analytics-mcp": {
"command": "uvx",
"args": [
"google-analytics-mcp"
],
"env": {
"GOOGLE_APPLICATION_CREDENTIALS": "<GOOGLE_APPLICATION_CREDENTIALS>",
"GA4_PROPERTY_ID": "<GA4_PROPERTY_ID>"
}
}
}
}Configuration
GOOGLE_APPLICATION_CREDENTIALSAbsolute path to your Google Cloud service account JSON key with GA4 property access.RequiredGA4_PROPERTY_IDNumeric GA4 Property ID to query, for example 123456789.Required
Pricing
Open source
Google Analytics MCP FAQ
Is Google Analytics MCP free?
Yes. Google Analytics MCP is open source, so you can use and self-host it for free.
How do I add Google Analytics MCP to Claude Code?
Run this command in your terminal: claude mcp add google-analytics-mcp --env GOOGLE_APPLICATION_CREDENTIALS='<GOOGLE_APPLICATION_CREDENTIALS>' --env GA4_PROPERTY_ID='<GA4_PROPERTY_ID>' -- uvx google-analytics-mcp
What are the best alternatives to Google Analytics MCP?
The closest alternatives to Google Analytics MCP are Agent-Native Analytics, Google Ads + Meta Ads + SEO/GEO MCP, Tapetide - Indian Stock Market MCP, World Monitor and CompanyData.
Alternatives to Google Analytics MCP

Agent-Native Analytics
MCP serverOpen-source analytics app where an AI agent builds charts and dashboards from your data
- Remote
- Open source
- 7.7K GitHub stars
- Analytics and data

Google Ads + Meta Ads + SEO/GEO MCP
MCP serverHosted MCP connector for managing Google Ads, Meta Ads, GA4 and Search Console from chat
- 8 tools
- Remote
- Freemium
- 8.1K GitHub stars
- Marketing and SEO

Tapetide - Indian Stock Market MCP
MCP serverIndian NSE and BSE stock market data for AI assistants through 48 MCP tools
- 17 tools
- Remote
- Freemium
- 150 GitHub stars
- Finance and payments

World Monitor
MCP serverLive geopolitical intelligence dashboard with an API and MCP server for agents
- Remote
- Freemium
- Analytics and data

CompanyData
MCP serverSearch and enrich company records from official registers via the CompanyData API
- 3 tools
- Remote
- Paid
- 3 GitHub stars
- Analytics and data

ChartAnt
MCP serverRemote MCP server returning charts, maps and dashboards as hosted PNG links
- 51 tools
- Remote
- Freemium
- Design and media