Google Analytics Data API MCP ServerServer

eno-graph
GitHub
Google AnalyticsData APIMCP Server

Loading subscription status...

💡 Description

An MCP server to access the Google Analytics Data API, allowing users to retrieve reports and real-time data from Google Analytics 4 properties.

📝 JSON Entries

{
  "mcpServers": [
    {
      "google-analytics": {
        "env": {
          "GA_PROPERTY_ID": "your-ga4-property-id",
          "GOOGLE_PRIVATE_KEY": "your-private-key",
          "GOOGLE_CLIENT_EMAIL": "your-service-account@project.iam.gserviceaccount.com"
        },
        "args": [
          "/path/to/mcp-server-google-analytics/build/index.js"
        ],
        "command": "node"
      }
    }
  ]
}

🛠️ Tools

get_reportget_realtime_data

Features

  • Provides tools for accessing Google Analytics Data API
  • Real-time data access
  • Supports custom metrics and dimensions

💬 Example Queries

  • Get the number of active users over the last 7 days
  • Retrieve real-time data on currently active users