Mitosby SAR-SOFT
ΕλληνικάStart free

Google Analytics MCP server: run Google's official one yourself, or have it hosted

Google's official Google Analytics MCP server runs on your computer. See what that takes, and how Mitos hosts it for ChatGPT and Claude.

ComparisonWritten by Panagiotis SaridisPublished Updated 7 min read

The short answer

Google publishes an official Google Analytics MCP server. It is open source, marked experimental, and runs on your own computer with a Google Cloud project and your own credentials. ChatGPT and Claude on the web connect to remote MCP servers over the internet, so a server running on your computer is not something you paste into them. Mitos hosts that same official server, so there is nothing to install: you sign in with Google, choose the GA4 properties you want and add one address.

For the steps and everything a hosted GA4 connection reads, see Google Analytics 4 with ChatGPT and Claude.

Key points

  • Google's official server lives on GitHub as googleanalytics/google-analytics-mcp. It is open source under the Apache 2.0 license, and its README marks it experimental.
  • It runs locally and needs pipx, a Google Cloud project with the Analytics Admin API and Analytics Data API turned on, and Application Default Credentials with the analytics.readonly scope.
  • ChatGPT developer mode adds a remote MCP server, and Claude reaches a custom connector's server from Anthropic's cloud, over the public internet.
  • Mitos runs Google's official server itself, without changing its code. You sign in with Google, choose the GA4 properties you want and add one address to ChatGPT or Claude.
  • Either way the server only reads. Google says it cannot change your Analytics settings, and Mitos connects with the read-only analytics.readonly scope by default.

Running Google's server yourself or having it hosted

What differsRun it yourselfHosted by Mitos
The serverGoogle's official google-analytics-mcpThe same server, run by Mitos without changes to its code
Where it runsOn your computer, started by the AI assistant that uses itOn the Mitos servers, at one web address
What you set uppipx, a Google Cloud project, two APIs turned on and Application Default CredentialsSign in with Google and choose the GA4 properties you want
AI assistants in its instructionsGemini CLI, Gemini Code Assist and Claude CodeChatGPT and Claude, as a custom connector
Which properties it reachesAny account and property the Google credentials can openOnly the GA4 properties you choose, for one organization
AccessRead requests only, with analytics.readonlyRead-only by default, with analytics.readonly
StatusOpen source (Apache 2.0), marked experimentalAvailable now, free to start

Google's official Google Analytics MCP server

Google's developer documentation presents the Google Analytics MCP server as a way to connect your Analytics data to an LLM such as Gemini, to chat with your data or build your own agents. The code lives in the googleanalytics organization on GitHub under the Apache 2.0 license, and the README title marks it experimental.

The server uses the Google Analytics Admin API and the Google Analytics Data API. Google notes that it handles read requests only and cannot edit your Google Analytics configuration or settings. The README lists these tools:

  • get_account_summaries: the user's Google Analytics accounts and properties.
  • get_property_details and list_google_ads_links: details of one property and its links to Google Ads accounts.
  • run_report and run_funnel_report: reports and funnel reports through the Data API.
  • get_custom_dimensions_and_metrics: a property's custom dimensions and metrics.
  • run_realtime_report: realtime reports.

What it takes to run it

The server runs on your own computer. The README gives these steps:

  • Install pipx. The package needs Python 3.10 or later.
  • Turn on the Google Analytics Admin API and Google Analytics Data API in a Google Cloud project.
  • Set up Application Default Credentials for a user with access to your Google Analytics accounts or properties, with the analytics.readonly scope, for example through gcloud and an OAuth client.
  • Register the server in your AI assistant's settings. The README shows Gemini CLI, Gemini Code Assist and Claude Code, which start it with pipx on the same computer.

Why a local server does not go into ChatGPT or Claude

For ChatGPT developer mode, OpenAI describes creating an app for your remote MCP server, over SSE or streaming HTTP. Anthropic writes that Claude connects to a custom connector's server from Anthropic's cloud rather than from your device, in every Claude app. That server must be reachable over the public internet.

