Google analytics MCP server official setup: authentication and enterprise use

The official Google Analytics MCP server authenticates with Application Default Credentials and inherits access from Google Analytics property roles and Google Cloud project settings. It has no documented SSO, admin approval or audit log of its own.

On this page

Can the official Google Analytics MCP server meet our enterprise authentication requirement?

If your policy requires SSO, admin approval or a dedicated audit log for every AI tool, the official Google Analytics MCP server does not meet that requirement on its own terms. The Google developer page describes sign-in only through Google credentials, and the docs we reviewed describe no separate SSO, admin approval or audit log feature for the MCP server itself. Google also labels the server experimental in the repository README. Treat it as a tool to evaluate under compensating controls, not as an enterprise-managed connector.

Authentication uses Application Default Credentials. Staff can sign in with a Google user account through gcloud auth application-default login, or the server can run with a service account, either through a JSON key file pointed to by GOOGLE_APPLICATION_CREDENTIALS or by impersonating the service account with the gcloud CLI. Each path changes who the AI client acts as. A user credential carries that person's access, while a service account carries whatever roles it was granted. Confirm which model you will allow and who owns the credential lifecycle.

Access is controlled by Google Analytics property roles and Google Cloud project settings, not by the MCP server. The server calls the Google Analytics Admin API and the Google Analytics Data API, and both must be enabled in a Google Cloud project. Your checklist should therefore record the property roles each user or service account holds, which Cloud project hosts the enabled APIs, and who can grant those roles. Ask Google or your Google Analytics administrator to confirm how these settings apply to your organization, and check the current README, because the GitHub and PyPI descriptions of deployment mode differ.

Enterprise controls by capability and option

This table compares each enterprise control for the official Google Analytics MCP server by status: built in, relying on Google Analytics or Google Cloud controls, needing an outside component, or not documented. Read the status column first, then the confirmation column before approval. The main takeaway is that the docs reviewed describe no SSO, client approval or MCP-specific audit log, so those controls must come from your identity provider, Google Cloud configuration or a gateway you add.

CapabilityStatusWhat the docs sayConfirm before approval
Authentication with user credentialsRelies on Google Cloud controlsApplication Default Credentials via gcloud auth application-default login for a Google user account.Which user accounts may sign in and what project roles those users hold.
Service account key fileRelies on Google Cloud controlsGOOGLE_APPLICATION_CREDENTIALS can point to a JSON key file for a service account.Key creation, rotation, storage and revocation policy in your Google Cloud project.
Service account impersonationRelies on Google Cloud controlsCredentials can be generated by impersonating a service account with the gcloud CLI.Who may impersonate the account and whether impersonation events are logged.
SSO with company identity providerNot documentedThe docs reviewed describe no separate SSO feature for the MCP server itself.Whether sign-in can be limited to your Google Workspace or managed identities.
Admin approval of clientsNot documentedNo admin approval or client allowlisting step is described in the docs reviewed.Whether any approval control exists in your AI client's admin console or your Google tenant.
Permission scopingRelies on Google Analytics or Google Cloud controlsAccess follows Google Analytics property roles and Google Cloud project settings.The property roles granted to the credential the server uses, per property.
Audit logging of MCP callsNot documentedNo MCP-specific audit log is described. Admin API and Data API must be enabled in the project.Whether Admin API and Data API calls appear in your Google Cloud audit logs.
Self-hosted runBuilt inRuns locally through pipx or uvx. The README and PyPI copy differ on remote multi-tenant use.Whether the current README supports a remote deployment you operate.
Data residencyNot documentedThe docs reviewed give no data location or residency commitment for the server.Where Analytics and Cloud data is processed under your Google contract.

How Application Default Credentials decide what the server can reach

The server does not carry its own permissions. It authenticates with Application Default Credentials, so whatever identity ADC resolves to is what the server can query. Google's developer page describes two routes: a Google user account, set up with gcloud auth application-default login, or a service account, supplied either through a JSON key file pointed to by GOOGLE_APPLICATION_CREDENTIALS or generated by impersonating the service account with the gcloud CLI. Before approving either route, confirm which identity your staff will actually end up using on each machine, because a laptop that already holds a broad gcloud login will pass that identity to the server without any further prompt.

Two Google Cloud APIs must be enabled in the Google Cloud project the server uses: the Google Analytics Admin API and the Google Analytics Data API. Enabling them does not grant data access. The effective reach of the server equals the Google Analytics property roles held by the identity behind ADC, so a service account with Viewer on one property can read only that property, and a user with Editor or Admin on several properties exposes all of them to the AI client. Ask each property owner which accounts hold roles, and confirm that the service account is added only to the properties it needs, using the least-privileged role that supports the reports you intend to allow.

