Prototyp · Vorschau: alle Server aus der offiziellen Registry, alle 30 Minuten synchronisiert. Bewertungen und Benutzerkonten folgen in einem späteren Schritt.
PopNx MCPMCP-Server für alle, die KI nutzen · in einfachen Worten erklärt

MCP Google Analytics

von leonardosepulvedatVersion 1.3.0i★ –iLäuft auf deinem Computer
Name in der Registryio.github.leonardosepulvedat/mcp-google-analytics

Installieren

Überblick

Beschreibung vom Entwickler (englisches Original)

GA4 MCP that reads AND writes: reports, funnels, audits, and server-side events. 26 tools.

Die drei Säulen von PopNx MCP

Diese drei werden nie zu einer Punktzahl zusammengefasst: Meinungen, Messungen und Beliebtheit sind verschiedene Dinge.

Was du damit machen kannst

Für diesen Server haben wir noch keine Zusammenfassung in einfacher Sprache geschrieben. Unten stehen die Fakten, die wir aus der Registry gelesen haben.

  • Verbindung: Läuft auf deinem Computer
  • Transport: stdio
  • Kategorie: Marketing & Social Media
  • Das musst du eintragen: GA_SERVICE_ACCOUNT_JSON, GA_API_SECRET

Installation

Wähle die KI-App, die du nutzt, und kopiere die Einstellungen.

Bevor du installierst

  • Basischecks: 1 von 1 bestanden
  • Läuft auf deinem Computer mit den Rechten deines Benutzerkontos (Dateien, Netzwerk, Apps).
  • Das trägst du selbst ein: GA_SERVICE_ACCOUNT_JSON, GA_PROPERTY_ID, GA_MEASUREMENT_ID, GA_API_SECRET

Als geheim markierte Werte sind Schlüssel zu deinem Konto. Gib sie nie weiter und füge sie nie in einen Chat ein.

Du brauchst

  • npmNode.js installiert (für den Befehl npx)

Welche App nutzt du?

Wähle oben deine App. Wir merken sie uns, damit der Button beim nächsten Mal „In … installieren“ anzeigt.

Öffne Claude Desktop → Settings → Developer → Edit Config und füge dies in claude_desktop_config.json ein

{
  "mcpServers": {
    "google-analytics": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-google-analytics"
      ],
      "env": {
        "GA_SERVICE_ACCOUNT_JSON": "your-value",
        "GA_PROPERTY_ID": "your-value",
        "GA_MEASUREMENT_ID": "your-value",
        "GA_API_SECRET": "your-value"
      }
    }
  }
}

Führe das in deinem Terminal aus

claude mcp add google-analytics --env GA_SERVICE_ACCOUNT_JSON=your-value --env GA_PROPERTY_ID=your-value --env GA_MEASUREMENT_ID=your-value --env GA_API_SECRET=your-value -- npx -y mcp-google-analytics

Trag die leeren Werte ein, bevor du ihn startest.

In Cursor öffnen

Oder kopier die Einstellungen selbst

In .cursor/mcp.json in deinem Projekt oder in ~/.cursor/mcp.json einfügen

{
  "mcpServers": {
    "google-analytics": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-google-analytics"
      ],
      "env": {
        "GA_SERVICE_ACCOUNT_JSON": "your-value",
        "GA_PROPERTY_ID": "your-value",
        "GA_MEASUREMENT_ID": "your-value",
        "GA_API_SECRET": "your-value"
      }
    }
  }
}

Dein Browser fragt, ob er die App öffnen darf, dann zeigt die App die Einstellungen und bittet dich um Bestätigung. Schlüsselwerte bleiben leer, damit du sie selbst einträgst.

In VS Code öffnen

Oder kopier die Einstellungen selbst

In .vscode/mcp.json in deinem Projekt einfügen

{
  "servers": {
    "google-analytics": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "mcp-google-analytics"
      ],
      "env": {
        "GA_SERVICE_ACCOUNT_JSON": "your-value",
        "GA_PROPERTY_ID": "your-value",
        "GA_MEASUREMENT_ID": "your-value",
        "GA_API_SECRET": "your-value"
      }
    }
  }
}

Dein Browser fragt, ob er die App öffnen darf, dann zeigt die App die Einstellungen und bittet dich um Bestätigung. Schlüsselwerte bleiben leer, damit du sie selbst einträgst.

Dieser Server läuft auf deinem Computer, und ChatGPT kann sich nur mit Servern im Internet verbinden. Wähle eine andere App.

Deine Auswahl bleibt in einem Cookie auf diesem Gerät; kein Konto nötig.

