Google Ads MCP Server 40d05c37

MCP安全风控

提供方 juanesmb

安全风控 未标注 OAuth 授权 社区 / 第三方

Google Ads的模型上下文协议服务器,作为OAuth 2.1资源服务器,验证JWT令牌并代理Google Ads API请求。

一句话选型结论

按资料字段整理

Google Ads MCP Server 40d05c37 属于安全风控类 MCP 服务器,传输方式未标注,OAuth 授权,没有现成安装命令,需按官方文档接入。接入前先确认权限范围;涉及写入、删除或付款的操作,建议先在测试环境验证。

分类安全风控 传输方式未标注 鉴权OAuth 授权 部署方式未标注
GitHub 星标 0 仓库热度,无公开仓库时显示未标注
工具数 2 暴露给模型的工具数量
资源 / 提示词 0 / 0 资源与提示词模板数量
维护方 社区 / 第三方 核验等级 仅资料核对

工具与能力

安全风控
数量来自来源目录的标注,具体工具清单以官方文档为准
工具数量2暴露给模型可调用的工具个数
资源数量0可读取的资源条目
提示词数量0内置提示词模板数量

能力标签

适用场景

OAuth2.1Go本地部署JWT验证API代理GoogleAds资源服务器

安装与配置

未标注 OAuth 授权
上游未给出传输方式
  1. 1
    准备运行环境

    按官方文档确认运行环境(常见为 Node.js 或 Python),装好后再执行安装命令。

  2. 2
    安装服务

    复制上面的安装命令执行;命令里带占位符的位置,换成自己的密钥或路径。

  3. 3
    写入客户端配置

    在客户端的 MCP 配置里填好启动命令和参数,保存后完全退出客户端再打开,让新配置生效。

  4. 4
    验证是否可用

    连接成功后客户端会列出约 2 个工具,随便调一个只读工具确认能返回结果。

典型使用场景

3 类
按分类与标签整理的常见用法,具体以官方文档为准
资产与漏洞排查

盘点资产、扫漏洞、看暴露面。

日志与审计

汇总日志、查异常行为。

合规检查

按规则检查配置与权限是否合规。

选择建议

选之前先看这几条
按条目字段给出的判断,不替你决定用不用

值得选的地方

  • 资料标注 2 个工具,职责相对集中,接入后不容易误操作。

先想清楚的地方

  • 没有现成安装命令,需要按官方文档自己填启动命令和参数。
  • 使用前要准备好OAuth 授权对应的凭据,并按最小权限配置。
  • 版本更新与行为细节以官方仓库为准。

更适合

  • 需要在安全风控场景里让模型直接调用外部能力的人。
  • 想先快速试一下、能接受在本地或自有环境跑服务的人。

不太适合

  • 不方便管理密钥或第三方授权的人。
  • 需要厂商级 SLA 和技术支持的生产环境。

同类对比

6 个同类
同分类里挑最接近的几条,字段以各自详情页为准
MCP 服务器工具数传输方式部署方式安装命令最后核验
Google Ads MCP Server 40d05c37当前 2 未标注 未标注 无 2026-05-17
Cyber Strike AI 75 未标注 未标注 无 2026-05-17
mcp-for-beginners 未标注 stdio · 本地进程 本地部署 有 2026-04-13
casdoor 未标注 stdio · 本地进程 本地部署 有 2026-04-12
kubeshark 未标注 stdio · 本地进程 本地部署 有 2026-04-11
Modelcontextprotocol C22988b0 未标注 stdio · 本地进程 本地部署 有 2026-05-17

服务器档案

安全风控
字段来自项目仓库与公开索引,中文说明由本站标注
提供方juanesmb上游标注的维护方 juanesmb
分类安全风控本站按上游分类展示
连接方式未标注上游未给出传输方式
鉴权方式OAuth 授权远程服务建议用最小权限凭据
维护方社区 / 第三方核验等级 仅资料核对
包名 / 运行时未标注 · 未标注本地安装时用到的包标识与运行时
部署类型未标注上游给出的部署形态
最近核验2026-05-17上游最后核验时间

详细介绍

4.7 KB
来自项目仓库与上游目录的原文,未做删改

Google Ads MCP Server

Model Context Protocol (MCP) server for Google Ads. The server acts as an OAuth 2.1 resource server: clients send a Clerk JWT (Authorization: Bearer). The server validates the token, then calls your mcp-ads-manager gateway with a shared secret to run Google Ads API requests with the user’s stored OAuth tokens.

Architecture

  • Clerk issues JWTs for MCP clients. Configure CLERK_AUDIENCE to the canonical MCP resource URL (same host/path as PUBLIC_BASE_URL + MCP_SERVER_PATH).
  • google-ads-mcp validates JWTs (JWKS) and exposes RFC 9728 metadata at /.well-known/oauth-protected-resource (and the path-suffixed variant for streamable HTTP).
  • Gateway (GATEWAY_BASE_URL) holds Google OAuth refresh tokens and proxies Google Ads API calls (e.g. googleAds:search, customers:listAccessibleCustomers) with the developer token. The MCP never forwards the Clerk token to Google.

