analytics
Google Analytics MCP Gateway for AI Agents
Expose Google Analytics tools to Claude Code, Cursor, Codex, and other MCP clients through the local KosmoKrator MCP gateway.
4 functions 4 read 0 write OAuth browser flow auth
Google Analytics MCP Gateway
Expose Google Analytics to MCP clients with `kosmokrator mcp:serve --integration=google_analytics`.
If the client has never used KosmoKrator before, install it first, then register this integration as a stdio MCP server. The gateway exposes only the selected integration in the example below.
curl -fsSL https://raw.githubusercontent.com/OpenCompanyApp/kosmokrator/main/install.sh | bash kosmokrator mcp:gateway:install --integration=google_analytics --write=deny --json {
"mcpServers": {
"kosmokrator-google_analytics": {
"type": "stdio",
"command": "kosmo",
"args": [
"mcp:serve",
"--integration=google_analytics",
"--write=deny"
]
}
}
} Serve Manually
kosmokrator mcp:serve --integration=google_analytics --write=deny MCP Tool Names
KosmoKrator exposes integration tools through the gateway with stable names:
| MCP tool | Source function | Type |
|---|---|---|
integration__google_analytics__google_analytics_list_properties | google_analytics.google_analytics_list_properties | Read read |
integration__google_analytics__google_analytics_metadata | google_analytics.google_analytics_metadata | Read read |
integration__google_analytics__google_analytics_realtime | google_analytics.google_analytics_realtime | Read read |
integration__google_analytics__google_analytics_report | google_analytics.google_analytics_report | Read read |
Write Access
Start with --write=deny for read-only MCP clients. Use --write=ask or
--write=allow only when the client and workspace are trusted.