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.

已验证Streamable HTTP可网页运行数据与分析商业与电商

概览

AI 生成的概览

可托管或自托管的 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 密钥。
安装前请注意
它能改动真实广告花费和公开内容,包括预算、出价、广告系列状态和自然流量帖子。写操作被标记为破坏性,应事先确认;新建对象虽默认暂停,但启用后即产生真实花费。自托管 HTTP 模式在本机回环上不鉴权,除非显式允许否则拒绝绑定公网。Google Ads 透明度功能默认关闭,因其使用未公开接口。托管版凭据由服务商加密保存。

安装

在 SourceWeft 中

  1. 打开 控制台中的 MCP Ads,将其添加到工作区。
  2. 连接 所需的 凭据。它们会被私密存储,绝不会在公开页面上展示。
  3. 为需要使用其工具的对话启用该服务。

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)

[License: MIT] [CI]

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.

Google's Google Ads MCPMeta's Ads MCPPipeboardAdspirerMCP Ads
PlatformsGoogle AdsMeta AdsMeta, Google, TikTok, LinkedIn, Microsoft, Pinterest, Snap, Reddit, plus GA4 and Search ConsoleGoogle, Meta, LinkedIn, TikTok, Amazon, ChatGPT AdsGoogle, Meta, TikTok, LinkedIn, Microsoft, Snapchat, X, ChatGPT Ads, plus GA4, Search Console, Tag Manager, Merchant Center, WordPress
What it doesReporting and diagnostics (read-only)Reporting and campaign managementAds MCP server across the platforms listedHosted agent service that carries out ad tasksRead and write: 755 Google Ads actions, 230 Meta Ads actions
HostingSelf-host, with your own developer tokenHosted by MetaHosted; open-source Meta server also availableHostedHosted or self-host (this repo, MIT)
PricingFree software; you supply the API accessCheck Meta's siteFree tier; paid plans by number of ad-account slotsPer-task pricing with a small free tier$49/month flat, 7-day free trial (see pricing); self-hosting is free

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:

https://mcp-ads.com/mcp-slim

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.

bash
claude mcp add --transport http mcp-ads https://mcp-ads.com/mcp-slim

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:

  1. Settings → Plugins → Browse plugins, and turn Developer mode on (one time).
  2. Settings → Connectors → Add custom connector. Name it "MCP Ads" and paste the URL above.
  3. Sign in with the Google identity that has access to your ad accounts.
  4. In a new chat, open the tools menu and switch the connector on. ChatGPT keeps connectors off per chat by default.

(Guide with a recording)

Cursor. Add this to ~/.cursor/mcp.json (or .cursor/mcp.json in a project) and restart Cursor:

json
{  "mcpServers": {    "mcp-ads": {      "url": "https://mcp-ads.com/mcp-slim"    }  }}

(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

bash
git clone https://github.com/RoyAzran/mcp-ads.gitcd mcp-adspip install -r requirements.txtcp .env.example .env      # fill in the platforms you usepython server.py doctor   # shows what's connected

Then add it to Claude Desktop (claude_desktop_config.json) or Claude Code (.mcp.json):

json
{  "mcpServers": {    "mcp-ads": {      "command": "python",      "args": ["/absolute/path/to/mcp-ads/server.py"]    }  }}

That's the whole install. Ask your agent "audit my Google Ads wasted spend" and watch it go.

Docker instead:

bash
cp .env.example .envdocker compose up -d      # HTTP server on 127.0.0.1:8000, MCP endpoint at /mcp

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):

bash
python server.py auth snapchat_ads

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:

