How to integrate Google Analytics using MCP
Explore and report on Google Analytics data. This guide creates an MCP server from Arthur's Google Analytics template — tools preconfigured against https://analyticsdata.googleapis.com/v1beta — and finishes by sharing the server's MCP swagger documentation.
Steps
Open the Secrets vault and create a secret named
GOOGLE_ANALYTICS_API_KEYholding your access token. Enable the Google Analytics Data API in a Google Cloud project and provide an OAuth 2.0 access token with the analytics.readonly scope (or the broader analytics scope). User accounts and service accounts are supported when they have access to the target Analytics property.


Go to the REST API Templates gallery and search for Google Analytics.


Click Use template on the Google Analytics card to open the server-creation dialog.


Review the server name and select
GOOGLE_ANALYTICS_API_KEYin the credential field — the dialog only accepts vault secrets, and it lists every tool that will be created.


Click Create server. Arthur creates the server, applies the authentication, and generates all the tools.





Open the server's Tools tab to review the generated tools.

Open the server's Connect section and click Share the MCP swagger documentation — Arthur generates the public documentation link and QR code for this server.



Confirm it worked
The server appears with 4 preconfigured tool(s): get_metadata, run_report, run_realtime_report, check_compatibility. The Connect section offers the MCP swagger documentation — a shareable page with setup instructions for any AI client.
Good to know
- Discover available Google Analytics dimensions and metrics, run core and realtime property reports, and check report-field compatibility.
- This integration requires a credential (bearer). Get one at https://console.cloud.google.com/.
- Official API documentation: https://developers.google.com/analytics/devguides/reporting/data/v1/rest
- Editing a tool later never changes the template — templates are starting points, and the server is fully yours after creation.
Related
Tutorial video