So a server running on your computer is not an address you paste into ChatGPT or Claude on the web. Claude Desktop can run local MCP servers from its configuration file, but Anthropic describes that as a separate mechanism that claude.ai does not have.

How Mitos hosts it

Mitos runs Google's official Google Analytics MCP server on its own servers, without changing its code, and adds what a hosted service needs: Google sign-in, access to only the properties you choose, organizations and a way to revoke access.

It passes the server's read tools to ChatGPT or Claude through an allowlist, so a tool added in a later version of Google's server stays hidden until Mitos has reviewed it. You install nothing and create no Google Cloud project. Setup is self-serve at app.sar-soft.com and takes a few minutes. If you get stuck, email [email protected].

  • Sign in with Google, allow read-only access (analytics.readonly) and choose the GA4 properties you want, each for one of your sites.
  • Add https://mcp.sar-soft.com/mcp as a custom connector in ChatGPT (with developer mode turned on) or Claude.
  • Sign in to Mitos when asked and authorize one organization. The connector reaches no other organization.
  • Revoke the AI assistant in the Mitos app, and it takes effect within about a minute.

When each fits

Running Google's server yourself fits a developer who is comfortable with Google Cloud and credentials, and who works in a local AI assistant such as Gemini CLI or Claude Code.

Having it hosted fits a business owner or agency working in ChatGPT or Claude who wants to pick their properties without running anything. An agency creates one organization per client.

Either way, the AI assistant writes the answer, and it can be wrong or incomplete. Check the numbers that matter in GA4.

Questions to try

  • How much traffic did we get in the last 30 days, compared with the 30 before?Sources: Google Analytics
  • Which landing pages brought in the most visitors this month?Sources: Google Analytics
  • Where did our visitors come from last week?Sources: Google Analytics
  • Which pages get plenty of search impressions but little actual traffic?Sources: Search Console · Google Analytics

Questions people ask

Is Google's Google Analytics MCP server official?

Yes. It lives in the googleanalytics organization on GitHub, and Google's Analytics developer documentation links to it. Its README marks it experimental.

Can I add Google's server to ChatGPT or Claude on the web?

Not the way its README runs it, on your computer. ChatGPT and Claude on the web connect to remote servers over the internet. Claude Desktop runs local servers from its configuration file, which is a separate mechanism from custom connectors.

Does Mitos use Google's official server?

Yes. Mitos runs Google's official Google Analytics MCP server without changing its code, and hosts it where ChatGPT and Claude on the web can reach it. Mitos adds Google sign-in, access to only the properties you choose, organizations and revoking access.

Which ChatGPT or Claude plan does Mitos need?

You add Mitos as a custom connector (in ChatGPT, with developer mode turned on). The plans that can do this are listed below.

  • ChatGPTOn a Plus, Pro, Business, Enterprise or Edu plan, on the web, with developer mode turned on.OpenAI's guide
  • ClaudeOn any plan. Free allows one custom connector, and on Team and Enterprise an owner adds it first.Anthropic's guide
  • Claude CodeClaude Code installed, with a Pro, Max, Team, Enterprise or Console account. The free Claude plan does not include Claude Code.Anthropic's guide
  • CursorThe Cursor editor installed on your computer.Cursor's guide
Can it change my GA4 settings?

Google's server cannot: it handles read requests only, whoever runs it. Mitos connects with analytics.readonly by default. If an owner or admin allows changes, Mitos can create custom dimensions, metrics, key events or audiences, and each one waits for a person's approval.

References

Ask about GA4 without running a server

Sign up free, connect Google Analytics in a few clicks and ask ChatGPT or Claude about your traffic within minutes. No card needed.

Connect your WordPress site

Type your site's address and we open its own plugin page, ready to install Mitos.

Prefer to install by hand? Download the plugin · how to connect it

Not on WordPress, or want to set things up first? Create your free account

Free to start · No card