analytics-mcp
MCP server for Google Analytics
Decision gist · record as of 2026-08-14
Yes, if you use Gemini CLI, Gemini Code Assist, or Claude Code and want to query Google Analytics through natural language. The package is actively maintained, has no known vulnerabilities, uses a permissive license, and low install friction. However, it requires Google Cloud setup (enabling APIs, configuring credentials) and is not a standalone library—it only works as an MCP server within a compatible LLM client.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Google Cloud project with Google Analytics Admin API and Google Analytics Data API enabled, plus Application Default Credentials configured with analytics.readonly scope.
- Intended for use as an MCP server within Gemini CLI, Gemini Code Assist, or Claude Code—not a standalone library.
- Low install friction with a pure-Python wheel.
License · maintenance · safety
Apache-2.0 (permissive) — Licensed under Apache-2.0 (permissive), allowing free use, modification, and distribution with minimal restrictions—suitable for both commercial and open-source projects.
last release 2026-07-29 (16 days) · last repo commit 2026-08-07 · 2,953 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 98,139 downloads/mo, #13,101 on PyPI
Alternatives
Verify before relying
pip install analytics-mcp
# Then configure credentials via Application Default Credentials (ADC)
# and add to ~/.gemini/settings.json or Claude MCP config:
# {
# "mcpServers": {
# "analytics-mcp": {
# "command": "pipx",
# "args": ["run", "analytics-mcp"],
# "env": {
# "GOOGLE_APPLICATION_CREDENTIALS": "PATH_TO_CREDENTIALS_JSON",
# "GOOGLE_PROJECT_ID": "YOUR_PROJECT_ID"
# }
# }
# }
# }
# Then use in Gemini CLI or Claude Code with prompts like:
# "what are the most popular events in my Google Analytics property in the last 180 days?"- Whether the package works with Python versions beyond 3.13 (classifiers list 3.10–3.13 but requires_python only specifies >=3.10)
- Performance characteristics when running large or complex analytics queries through the MCP interface
- Whether all Google Analytics Admin and Data API features are exposed or only a subset
What it is and what it does
analytics-mcp is an MCP (Model Context Protocol) server that bridges Google Analytics APIs to large language models like Claude and Gemini. It wraps the Google Analytics Admin API and Google Analytics Data API, exposing them as tools that an LLM can call to query account summaries, property details, run standard and funnel reports, retrieve real-time data, and fetch custom dimensions and metrics.
The package is designed to run as a local server that integrates with Gemini CLI, Gemini Code Assist, or Claude Code. Once configured with Google Cloud credentials and added to your LLM client's MCP server list, it allows you to ask natural-language questions about your analytics data directly within your AI assistant—for example, asking for the most popular events in the last 180 days or details about signed-in users. It requires Python 3.10 or later and depends on google-auth, google-analytics-data, google-analytics-admin, mcp, google-adk, and httpx.
Use it for
- Ask an LLM for a summary of your Google Analytics accounts and properties without leaving your IDE or chat interface.
- Query analytics reports and funnel data through natural language prompts in Gemini or Claude.
- Retrieve real-time analytics metrics and custom dimensions/metrics for a property via LLM conversation.
- Automate analytics exploration and reporting by having an LLM analyze your GA4 data and suggest insights.
- Integrate analytics queries into AI-assisted code development workflows within Gemini Code Assist.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you use Gemini CLI, Gemini Code Assist, or Claude Code and want to query Google Analytics through natural language.
The package is actively maintained, has no known vulnerabilities, uses a permissive license, and low install friction. However, it requires Google Cloud setup (enabling APIs, configuring credentials) and is not a standalone library—it only works as an MCP server within a compatible LLM client.
Install
analytics-mcp on PyPI
Before you install
Low install friction with a pure-Python wheel. Actively maintained as of 2026-08-07 with recent releases. Requires Python 3.10 or later and depends on six Google-authored packages (google-analytics-data, google-analytics-admin, google-auth, mcp, google-adk, httpx), all standard infrastructure.
Requires Google Cloud project with Google Analytics Admin API and Google Analytics Data API enabled, plus Application Default Credentials configured with analytics.readonly scope. Intended for use as an MCP server within Gemini CLI, Gemini Code Assist, or Claude Code—not a standalone library.
License in practice
Licensed under Apache-2.0 (permissive), allowing free use, modification, and distribution with minimal restrictions—suitable for both commercial and open-source projects.
Quickstart
pip install analytics-mcp
# Then configure credentials via Application Default Credentials (ADC)
# and add to ~/.gemini/settings.json or Claude MCP config:
# {
# "mcpServers": {
# "analytics-mcp": {
# "command": "pipx",
# "args": ["run", "analytics-mcp"],
# "env": {
# "GOOGLE_APPLICATION_CREDENTIALS": "PATH_TO_CREDENTIALS_JSON",
# "GOOGLE_PROJECT_ID": "YOUR_PROJECT_ID"
# }
# }
# }
# }
# Then use in Gemini CLI or Claude Code with prompts like:
# "what are the most popular events in my Google Analytics property in the last 180 days?"
Verify before relying
- Whether the package works with Python versions beyond 3.13 (classifiers list 3.10–3.13 but requires_python only specifies >=3.10)
- Performance characteristics when running large or complex analytics queries through the MCP interface
- Whether all Google Analytics Admin and Data API features are exposed or only a subset
Package facts
| License | Apache-2.0 permissive |
| Python support | Supports the current Python release >=3.10 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 6 packagesgoogle-analytics-datagoogle-analytics-admingoogle-authmcpgoogle-adkhttpx |
| Maintenance | Actively maintained 16 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 98,139 / month, #13,101 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 4 - BetaIntended Audience :: DevelopersIntended Audience :: End Users/DesktopOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Topic :: InternetTopic :: Scientific/Engineering :: Artificial IntelligenceTopic :: Scientific/Engineering :: Information Analysis |
Evidence: analytics_mcp-0.7.0-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “google analytics mcp server”
- analytics-mcpRuns an MCP server that exposes Google Analytics Admin and Data APIs…
- workspace-mcpWorkspace MCP is an MCP server that exposes Google Workspace services…
- mcp-google-sheetsAn MCP server that bridges AI clients like Claude Desktop to Google…
Give your agent the search over MCP, or paste the wish link into any chat.
More Internet packages
Botocore provides low-level, data-driven access to Amazon Web Services APIs, serving as the foundation for the AWS CLI and boto3 libraries.
Install it if you need programmatic access to AWS services.
Provides an async client for AWS services using botocore and aiohttp, allowing you to call AWS APIs asynchronously within asyncio-based applications.
Install it if you need to call AWS services from async Python code; it is the standard way to do so.
Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.
Provides a platform-independent file locking mechanism to coordinate access to files across processes and threads.
FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.
Provides common Protocol Buffer message definitions used across Google Cloud APIs, enabling Python clients to interact with Google services.
See also notebooklm-mcp-cli · workspace-mcp · universal-analytics-python3 · astro-airflow-mcp · wikipedia-mcp · google-analytics-admin · nextcloud-mcp-server · postgres-mcp · mcp-server-odoo · secops