The Google Analytics MCP Server connects Google Analytics 4 data to AI agents and workflows, providing analysis-ready access to website traffic and user behavior data with features like schema discovery and server-side aggregation.
From the registry: An MCP server that provides [describe what your server does]

$ pip install google-analytics-mcphttps://pypi.org/project/google-analytics-mcp/Please install the `google-analytics-mcp` MCP server into my current AI client (that's you).
Required prerequisites (do these first if not already done):
- **Python 3.10+** — Python 3.10 or newer
- **Install google-analytics-mcp** — Install from PyPI Run: `pip install google-analytics-mcp` (https://pypi.org/project/google-analytics-mcp/)
- **Service account with GA4 access** — Create a GCP service account, enable Google Analytics Data API, and grant the service account Viewer access to the GA4 property (https://console.cloud.google.com/)
Canonical MCP server config (stdio transport):
- command: `ga4-mcp-server`
- args: []
- required environment variables:
- `GOOGLE_APPLICATION_CREDENTIALS`: Absolute path to the service account JSON key (example: `<your-credentials-path>/service-account-key.json`)
- `GA4_PROPERTY_ID`: Numeric GA4 property ID (example: `<your-property-id>`)
Note: Alternative invocation: `python3 -m ga4_mcp`.
Add this MCP server to my current client's config in the correct format for you. If you need secrets or credentials I haven't provided, ASK me — do not invent values or leave raw placeholders. After adding it, tell me how to verify the server is connected.GOOGLE_APPLICATION_CREDENTIALSrequiredPath to the service account JSON key for Google Analytics API access.GA4_PROPERTY_IDrequiredNumeric ID of the Google Analytics 4 property.