chimpmatic/ga4-mcp
GA4 + Google Search Console MCP server for Claude, Copilot, Cursor, Codex, Gemini, and any MCP-compatible AI agent.
Platform-specific configuration:
{
"mcpServers": {
"ga4-mcp": {
"command": "npx",
"args": [
"-y",
"ga4-mcp"
]
}
}
}Add the config above to .claude/settings.json under the mcpServers key.
[](https://www.npmjs.com/package/ga4-mcp) [](https://www.npmjs.com/package/ga4-mcp) [](LICENSE)
GA4 + Google Search Console MCP server. Works with Claude, Copilot, Cursor, Codex, Gemini, and any MCP-compatible AI agent.
16 tools for Google Analytics 4, Search Console, and the Indexing API — run reports, inspect URLs, submit sitemaps, manage properties, and request indexing, all from your AI agent.
npx -y ga4-mcpOr install globally for faster startup:
npm install -g ga4-mcp
ga4-mcpAuthenticate with Google (includes all required scopes):
gcloud auth application-default login \
--scopes="https://www.googleapis.com/auth/analytics.readonly,https://www.googleapis.com/auth/analytics.edit,https://www.googleapis.com/auth/webmasters,https://www.googleapis.com/auth/indexing"Or set GOOGLE_APPLICATION_CREDENTIALS to a service account JSON key file.
{
"mcpServers": {
"ga4-analytics": {
"command": "npx",
"args": ["-y", "ga4-mcp"]
}
}
}Add to .cursor/mcp.json or equivalent:
{
"mcpServers": {
"ga4-analytics": {
"command": "npx",
"args": ["-y", "ga4-mcp"]
}
}
}{
"mcpServers": {
"ga4-analytics": {
"command": "npx",
"args": ["-y", "ga4-mcp", "--tools", "ga4,gsc"]
}
}
}ga4-mcp [options]
--tools <groups> Tool groups to enable: ga4, gsc, indexing, admin, all (default: all)
"ga4" = read-only analytics. "admin" = write/delete mega-tool.
--transport <type> Transport: stdio (default) or http (Streamable HTTP)
--port <number> HTTP port (defaultLoading reviews...