Deployment mode is a point to settle before the rollout. The GitHub README describes the server as one you run locally, while the PyPI copy of analytics-mcp says it can run as local or remote multi-tenant. These descriptions do not match, so confirm against the current README in the googleanalytics/google-analytics-mcp repository before writing the approved configuration. If a remote, multi-tenant deployment is in scope, ask Google which controls apply to that mode, since the docs reviewed do not describe SSO, admin approval or an audit log for the MCP server itself.

Where the identity and access decisions sit

The flow starts in an AI client such as Claude Code, which launches the analytics-mcp process on the user's machine. That process obtains Application Default Credentials, either from a user signed in with gcloud or from a service account key or impersonation. Its calls to the Google Analytics Admin and Data APIs run inside a Google Cloud project where both APIs must be enabled, and the property roles on each Analytics property decide what data comes back. Organizations control the credential choice, the project settings and the property roles, so confirm each of those before approving the connection.

Credentials, project settings and property roles each decide what the MCP server can reach.

Decisions to make before connecting: identity type, property roles and project scope

Before anyone connects the official Google Analytics MCP server, the team has to settle who the server acts as, which Google Cloud project holds the enabled APIs, and what the AI client may do with the results. Each choice changes how actions are attributed in Google's logs, how quickly access can be revoked, and how far analytics data travels.

User credential or service account

Authentication uses Application Default Credentials, either a Google user account through gcloud auth application-default login or a service account. A user credential acts as a named person, so actions trace to that individual but leave with them when they change roles. A service account is shared infrastructure, so its attribution is to the account itself, and reviewers must confirm who operates it. Decide which model fits before any staff member runs the setup.

Google MCP setup docs

Key file or impersonation

For a service account, the docs describe pointing GOOGLE_APPLICATION_CREDENTIALS at a JSON key file, or generating credentials by impersonating the service account with the gcloud CLI. A key file is a long-lived secret on a laptop that can be copied, so its holder controls the access. Impersonation keeps the key out of developer hands and ties each session to a caller who has been granted impersonation rights. Ask who holds the key or the impersonation grant, and how each is rotated or removed.

Google Cloud project hosting the APIs

The server uses the Google Analytics Admin API and the Google Analytics Data API, and both must be enabled in a Google Cloud project. That project becomes the billing, quota and API-enablement boundary for every connected user or service account. Confirm which project owns those APIs, who holds its IAM roles, and whether it is separate from projects that run production workloads. Removing the API enablement or the project's access stops the server from working for everyone who relies on it.

Property roles granted to the identity

Access to data is controlled by Google Analytics property roles and Google Cloud project settings. The docs read for this review describe no separate admin approval or audit log feature for the MCP server itself, so the property role is the main limit on what the AI client can see. Grant the lowest role that answers the reporting need, scope it to the properties required, and review it on a schedule. Confirm with Google which roles allow configuration reads and which allow changes.

Managed endpoints or local runs

The repository describes the server as one you can run locally, while the PyPI copy describes a local or remote multi-tenant setup. Setup instructions run analytics-mcp through pipx or uvx on the user's machine, which places the credential file and the server process on that device. Decide whether staff may run it only on managed endpoints with disk encryption and endpoint controls, and confirm against the current README which deployment shape Google supports.

Server README on GitHub

Where analytics output may go

Reports and property configuration returned by the server are sent into the AI client, and from there to whichever model or service that client uses. Google's developer page says the server connects analytics data to LLMs and AI agents such as Gemini. Set a rule on which clients are approved, whether the chosen assistant's data terms cover analytics content, and whether any reports contain personal or commercially sensitive data that must stay out of the prompt. Record that decision with the identity choice so the audit trail matches the approved path.

How the answer changes by identity model and environment

When one analyst connects the server with a personal Google account through Application Default Credentials, the server acts with that person's Google Analytics property roles and Google Cloud project access. The analyst can only reach what they could already open in the Google Analytics interface, which keeps the blast radius tied to one identity. Attribution is simple because queries and configuration reads trace to a named person, but that person's broader access also travels with the connection.

  • Access follows the user: Property roles and Google Cloud permissions of the individual limit every query the assistant can make.
  • Attribution is personal: Activity is tied to one identity, which helps investigations but depends on that person keeping credentials private.
  • Credential scope is wide: A personal login may hold more property access than the task needs, so review roles before connecting.
  • Local storage matters: Confirm where the application default credentials file is stored on the endpoint and who can read it.
  • Revocation path: Confirm how access is removed when the analyst changes role or leaves.

Check the analyst's property roles, confirm the credentials file location on the workstation, and document how access is revoked.

Order of work before production use

