
Mcp Gads
io.github.pijusz由 GitHub 账号 pijusz 发布v0.5.4更新于 Oct 24, 2026
Google Ads MCP server — query campaigns, keywords, assets & more via natural language
概览
一个本地 MCP 服务器,让助手用自然语言查询 Google Ads 账户、广告系列、关键词、素材和效果指标。
- 可以做什么
- 列出账户、币种和 MCC 层级,并运行任意 GAQL 查询,支持表格、JSON 或 CSV 输出,附带 GAQL 帮助和资源列表。读取广告系列、广告组、广告、预算、转化、展示份额、时段、受众、落地页、展示位置、素材组、视频和标签报告。查看关键词建议、搜索量、质量得分、搜索词和搜索词洞察。检查图片素材、下载到磁盘并查看素材使用位置。获取 Google 优化建议和账户更改历史。启用写入工具后,可暂停或启用广告系列、广告组和广告,修改每日预算并添加否定关键词。
- 适用场景
- 适合让助手提取并解释 Google Ads 效果数据、研究关键词、审查搜索词或素材,或在不打开 Google Ads 界面的情况下做小幅账户调整。
- 运行要求
- 通过 npx(需 Node 22+)、bunx、全局 npm 安装或 macOS、Linux、Windows 预编译二进制以 stdio 在本地运行。需要 GOOGLE_ADS_DEVELOPER_TOKEN 中的 Google Ads API 开发者令牌,以及 GOOGLE_ADS_CREDENTIALS_PATH 指向的 OAuth 客户端 JSON;setup 命令会完成 OAuth 并保存刷新令牌。可选变量用于设置认证类型、默认客户 ID、MCC 登录 ID、模拟邮箱、API 版本和启用写入。
安装
在 SourceWeft 中
- 打开 控制台中的 Mcp Gads,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
Google Ads MCP server — query campaigns, keywords, assets & more via natural language.
Built with Bun + TypeScript. Works with Claude, Cursor, and any MCP client.
Quick Start
1. Get Credentials
You need a Google Ads API developer token and OAuth client credentials.
- Download your OAuth client JSON from Google Cloud Console
- Set environment variables:
- Run the setup helper to authorize:
This opens your browser, completes OAuth, and saves a refresh token.
2. Add to Claude Code
That's it. Restart Claude Code and the tools are available. Every session runs the latest version automatically.
Also works with
bunx mcp-gads@latestif you have Bun. Requires Node 22+ when running vianpx.
If your environment blocks npm registry access at runtime, install once and run the published binary name directly:
Alternative: standalone binary
Download a pre-built binary from Releases:
macOS / Linux:
Windows (PowerShell):
ChatGPT Codex
Codex uses TOML, not JSON. Install once, then add to ~/.codex/config.toml:
Three gotchas that cause silent failures on Codex:
- Don't use
npx -ywithout raising the timeout. Codex's defaultstartup_timeout_secis 10s, which is too short for npx's first-run download. A global install (above) or the prebuilt binary sidesteps this entirely. If you must use npx, addstartup_timeout_sec = 30. - Env vars must go under
[mcp_servers.gads.env]. Codex does not inherit the parent shell environment into stdio servers — exporting vars in your shell won't reach the server. - Use absolute paths for
GOOGLE_ADS_CREDENTIALS_PATH. Codex spawns the server with its own cwd, so relative paths silently miss.
On Windows some Codex versions use startup_timeout_ms = 20000 instead of _sec.
Claude Desktop
Add to your claude_desktop_config.json:
Using npx (auto-updates)
Using binary (macOS / Linux)
Using binary (Windows)
Tools (39)
Account Management
Queries
Campaigns
Ads
Assets
Keywords
Geographic & Device
Insights
Extended Reporting
Write Tools (disabled by default)
Enable with GOOGLE_ADS_ENABLE_MUTATIONS=true:
Configuration
Updates
Using npx @latest (recommended): You always get the latest version — no manual updates needed.
Using a binary: The server checks for new releases on startup and logs to stderr if outdated:
Check your installed version:
To update, download the new binary and replace the old one.
Development
Requires Bun.
License
MIT
来源:README.md,提交 79040e3
工具
0版本历史
1- v0.5.4最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分