Google Analytics MCP for Coolify
用于 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 Cloud 项目 ID |
| 最终 HTTPS 源,不含 |
| Google OAuth Web 客户端 ID |
| Google OAuth Web 客户端密钥 |
| 用于签署 MCP 令牌的长随机密钥 |
| 用于加密存储的 OAuth 数据的 Fernet 密钥 |
| 分析授权的 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.0fastmcp==3.4.7Python 3.11
版本锁定使部署可重复。在更新它们之前,请检查上游发行版本。
This server cannot be installed
Maintenance
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
- Alicense-qualityCmaintenanceA FastMCP-powered server that connects Google Analytics 4 data to Claude Desktop with automatic OAuth 2.0 authentication, enabling users to access GA4 metrics, properties, and reports through natural language queries.18MIT
- Alicense-qualityDmaintenanceA unified MCP server that gives AI assistants direct access to Google Analytics 4, Google Search Console, Google Ads and Google Merchant Center data using OAuth2 user credentials.MIT
- Alicense-qualityCmaintenanceA GCP-hosted MCP server for Google Analytics GA4 where each user logs in with their own Google account and queries are scoped to that user's permissions.Apache 2.0
- Flicense-qualityCmaintenanceEnables MCP clients to read Google Analytics 4 data, deployed as a Cloudflare Worker with service account authentication.1
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.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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