Registry / analytics / analytics-mcp

analytics-mcp

JSON →
library0.6.0pypypiunverified

MCP (Model Context Protocol) server for Google Analytics, enabling AI agents to query and analyze Google Analytics data directly. Current version: 0.6.0. Requires Python >=3.10. Regular releases.

pip install analytics-mcp
INSTALL
IMPORT
SIG · ANALYTICS-MCP
A
analytics-mcp
analyticspythonv0.6.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

GoogleAnalyticsMCPServer
from analytics_mcp import GoogleAnalyticsMCPServer
from analytics_mcp.server import GoogleAnalyticsMCPServer

Initialize and run the Analytics MCP server with Google service account credentials.

import os from analytics_mcp import AnalyticsMCPServer server = AnalyticsMCPServer( client_email=os.environ.get('GA_CLIENT_EMAIL'), private_key=os.environ.get('GA_PRIVATE_KEY'), property_id=os.environ.get('GA_PROPERTY_ID') ) # Start server (blocks) server.run()
Debug
Known issues
breakingVersion 0.5.0 renamed the main server class from GoogleAnalyticsMCPServer to AnalyticsMCPServer. Old imports will break.
fix
Use `from analytics_mcp import AnalyticsMCPServer` instead of `from analytics_mcp.server import GoogleAnalyticsMCPServer`.
affects: <0.5.0
deprecatedThe `run()` method accepts a `host` keyword argument that is ignored and will be removed in a future version.
fix
Do not pass `host` parameter; use the default (0.0.0.0).
affects: 0.5.0+
gotchaPrivate key must be the raw string (including newlines), not base64-encoded. Many users mistakenly encode it.
fix
Use the PEM string directly from the JSON key file. Set as environment variable with proper quoting.
affects: all
Upgrade
Version history
0.6.0latest on PyPI · released May 21, 2026
Audit
Dependencies

No dependency data recorded yet.

Agent activity
47 hits · last 30 days
node
42
OpenAI (training)
1
Resources

No resource links recorded.

analytics-mcp — pip install analytics-mcp · libregistry