MCP Ads
com.mcp-ads由 mcp-ads.com 發布官方發布者v1.0.2更新於 Nov 1, 2026
Run Google Ads, Meta, TikTok, LinkedIn, GA4 & Search Console from chat. Changes wait for approval.
概覽
可託管或自託管的 MCP 伺服器,讓助理讀取、產生報表並修改 Google Ads、Meta、TikTok、LinkedIn、GA4 等平台的廣告投放。
- 可以做什麼
- 讀取 Google Ads、Meta、TikTok、LinkedIn、Microsoft、Snapchat、ChatGPT Ads 以及 GA4、Search Console、Tag Manager 的投放成效並稽核浪費支出
- 建立與修改廣告活動、廣告群組、關鍵字、預算與出價,新建物件預設為暫停狀態
- 產出跨平台報表、浪費支出稽核與預算節奏彙總
- 在 Meta 廣告資料庫與 Google Ads 透明度中心檢索競品廣告
- 生成廣告圖片並發布自然流量社群貼文
- 管理 WordPress 網站,託管版另支援 Merchant Center、X Ads 與 Bing 網站管理員工具
- 適用情境
- 適合同時管理多個平台付費廣告、希望助理在對話中拉取報表、找出浪費支出並直接調整投放的人;也適合已持有各平台憑證、偏好自託管的代理商。
- 執行需求
- 遠端端點,首次使用時在瀏覽器以 OAuth 登入,無需貼上 API 金鑰;託管版為付費訂閱並提供試用。自託管需要 Python,並在 .env 中填入各平台憑證,包括 Google OAuth 用戶端與更新權杖、Google Ads 開發人員權杖、通過審查的 Meta 應用程式等;生成創意圖片另需 OpenAI API 金鑰。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 MCP Ads,將其新增到工作區。
- 連接 所需的 憑證。它們會被私密儲存,絕不會在公開頁面上展示。
- 為需要使用其工具的對話啟用該服務。
Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。
交給代理程式安裝
把這段提示詞貼上到 Claude Code、Codex、Cursor 等代理程式,或 SourceWeft 對話中。代理程式會讀取該伺服器的安裝指南,先向你展示發布者、端點和登入方式,經你同意後再把它新增到你的客戶端。金鑰不會寫進任何命令。
閱讀 https://sourceweft.com/mcp/com.mcp-ads%2Fmcp-ads/install.md,並按其中說明把這個 MCP 伺服器接入我的客戶端。修改任何設定之前,先告訴我它的發布者、端點和登入方式,等我確認。不要把 API 金鑰寫進命令或我會提交的檔案;問我金鑰應從哪裡取得。其他 MCP 客戶端
把它新增到你客戶端的 mcpServers 設定中。 客戶端會在首次連接時完成 OAuth 登入。
{
"mcpServers": {
"ads": {
"type": "http",
"url": "https://mcp-ads.com/mcp-slim"
}
}
}README
MCP Ads: Google Ads MCP server + Meta Ads MCP server
MCP Ads, the ads MCP server by Roy Azran. Hosted at mcp-ads.com, open source here.
Website · Docs · Pricing · MCP Registry listing (com.mcp-ads/mcp-ads)
Open-source (MIT) MCP server for Google Ads, Meta Ads (Facebook & Instagram), GA4, Search Console, Tag Manager, TikTok, LinkedIn, Microsoft Ads and more. Works with Claude, Claude Code, ChatGPT, Cursor, Codex, Gemini CLI, Grok, or any MCP client. Read performance, audit wasted spend, build reports, and create or change campaigns. Everything it creates starts paused until you say otherwise.
3,363 registered actions across 21 tool families in the hosted build (September 2026), exposed through one dispatcher per family so your agent loads about two dozen tool definitions instead of thousands. This repo ships 18 of those families; see Tool categories.
How it compares
Facts as of September 2026, taken from each product's public pages. Plans and coverage change, so check their site before deciding.
Use Google's or Meta's server if you only need one platform and want the vendor's own code. Use this one if you want one server across platforms, write access to Google Ads, or the option to run the whole thing yourself.
Choose your path
☁️ Cloud — connected in 2 minutes
Go to mcp-ads.com, sign in, OAuth your ad accounts in the browser, and paste one URL into Claude. Done.
- No API applications, no developer tokens, no app reviews — the platform approvals (Google Ads developer token, Meta App Review, and the rest) are already in place
- $49/month flat for every platform, with a 7-day free trial (see pricing for the current offer)
- Your credentials stored encrypted; revoke any time from the dashboard
This is the right choice for almost everyone who wants to use the tools rather than host them.
🔧 Self-hosted — free forever, your keys, your machine
Clone this repo and run it with your own platform credentials. MIT licensed, no strings, no phone-home. Your tokens never leave your machine.
The honest cost: several of the ad platforms make you apply for API access (see the table below). If you already have those credentials — you're an agency with a Google Ads developer token, a developer with a reviewed Meta app — self-hosting takes minutes. If you don't, budget days to weeks for the platforms' own approval queues, or just use the cloud.
Same code either way. The hosted product is this server plus multi-user auth, the approvals already done, and three families not in this repo yet (Merchant Center, X Ads, Bing Webmaster Tools).
Connect to your AI client
The hosted endpoint is the same for every client:
Sign-in is OAuth in the browser on first use; there is no API key to paste. For a self-hosted server, use the stdio config under Self-hosted quick start instead; the note under each client says where it goes.
Claude.ai and Claude Desktop. Settings → Connectors → Add custom connector,
paste the URL above, then approve the sign-in window.
(Guide)
Self-hosted: Claude Desktop takes the command/args block in
claude_desktop_config.json.
Claude Code.
The first tool call opens the browser sign-in. (Guide)
Self-hosted: claude mcp add mcp-ads -- python /absolute/path/to/mcp-ads/server.py,
or the same block in .mcp.json.
ChatGPT. Custom connectors need Developer mode:
- Settings → Plugins → Browse plugins, and turn Developer mode on (one time).
- Settings → Connectors → Add custom connector. Name it "MCP Ads" and paste the URL above.
- Sign in with the Google identity that has access to your ad accounts.
- In a new chat, open the tools menu and switch the connector on. ChatGPT keeps connectors off per chat by default.
Cursor. Add this to ~/.cursor/mcp.json (or .cursor/mcp.json in a
project) and restart Cursor:
(Guide) Self-hosted: the same file takes the
command/args block instead of url.
Codex. Add [mcp_servers.mcp-ads] with url = "https://mcp-ads.com/mcp-slim"
to ~/.codex/config.toml. (Guide)
Gemini CLI. Add an mcp-ads entry with the URL to ~/.gemini/settings.json
and run /mcp to check it. (Guide)
Grok. On grok.com: + → Connectors → New Connector → Custom, paste the URL and finish the sign-in. (Guide)
Self-hosted quick start
Then add it to Claude Desktop (claude_desktop_config.json) or
Claude Code (.mcp.json):
That's the whole install. Ask your agent "audit my Google Ads wasted spend" and watch it go.
Docker instead:
HTTP mode without Docker: python server.py serve --transport http
OAuth helper for the bearer-token platforms (opens a browser, stores and auto-refreshes the token):
What works out of the box, honestly
Self-hosting means holding your own keys to each platform. Some hand them over in minutes; some make you apply. This is the real picture:
If that table makes you tired, that's exactly what the cloud version is for — the approvals are done, you just connect your accounts.
Tool categories
One dispatcher per family. Counts are registered actions in the hosted build (September 2026); each dispatcher links to its API reference page.
Total: 3,363. A self-hosted build registers the same families except the three
marked hosted only; organic social has 12 actions here rather than 32, and a
few other counts differ by a handful as actions are added or hidden.
list_actions always reports what your build actually has.
How the tool surface works
Your agent sees one dispatcher per platform plus list_actions:
- Write actions create everything paused unless explicitly told to launch (see Safety model)
--surface fullregisters every action as its own MCP tool instead — useful for programmatic clients, far too many tools for a chat client
Example prompts
- "Which search terms spent over $50 with no conversions last month? Add the worst ten as exact-match negatives."
- "Pause ad sets with frequency above 3 in my main Meta account."
- "Compare Meta and Google CPA for last week against GA4 conversions."
- "Which landing pages get paid traffic but convert below the site average?"
- "Build a paused Search campaign for 'emergency plumber' with three ad groups and a $50 daily budget."
- "What are my competitors running on Facebook and Instagram right now?"
- "Check my GTM container for paused or unused tags."
- "Write this month's executive report across Google Ads, Meta and GA4."
The NPX CLI
No Python on the client machine? The CLI is a ~300-line stdio proxy
(cli/) that forwards to any MCP Ads server:
A note on Google Ads Transparency
tools/google_ads_transparency.py reads Google's public Ads Transparency
Center by calling the endpoints the website itself uses. Google documents no
API for this data; the endpoints can change or start refusing without notice,
and automated access to them is not something Google has blessed. The family
is off by default — set GOOGLE_ADS_TRANSPARENCY_ENABLED=true only after
reading that module's docstring. The Meta Ad Library tools use Meta's
official API and carry no such caveat.
Safety model
- Approval before writes. Each dispatcher carries MCP tool annotations:
a family with any write action is marked
readOnlyHint: false,destructiveHint: true. The check fails closed, so hidden write actions count too, and paid image generation is never marked read-only. Clients such as Claude and ChatGPT use those hints to ask you before the call runs. The server's own instructions also tell the model to state a write plainly and get confirmation before it touches live spend or public content. - Created paused. Campaign, ad set, ad group and ad creation default to
PAUSEDon Google Ads and Meta. Nothing starts spending until you ask for it to be enabled. - Read/write role gating.
permissions.pylists the write tools inWRITE_TOOLS, and a name heuristic fails closed for write verbs missing from that list. Write tools callrequire_editor(), which refuses theviewerrole; onlyeditorandadmincan write. On the hosted service, a viewer seat gets that refusal. - Running read-only when self-hosted. There is no config switch yet. The
self-host build has one user,
SelfHostPrincipalincredentials_env.py, whose role isadmin. Change thatroleto"viewer"and every write tool refuses. For a second layer, use read-only credentials where the platform offers them: a Meta token with onlyads_read, and the read-only GA4 and Search Console scopes (analytics.readonly,webmasters.readonly). The Google Ads API has no read-only scope, so for Google Ads the role change is the control.
Security posture
- Credentials come from your
.envand an optional Fernet-encrypted local store (MCP_ADS_SECRET_KEY). Nothing phones home: telemetry is entirely opt-in and off unless you configure your own analytics project. - HTTP mode is unauthenticated by design (it's you, on loopback). The server
refuses to bind a public interface unless you set
MCP_ADS_ALLOW_PUBLIC_BIND=true, because it holds credentials that can spend real money. - CI runs a boundary gate (
tests/test_no_private_imports.py) that fails on anything shaped like a secret entering the tree.
See SECURITY.md for reporting.
Contributing
Issues and PRs welcome — see CONTRIBUTING.md. The check
scripts in scripts/ are the review bar: each one pins a failure that
actually happened in production, and
python scripts/check_tools_execute.py before a PR catches most of what
review would.
One thing we can't help with: obtaining platform API access. Those approval queues belong to Google, Meta, LinkedIn, TikTok and Microsoft.
FAQ
Is there a Google Ads MCP server that can make changes? Yes, this one. Google's official Google Ads MCP server is read-only (reporting and diagnostics). MCP Ads has 755 Google Ads actions, including creating campaigns, ad groups, keywords and responsive search ads, adding negatives, and changing budgets and bids. New campaigns are created paused.
Does it work with ChatGPT?
Yes. Add it as a custom connector in Developer mode with the URL
https://mcp-ads.com/mcp-slim; the steps are under
Connect to your AI client and in the
ChatGPT guide.
Do I need a developer token? Not for the hosted version: its Google Ads developer token and the other platform approvals are already in place, and you only sign in. For self-hosted Google Ads, yes: you need your own Google Ads API developer token, and Google reviews the application (see What works out of the box).
License
MIT.
來源:README.md,提交 9acd8ed
工具
0版本歷史
2- v1.0.2最新Nov 1, 2026
- v1.0.1Sep 16, 2026
評分
已滿足適用檢查項的 85%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通必需25 分
- 已宣告認證方式必需10 分
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分