
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 分