# Google Analytics MCP server

> Allows AI clients to retrieve account information, run core and realtime reports, and manage property annotations or custom dimensions in Google Analytics.

- Repository: https://github.com/googleanalytics/google-analytics-mcp
- Page: https://hostedmcp.org/servers/googleanalytics/google-analytics-mcp
- Official: yes
- Transport: —
- Stars: 3778
- License: Apache-2.0

## Environment variables

| Name | Required | Secret | Description |
|---|---|---|---|
| `ANALYTICS_MCP_ISSUER_URL` | no | no |  |
| `GOOGLE_APPLICATION_CREDENTIALS` | no | no |  |
| `GOOGLE_CLOUD_PROJECT` | no | no |  |
| `GOOGLE_OAUTH_CLIENT_ID` | no | no |  |
| `GOOGLE_OAUTH_CLIENT_SECRET` | no | no |  |
| `SERVICE_URL` | no | no |  |

## Tools (13)

- `get_account_summaries`
- `get_property_details`
- `list_google_ads_links`
- `list_property_annotations`
- `create_property_annotation`
- `list_key_events`
- `create_custom_dimension`
- `create_key_event`
- `run_report`
- `run_funnel_report`
- `run_conversions_report`
- `get_custom_dimensions_and_metrics`
- `run_realtime_report`

## FAQ

### How can I host this as a multi-tenant service?

You can host it as a shared multi-tenant HTTP service by starting the server with the --transport http flag, allowing users to sign in via OAuth 2.0.
