Google Analytics MCP Server
The experimental official Google Analytics 4 MCP server: reports, funnels and realtime data on request
- 3,581 ★ on the repository
- Last commit
- Apache-2.0
Extended access
Why this level
- Reads analytics data using Google credentials
- Stores a path to a credentials file
Install
- Works in
Manual install
claude mcp add analytics-mcp \
--scope user \
-e "GOOGLE_APPLICATION_CREDENTIALS=PATH_TO_CREDENTIALS_JSON" \
-e "GOOGLE_PROJECT_ID=YOUR_PROJECT_ID" \
-- pipx run analytics-mcpSet up ADC first with gcloud auth application-default login
Access and checks
How we reviewExtended accessThe tool runs code or makes network calls and only reads external data.
- Reads analytics data using Google credentials
- Stores a path to a credentials file
This is third-party code. Review the repository files before installing.
What it does
The server runs locally and calls the Google Analytics Admin API and Data API with read-only scope. The agent lists accounts and properties, reads property details and linked Google Ads accounts. It runs standard, funnel and realtime reports and reads custom dimensions and metrics. You can ask about traffic and events in plain language instead of building reports by hand.
Who it is for. For marketers, analysts and product managers who track site data in GA4.
Good fit when
- You need a quick answer about traffic or events without building a report
- You need to check property configuration and custom dimensions
- You want a funnel or realtime view
Not a fit when
- Your site analytics runs on Yandex Metrica
- You need to change GA4 settings; the server is read-only
Example request
What were the most popular events in my GA4 property over the last 180 days?MCP
- Transport
- stdio
- Authentication
- OAuth
Environment variables
GOOGLE_APPLICATION_CREDENTIALSrequired, secret- Path to the ADC credentials JSON
GOOGLE_PROJECT_ID- Google Cloud project ID
Limitations
The project is marked experimental. It needs a Google Cloud project with the Analytics APIs enabled, Application Default Credentials and pipx. Google Cloud access from Russia is restricted, so VPN-free use is not guaranteed.
How to disable. Run claude mcp remove analytics-mcp or delete the analytics-mcp block from ~/.gemini/settings.json.
FAQ
Can the agent change anything in Analytics?
No, credentials use a read-only scope and the tools only read data and configuration.
Which APIs must be enabled?
The Google Analytics Admin API and Data API in your Google Cloud project.
Discussion
No questions or reviews yet.
Related
MCP serversGoogle, Meta Ads and GA4 MCP
Google + Meta Ads + GA4 MCP
Remote MCP server for Google Ads, Meta Ads and Google Analytics 4 in one connection, OAuth login without API keys
MCP server for Google Ads: analyze campaigns, metrics and keywords with GAQL queries right in the chat with an agent
Search Console MCP: Google, Bing and GA4 data for agents
Search Console MCP
An MCP server that gives an agent Google Search Console, Bing Webmaster, GA4 and AdSense data with ready SEO checks
Google Search Console MCP
Google Search Console MCP Server for SEOs
An MCP server for Google Search Console: queries and pages with clicks and positions, URL indexing checks, sitemaps and ready SEO skills
Yandex Metrika MCP
Yandex Metrika MCP Server
MCP server for Yandex Metrika reports: traffic, sources, search phrases, goals, geography, devices and content analytics
An MCP server for Google Ads, Reddit Ads and GA4: the agent reads reports and edits campaigns, and only you turn on real spend
Comparison with similar tools
Entries that share the main search query, and how they differ.
| Entry | Official | Authentication | Repository stars | Main difference |
|---|---|---|---|---|
| Google Analytics MCP Server (this entry) | yes | OAuth | 3,581 | |
| walkerOS: event collection plugin for Claude Code | yes | 347 | the walkeros plugin for Claude Code | |
| Search Console MCP: Google, Bing and GA4 data for agents | no | OAuth | 315 | an MCP server that gives an agent Google Search Console |
README in short
The README lists the server tools in groups: account info, core reports and realtime reports. Setup has three steps: pipx, enabling APIs and ADC credentials via gcloud, then wiring it into Gemini CLI or Claude Code. Sample prompts and a video walkthrough link are included. Apache-2.0 licensed.