{"id":44256,"library":"analytics-mcp","title":"Analytics MCP","description":"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.","status":"active","version":"0.6.0","language":"python","source_language":"en","source_url":"https://pypi.org/project/analytics-mcp/","tags":["mcp","google-analytics","ai","llm"],"install":[{"cmd":"pip install analytics-mcp","lang":"bash","label":"Install from PyPI"}],"dependencies":[],"imports":[{"wrong":"from analytics_mcp.server import GoogleAnalyticsMCPServer","symbol":"GoogleAnalyticsMCPServer","correct":"from analytics_mcp import GoogleAnalyticsMCPServer"}],"quickstart":{"code":"import os\nfrom analytics_mcp import AnalyticsMCPServer\n\nserver = AnalyticsMCPServer(\n    client_email=os.environ.get('GA_CLIENT_EMAIL'),\n    private_key=os.environ.get('GA_PRIVATE_KEY'),\n    property_id=os.environ.get('GA_PROPERTY_ID')\n)\n\n# Start server (blocks)\nserver.run()","lang":"python","description":"Initialize and run the Analytics MCP server with Google service account credentials."},"warnings":[{"fix":"Use `from analytics_mcp import AnalyticsMCPServer` instead of `from analytics_mcp.server import GoogleAnalyticsMCPServer`.","message":"Version 0.5.0 renamed the main server class from GoogleAnalyticsMCPServer to AnalyticsMCPServer. Old imports will break.","severity":"breaking","affected_versions":"<0.5.0"},{"fix":"Do not pass `host` parameter; use the default (0.0.0.0).","message":"The `run()` method accepts a `host` keyword argument that is ignored and will be removed in a future version.","severity":"deprecated","affected_versions":"0.5.0+"},{"fix":"Use the PEM string directly from the JSON key file. Set as environment variable with proper quoting.","message":"Private key must be the raw string (including newlines), not base64-encoded. Many users mistakenly encode it.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"search_vec":"'0.6.0':24 '3.10':27 'agent':13 'ai':12,34 'analyt':1,10,19,33 'analyz':17 'context':5 'current':22 'data':20 'direct':21 'enabl':11 'googl':9,18,32 'google-analyt':31 'llm':35 'mcp':2,3,30 'model':4 'protocol':6 'python':26 'queri':15 'regular':28 'releas':29 'requir':25 'server':7 'version':23","created_at":"2026-06-07T12:49:15.074090+00:00","updated_at":"2026-06-07T12:49:15.074090+00:00","problems":{"verify_error":"Traceback (most recent call last):\n  File \"<string>\", line 1, in <module>\nImportError: cannot import name 'GoogleAnalyticsMCPServer' from 'analytics_mcp' (/tmp/tmpt71i2no9/venv/lib/python3.12/site-packages/analytics_mcp/__init__.py)"},"ecosystem":"pypi","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":null,"github":null,"docs":null,"changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["analytics","ai-ml"],"base_url":null,"auth_type":null,"provenance":{"verified_status":"import_fail","verified_at":"2026-07-03","last_verified":"2026-07-03","next_check":"2026-07-10","install_tag":null}}