This sequence moves the Google Analytics MCP server from an unverified install to a reviewed, owned and revocable connection. Each step produces a specific artifact that the security reviewer can check before any staff member connects an AI client to live property data.

  1. Confirm the official repository and README

    The engineering lead confirms that the server in use comes from the googleanalytics/google-analytics-mcp repository that Google's developer page links, and not from a community server that also exposes Google Analytics. Read the current README in that repository and record the commit or release you reviewed, because the README is titled as experimental and the GitHub and PyPI descriptions differ on whether it runs locally or as multi-tenant. Done when the reviewer has a written note of the repository, license (Apache-2.0), README date and the deployment model Google describes for it.

  2. Choose the identity type

    The security lead decides whether the server authenticates as a named user through Application Default Credentials, or as a service account with a key file or impersonation. A user credential ties every query to one person and is easy to revoke when that person leaves, while a service account centralizes access but can read every property it is granted. Done when the choice, its owner and the rule for rotating or revoking the credential are written down.

  3. Scope the Cloud project and enable the APIs

    The cloud administrator creates or selects a dedicated Google Cloud project for this use and confirms that the Google Analytics Admin API and the Google Analytics Data API are the only APIs enabled for the server. Confirm who holds project-level roles, since those roles govern the project rather than the properties. Done when the project owner, the enabled API list and the list of principals with project access match what the security review approved.

  4. Grant least-privilege property roles

    The Analytics administrator assigns each identity the lowest property role that serves the approved reports, and avoids administrator rights on properties that only need reporting. Google's documentation says access is controlled by Google Analytics property roles and Google Cloud project settings, and it describes no separate admin approval layer for the MCP server, so these roles are the main limit. Done when a property-by-property access list exists and an analyst has confirmed that no unneeded property is reachable.

  5. Pin the install method and version

    The platform engineer chooses one install path for the approved clients, such as pipx or uvx as shown in Google's setup instructions, and pins the analytics-mcp version rather than pulling the latest release on every launch. Record the version, its PyPI release date and the checksum or lock file used on managed machines. Done when every approved workstation runs the same pinned version and the record is stored with the change ticket.

  6. Test on a non-production property

    The analytics team runs a test with the chosen identity against a non-production property or a sandbox copy before any live property is connected. The test checks which reports return, which property configuration reads succeed, and whether any write-capable behavior appears that the team did not expect. Confirm the actual tool list in the pinned version rather than relying on the documentation alone. Done when the test results and any surprises are recorded and signed off by the property owner.

  7. Review Google Cloud audit logs

    The security engineer confirms that Cloud audit logging captures calls made with the chosen identity, and that someone can query them for the Analytics APIs. Google's developer page does not describe an MCP-specific audit log, so the reviewer should check what Google Cloud records for these API calls in the project and whether the logs are retained and routed to the team's monitoring. Done when a sample query returns the test activity and the retention setting is recorded.

  8. Document owners and revocation steps

    The service owner writes down who approves new users, who rotates or disables the credential, and how a departing employee's access is removed from both the property roles and the Cloud project. The runbook also states how to remove the pinned package from managed machines. Done when the named owners, the revocation procedure and a tested removal of one test identity are recorded and reviewed before production rollout.

What a security reviewer asks to see and where it comes from

This table lists the evidence a security reviewer should request for the official Google Analytics MCP server, where each item lives in Google Analytics or Google Cloud, and who on the customer side owns it. Use it as a request list before approving a connection, and confirm each location against the current developer documentation because the product is labeled experimental.

EvidenceWhere it comes fromOwner
Property role assignments for each user or service accountGoogle Analytics Admin settings, Property access management, listing each principal and its role on every property in scopeGoogle Analytics property administrator
Service account inventory and key handlingGoogle Cloud IAM and Service Accounts page for the project, plus any JSON key files and whether keys are rotated or impersonation is used insteadGoogle Cloud project owner and identity team
Enabled API list for the Cloud projectGoogle Cloud APIs and Services dashboard, confirming the Google Analytics Admin API and Google Analytics Data API status and who can change themCloud platform administrator
Identity used per user sessionApplication Default Credentials source on each workstation, showing whether a personal user login or a service account is activeEndpoint or IT administrator
Client configuration locationLocal client config files such as claude_desktop_config.json or the Claude Code MCP registration, recording the analytics-mcp command and environment variablesDeveloper lead and endpoint management
Audit log sourceGoogle Cloud Audit Logs for the enabled APIs and Google Analytics change history for property settings; confirm which events the MCP calls generateSecurity operations and Cloud logging owner
Vendor statement of experimental statusThe README in the googleanalytics/google-analytics-mcp repository and the developer page, saved with the review date and version in useSecurity reviewer and procurement

Questions buyers ask before approving the Google Analytics MCP server

Does the Google Analytics MCP server support SSO?

