MCP server
Google Analytics MCP server
Google Analytics' official MCP server lets AI run GA4 reports, funnels and realtime reports and read property settings. Read-only.
- Official server
- Automation
At a glance
- Maintained by
- Google Analytics (googleanalytics GitHub org)
- Tools exposed
- 7 listed below
- Reviewed
- September 24, 2026
Why it matters
What it does and why it matters
Google Analytics holds the traffic and conversion data for most business websites, but its interface is hard for many people. The official Google Analytics MCP server lets an assistant list accounts and properties, read property details and custom definitions, list Google Ads links and run standard, funnel and realtime reports.
"Which pages brought the most leads last month" becomes a question with an answer, not a report someone has to build.
It is read-only and cannot change GA4 configuration, which makes it one of the safer servers to start with. Access follows the Google account you connect. Always check that the assistant used the right date range and metrics before sharing numbers.
Use cases
Best business use cases
Traffic questions
Funnels
Realtime
Campaign results
Tools
Available tools
Tool names as published by the maintainer at review time. Versions change, so check the repository for the current list.
Read and write: Read-only: reports and property settings; cannot change GA4 configuration.
-
get_account_summariesList your Analytics accounts and properties.
-
get_property_detailsGet details for one property.
-
list_google_ads_linksList Google Ads links for a property.
-
run_reportRun a report with the Data API.
-
run_funnel_reportRun a funnel report.
-
get_custom_dimensions_and_metricsList a property's custom dimensions and metrics.
-
run_realtime_reportRun a realtime report.
Workflows
Example workflows
Monthly marketing summary
-
1
Ask for last month's key numbers.
-
2
The assistant runs reports.
-
3
It compares with the month before.
-
4
It explains big changes.
-
5
Marketing edits and shares it.
Launch day check
-
1
During a launch, ask for realtime traffic.
-
2
The assistant runs a realtime report.
-
3
It shows top pages and sources.
-
4
It repeats every hour.
-
5
The team adjusts promotion.
Prompts
Example prompts
“Which pages brought the most form submissions last month?”
“Show the checkout funnel for the last 30 days and where people drop off.”
“How many people are on the site right now, and from where?”
Setup
Installation and configuration
Examples for Claude Desktop and Claude Code. Replace the placeholder values with your own keys, and store secrets outside version control.
Claude Desktop: claude_desktop_config.json
{
"mcpServers": {
"analytics-mcp": {
"command": "pipx",
"args": [
"run",
"analytics-mcp"
],
"env": {
"GOOGLE_APPLICATION_CREDENTIALS": "PATH_TO_CREDENTIALS_JSON",
"GOOGLE_PROJECT_ID": "YOUR_PROJECT_ID"
}
}
}
}
Claude Code: terminal
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-mcp
- Local server: PyPI: analytics-mcp (run with pipx run, stdio).
- Needs: Google Application Default Credentials with scope https://www.googleapis.com/auth/analytics.readonly, plus a Google Cloud project with the Analytics Admin and Data APIs on..
Security
Security considerations
-
Read-only
It cannot change GA4 configuration.
-
Account access
Connect an account with access to the right properties only.
-
Check the numbers
Confirm date ranges and metrics before sharing.
-
Privacy
Keep reports at aggregate level.
Related servers
Servers that pair well with it
BigQuery
Google's remote BigQuery MCP server lets AI list datasets and tables and run SQL, with a read-only query tool and IAM controls.
Google Sheets
Google's own Sheets MCP server lets AI read and update cell values and formulas, change spreadsheet structure and insert rows or columns.
HubSpot
HubSpot's official hosted MCP server lets AI search and manage CRM records, query CRM data and work with marketing emails, pages and posts.
Keep exploring
Solutions and services that use it
Related services
View all related services- MCP integration Connect AI assistants to your CRM, files, databases and tools through Model Context Protocol servers, with safe permissions.
- Dashboards and reporting Dashboards that pull numbers from the systems you already use and show what matters without a spreadsheet.
- Product scaling Keep a growing product fast and stable as users, data and features increase.
- AI-Powered Web Development Business websites, customer portals, dashboards and web applications that load fast, rank well and are easy to change.
- Automation and Integrations CRM, payment and API integrations, MCP connections and workflows that stop people copying data by hand.
- Web applications Custom browser-based software for the work your team does every day, from booking tools to operations systems.
Solutions
View all solutions- Automated reporting Reports that build themselves from your systems on schedule, with a plain-language summary of what changed.
- Feedback analysis Read every review, survey and ticket, group them by theme and sentiment, and show what customers keep asking for.
- Forecasting dashboards Forecast demand from your sales history and seasonality, and flag items to reorder before they run out.
- AI automation and integrations Connect the tools you already use so data moves once, correctly, and AI reads the parts that arrive as text or documents.
- AI sales research agent Short, sourced briefings on each prospect before a call, drafted by an AI agent from public information and your CRM.
- Scheduling and drafting automation Turn one piece of content into posts for each channel, schedule them and track results, with approval before anything goes out.
Industries
View all industries- Marketing agencies Landing pages, content workflows, client reporting and white-label development capacity for marketing agencies.
- Retail Stock forecasting, sales dashboards, feedback analysis and store tools for retailers with shops and online sales.
- Construction and facilities Job tracking, maintenance requests, inspections, quotes and proof-of-work photos for builders and facility teams.
- Manufacturing Quality inspection, production dashboards, quoting tools, knowledge assistants and legacy system modernization for manufacturers.
- Finance and accounting Client portals, document collection, invoice and receipt processing, and reporting for accounting firms and finance teams.
- Logistics and transportation Driver apps, order and shipment tracking, document processing and integrations for logistics and delivery companies.
Case studies
View all case studiesGuides and articles
View all guides and articles- How to automate reporting with AI and MCP Build reports that assemble themselves from your systems through MCP, with a written summary people can trust.
- How to connect AI to your database safely Let staff ask questions of your data in plain English without risking production systems or sensitive records.
- How to set up automated reporting Replace manual weekly and monthly reports with dashboards and summaries that update themselves.
Glossary terms
View all glossary terms- SEO SEO, or search engine optimization, is the work of making a website easy for search engines to understand and useful enough to rank for the searches your customers make.
- Machine learning Machine learning is a way of building software that learns patterns from data to make predictions or decisions, instead of following only hand-written rules.
- MCP server An MCP server is a program or hosted service that exposes a system's data and actions as tools that AI assistants can use through the Model Context Protocol.
- Zero-shot classification Zero-shot classification is sorting text or images into categories an AI model was not specifically trained on, using only the category names or descriptions.
FAQ
Questions people ask us
Have a question that is not here? Ask us directly.
Yes. It is published by the Google Analytics team.
No. It is read-only.
Yes. It can run funnel reports.