Werte, die du selbst einträgst

  • GA_SERVICE_ACCOUNT_JSON geheim env
    Service account JSON for reading reports: file path or inline JSON (needed for read tools)
  • GA_PROPERTY_ID env
    Numeric GA4 property ID, e.g. 123456789 (needed for read tools)
  • GA_MEASUREMENT_ID env
    Measurement ID of the data stream, e.g. G-XXXXXXXXXX (needed for event-sending tools)
  • GA_API_SECRET geheim env
    Measurement Protocol API secret (needed for event-sending tools)

Diese Einstellungen werden aus dem Registry-Eintrag des Entwicklers erzeugt. Wenn in der README etwas anderes steht, folge der README.

Was er kann

Läuft auf deinem Computer; die Tool-Liste erscheint nach der Installation in deiner KI-App.

Basischecksi

Wir prüfen Informationen, die jeder sehen kann; den Code haben wir nicht gelesen. Checks, die nicht zutreffen, werden nicht mitgezählt. · Geprüft am 7. Nov. 2026

  • ✓ Bestanden

    Entwickler passt zum Repo

    Der Registry-Name wurde mit dem GitHub-Konto leonardosepulvedat bestätigt, dem das Repo gehört

  • … Noch nicht geprüft

    Wird noch gepflegt

    Dieses Repo haben wir noch nicht von GitHub gelesen

  • … Noch nicht geprüft

    Hat eine Lizenz

    Dieses Repo haben wir noch nicht von GitHub gelesen

  • – Nicht zutreffend

    Endpunkt antwortet

    Dieser Server läuft auf deinem Computer; es gibt keinen Endpunkt im Internet

  • – Nicht zutreffend

    Anmeldung mit OAuth

    Läuft auf deinem Computer und nutzt stattdessen lokale Einstellungen

  • … Noch nicht geprüft

    Keine versteckten Anweisungen in Tool-Beschreibungen

    Läuft auf deinem Computer; Tool-Listen können wir nur von Endpunkten im Internet lesen

Im Vergleich mit anderen in Marketing & Social Mediai

  • Mehr Sterne als 0 % der anderen 3559 Server in dieser Kategorie
  • Neuer in der Registry veröffentlicht als 27 % der anderen 3559 Server in dieser Kategorie
  • Basischecks gleich gut wie oder besser als bei 100 % der anderen 3559 Server in dieser Kategorie

Verglichen mit allen aktiven Servern dieser Kategorie in der Registry. Sterne zählen nur, wenn dem Herausgeber das Repo gehört.

Häufige Fragen

Ist MCP Google Analytics sicher?

Er hat 1 von 1 zutreffenden Basischecks bestanden. Den Code haben wir nicht gelesen. Bevor du einen Schlüssel oder Token hinzufügst, sieh nach, welche Zugriffe der Server verlangt, und nutze einen Schlüssel, der nur die Berechtigungen hat, die du brauchst.

Welche Schlüssel oder Codes braucht er?

Das musst du eintragen: GA_SERVICE_ACCOUNT_JSON, GA_API_SECRET

Läuft er auf meinem Computer oder in der Cloud?

Er läuft auf deinem Computer. Deine KI-App startet ihn bei Bedarf, und die Daten laufen nicht über die Server des Entwicklers (außer der Server ruft selbst einen Onlinedienst auf).

Wird er noch gepflegt?

Das GitHub-Repo wurde zuletzt – geändert, und die neueste Version (1.3.0) kam vor 3 Monaten in die Registry.

Welche Apps können ihn nutzen?

Apps, die MCP unterstützen, etwa Claude Desktop, Claude Code, Cursor und VS Code. Außerdem brauchst du Node.js auf deinem Computer.

Was kann ich stattdessen nutzen?

In derselben Kategorie: MCP YouTube Transcript, Google Analytics MCP, BibiGPT YouTube Video Summarizer

Alternativen

Server derselben Kategorie von anderen Entwicklern, sortiert nach Sternen.

So liest du eine Karte:★ GitHub-SterneiDrei Säulen: Bewertungen · Checks · NutzungiAktualisiert = neueste Version in der Registry veröffentlichti

Google Analytics MCP

von surendranb

GA4 MCP server for AI agents: schema discovery, server-side aggregation, analysis-ready defaults.

Läuft auf deinem Computer★ 244MITAktualisiert vor 10 Tagen
Installieren

README vom Entwickler

README öffnen

Unverändert aus dem Repo des Entwicklers übernommen. PopNx MCP hat den Inhalt weder geprüft noch empfiehlt es ihn. HTML, Bilder und Skripte wurden entfernt. Links führen von dieser Website weg.

MCP Google Analytics Server

A Model Context Protocol (MCP) server for Google Analytics 4, providing comprehensive integration with both the Google Analytics Data API (for reading reports) and Measurement Protocol v2 (for sending events).