The developer docs describe no separate SSO, admin approval or audit log feature for the MCP server itself. Access follows the identity the server runs as: a Google user account through Application Default Credentials, or a service account. Access is therefore governed by Google Analytics property roles and Google Cloud project settings, so your organization's sign-in controls apply mainly to the Google account or the Cloud project that holds the credentials. Confirm with Google, against the current README in the googleanalytics repository, whether any sign-in enforcement applies to the server before you record it as supported.

Can we run the Google Analytics MCP server without service account keys?

Yes, the docs list a Google user account as an option. Authentication uses Application Default Credentials, and a user can sign in with gcloud auth application-default login instead of using a service account. The trade-off is that the server then acts with that person's access, so reviewers should check which properties that user can read and whether the credential is tied to a managed device and account. If you choose a service account, the docs offer two routes: pointing GOOGLE_APPLICATION_CREDENTIALS at a JSON key file, or impersonating the service account with the gcloud CLI. Impersonation avoids storing a long-lived key file on each laptop, so ask your Google Cloud administrators which route your policies allow.

What does setting up the Google Analytics MCP server cost, and who pays for it?

The server itself is published under the Apache-2.0 license, so there is no license fee to Google for the code. Your costs come from the work around it. Your Google Analytics administrators and Google Cloud administrators spend time enabling the Admin API and the Data API in a Google Cloud project, assigning property roles, and choosing an authentication route. Engineers spend time installing the server with pipx or uvx on each client and testing it. Your security team spends time reviewing permissions and writing the usage rules. Ask any outside provider for a written scope that lists each of these tasks, who performs them, and which ones recur when staff, properties or clients change. Google's own pricing for the underlying APIs is not covered in the sources used here, so confirm it with Google and your Cloud billing contacts.

How long does a security review of the Google Analytics MCP server take?

The length depends on how many people will connect, how many properties and Cloud projects are involved, and whether you choose user credentials or a service account. A single pilot team with one property and a read-only role is a much smaller review than a company-wide rollout across many properties. The review usually covers the repository and version you approve, the roles granted, the credential route, and the client configuration. Google labels the server experimental, so plan for a recheck when the README or the PyPI release changes. The sources used for this page do not give a review duration, so ask your reviewers and any partner to estimate it against your own property list and approval process.

Can our own team set up the Google Analytics MCP server without a partner?

Often yes, for a small pilot. The official developer page lists setup steps for Claude Desktop, Claude Code, Cursor and Antigravity, and the commands are short. What takes longer is the access work: deciding which properties each person may query, setting Google Cloud project and API settings, choosing between user credentials and impersonation, and documenting who holds those credentials. Teams with Google Cloud and Analytics administration skills, and a clear owner for the MCP configuration, can usually complete this internally. Teams without that experience, or those with many properties and regulated data, may prefer help. Check that any help covers the repository you approve, not only the install steps.

What does a partner add to the Google Analytics MCP server rollout?

DeployOpen plans, implements and documents self-hosted open-source platforms and runs security testing, including testing of AI systems and agents. For this server, an engagement could include a written review of the authentication route and the property roles granted, a test of what the connected assistant can read and change, documentation for your reviewers, and a retest after fixes. DeployOpen does not issue audit reports or certifications, so independent auditors would still assess any compliance claim. Engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts. Ask for a quote that names each task, its output and whether you need ongoing testing as the server is updated.

How DeployOpen helps review and roll out the setup

DeployOpen reviews how the official Google Analytics MCP server is authenticated, which Google Cloud project and Analytics properties it reaches, and how your admins control those settings before staff connect Claude, Claude Code or another client. The work is fixed-scope and delivers documented settings, test results and a handover your security and IT teams can review.

How we scope

  • Confirm which Google Cloud project, Analytics properties and client tools are in the written scope before work starts.
  • Record whether each connection uses a user account through Application Default Credentials or a service account, and who owns each credential.
  • Agree in writing how the current README and PyPI release are checked against your approved version, since the two pages differ.

How we build

  • Configure the Admin API and Data API enablement, project IAM and Analytics property roles to match the approved access list.
  • Set up the chosen client, such as Claude Desktop or Claude Code, with the pinned package version and a documented run command.
  • Test prompt injection, write-capable requests and credential exposure against the configured setup, then record the findings.

How we hand over

  • Deliver a written configuration record covering credentials, roles, enabled APIs, client settings and the version installed.
  • Provide a findings report with fixes and a retest, so reviewers can see what was changed and what remains open.
  • Document the controls Google describes, and flag which controls such as logging or approval you must confirm in your own environment.

How we support

  • Review the setup again when the server, client or Google Cloud settings change, using the same written scope.
  • Offer ongoing support, upgrades and continuous testing as a retainer, priced from a separate written quote.
  • Support the evidence your security questionnaire or internal review asks for, without issuing audit reports or certifications.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.