Skip to main content
Glama
ccsDevs

Google Analytics MCP for Coolify

by ccsDevs

用于 Coolify 的 Google Analytics MCP

此软件包在 Google 官方实验性的 analytics-mcp 软件包前放置了一个安全的 FastMCP HTTP/OAuth 网关。它旨在作为独立的 Coolify 应用部署,并且不会修改现有的 Google Ads MCP 部署。

所提供的功能

  • /mcp 上提供可流式传输的 HTTP MCP 端点

  • 为远程 MCP 端点提供 Google OAuth 保护

  • 为 MCP OAuth 注册和令牌提供加密持久化存储

  • 来自官方 analytics-mcp 软件包的 Google Analytics Admin API 和 Data API 工具

  • 支持授权用户 ADC JSON 或服务账号 JSON 密钥

Related MCP server: Google MCP Server

所需的 Coolify 配置

创建一个持久化存储挂载到 /data,并暴露端口 8080

在新的 Analytics 应用中设置以下环境变量:

变量

目的

GOOGLE_PROJECT_ID

现有的 Google Cloud 项目 ID

GOOGLE_ANALYTICS_MCP_BASE_URL

最终 HTTPS 源,不含 /mcp

GOOGLE_ANALYTICS_MCP_OAUTH_CLIENT_ID

Google OAuth Web 客户端 ID

GOOGLE_ANALYTICS_MCP_OAUTH_CLIENT_SECRET

Google OAuth Web 客户端密钥

GOOGLE_ANALYTICS_MCP_JWT_SIGNING_KEY

用于签署 MCP 令牌的长随机密钥

GOOGLE_ANALYTICS_MCP_STORAGE_ENCRYPTION_KEY

用于加密存储的 OAuth 数据的 Fernet 密钥

GOOGLE_ANALYTICS_CREDENTIALS_JSON

分析授权的 ADC JSON,作为一个密钥值输入

PORT 是可选的,默认值为 8080

Google Cloud 配置

在同一个 Google Cloud 项目中启用两个 API:

  • Google Analytics Admin API

  • Google Analytics Data API

OAuth 客户端必须是 Web 应用。在分配最终域名后,添加此授权的重定向 URI:

https://YOUR-ANALYTICS-MCP-DOMAIN/auth/callback

添加到 ChatGPT 的 MCP URL 为:

https://YOUR-ANALYTICS-MCP-DOMAIN/mcp

重要的凭据分离

不要修改现有的 Ads 应用或替换其凭据。GOOGLE_ANALYTICS_CREDENTIALS_JSON 值仅属于此独立的 Analytics 应用,并且必须包含 https://www.googleapis.com/auth/analytics.readonly 范围。

当 Google OAuth 同意屏幕处于测试模式时,Google 可能会在七天后使授权用户的刷新令牌过期。这是 Google OAuth 测试限制,而非 Coolify 故障。

版本

  • analytics-mcp==0.7.0

  • fastmcp==3.4.7

  • Python 3.11

版本锁定使部署可重复。在更新它们之前,请检查上游发行版本。

F
license - not found
-
quality - not tested
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

View all related MCP servers

Related MCP Connectors

  • Self-hosted federated MCP gateway: one OAuth 2.1 MCP server in front of N apps, user-level scopes.

  • Google-OAuth-gated LLM gateway: verify a Google ID token, then run a Gemini (Vertex AI) completion f

  • Streamable HTTP MCP server for Google Calendar and Sheets with OAuth login.

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/ccsDevs/google-analytics-mcp-coolify'

If you have feedback or need assistance with the MCP directory API, please join our Discord server