The Google Analytics MCP server provides access to GA4 data through natural language queries. It exposes 200+ dimensions and metrics for observability. It connects directly to Google Analytics 4 APIs. Developers use it to build AI agents that analyze web traffic, user behavior, and campaign performance without writing SQL or API calls.
The Google Analytics MCP server provides access to GA4 data through natural language queries. It exposes 200+ dimensions and metrics for observability. It connects directly to Google Analytics 4 APIs. Developers use it to build AI agents that analyze web traffic, user behavior, and campaign performance without writing SQL or API calls.
pip install google-analytics-mcpAdd this configuration to your claude_desktop_config.json:
{
"mcpServers": {
"surendranb-google-analytics-mcp-github": {
"command": "uvx",
"args": [
"pip install google-analytics-mcp"
]
}
}
}Restart Claude Desktop, then ask:
"What tools do you have available from google analytics mcp?"
API Key Required
This server requires an API key from google analytics mcp. Add it to your environment or config.
| Variable | Required | Description |
|---|---|---|
| GOOGLE_ANALYTICS_MCP_API_KEY | Yes | Your google analytics mcp API key |
"What resources are available in google analytics mcp?"
Claude will query available resources and return a list of what you can access.
"Show me details about [specific item] in google analytics mcp"
Claude will fetch and display detailed information about the requested item.
"Create a new [item] in google analytics mcp with [details]"
Claude will use the appropriate tool to create the resource and confirm success.
We build custom MCP integrations for B2B companies. From simple connections to complex multi-tool setups.