The GA4 MCP that reads AND writes. Most GA4 MCP servers (including Google's official one) are read-only. This one gives your AI agent the full loop: run reports and funnels, audit your setup (custom dimensions, key events, compatibility checks), send ecommerce and conversion events server-side, and verify them in the realtime report — 26 tools in one npx command.

Built for agencies too: every read tool accepts an optional propertyId, so one conversation can query all your clients' properties — no reconfiguration between clients. See Multi-Property Mode.

⚡ One-Click Install

You only need two values to start (same as any other GA4 MCP): the service account JSON and your property ID. Sending events is an optional extra.

Click Install in Cursor, then paste:

  1. `GA_SERVICE_ACCOUNT_JSON` — path to the downloaded key file, or the JSON itself
  2. `GA_PROPERTY_ID` — the numeric ID in GA4 Admin → Property Settings (e.g. 123456789)

That is enough to ask “users by country this week”. To also send events, add two more keys later (see Send events (optional)).

💡 Keep reports small

Reports can get large. This server is designed with token optimization in mind:

  • All read tools default to 10 results - Adjust the limit parameter as needed
  • Use specific date ranges - Avoid querying years of data at once
  • Select only needed dimensions/metrics - Don't request everything
  • Check [TOKEN_OPTIMIZATION.md](TOKEN_OPTIMIZATION.md) for detailed best practices

See the dedicated Token Optimization Guide for strategies to minimize token usage.

🚀 Quick Start

See QUICKSTART.md for a 5-minute setup guide, or follow the installation steps below.

📦 Installation

Option 1: Install globally via npm
npm install -g mcp-google-analytics
Option 2: Use with npx (no installation needed)
npx mcp-google-analytics

🔧 Configuration

Start with two values. That unlocks reports, funnels, realtime, and property audits — everything most people need, and the same setup every other GA4 MCP asks for.

1. Service account key
  1. In Google Cloud Console, enable Google Analytics Data API.
  2. IAM & Admin → Service Accounts → Create. Download a JSON key.
  3. In GA4: Admin → Property Access Management → add the service account email as Viewer.

Use the file path or paste the JSON into GA_SERVICE_ACCOUNT_JSON.

2. Property ID

GA4 Admin → Property Settings → Property ID (numbers only, e.g. 123456789).

{

"mcpServers": { "google-analytics": { "command": "npx", "args": ["-y", "mcp-google-analytics"], "env": { "GA_SERVICE_ACCOUNT_JSON": "/path/to/service-account.json", "GA_PROPERTY_ID": "123456789" } } } }

You can now ask: *“Show me active users by country this week.”*

Send events (optional)

Only if you want the agent to record events (purchases, signups, custom events). Most GA4 MCPs cannot do this; it is extra, not required.

  1. GA4 Admin → Data Streams → your stream → copy Measurement ID (G-XXXXXXXXXX).
  2. Measurement Protocol API secrets → Create → copy the secret.

Add them next to the two values you already have:

"GA_MEASUREMENT_ID": "G-XXXXXXXXXX",

"GA_API_SECRET": "your-api-secret"

🏢 Multi-Property Mode (Agencies)

Every read tool accepts an optional propertyId argument that overrides the configured GA_PROPERTY_ID — so a single conversation can query any property the service account can access, with no reconfiguration between clients.

  1. Grant your service account "Viewer" access on each client's GA4 property (or at account level).
  2. Set only GA_SERVICE_ACCOUNT_JSON (GA_PROPERTY_ID becomes optional — if set, it acts as the default).
  3. Discover properties, then query any of them:
Show me all my accounts and properties          → ga_get_account_summaries

Compare last week's active users between the → ga_run_report with propertyId "111111" Acme property and the Globex property and again with propertyId "222222"

propertyId accepts both 123456789 and properties/123456789. Event sending (Measurement Protocol) remains tied to the configured GA_MEASUREMENT_ID/GA_API_SECRET, since each data stream has its own secret.

🔌 Integration with Claude Desktop

Add to your Claude Desktop configuration file:

macOS: ~/Library/Application Support/Claude/claude_desktop_config.json Windows: %APPDATA%/Claude/claude_desktop_config.json

{

"mcpServers": { "google-analytics": { "command": "npx", "args": ["-y", "mcp-google-analytics"], "env": { "GA_SERVICE_ACCOUNT_JSON": "/path/to/service-account.json", "GA_PROPERTY_ID": "123456789" } } } }

Or if installed globally:

{

"mcpServers": { "google-analytics": { "command": "mcp-google-analytics", "env": { "GA_SERVICE_ACCOUNT_JSON": "/path/to/service-account.json", "GA_PROPERTY_ID": "123456789" } } } }

Restart Claude Desktop after updating the configuration.

🎯 Integration with Cursor

Add to your Cursor MCP settings file:

macOS/Linux: ~/.cursor/mcp.json Windows: %USERPROFILE%\.cursor\mcp.json

{

"mcpServers": { "google-analytics": { "command": "npx", "args": ["-y", "mcp-google-analytics"], "env": { "GA_SERVICE_ACCOUNT_JSON": "/path/to/service-account.json", "GA_PROPERTY_ID": "123456789" } } } }

Restart Cursor after updating the configuration.

🛠️ Available Tools

At a Glance

Reading data (Google Analytics Data API) — all read tools default to 10 rows to save tokens:

ToolPurposeNotes
ga_run_reportCustom reports with dimensions and metricsAdjust limit as needed
ga_run_realtime_reportReal-time data (last 30 minutes)Great for verifying sent events
ga_get_metadataAll available dimensions and metricsLarge response (500+ items), use sparingly
ga_list_accountsList accessible GA accounts
ga_list_propertiesList GA4 propertiesAggregates all accounts if no accountId
ga_get_propertyDetails of the configured property
ga_list_data_streamsData streams of the propertyUseful to find measurement IDs
ga_run_pivot_reportPivot table reportsResponses can be very large
ga_run_funnel_reportFunnel analysis across event stepsUses Data API v1alpha
ga_batch_run_reportsMultiple reports in one request2–5 reports per batch recommended
ga_get_account_summariesAll accounts and properties in one callFastest way to discover IDs
ga_list_custom_dimensionsCustom dimensions of the propertyDiscover API names for reports
ga_list_custom_metricsCustom metrics of the propertyDiscover API names for reports
ga_list_key_eventsKey events (conversions) of the propertyKnow what counts as a conversion
ga_list_google_ads_linksGoogle Ads accounts linked to the property
ga_check_compatibilityValidate dimension/metric combos before reportingAvoids wasted requests and error loops

Sending events (Measurement Protocol):

ToolPurpose
ga_send_eventAny custom GA4 event with parameters
ga_validate_eventTest an event against the debug endpoint without recording it
ga_send_pageviewPage/screen views
ga_send_purchaseEcommerce purchases with transaction and items
ga_send_loginUser logins
ga_send_signupUser registrations
ga_send_view_itemProduct/item detail views
ga_send_add_to_cartAdd-to-cart events
ga_send_begin_checkoutCheckout initiations
ga_send_refundFull or partial refunds
Google Analytics Data API (Reading Data)
ga_run_report

Run custom reports with dimensions and metrics.

Common Dimensions: date, city, country, deviceCategory, browser, pagePath, eventName, sessionSource, sessionMedium, sessionCampaignName

Common Metrics: activeUsers, sessions, screenPageViews, conversions, totalRevenue, engagementRate, averageSessionDuration

Example:

{

"dateRanges": [{"startDate": "7daysAgo", "endDate": "today"}], "dimensions": [{"name": "city"}], "metrics": [{"name": "activeUsers"}], "limit": 10 }

ga_run_realtime_report

Get real-time data (last 30 minutes).

Example:

{

"metrics": [{"name": "activeUsers"}], "dimensions": [{"name": "country"}], "limit": 10 }

ga_get_metadata

Get all available dimensions and metrics for your property.

Warning: Returns 500+ items. Use sparingly.

ga_list_accounts

List all GA accounts accessible to the service account.

ga_list_properties

List GA4 properties, optionally filtered by account ID.

ga_get_property

Get details about the configured property.

ga_list_data_streams

List data streams for the configured property.

ga_run_pivot_report

Run pivot table reports with row/column dimensions.

Example:

{

"dateRanges": [{"startDate": "7daysAgo", "endDate": "today"}], "dimensions": [{"name": "country"}, {"name": "deviceCategory"}], "metrics": [{"name": "activeUsers"}], "pivots": [{"fieldNames": ["deviceCategory"], "limit": 5}] }

ga_run_funnel_report

Run funnel analysis to track user progression.

Note: Funnel reporting uses the Data API v1alpha channel (the only channel where Google exposes it). Each step matches an event: set eventName per step, or omit it to use the step's name as the event name. For advanced matching, pass a full filterExpression.

Example:

{

"dateRanges": [{"startDate": "7daysAgo", "endDate": "today"}], "funnelSteps": [ {"name": "page_view"}, {"name": "add_to_cart"}, {"name": "begin_checkout"}, {"name": "Purchase", "eventName": "purchase"} ] }

ga_batch_run_reports

Run multiple reports in a single request.

Warning: Can return large datasets. Limit to 2-5 reports per batch.

ga_get_account_summaries

Get all accessible accounts with their properties in a single compact call. The fastest way to discover account and property IDs.

ga_list_custom_dimensions / ga_list_custom_metrics

List the custom dimensions and metrics defined for the property, including their API names (e.g., customEvent:plan_type) so yo

Nur der Anfang wird gezeigt; den Rest findest du im Repo

PopNx fragen