Unauthenticated requests to the MCP path receive 401 with WWW-Authenticate: Bearer resource_metadata="...".

Required environment variables

Variable Purpose
CLERK_JWKS_URL Clerk JWKS URL for JWT verification
CLERK_ISSUER Expected JWT iss
CLERK_AUDIENCE Expected JWT aud (MCP resource identifier)
GATEWAY_BASE_URL Base URL of mcp-ads-manager (e.g. https://app.example.com)
GATEWAY_INTERNAL_SECRET Must match gateway x-gateway-secret for internal routes

Optional:

Variable Purpose
PUBLIC_BASE_URL Public origin of this MCP (for metadata resource and resource_metadata URL). If unset, derived from the request.
AUTHORIZATION_SERVER_URL OAuth authorization server for metadata (defaults to CLERK_ISSUER)
MCP_REQUIRED_SCOPE If set, JWT must include this scope
MCP_DEBUG_AUTH Set to true for verbose auth logs (per-request details, unverified JWT claim peek on failure)
GATEWAY_CONNECT_URL / JUMON_CONNECT_URL URL shown when Google is not connected (defaults to {GATEWAY_BASE_URL}/connections)
MCP_SERVER_HOST, PORT, MCP_SERVER_PATH HTTP bind and MCP path (defaults: 0.0.0.0, 8080, /mcp)

Legacy aliases: JUMON_GATEWAY_BASE_URL, JUMON_GATEWAY_INTERNAL_SECRET for gateway URL and secret.

Cloud Run

Set PORT and listen on all interfaces. When Google sets K_SERVICE (always on Cloud Run), this server forces MCP_SERVER_HOST to 0.0.0.0 so a mistaken 127.0.0.1 or localhost bind cannot break the platform health check. You must supply the same required variables as in the table above—especially CLERK_JWKS_URL, CLERK_ISSUER, GATEWAY_BASE_URL, and GATEWAY_INTERNAL_SECRET (often via Secrets). Set PUBLIC_BASE_URL to your service URL (for example https://--.run.app) so OAuth metadata is stable. JWKS is loaded on the first request that needs JWT validation, so startup is not blocked by an outbound fetch to Clerk.

Deploy the latest main from this repo (not only the total_count fix). Older revisions called Clerk JWKS before ListenAndServe, which could prevent the container from ever opening PORT during startup.

Run locally```bash

export CLERK_JWKS_URL="https://clerk.example.com/.well-known/jwks.json"
export CLERK_ISSUER="https://clerk.example.com"
export CLERK_AUDIENCE="https://your-mcp-host/mcp"
export GATEWAY_BASE_URL="http://localhost:3000"
export GATEWAY_INTERNAL_SECRET="your-gateway-secret"
export PUBLIC_BASE_URL="http://localhost:8080"

go run .
```

Smoke checks

  1. Metadata: curl -s http://localhost:8080/.well-known/oauth-protected-resource | jq
  2. Unauthorized MCP: curl -i http://localhost:8080/mcp → expect 401 and WWW-Authenticate with resource_metadata
  3. Authorized (real Clerk bearer token): call a tool via your MCP client with Authorization: Bearer

MCP tools (account listing)

Tool Purpose
list_ad_accounts Customers accessible to the connected Google user (ListAccessibleCustomers). No customer_id.
list_client_accounts_under_manager GAQL customer_client rows under a manager (MCC) customer_id (legacy hierarchy listing).

Repository layout

  • internal/app/configs/ — server, auth, gateway env
  • internal/infrastructure/security/ — Clerk JWT verification
  • internal/infrastructure/middleware/ — bearer auth, logging, user id in context
  • internal/infrastructure/api/gateway/ — gateway HTTP client (connection check, proxy, refresh)
  • internal/infrastructure/api/*/ — GAQL + response mapping
  • internal/tools/listaccessiblecustomers/ — list_ad_accounts tool
  • internal/tools/listadaccounts/ — list_client_accounts_under_manager tool
  • internal/tools/*/ — other MCP tools

常见问题

5 问
答案由本站依据条目字段整理,不引用上游原文
Google Ads MCP Server 40d05c37 怎么安装?

资料没有给出安装命令,请到官方仓库或文档按说明接入;这类条目多数是生态应用,或尚未发布可安装包。

Google Ads MCP Server 40d05c37 怎么在客户端里配置?

它的传输方式未标注,在客户端 MCP 配置里按官方文档填写启动命令和参数,保存后重启客户端生效。

Google Ads MCP Server 40d05c37 收费吗?

本站不代收费用,也没有标注具体价格。是否收费取决于服务本身和背后的接口额度,正式使用前按官方说明确认。

Google Ads MCP Server 40d05c37 需要 API Key 吗?

资料标注需要OAuth 授权认证,使用前准备好对应凭据,并按最小权限配置。

Google Ads MCP Server 40d05c37 能提供哪些能力?

资料显示约 2 个工具;能力标签包括 Go、API代理、安全。具体工具清单以官方文档为准。

热门专题

按标签挑服务器
全部专题 →

服务器信息以作者仓库与官方文档为准;分类、传输方式与鉴权方式的中文说明为中文整理,最近核验 2026-05-17。