Google Analytics MCP security: does the official server stay read-only?
The official server authenticates with the read-only scope and needs at least the Viewer role (roles/analytics.viewer) on the target property, so its built-in design supports a read-only setup through configuration. The README, however, documents three write tools, create_property_annotation, create_custom_dimension and create_key_event, that require the --allow-write flag and the analytics.edit` scope. Whether an AI assistant can change Google Analytics therefore depends on the version you deploy and how you launch it, so confirm both before approval. The analytics-mcp package on PyPI shows the release you would install.
Google's documentation does not describe enterprise admin policy, single sign-on or audit logging for this server itself, so those controls sit in Google Cloud and Google Analytics. Start with the Viewer role on each property, granted only to the specific user or service account the client uses, and verify that no Editor or Marketer role is attached to that identity. In Google Cloud, enable the Google Analytics Admin API and Data API only in the project the server uses, and review the IAM bindings on that project. Ask whether your audit logs record the calls the assistant makes, because the server does not appear to keep its own record of tool use. These checks are yours to run and document.
The decision is whether you need the write path at all. For reading reports, funnels, conversions and property details, keep the server on the read-only scope, omit --allow-write, and grant Viewer only. If a team wants an assistant to create annotations, custom dimensions or key events, treat that as a separate approval that adds the analytics.edit scope and the Editor or Marketer role, and record who may use it. Repeat the tool list check after every upgrade, since a new release can change which tools are exposed to the client.
Permission and control support for the official Google Analytics MCP server
This table compares the controls Google documents for the official Google Analytics MCP server with the settings you must make yourself and the gaps that need outside enforcement or confirmation. Read the status column first: Built in means the control applies by default, Needs configuration means you must set it, Needs outside component means another system must enforce it, and Not documented means you should ask Google before approval. The main takeaway is that read-only behavior depends on the version you deploy, so confirm that the write flag and analytics.edit scope are absent before you approve it.
| Control | Status | What the docs support | What to confirm with Google |
|---|---|---|---|
| Read-only access by scope | Built in | Authenticates with the analytics.readonly scope; developer page says it cannot change configuration | Whether every released version behaves this way, given the README's write tools |
| Viewer role for reads | Needs configuration | User or service account needs roles/analytics.viewer on the property | Whether a narrower role works for all read tools |
| Write tools behind --allow-write | Needs configuration | README lists create_property_annotation, create_custom_dimension and create_key_event behind the flag | Whether the flag exists in the version you deploy and its default state |
| analytics.edit scope | Needs configuration | README says write tools also require this scope | Whether the scope is granted only when the write flag is set |
| Editor or Marketer roles for write tools | Needs configuration | Editor for custom dimensions; Marketer or Editor for key events | Required role for create_property_annotation, which the README does not list |
| Admin API and Data API enablement | Needs configuration | Both APIs must be enabled in the Google Cloud project | Whether disabling either API blocks reads and writes as expected |
| Admin policy on the MCP client | Not documented | No client allowlisting or admin enforcement found in the supplied documentation | Whether Google or your AI client offers central approval or blocking of this server |
| Audit logs | Not documented | Supplied documentation does not describe logging of MCP tool calls | Which Google Analytics or Google Cloud logs record calls made through this server |
How the server authenticates and where each tool is enforced
Authentication for the Google Analytics MCP server is a chain of three checks, and each one can refuse a request on its own. The first check is the client. The AI client launches the server locally, using pipx or uvx, so the server runs with the permissions of the person's machine and whatever Application Default Credentials that machine holds. The second check is the token. The server authenticates with Application Default Credentials, and the OAuth scope on that token for read access is A token that carries only that scope should not be able to change configuration, even if a tool asks it to. The third check is the property role. Google accepts a request only when the identity holds at least the Viewer role (roles/analytics.viewer`) on the target property, so that role sets the ceiling for what the identity can reach.
Write capability sits behind a second gate that is separate from the read path. The README for the analytics-mcp package on PyPI documents three write tools, create_property_annotation, create_custom_dimension and create_key_event. These register only when the server starts with the --allow-write flag and the token also carries the analytics.edit scope. The flag controls what the client exposes, the scope controls what the token permits, and the role controls what Google accepts. The README says create_custom_dimension needs the Editor role and create_key_event needs Marketer or Editor, so a Viewer grant blocks those writes even when the flag and scope are present. The README does not give a role for create_property_annotation in the text we relied on, so confirm that role for the version you deploy.
Check all three controls on every client, because each can be set independently. Confirm which version you deploy, since Google's developer page describes the server as read-only while the README documents write tools. Confirm that each client's launch configuration omits the write flag unless a named owner has approved it. Grant the identity Viewer on each property it needs, and keep Editor or Marketer roles off the credential the assistant uses. Then test the setup with a Viewer-only identity and a write tool, and confirm where the refusal is recorded. Ask Google how roles granted at account or project level interact with property roles before you assume a property-level grant is the only grant that matters.
Which tools change Google Analytics and which only read
The server exposes six read tools and three write tools in the repository README. The write tools sit behind the --allow-write flag and the analytics.edit scope, and each needs a higher property role than the read tools. Check which of these your deployed version actually exposes before you approve it.
Account and property lookup tools
The read tools get_account_summaries and get_property_details list the accounts and properties a user can see and return their configuration. They are the first calls an assistant makes when it needs a property ID. For a security review, these tools reveal account structure, property names and settings to anyone who can prompt the assistant, so confirm that the connected identity only sees the properties you intend to expose. Ask your admins to confirm which accounts the credential can list.
README tool listReport tools that read traffic data
run_report, run_funnel_report, run_conversions_report and run_realtime_report query the Google Analytics Data API and return metrics and dimensions for a property. They read visitor behavior, traffic sources and conversion figures, which can carry business-sensitive information even though they never change configuration. Reviewers should decide which properties and date ranges the assistant may query, and whether real-time data on sensitive sites is acceptable to expose in an assistant conversation.
Property annotations need Editor or Marketer access
create_property_annotation writes a note onto a property's timeline, such as a marked release or campaign date. The README requires the analytics.edit scope and the --allow-write flag, which means the server must be started with write capability on purpose. Annotations are low impact but still visible to everyone who views the property, so treat them as a write permission even though they look harmless. Confirm the role your team assigns before enabling the flag.
Custom dimensions change reporting for everyone
create_custom_dimension adds a new dimension to a property, and the README says it needs the Editor role. A custom dimension changes what can be reported and how events are classified in reports. Other analysts and dashboards on the same property see the new dimension, and it can affect attribution logic that depends on that data. Ask the property owner to approve every custom dimension created through an assistant before it goes live.
Key events change attribution for the whole property
create_key_event marks an event as a key event, which feeds conversion reporting and can shift how marketing teams attribute results and bid on campaigns. The README requires the Marketer or Editor role. Because the change applies across the property, a single prompt can alter the conversion numbers that other teams use for decisions. Restrict this tool to named operators and review every key event against the property's measurement plan.
How the answer changes by setup and team size
A single analyst running the server on a personal laptop is the simplest case, but it is also where local credentials and default settings matter most. The server authenticates with Application Default Credentials, so whatever Google identity the analyst signed in with becomes the access path. The developer page says the user or service account needs at least the Viewer role (roles/analytics.viewer) on the target property, and that role is the main limit on what the assistant can read.
- Identity in use: Confirm which Google account produced the local credentials and whether it is a personal or corporate account.
- Property role: Check that the analyst holds only the Viewer role on each property the assistant may query.
- Scope: Confirm the read-only scope ` is the one in use, not the edit scope.
- Write flag: Make sure the server is not started with
--allow-writeon a laptop used for general assistant work. - Version: Confirm the installed release matches the documentation you reviewed, since the developer page and the README differ on write tools.
Before approving this setup, ask the analyst to show the exact launch command and the property roles on each account the assistant will reach.
A team that shares one service account changes the risk model. Every person who uses the assistant acts through the same identity, so Google Analytics audit trails will show that account rather than the individual who asked the question. The team must decide who holds the credential file, how it is stored and how it is rotated, because that file is what grants access.
- Credential custody: Confirm who can read the service account key and where it is stored on each machine.
- Least privilege: Grant the service account Viewer on only the properties the team needs, not account-wide access.
- Attribution: Recognize that per-person actions will not be separable in the property history for this identity.
- APIs enabled: Confirm the Google Analytics Admin API and Data API are enabled in the Cloud project that owns the credentials.
- Write tools: Keep the write tools off unless a named owner has approved a specific change.
Ask the team who owns the service account, how keys are rotated and whether a per-user identity is possible for the team's audit needs.
An agency that manages many client properties faces the widest exposure. One credential that holds Viewer on many properties lets an assistant query data for every client it reaches, so a single prompt or a misused session can cross client boundaries. The agency must confirm that the identity used matches each client's contractual and confidentiality terms.
- Property inventory: List every property the identity can reach and confirm each one is meant to be in scope.
- Separation: Prefer separate identities or separate local setups per client where client terms require isolation.
- Role review: Check the Viewer role on each property, and remove access that was granted for past projects.
- Client consent: Confirm that client agreements allow their analytics data to be sent to an AI assistant.
- Write tools: Confirm that write tools for property annotations, custom dimensions and key events are off, since changes would affect client configurations.
Ask the agency to produce a property-by-identity table and to show how a client's data can be excluded from a session.
A regulated organization should treat the server as read-only and verify that the write tools cannot be reached. The README documents create_property_annotation, create_custom_dimension and create_key_event, which require the --allow-write flag and the analytics.edit scope. The developer page states the server is read only, so the reviewer should confirm the deployed build behaves that way before approval.
- Flag control: Confirm that
--allow-writeis absent from every launch configuration, including shared configuration files. - Scope control: Confirm the granted OAuth scope is
analytics.readonlyand thatanalytics.editis not granted to the identity. - Role control: Confirm the identity has no Editor, Marketer or higher role on any property, since those roles enable the write tools.
- Version check: Test the deployed release directly and record which tools it lists.
- Evidence: Keep the launch configuration, role assignments and test output as review evidence.
Before approval, ask for a test that shows a write tool call is refused under the chosen identity and launch settings.
Order of work to keep the server read-only in production
This sequence gives a reviewer a verifiable path from an unknown server build to a production deployment that holds only read access to Google Analytics, with a check recorded at each stage. It also sets up the retest that runs after every upgrade.
Confirm the repository and version in use
The platform or engineering owner confirms that the server comes from the official googleanalytics/google-analytics-mcp repository and records the exact package version installed from PyPI as analytics-mcp. Google labels the server experimental, and the README documents write tools that the developer page does not mention, so the version matters. Done means the reviewer holds a written record of the repository commit or release, the package version, and the README text for that version, with the write tools listed or confirmed absent.
Enable the two APIs in a dedicated project
The cloud administrator creates or selects a Google Cloud project used only for this integration, then enables the Google Analytics Admin API and the Google Analytics Data API in it, as the developer page requires. Keeping the project separate makes its IAM bindings, audit logs and any later changes easy to review. Done means a project list shows both APIs enabled and no unrelated services are granted to the credential that will run the server.
Grant the narrowest role on each property
The Google Analytics admin assigns the Viewer role (roles/analytics.viewer) on each property the assistant may query, and only on those properties. The Editor and Marketer roles that the README ties to the write tools are not granted. Done means an access review of each property shows the service account or user with Viewer only, and the list of properties matches the approved scope in writing.
Run the server without the write flag
The engineer configures the MCP client so the server starts without the --allow-write flag, using the same launch command that the team approves. Read tools such as run_report and get_property_details remain available, while create_custom_dimension, create_key_event and create_property_annotation are not registered. Done means a tool listing from the running client shows only read tools, and the configuration file is stored in version control for review.
Verify the OAuth scope in use
The security reviewer checks which credential Application Default Credentials picks up on the workstation or runner and confirms the granted scope is with no analytics.edit scope. A test that attempts a configuration change, run against a non-production property, should fail. Done means the reviewer has recorded the scope from the credential and the failed write attempt, and both results are kept with the change ticket.
Retest after each upgrade
Each time the team upgrades the package or the repository changes, the engineer repeats steps one through five and compares the tool list, the required roles and the scopes with the approved baseline. Any new write tool or added scope blocks the upgrade until the security owner approves it. Done means a dated retest record exists for every version in production, and the approved baseline is updated only after that review.
Evidence a security reviewer asks for and where it comes from
This table lists the artifacts a reviewer should collect before approving the Google Analytics MCP server, with where each one is found and who produces it. Read it as a checklist: the vendor and the client's own administrators produce most items, and a mismatch between the README and the developer page should be resolved from the exact package version the team deploys.
| Evidence | Where it is found | Who produces it |
|---|---|---|
| Pinned package version of analytics-mcp | The version in the client's lock file or the pipx or uvx command, checked against the PyPI release history | The client's engineering team, from its own deployment record |
| Apache-2.0 license and repository source | The LICENSE file and commit hash in the googleanalytics/google-analytics-mcp repository | Google publishes the code; the client confirms the commit it deployed |
| OAuth scope in the credential | The token or Application Default Credentials scope, expected to be analytics.readonly unless the write path is intentionally enabled | The client's identity team, by inspecting the credential it issued |
| Viewer, Editor or Marketer role per property | Property Access Management in the Google Analytics admin console, listed for each user or service account | The Google Analytics property administrator |
| Write flag status in the launch configuration | Whether --allow-write appears in the MCP client config file, such as Claude Desktop, Claude Code or Cursor settings | The client's endpoint or IT team, from managed configuration files |
| Google Cloud audit logs for the enabled APIs | Cloud Audit Logs for the Analytics Admin API and Analytics Data API in the Google Cloud project | The client's cloud or security team, with the project owner's access |
| Client permission prompts and approval records | The AI client's tool approval settings and any recorded user consent for each tool call | The AI client vendor's settings, configured by the client's administrator |
| Confirmation of tool list in the deployed build | The tools the running server reports to the client, compared with the README read tool list | The client's security reviewer, by running a controlled test in a non-production property |
Questions buyers ask before approving the Google Analytics MCP server
Is the Google Analytics MCP server officially supported by Google?
Yes, it is published by Google in the googleanalytics/google-analytics-mcp repository under the Apache-2.0 license, but Google labels it experimental in the repository README. Experimental status matters for a rollout because the behavior, tool list and setup steps may change between releases. Treat it as a vendor-published server with an early-stage support posture, pin the version you test, and confirm with Google what support commitments, if any, apply to your use. Community servers that also expose Google Analytics are a separate product and should go through their own review.
Can the Google Analytics MCP server change my property settings?
It depends on the version you deploy. Google's developer page says the server is available for read requests only and cannot create, modify or delete Google Analytics configuration or settings. The repository README, however, documents three write tools (create_property_annotation, create_custom_dimension and create_key_event) that require the --allow-write flag and the analytics.edit scope. Confirm which build you run, check whether the write tools are exposed, and keep the server on its read-only scope unless a specific change needs to be made. Each write tool also requires a property role above Viewer, so the role grant is a second control to review.
Does the server support SSO or SCIM provisioning?
The supplied documentation does not describe SSO or SCIM support for this server, so do not assume either. Authentication runs through Application Default Credentials, which means access follows the user or service account identity that signs in on the machine and the Google Analytics property roles granted to that identity. Ask Google whether any enterprise identity or provisioning features apply, and confirm how your Google Workspace or Cloud Identity tenant governs the accounts that run the server. Your identity team should review who holds those accounts and how they are offboarded.
What does it cost to run the Google Analytics MCP server?
The server itself is published under Apache-2.0, so the software license is not the cost driver. Recurring costs come from the surrounding setup: Google Analytics access, a Google Cloud project where the Admin API and Data API must be enabled, and the time your team spends on the review and upkeep of the server. Costs rise with the number of users, properties and clients, and with how often the server is updated and retested. Google does not publish a price in the supplied facts for this server, so ask Google and your Google Analytics account team to confirm any charges tied to API usage or quotas before approving rollout.
How much effort does a security review of this server take?
The effort depends on how many properties, users and write tools are in scope, and on whether you test the exact build you plan to deploy. A read-only rollout needs a review of the OAuth scope, the property roles granted, the Cloud project configuration and the client setup on each machine. A rollout that enables write tools adds checks on the --allow-write flag, the analytics.edit scope and the Editor or Marketer roles. No duration is supplied for this review, so ask your security provider for a written scope and timeline before work starts, and keep the review tied to a named version.
Can our team review and lock down this server without outside help?
Yes, a capable internal team can run the review, since the controls are documented and mostly sit in your own Google Analytics and Google Cloud settings. Your team would confirm the build version, keep the read-only scope, grant the Viewer role (roles/analytics.viewer) only where needed, and block the write flag on every client. Outside help is useful when you need independent testing of prompt injection, tool permissions and credential handling, or a findings report with a retest. DeployOpen provides AI agent rollout security reviews that test these areas and deliver a findings report with fixes and a retest, scoped in writing before work starts.
Primary sources to check each claim against
Check the read-only claim against Google's developer page first, then check the write tools against the PyPI listing and its README. The two sources do not agree. Google's Try the Google Analytics MCP server page says the server is read requests only and cannot create, modify or delete Google Analytics configuration or settings, and it names the scope with Application Default Credentials. The README published with the analytics-mcp package on [PyPI](https://pypi.org/project/analytics-mcp/) documents create_property_annotation, create_custom_dimension and create_key_event, which need the --allow-write flag and the analytics.edit` scope.
Because the two sources conflict, the deployed version decides the answer. Record the exact analytics-mcp version your team installs, then read that version's README and the launch arguments in your client configuration. Confirm whether --allow-write appears anywhere, and check the scopes on the credential in use. The PyPI listing shows a release dated Nov 6, 2026, so confirm which release is current when you review. Also confirm the source repository at the googleanalytics GitHub project, since the README and code there should match the package you install.
Treat the developer page as the vendor's stated intent and the package README as the description of what the code can do. Ask Google or your Google Analytics account team to confirm in writing which behavior applies to the version you approve, and keep the answer in the approval record. The Google developer page also lists the Admin API and Data API that must be enabled in a Google Cloud project, so include those enablement settings in the same review.
How DeployOpen works on this
DeployOpen reviews the Google Analytics MCP setup as a fixed-scope engagement, starting from the scopes, property roles and tools your team actually enables. The work covers permission testing, risky tool checks and documented controls, with findings, fixes and a retest delivered in writing.
How we scope
- Agree in writing which Google Analytics properties, Google Cloud projects and client machines fall inside the review.
- Confirm which server version and transport are deployed, since the README and developer page describe write access differently.
- Record which OAuth scopes, property roles and whether the write flag is set, before any testing starts.
How we build
- Test whether the read-only scope and Viewer role actually block configuration changes on a test property.
- Check write tools such as create_custom_dimension and create_key_event against the roles and flags that should gate them.
- Review Application Default Credentials handling, including where credentials are stored and who can reach them on developer machines.
How we hand over
- Deliver a findings report that maps each permission result to the scope, role or flag responsible for it.
- Provide documented fixes for role assignments, scope choices, client configuration and write-flag settings in your environment.
- Retest after changes and hand over the evidence your security and compliance reviewers ask for.
How we support
- Re-check the setup when the server version changes, since the server is labeled experimental and its PyPI release history changes.
- Offer ongoing support, upgrades and continuous testing as a retainer after the initial engagement.
- Confirm with Google and your own environment any control the developer page or README does not document clearly.

