Koskamo

mcp-google-analytics

A Model Context Protocol server for Google Analytics 4 that provides both read and write capabilities. It integrates with the Google Analytics Data API for reports and Measurement Protocol v2 for sending events, allowing agents to run reports, audit setups, and send server-side events.

Package and access

Local package with source-attributed installation metadata. Koskamo does not execute packages during review.

mcp-google-analytics logo, by leonardosepulvedatCommunity listingLocal stdioSource reviewed; not executedPublished by leonardosepulvedat
You need:enable Google Analytics Data APIDownload a JSON keyadd the service account email as Viewer
Vendor documentation

Checks and signals

Each line is separate evidence, not a trust score.

  • Popularity 2 GitHub stars

What you can do with it

  • Run reports and funnels
  • Audit custom dimensions and key events
  • Send ecommerce and conversion events server-side
  • Verify events in the realtime report

Source and maintenance

Community listingRegistry 1.3.0MIT
Last repository push
Latest release
v1.3.1
Maintenance checked

Packages and installation

Source-provided package data. Koskamo has not executed or live-probed this package.

mcp-google-analytics 1.3.0

npm
mcp-google-analytics package definition
{
  "version": "1.3.0",
  "transport": "stdio",
  "identifier": "mcp-google-analytics",
  "registryType": "npm",
  "environmentVariables": [
    {
      "name": "GA_SERVICE_ACCOUNT_JSON",
      "format": "string",
      "description": "Service account JSON for reading reports: file path or inline JSON (needed for read tools)"
    },
    {
      "name": "GA_PROPERTY_ID",
      "format": "string",
      "description": "Numeric GA4 property ID, e.g. 123456789 (needed for read tools)"
    },
    {
      "name": "GA_MEASUREMENT_ID",
      "format": "string",
      "description": "Measurement ID of the data stream, e.g. G-XXXXXXXXXX (needed for event-sending tools)"
    },
    {
      "name": "GA_API_SECRET",
      "format": "string",
      "description": "Measurement Protocol API secret (needed for event-sending tools)"
    }
  ]
}

Tools

Reported by the attributed source; not independently observed by Koskamo.

No tool definitions available.

Maintenance history

Public check and source-refresh events. Editorial and ownership records remain private.

  • · repository · passed · metadata changed · updated
  • · backfill · recorded · Pre-expansion baseline; unobserved rich metadata remains unknown

Connect from your client

Each snippet configures the same source-provided package; replace placeholders before use.

This server is operated by the named third party. Listing and endpoint checks are not an endorsement or a security audit. Review the operator's permissions, terms, and data handling before connecting. How listings are checked and corrected.

Cursor

Merge this local stdio configuration, replace every placeholder environment value, and restart Cursor. Koskamo has not executed this package.
Cursor configuration
{
  "mcpServers": {
    "mcp-google-analytics": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-google-analytics@1.3.0"
      ],
      "env": {
        "GA_SERVICE_ACCOUNT_JSON": "<YOUR_GA_SERVICE_ACCOUNT_JSON>",
        "GA_PROPERTY_ID": "<YOUR_GA_PROPERTY_ID>",
        "GA_MEASUREMENT_ID": "<YOUR_GA_MEASUREMENT_ID>",
        "GA_API_SECRET": "<YOUR_GA_API_SECRET>"
      }
    }
  }
}

Cline

Merge this local stdio configuration, replace every placeholder environment value, and restart Cline. Koskamo has not executed this package.
Cline configuration
{
  "mcpServers": {
    "mcp-google-analytics": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-google-analytics@1.3.0"
      ],
      "env": {
        "GA_SERVICE_ACCOUNT_JSON": "<YOUR_GA_SERVICE_ACCOUNT_JSON>",
        "GA_PROPERTY_ID": "<YOUR_GA_PROPERTY_ID>",
        "GA_MEASUREMENT_ID": "<YOUR_GA_MEASUREMENT_ID>",
        "GA_API_SECRET": "<YOUR_GA_API_SECRET>"
      }
    }
  }
}

VS Code

Merge this local stdio configuration, replace every placeholder environment value, and restart VS Code. Koskamo has not executed this package.
VS Code configuration
{
  "servers": {
    "mcp-google-analytics": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "mcp-google-analytics@1.3.0"
      ],
      "env": {
        "GA_SERVICE_ACCOUNT_JSON": "<YOUR_GA_SERVICE_ACCOUNT_JSON>",
        "GA_PROPERTY_ID": "<YOUR_GA_PROPERTY_ID>",
        "GA_MEASUREMENT_ID": "<YOUR_GA_MEASUREMENT_ID>",
        "GA_API_SECRET": "<YOUR_GA_API_SECRET>"
      }
    }
  }
}

Claude Desktop

Merge this local stdio configuration, replace every placeholder environment value, and restart Claude Desktop. Koskamo has not executed this package.
Claude Desktop configuration
{
  "mcpServers": {
    "mcp-google-analytics": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-google-analytics@1.3.0"
      ],
      "env": {
        "GA_SERVICE_ACCOUNT_JSON": "<YOUR_GA_SERVICE_ACCOUNT_JSON>",
        "GA_PROPERTY_ID": "<YOUR_GA_PROPERTY_ID>",
        "GA_MEASUREMENT_ID": "<YOUR_GA_MEASUREMENT_ID>",
        "GA_API_SECRET": "<YOUR_GA_API_SECRET>"
      }
    }
  }
}

Let your agent find its tools

Find servers like mcp-google-analytics from your agent. Add Koskamo once to search the index for endpoints, access requirements, and client setup. Public discovery needs no key.