Back to Browse

Google Analytics MCP Server

Data & AnalyticsLow Risk9.9MCP RegistryRemote
Free

Server data from the Official MCP Registry

Google's own Analytics MCP server, hosted by foro: GA4 accounts, properties and reports. Read-only.

About

Google's own Analytics MCP server, hosted by foro: GA4 accounts, properties and reports. Read-only.

Remote endpoints: streamable-http: https://{slug}.foro.sh/mcp

Security Report

9.9
Low Risk9.9Low Risk

Valid MCP server (1 strong, 0 medium validity signals). No known CVEs in dependencies. Imported from the Official MCP Registry. 1 finding(s) downgraded by scanner intelligence.

Endpoint verified · Open access · 1 issue found

Security scores are indicators to help you make informed decisions, not guarantees. Always review permissions before connecting any MCP server.

Permissions Found in Source Code

Found by scanning the linked source code. This listing connects to a hosted endpoint, so none of this runs on your machine: it describes what the server software does where it is hosted.

HTTP Network Access

Connects to external APIs or services over the internet.

env_vars

Applies to the server that hosts this plugin, not to your machine.

file_system

Applies to the server that hosts this plugin, not to your machine.

How to Connect

Remote Plugin

No local installation needed. Your AI client connects to the remote endpoint directly.

Add this to your MCP configuration to connect:

{
  "mcpServers": {
    "sh-foro-google-analytics": {
      "url": "https://{slug}.foro.sh/mcp"
    }
  }
}

Documentation

View on GitHub

From the project's GitHub README.

Google Analytics MCP

An MCP server for Google Analytics, built to deploy on foro.sh as the Google Analytics blueprint. The server is Google's own (analytics-mcp on PyPI, Apache-2.0), pinned and run unchanged behind foro's gate. Google is not affiliated with foro; see NOTICE.

Read-only

The server runs in Google's streamable HTTP mode without --allow-write, so only Google's read tools are registered: account and property details, and standard, realtime, funnel and conversions reports. foro asks Google for analytics.readonly and nothing else.

foro-tools.json is what foro reads to list the tools. It is generated from tools.py, which also labels each tool: run uv run scripts/write_manifest.py after changing it. A tool Google adds fails the tests until it has a label.

Sign-in

The server holds no Google credentials. foro signs each member in to Google with foro's own Google client and keeps the refresh token. Google's HTTP mode reads the caller's token from the Authorization header, so broker.py asks foro's upstream broker for the caller's access token under the google grant and puts it there on each tool call, replacing any header a client sent. It only runs inside a foro deploy, which sets FORO_UPSTREAM_BROKER_URL and FORO_UPSTREAM_BROKER_TOKEN.

Updates

[tool.foro.upstream] in pyproject.toml pins Google's release. A daily workflow (upstream-sync.yml) opens a pull request when Google publishes a new one: it relocks, regenerates foro-tools.json and writes the served tool list to tools.json, whose diff the pull request shows.

Development

uv sync
uv run pytest
./smoke.sh   # serve, list the tools, write tools.json

Reviews

No reviews yet

Be the first to review this server!