Skip to main content
Glama
devopsbrandmirchi

gconnect-mcp-all-v1

gconnect-mcp-all-v1

适用于 Claude.ai 自定义连接器的 True Model B Google Marketing MCP。

不是一个仅支持 GA4 的连接器,也不是一个仅支持 Google Ads 的连接器。它是一个共享平台,目前提供两个产品适配器,并为以后扩展 DV360 预留了扩展点:

Operator
  +-- Google Connection A
  |     +-- GA4 properties
  |     +-- Google Ads customers / MCC hierarchy
  +-- Google Connection B

MCP JWT 的 sub 始终是内部的 operatorId。Google OpenID 的 sub 只存在于 google_connections.googleSubjectId 中。

Architecture

flowchart TB
  Claude["Claude.ai"]
  McpAuth["MCP OAuth 2.1"]
  Operator["operators operatorId"]
  Resolver["ConnectionResolver"]
  Ga4["GA4 adapter"]
  Ads["Google Ads adapter"]
  Dv360["DV360 future"]
  Ga4Api["GA4 APIs"]
  AdsApi["Ads REST v25"]

  Claude --> McpAuth
  McpAuth --> Operator
  Operator --> Resolver
  Resolver --> Ga4
  Resolver --> Ads
  Resolver -.-> Dv360
  Ga4 --> Ga4Api
  Ads --> AdsApi

参见 docs/architecture.md

Related MCP server: GA4 MCP Server

Identity

  • MCP 身份验证回答:谁是操作者?

  • Google OAuth 回答:连接的是哪个 Google 账户?

  • 唯一性由 (operatorId, googleSubjectId) 决定,绝不使用电子邮件,也绝不使用全局 Google subject。

参见 docs/identity-model.md

Persistence

仅使用 Firestore 命名数据库 gconnect-mcp-all-v1

不要使用 (default)(V1)或 ga4-mcp-v3(V3)。启动时会拒绝这些 ID。

参见 docs/google-connections.md

本地开发

  1. .env.example 复制为 .env 并填入占位符。不要从 V3 复制密钥。

  2. npm install

  3. npm test

  4. npm run typecheck

  5. npm run dev

Claude 自定义连接器 URL 为 http://localhost:3000/mcp。健康检查地址为 GET /health

Google Ads

使用官方 Google Ads REST v25。只读。应用开发者令牌是应用级密钥(GOOGLE_ADS_DEVELOPER_TOKEN),绝不是用户的 OAuth 凭据。

服务器会根据发现的 MCC 层级关系解析 login-customer-id。带连字符的客户 ID 会在 API 使用前进行规范化。

参见 docs/google-ads.mddocs/ga4.md

部署

Cloud Run,未认证入口,Firestore 命名数据库 gconnect-mcp-all-v1

.\scripts\cloud-run-setup.ps1 -ProjectId YOUR_PROJECT
.\scripts\cloud-run-deploy.ps1 -ProjectId YOUR_PROJECT
.\scripts\cloud-run-set-env.ps1 -ProjectId YOUR_PROJECT -AppBaseUrl https://... -GoogleClientId ... -GoogleClientSecret ... -McpTokenSecret ... -OauthStateSecret ... -TokenEncryptionKey ... -GoogleAdsDeveloperToken ...

参见 docs/deployment.mddocs/security.md

F
license - not found
Not graded
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

  • A
    license
    Not graded
    quality
    C
    maintenance
    Unified MCP server for managing Meta Ads, LinkedIn Ads, Google Ads, GA4, and Search Console with 89 read/write tools, multi-account support, OAuth setup, and safe dry-run mutations.
    MIT
  • A
    license
    A
    quality
    B
    maintenance
    Connects MCP clients like Claude Desktop to Google Analytics 4 Data API, enabling natural language queries for reports, top pages, traffic sources, conversions, realtime users, and period comparisons.
    7
    MIT
  • A
    license
    Not graded
    quality
    B
    maintenance
    A unified MCP server for marketing analytics and management across Google Ads, Meta Ads, GA4, and keyword research, supporting multi-client rollups and platform-conditional credential requirements.
    MIT
  • A
    license
    Not graded
    quality
    D
    maintenance
    A 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

View all related MCP servers

Related MCP Connectors

  • Run Google, Meta, Microsoft, TikTok and LinkedIn Ads from Claude or ChatGPT. Writes need approval.

  • Hosted Amazon Seller Central and Amazon Ads MCP server for Claude, ChatGPT, Cursor, and agents.

  • Connect MCP clients to 2,000+ AI models without managing provider API keys.

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/devopsbrandmirchi/GMcpAllv1'

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