
Google Ads Manager Mcp
io.github.AleemHaider由 GitHub 帳號 AleemHaider 發布v1.0.0更新於 Oct 24, 2026
Unofficial MCP server for Google Ads: reporting plus safe draft/confirm campaign management.
概覽
本機 MCP 伺服器,讓助理執行 Google Ads 報表,並以草稿加確認的方式管理廣告活動與關鍵字。
- 可以做什麼
- 它把助理連接到單一 Google Ads 帳戶,可讀取也可寫入。讀取工具能列出可存取的客戶帳戶、執行任意 GAQL SELECT 查詢,並取得廣告活動、廣告群組、關鍵字與搜尋詞及其指標。寫入工具可建立廣告活動、預算、廣告群組、關鍵字、排除關鍵字與回應式搜尋廣告,或變更其狀態。每次寫入都會先驗證並回傳附預覽的 draftId,必須呼叫 confirm_write 才會真正生效,草稿 10 分鐘後過期。
- 適用情境
- 當你希望助理既能檢視 Google Ads 成效,又能進行受控變更(例如暫停廣告活動、調整預算、新增關鍵字)時適合使用。它針對單一帳戶;若在經理帳戶下有多個客戶帳戶,可為每個客戶 ID 各執行一個執行個體。若只需要唯讀報表,則不必安裝,Google 官方伺服器已涵蓋此用途。
- 執行需求
- 以 npm 套件形式透過 stdio 在本機執行,需要 Node.js。需要 Google Ads 開發人員權杖、Google Cloud OAuth 桌面應用程式用戶端 ID 與密鑰、由專案驗證指令碼產生的更新權杖,以及目標客戶 ID;若目標帳戶隸屬於經理帳戶,還需經理帳戶 ID。憑證透過環境變數提供,例如 GOOGLE_ADS_CLIENT_ID、GOOGLE_ADS_CLIENT_SECRET、GOOGLE_ADS_DEVELOPER_TOKEN、GOOGLE_ADS_REFRESH_TOKEN 與 GOOGLE_ADS_CUSTOMER_ID。僅支援桌面環境。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Google Ads Manager Mcp,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
Google Ads Manager MCP
Unofficial, community-maintained project. Not affiliated with, endorsed by, or sponsored by Google. "Google Ads" is a trademark of Google LLC.
A local MCP (Model Context Protocol) server that lets an AI assistant read and manage a Google Ads account: run GAQL reports, create campaigns, pause/enable campaigns, and add keywords.
Google also publishes an official Google Ads MCP server, which is read-only (reporting/diagnostics only). This project covers the same reporting ground and adds write support — creating and editing campaigns, budgets, ad groups, keywords, and ads — gated behind a draft/confirm safety layer so nothing changes in your account by accident.
Every write goes through a draft → confirm safety flow: the tool that "creates" or "updates"
something only validates the change against Google's API (validate_only) and hands back a
draftId with a preview. Nothing changes in your Ads account until you call confirm_write with
that draftId. Drafts expire after 10 minutes.
Tools
Read-only:
list_accessible_customers— which accounts this refresh token can reachsearch_gaql— run any raw GAQLSELECTqueryget_campaigns— campaigns with status, budget, and core metricsget_ad_groups— ad groups (optionally filtered to a campaign) with metricsget_keywords— keyword criteria with match type, status, and metricsget_search_terms— actual search terms that triggered your ads, for finding negative keyword candidates
Write (draft → confirm):
create_campaign— new campaign + budget, createdPAUSEDunless you say otherwiseupdate_campaign_status— enable / pause / remove a campaignupdate_campaign_budget— change an existing campaign's daily budgetadd_keywords— add keyword criteria to an ad groupcreate_ad_group— new ad group inside an existing campaignupdate_ad_group_status— enable / pause / remove an ad groupupdate_keyword_status— enable / pause / remove a keyword criterionadd_negative_keywords— add negative keyword criteria to an ad groupcreate_responsive_search_ad— new responsive search ad, createdPAUSEDunless you say otherwiseconfirm_write— execute a previously returneddraftIdfor real
Setup
1. Google Ads developer token
Google Ads → Tools & Settings → API Center. Test-account tokens are issued instantly; a production-level token requires Google's manual review (roughly 1-2 weeks), so apply for that early if you'll use this beyond a test account.
2. OAuth client
Google Cloud Console → APIs & Services → Credentials → Create credentials → OAuth client ID. Choose application type Desktop app. Copy the client ID and client secret.
3. Configure environment
Fill in GOOGLE_ADS_CLIENT_ID, GOOGLE_ADS_CLIENT_SECRET, GOOGLE_ADS_DEVELOPER_TOKEN, and
GOOGLE_ADS_CUSTOMER_ID (the account this server should manage — 10 digits, dashes optional). If
that account is a client under a manager (MCC) account, also set GOOGLE_ADS_LOGIN_CUSTOMER_ID to
the manager account's ID.
4. Get a refresh token
This opens an authorization URL — open it, sign in with the Google account that has access to
your Ads account, approve the adwords scope. The script prints a GOOGLE_ADS_REFRESH_TOKEN;
add it to .env.
5. Build
6. Point your MCP client at it
For Claude Desktop / Claude Code, add to your MCP config:
(Or skip the env block and just make sure .env is populated — the server loads it via
dotenv when run directly, e.g. npm run dev during local iteration.)
Notes
- This is scoped to a single Google Ads account (
GOOGLE_ADS_CUSTOMER_ID). To manage several client accounts under one manager account, either run one instance per customer ID, or extendgoogleAdsClient.tsto accept acustomerIdargument per tool call. - New campaigns default to
PAUSED(startEnabled: false) so nothing spends until you explicitly enable it.
Contributing
Issues and PRs welcome — new report types, negative-keyword-at-campaign-level support, and multi-account (MCC) handling are the most useful next additions.
License
來源:README.md,提交 d2646b7
工具
0版本歷史
1- v1.0.0最新Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分