meta-ads-mcp-patched
An MCP server for managing Meta Ads campaigns, ad sets, lead forms, and media uploads, patched to support Meta Marketing API v25 requirements.
README
meta-ads-mcp-patched
Patched fork of @mikusnuz/meta-ads-mcp
v1.3.0 (MIT, upstream author mikusnuz — original docs in
README.upstream.md). The fork exists because the upstream tool schemas lag
behind what the Meta Marketing API v25 actually requires; every gap below was reproduced with a
live API call before patching.
Patches over upstream 1.3.0
| Tool | Change |
|---|---|
create_campaign |
+ bid_strategy (enum), bid_amount, is_adset_budget_sharing_enabled (bool, false preserved — required by Meta for ABO campaigns) |
update_campaign |
+ bid_strategy, bid_amount (lets an agent move a campaign off a bid cap) |
create_adset |
+ promoted_object (JSON string — required for LEAD_GENERATION / OFFSITE_CONVERSIONS), bid_amount |
upload_image |
+ file_path (local file → base64 bytes upload; url now optional, exactly one required), + name |
upload_video |
+ file_path (local file → multipart source upload; file_url now optional, exactly one required) |
list_lead_forms, create_lead_form |
Page-scoped calls now resolve the Page Access Token internally (derived from the configured token via /{page_id}?fields=access_token, cached per page, never surfaced in output) instead of failing with #190 |
get_lead_form, get_form_leads |
+ optional page_id to ride the Page token when Meta rejects the account token |
create_adset, update_adset (v1.3.2) |
+ dsa_beneficiary, dsa_payor — mandatory for any EU-delivering ad set since the DSA (#100 subcode 3858081 without them) |
create_lead_form (v1.3.2) |
+ context_card (form headline/intro), privacy_policy_link_text, block_display_for_non_targeted_viewer (false preserved); follow_up_action_url now also merges into thank_you_page.website_url when absent (Meta requires it for VIEW_WEBSITE and ignores the top-level param) |
AdsClient |
request() accepts a per-call token override; new getPageToken / getAsPage / postAsPage / postForm (multipart) helpers |
Everything else is upstream dist/ output, byte-identical. Patches are applied directly to the
unminified ESM in dist/ (upstream ships no source in the npm tarball).
Usage
Same contract as upstream — stdio MCP server, env-configured:
META_ADS_ACCESS_TOKEN (required)
META_AD_ACCOUNT_ID (required, numeric — no act_ prefix)
META_APP_ID / META_APP_SECRET / META_BUSINESS_ID / META_PIXEL_ID (optional)
Run: npx -y github:Green-pep/meta-ads-mcp-patched#v1.3.1
Release procedure
- Apply the change in
dist/, bumpversioninpackage.json(keep the1.3.xbase to track the upstream pin). - Update the patch table above.
- Commit, tag
v1.3.x, push with tags. - Repoint the consumer (MCP catalog
args) at the new tag.
Upstream status
Fork base pinned at upstream 1.3.0. The intent is to offer these patches upstream (mikusnuz/meta-ads-mcp) and retire this fork if they land.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。