mcp-server-google-analytics MCP Server

An MCP server implementation for accessing Google Analytics 4 (GA4) data, built using the Model Context Protocol TypeScript SDK.

Local serverstdioMIT

What is the mcp-server-google-analytics MCP Server?

mcp-server-google-analytics source profile. From the maintainer documentation: “An MCP server implementation for accessing Google Analytics 4 (GA4) data, built using the Model Context Protocol TypeScript SDK.”

Installation

The documented npm package is mcp-server-google-analytics. The configuration below comes from the maintainer’s example; adapt its paths and account values to your environment.

Configuration values

The example declares GOOGLE_CLIENT_EMAIL, GOOGLE_PRIVATE_KEY, GA_PROPERTY_ID. Secret-looking values have been replaced with placeholders. Required and optional labels are shown only when the documentation states them.

Source

Project documentation · Repository · Discovery listing. This profile records the public documentation checked on 2026-10-08.

How to install the mcp-server-google-analytics MCP Server

{
  "mcpServers": {
    "google-analytics": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-server-google-analytics"
      ],
      "env": {
        "GOOGLE_CLIENT_EMAIL": "your-service-account@project.iam.gserviceaccount.com",
        "GOOGLE_PRIVATE_KEY": "YOUR_GOOGLE_PRIVATE_KEY",
        "GA_PROPERTY_ID": "your-ga4-property-id"
      }
    }
  }
}

From the project documentation. Replace placeholders and example paths before connecting.

Configuration

VariableDescriptionRequired
GOOGLE_CLIENT_EMAILDeclared in the maintainer’s client configuration.Check documentation
GOOGLE_PRIVATE_KEYDeclared in the maintainer’s client configuration.Check documentation
GA_PROPERTY_IDDeclared in the maintainer’s client configuration.Check documentation