/Documentation

How to set up the Model Context Protocol (MCP) server for GA4

Updated Sep 21, 2026

Note:

Before you begin

How to set up the MCP server for Google Analytics 4

  1. 1.
  2. 2.

How to configure the MCP server using HTTP connection

Add a custom connector
Add name and URL
Authentication and OAuth client
click Connect
Continue connecting
MCP authorized

How to configure the MCP server using mcp-remote

Edit Config in Claude
{ "mcpServers": { "ga4-mcp-server": { "command": "npx", "args": [ "-y", "mcp-remote", "https://mcp-google-analytics.stape.io/mcp" ] } } }
claude_desktop_config file
MCP CLI Proxy
Grant the access to Google Account
Successful authorization
GA4 MCP server running status

Testing

Troubleshooting

MCP Server name length limit

The MCP cache

Was this article helpful?

Comments

Can’t find what you are looking for?