Google Analytics MCP runs on your own machine — the client starts it, so there is no endpoint to ping. 1 398 installs a week from pypi. Last commit 1 Nov 2026.
GA4 MCP server for AI agents: schema discovery, server-side aggregation, analysis-ready defaults.
We read the source, 6 d ago · rules 995398eba69f
What this server is able to do. For an MCP server this is often the job itself — a terminal server runs commands because that is what it is for. Listed so you know what you are plugging in, not as an accusation.
or os.path.exists("/.dockerenv")):
out = subprocess.check_output(
Is this your server and something here is wrong? Tell us — corrections are free and do not require a plan.
We found places where it runs commands, builds paths or queries from values it is given. None of that is a flaw by itself — it becomes one when the code changes, and code changes quietly between releases. We re-read it on every one.
This server runs on your own machine — install it with the package manager and the client starts it for you. Package name taken from the official registry entry.
claude mcp add google-analytics-mcp -e 'GOOGLE_APPLICATION_CREDENTIALS=<GOOGLE_APPLICATION_CREDENTIALS>' -e 'GA4_PROPERTY_ID=<GA4_PROPERTY_ID>' -- uvx google-analytics-mcp
{
"mcpServers": {
"google-analytics-mcp": {
"command": "uvx",
"args": [
"google-analytics-mcp"
],
"env": {
"GA4_PROPERTY_ID": "<GA4_PROPERTY_ID>",
"GOOGLE_APPLICATION_CREDENTIALS": "<GOOGLE_APPLICATION_CREDENTIALS>"
}
}
}
}
[mcp_servers.google-analytics-mcp]
command = "uvx"
args = ["google-analytics-mcp"]
env = { GOOGLE_APPLICATION_CREDENTIALS = "<GOOGLE_APPLICATION_CREDENTIALS>", GA4_PROPERTY_ID = "<GA4_PROPERTY_ID>" }
{
"mcpServers": {
"google-analytics-mcp": {
"command": "uvx",
"args": [
"google-analytics-mcp"
],
"env": {
"GA4_PROPERTY_ID": "<GA4_PROPERTY_ID>",
"GOOGLE_APPLICATION_CREDENTIALS": "<GOOGLE_APPLICATION_CREDENTIALS>"
}
}
}
}
{
"servers": {
"google-analytics-mcp": {
"type": "stdio",
"command": "uvx",
"args": [
"google-analytics-mcp"
],
"env": {
"GA4_PROPERTY_ID": "<GA4_PROPERTY_ID>",
"GOOGLE_APPLICATION_CREDENTIALS": "<GOOGLE_APPLICATION_CREDENTIALS>"
}
}
}
}
Put your own values in place of
<GOOGLE_APPLICATION_CREDENTIALS> (Absolute path to your Google Cloud service account JSON key with GA4 property access), <GA4_PROPERTY_ID> (Numeric GA4 Property ID to query, for example 123456789).
The author’s registry entry marks them as required.
Google Search Console for AI agents: search analytics, sitemaps, URL inspection.
Read-only Google Analytics 4 MCP server for AI assistants.
Google Analytics 4 MCP server with reporting, schema discovery, and admin visibility tools
Google Tag Manager + read-only GA4 MCP server. Read-only by default, gated writes, audits.
MCP server for Google Veo AI video generation
Google Keep-style notes app with an MCP server for AI agents to read/write notes.
Google Play Console MCP Server for AI coding agents
Web data for agents. Extract web pages, crawl websites, discover URLs, and search the web.
Answers built from our own checks of this server.