This MCP server connects to Google Analytics 4, allowing AI agents to fetch and analyze web traffic data. It provides tools to query sessions, users, and events, and integrates with the Google Analytics Data API. Developers use it to build AI-driven analytics dashboards and automate reporting.
This MCP server connects to Google Analytics 4, allowing AI agents to fetch and analyze web traffic data. It provides tools to query sessions, users, and events, and integrates with the Google Analytics Data API. Developers use it to build AI-driven analytics dashboards and automate reporting.
npx -y mcp-server-google-analyticsAdd this configuration to your claude_desktop_config.json:
{
"mcpServers": {
"ruchernchong-mcp-server-google-analytics-github": {
"command": "npx",
"args": [
"-y",
"npx -y mcp-server-google-analytics"
]
}
}
}Restart Claude Desktop, then ask:
"What tools do you have available from google analytics?"
API Key Required
This server requires an API key from google analytics. Add it to your environment or config.
| Variable | Required | Description |
|---|---|---|
| GOOGLE_ANALYTICS_API_KEY | Yes | Your google analytics API key |
"What resources are available in google analytics?"
Claude will query available resources and return a list of what you can access.
"Show me details about [specific item] in google analytics"
Claude will fetch and display detailed information about the requested item.
"Create a new [item] in google analytics 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.