
Meta Ads
io.github.mikusnuz由 GitHub 帳號 mikusnuz 發布v1.6.1更新於 Nov 3, 2026
MCP server for Meta Marketing API — Facebook & Instagram ad campaign management
概覽
面向 Meta Marketing API 的本機 MCP 伺服器,讓助理建立、檢視、修改與刪除 Facebook 和 Instagram 廣告活動、受眾、創意與報表。
- 可以做什麼
- 列出、建立、更新、複製與刪除廣告活動、廣告組合與廣告,並可產生預覽和投放預估
- 管理創意、圖片、影片與 Instant Experience 畫布,包含上傳素材
- 建立與編輯自訂受眾、類似受眾和已儲存受眾,搜尋興趣與地區定向,估算觸及人數
- 取得帳戶、廣告活動、廣告組合與廣告層級的成效資料,並為長時間範圍建立非同步報表
- 處理潛在客戶表單與名單、商品目錄、資料來源以及批次商品操作
- 管理自動規則、A/B 實驗、預算排程、封鎖清單、企業使用者和系統使用者,並送出轉換或離線事件
- 適用情境
- 適合讓助理直接操作實際的 Meta 廣告帳戶:建立完整廣告漏斗、查看當日成效、暫停成效不佳的廣告、設定 A/B 測試或類似受眾,或產出較長時間範圍的報表。
- 執行需求
- 透過 npx 在本機執行,需要 Node.js 20 或更新版本。需要 Meta Marketing API 存取權杖(META_ADS_ACCESS_TOKEN)與廣告帳戶 ID(META_AD_ACCOUNT_ID);權杖交換與偵錯需要 META_APP_ID 和 META_APP_SECRET,企業工具需要 META_BUSINESS_ID,轉換工具需要 META_PIXEL_ID。權杖需依所用工具具備 ads_management、ads_read、business_management、leads_retrieval、catalog_management 等權限。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Meta Ads,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
meta-ads-mcp
MCP server for the Meta Marketing API v26.0 — 134 tools for managing Facebook & Instagram ad campaigns, audiences, creatives, insights, catalogs, and more.
When to Use
Use this MCP when you need to:
- "Create a new Facebook ad campaign" — use
create_campaign,create_adset,create_ad, andcreate_creativeto build a full funnel - "Check how my ads are performing today" — use
get_account_insightsorget_campaign_insightswith today's date range - "Pause all campaigns with ROAS below 2" — use
list_campaigns+get_campaign_insightsto find underperformers, thenupdate_campaignto pause - "Set up A/B test between two ad creatives" — use
create_experimentto run a controlled test between ad sets - "Create a lookalike audience from my customers" — use
create_custom_audience,add_users_to_audience, thencreate_lookalike_audience - "Upload ad images and create a carousel ad" — use
upload_imagefor each image, thencreate_creativewith carousel format - "Get a detailed performance report for last 30 days" — use
create_async_reportfor large date ranges, thenget_async_reportto retrieve - "Search the Facebook Ad Library for competitor ads" — use
search_ad_libraryto find public ad data - "Set up automated rules to pause underperforming ads" — use
create_rulewith conditions like CPA > threshold - "Manage my product catalog for dynamic ads" — use
create_catalog,create_feed, andupload_feedto set up dynamic product ads
What's New in v1.6.0
create_adsetacceptsbid_amount; creation and updates acceptdsa_beneficiaryanddsa_payor. For EU-targeted ads, supply each required value or configure the corresponding account default. The payer does not automatically copy the beneficiary.- Ad and ad-set lists use campaign/ad-set edges when scoped. Combined campaign/ad-set filters and explicit account IDs are checked for consistency.
create_adsetandupdate_adsetacceptdestination_type,attribution_spec,adset_schedule,pacing_type, andvalidate_only. Existing calls still perform their requested writes; setvalidate_only: trueto ask Meta to validate without mutation. A successful validation does not create an ad set.- Hourly schedules accept minute ranges and days (Sunday = 0); specify
timezone_typeasUSERorADVERTISER. Scheduling addsday_partingpacing. Meta validates effective lifetime budgeting, objective eligibility, and attribution restrictions. No budget or status is changed automatically. create_custom_audienceaccepts a JSONrule,pixel_id, andretention_daysfor rule-based audiences. Audience creation is a real write, not a dry run.
See the official ad-set creation and ad-set update contracts.
What's New in v1.5.0
- Conversion tools validate the existing
eventsJSON input and send it as the requireddataarray. Usetest_event_codeto verify receipt in Events Manager; offline events use a dataset ID andaction_source=physical_storefor store events. - Creative creation accepts top-level
destination_spec,wamo_whatsapp_identity_spec, anddegrees_of_freedom_specJSON objects. Dynamic creatives also acceptobject_story_specfor Page identity. To opt out of the v26 Shops destination default, setdestination_specto{"destination_type":"WEBSITE_AND_SHOP_OPT_OUT"}. - Includes complete async-report result retrieval, token extension, and budget schedule fixes since v1.4.1. Some detailed Insights breakdowns require an Ads Manager opt-in; an empty response does not necessarily mean zero performance.
Installation
Requires Node.js 20 or later, including the MCP host's npx environment.
Environment Variables
Tools (134)
Campaign Management (25)
Creatives (6)
Media Assets (12)
Audiences & Targeting (16)
Insights & Reporting (6)
date_preset values are lowercase Graph API identifiers such as today, yesterday, last_7d, and last_30d. create_async_report always creates an asynchronous job; get_async_report returns status immediately and, by default, fetches the paginated result edge after the status becomes Job Completed.
Leads (5)
Catalog & Commerce (17)
Automation & Rules (5)
Experiments (5)
Conversions (4)
Budget & Planning (8)
Brand Safety (5)
Account & Business (15)
Auth & Token (3)
Ad Library (1)
Resources (3)
Prompts (3)
Permissions Required
Your Meta access token needs the following permissions depending on which tools you use:
License
MIT
來源:README.md,提交 ccb4489
工具
0版本歷史
3- v1.6.1最新Oct 19, 2026
- v1.5.0Oct 8, 2026
- v1.2.1Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分