MCP server · Analytics

Google Analytics 4 MCP server

Google Analytics 4 in any MCP client, through Memtro: Google Analytics 4 does not publish this server. Memtro's Google Analytics 4 connector reads Google Analytics 4 through its API with the credentials you connect, and one endpoint hands those tools, every other system you connect and Memtro's memory tools to Claude Code, Cursor, Claude Desktop or anything else that speaks Streamable HTTP, as you.

What the model can do

GA4 reporting: traffic, pages, sources, conversions and realtime users for the properties the Google account can see; can also mark or unmark key events, add, rename or archive custom dimensions and metrics, change a property's settings, create a property or web data stream, and trash a property or delete a stream when you ask (uses the same Google OAuth client as Gmail).

Reads

  • ga4_propertiesList the GA4 properties (id, name, account) this connection can report on.
  • ga4_run_reportRun a GA4 report: metrics broken down by dimensions over one or more date ranges, with optional dimension filters and ordering.
  • ga4_realtimeWho is on the site right now (last 30 minutes): active users, optionally by country, city, deviceCategory, platform, unifiedScreenName (page)…
  • ga4_metadataDimensions and metrics available for a property (standard plus custom ones), with a short description each.
  • ga4_list_configA property's configuration: key events (conversions), custom dimensions, custom metrics or data streams, with the ids the configuration actions take.

Acts, when you ask

These change something in Google Analytics 4. The model is told to use them only when you ask for exactly that, and each one is granted by name: per team on a shared connection, by the owner on a personal one.

  • ga4_create_key_eventMarks an event as a key event (a conversion) on a GA4 property…
  • ga4_update_key_eventChanges how a GA4 key event is counted (once per event or once per session) or its default value, from now on.
  • ga4_delete_key_eventStops counting an event as a key event (conversion) on a GA4 property.
  • ga4_create_custom_dimensionRegisters a custom dimension on a GA4 property, so an event parameter (or user property, or item parameter) can be used in reports from now on.
  • ga4_update_custom_dimensionRenames a GA4 custom dimension or changes its description, as shown in reports.
  • ga4_archive_custom_dimensionArchives a GA4 custom dimension: it disappears from reports and explorations and frees its quota slot.
  • ga4_create_custom_metricRegisters an event-scoped custom metric on a GA4 property, so a numeric event parameter can be summed in reports from now on (not backfilled).
  • ga4_archive_custom_metricArchives a GA4 custom metric: it disappears from reports and frees its quota slot, with no way to unarchive it.
  • ga4_update_propertyChanges a GA4 property's settings: its display name, reporting time zone, currency or industry category.
  • ga4_create_propertyCreates a new GA4 property under a Google Analytics account, with its reporting time zone and currency.
  • ga4_create_web_data_streamAdds a web data stream to a GA4 property for a website, and returns its measurement id (G-XXXX) to put in the site's tag.
  • ga4_delete_data_streamDeletes a data stream from a GA4 property.
  • ga4_delete_propertyMoves a GA4 property to the trash.

Connect it

First connect Google Analytics 4 on Dashboard → Connections, then add Memtro to your client once. The Google Analytics 4 tools appear alongside the tools of everything else you have connected; nothing is configured per connector.

Claude Code

The Memtro plugin registers the server and a skill for when to use it; the tools are then available in every session.

claude plugin marketplace add memtro-org/claude-memtro
claude plugin install memtro@memtro --config api_key=sk-memtro-...

Cursor

Add the server to .cursor/mcp.json in the project, or to the global file under ~/.cursor/.

{
  "mcpServers": {
    "memtro": {
      "url": "https://platform.memtro.com/api/mcp",
      "headers": {
        "Authorization": "Bearer sk-memtro-..."
      }
    }
  }
}

Claude Desktop

Create a personal API key on Dashboard → Profile → API keys. In Claude Desktop add an MCP server of type HTTP with URL https://platform.memtro.com/api/mcp and the header Authorization: Bearer sk-memtro-…

OpenCode

A remote server in opencode.json.

{
  "mcp": {
    "memtro": {
      "type": "remote",
      "url": "https://platform.memtro.com/api/mcp",
      "headers": {
        "Authorization": "Bearer sk-memtro-..."
      }
    }
  }
}

Pi

One command: pi mcp add memtro --url https://platform.memtro.com/api/mcp --bearer-token-env-var MEMTRO_API_KEY. Tools arrive as mcp__memtro__*. The pi-memtro extension registers it for you, alongside Memtro as the model.

Any other client

Add an MCP server of type HTTP (Streamable HTTP, stateless) at https://platform.memtro.com/api/mcp with the header Authorization: Bearer sk-memtro-.... Codex, Zed, Windsurf, Cline and the SDKs all take a remote server this way.

Who may use it

The key identifies the person, and the server offers that person the tools they may use everywhere else in Memtro. A shared Google Analytics 4 connection is used by the teams an administrator granted it to, tool by tool, on the Permissions page; a personal connection is used by its owner alone, and its tools that act stay off until the owner allows them. See Teams and permissions and Connectors.

Ask it like this

  • › How many active users did we have last week compared with the week before?
  • › What were our top 10 landing pages in the last 30 days by sessions?
  • › Which traffic channel drove the most sign_up key events this month?
  • › How many people are on the site right now, and which pages are they on?

Questions

Is this an official Google Analytics 4 MCP server?
No. It is Memtro's MCP server with Memtro's Google Analytics 4 connector behind it: the connector reads Google Analytics 4 through its API with the credentials you connect on Dashboard → Connections, and Google Analytics 4 publishes nothing here. The same endpoint carries every other system you connect and Memtro's memory tools.
What does it cost?
Nothing on top of Memtro. One price per organisation by its number of users, from $50 a month for up to 10 users after a 7-day free trial, with every connector, the MCP server, jobs and memory included. You bring your own model keys.
Can it change anything in Google Analytics 4?
Only when you ask, and only what it has been granted: mark an event as a key event (conversion), change how it is counted, or stop counting it; create, rename or archive a custom dimension; create or archive a custom metric; change a property's name, time zone, currency or industry; create a GA4 property under an account, or a web data stream on a property; move a property to the trash or delete a data stream. Every other tool reads, searches or lists. An administrator grants each acting tool by name per team, and a personal connection acts only after its owner allows it.
Which clients work?
Any MCP client that speaks Streamable HTTP: Claude Code, Cursor, Claude Desktop, OpenCode, Codex, Zed, Windsurf, Cline and the Anthropic and OpenAI SDKs. There is no local process to run; the server is remote and authenticated with your key.

Other MCP servers · Analytics

Where agents remember your company

Sign in, add a provider key, create an API key and point your tools at Memtro. It takes about five minutes.

7-day free trial · card on file, nothing charged until it ends · cancel any time