PlatformActionsWhat you needRealistic effort
GA495Google OAuth client + refresh tokenMinutes–hours
Search Console22Same Google tokenMinutes
Tag Manager64Same Google tokenMinutes
WordPress1,843Site URL + Application PasswordMinutes
Google Ads755Above plus a developer token (Google reviews the application)1–3 weeks
Meta Ads230A Meta app; ads_management/ads_read need App Review (works for the app's own admins/testers before approval)Days for yourself, weeks for App Review
Snapchat Ads12Self-serve OAuth app in Business ManagerHours
Microsoft Ads11Entra OAuth app + developer token (sandbox instant, production reviewed)Hours–days
TikTok Ads35Business API app reviewWeeks
LinkedIn Ads26Marketing Developer Platform approval — routinely refused to individualsOften unobtainable
Meta Ad Library7Token from a Meta-ID-verified identityDays
Ads Transparency7Nothing — but read the note belowOff by default
Creative generation7Your OpenAI API keyMinutes

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.

DispatcherActionsExample actions
google_ads_action755google_ads_search_terms, google_ads_add_negative_keywords, google_ads_update_campaign_budget
meta_ads_action230meta_ads_campaign_performance, meta_ads_frequency, meta_ads_update_adset_budget
ga4_action95ga4_landing_pages, ga4_diagnose_missing_conversions, ga4_run_custom_report
gsc_action22gsc_top_keywords, gsc_inspect_url, gsc_submit_sitemap
gtm_action64gtm_audit_container, gtm_setup_google_ads_conversion, gtm_publish_workspace_now
tiktok_ads_action35tiktok_ads_campaign_report, tiktok_ads_create_adgroup, tiktok_ads_upload_video
linkedin_ads_action26linkedin_ads_campaign_report, linkedin_ads_find_targeting_entities, linkedin_ads_update_campaign
microsoft_ads_action11microsoft_ads_campaign_performance, microsoft_ads_list_keywords, microsoft_ads_update_campaign_budget
snapchat_ads_action12snapchat_ads_campaign_report, snapchat_ads_create_campaign, snapchat_ads_update_campaign_status
openai_ads_action (ChatGPT Ads)15openai_ads_ad_insights, openai_ads_create_campaign, openai_ads_set_ad_status
organic_social_action32meta_pages_create_post, linkedin_organic_create_post, tiktok_organic_publish_video
meta_ad_library_action7meta_ad_library_search_ads, meta_ad_library_advertiser_ads, meta_ad_library_creative_angles
google_ads_transparency_action7google_ads_transparency_find_advertiser, google_ads_transparency_advertiser_ads, google_ads_transparency_creative_mix
creative_action7creative_generate_ad_images, creative_start_image_generation, creative_get_image_generation_result
reports_action8report_monthly_executive, report_paid_search_full, report_new_client_audit
agency_action20agency_wasted_spend_report, agency_budget_pacing_all_channels, agency_cross_platform_overview
wordpress_action1,843a11y_audit_page, cf7_list_forms, backup_updraft_run
misc_action8competitor_ads_gallery, media_upload_start, creative_show_images
merchant_action (hosted only)123merchant_list_products, merchant_product_status_summary, merchant_account_issues
x_ads_action (hosted only)23x_ads_account_stats, x_ads_create_campaign, x_ads_campaign_reach
bing_webmaster_action (hosted only)20bing_webmaster_top_queries, bing_webmaster_crawl_issues, bing_webmaster_submit_url

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:

1. list_actions(category="meta_ads_action", search="budget")2. meta_ads_action(action="<name from step 1>", params={...})
  • Write actions create everything paused unless explicitly told to launch (see Safety model)
  • --surface full registers 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:

bash
# against your self-hosted serverMCP_ADS_BASE_URL=http://127.0.0.1:8000 npx -y @marketingmcp/cli
# against the cloud (API key from mcp-ads.com/manage)MCP_ADS_API_KEY=mcp_live_xxx npx -y @marketingmcp/cli

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 PAUSED on Google Ads and Meta. Nothing starts spending until you ask for it to be enabled.
  • Read/write role gating. permissions.py lists the write tools in WRITE_TOOLS, and a name heuristic fails closed for write verbs missing from that list. Write tools call require_editor(), which refuses the viewer role; only editor and admin can 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, SelfHostPrincipal in credentials_env.py, whose role is admin. Change that role to "viewer" and every write tool refuses. For a second layer, use read-only credentials where the platform offers them: a Meta token with only ads_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 .env and 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
该服务器需要登录,因此 SourceWeft 无法在没有账号的情况下读取其工具,也未收录。已连接账号所能看到的内容可能因账号及其权限而异。

版本历史

2
  1. v1.0.2最新Nov 1, 2026
  2. v1.0.1Sep 16, 2026

评分

已满足适用检查项的 85%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通必需25 分
  • 已声明认证方式必需10 分
  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分