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.
Power your agent
คำสั่งของผู้เผยแพร่เอง ไม่ใช่เอนด์พอยต์ของ PlugMCP
Host a copy with our keys and logs.
npx -y @mikusnuz/[email protected]Claude Code ไม่มีลิงก์ติดตั้งสำหรับคำสั่งแบบโลคัล ให้คัดลอกคำสั่งด้านล่างแล้วรันในเทอร์มินัล
META_ADS_ACCESS_TOKEN=<secret> META_AD_ACCOUNT_ID=<value> META_APP_ID=<value> META_APP_SECRET=<secret> META_BUSINESS_ID=<value> META_PIXEL_ID=<value> claude mcp add io.github.mikusnuz-meta-ads -- npx -y @mikusnuz/meta-ads-mcp@1.6.1รันในเทอร์มินัล
{ "mcpServers": { "io.github.mikusnuz-meta-ads": { "command": "npx", "args": [ "-y", "@mikusnuz/[email protected]" ], "env": { "META_ADS_ACCESS_TOKEN": "<secret>", "META_AD_ACCOUNT_ID": "<value>", "META_APP_ID": "<value>", "META_APP_SECRET": "<secret>", "META_BUSINESS_ID": "<value>", "META_PIXEL_ID": "<value>" } } }}claude_desktop_config.json
URL แบบรีโมตหรือคำสั่งบนเครื่องของคุณ? การติดตั้งสองแบบต่างกันอย่างไร
รันบน PlugMCP
A new server you create. It is not this listing's official endpoint. Use the publisher install when you want their URL and their credentials.
เปิดUse this MCP when you need to:
create_campaign, create_adset, create_ad, and create_creative to build a full funnelget_account_insights or get_campaign_insights with today's date rangelist_campaigns + get_campaign_insights to find underperformers, then update_campaign to pausecreate_experiment to run a controlled test between ad setscreate_custom_audience, add_users_to_audience, then create_lookalike_audienceupload_image for each image, then create_creative with carousel formatcreate_async_report for large date ranges, then get_async_report to retrievesearch_ad_library to find public ad datacreate_rule with conditions like CPA > thresholdcreate_catalog, create_feed, and upload_feed to set up dynamic product adscreate_adset accepts bid_amount; creation and updates accept dsa_beneficiary and dsa_payor. For EU-targeted ads, supply each required value or configure the corresponding account default. The payer does not automatically copy the beneficiary.create_adset and update_adset accept destination_type, attribution_spec, adset_schedule, pacing_type, and validate_only. Existing calls still perform their requested writes; set validate_only: true to ask Meta to validate without mutation. A successful validation does not create an ad set.timezone_type as USER or ADVERTISER. Scheduling adds day_parting pacing. Meta validates effective lifetime budgeting, objective eligibility, and attribution restrictions. No budget or status is changed automatically.create_custom_audience accepts a JSON rule, pixel_id, and retention_days for rule-based audiences. Audience creation is a real write, not a dry run.See the official ad-set creation and ad-set update contracts.
events JSON input and send it as the required data array. Use test_event_code to verify receipt in Events Manager; offline events use a dataset ID and action_source=physical_store for store events.destination_spec, wamo_whatsapp_identity_spec, and degrees_of_freedom_spec JSON objects. Dynamic creatives also accept object_story_spec for Page identity. To opt out of the v26 Shops destination default, set destination_spec to {"destination_type":"WEBSITE_AND_SHOP_OPT_OUT"}.Requires Node.js 20 or later, including the MCP host's npx environment.
{
"mcpServers": {
"meta-ads": {
"command": "npx",
"args": ["-y", "@mikusnuz/meta-ads-mcp"],
"env": {
"META_ADS_ACCESS_TOKEN": "your-access-token",
"META_AD_ACCOUNT_ID": "123456789",
"META_APP_ID": "your-app-id",
"META_APP_SECRET": "your-app-secret",
"META_BUSINESS_ID": "your-business-id",
"META_PIXEL_ID": "your-pixel-id"
}
}
}
}
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.
Your Meta access token needs the following permissions depending on which tools you use:
MIT
MCP server for Meta Marketing API — Facebook & Instagram ad campaign management
{ "mcpServers": { "io.github.mikusnuz-meta-ads": { "command": "npx", "args": [ "-y", "@mikusnuz/[email protected]" ], "env": { "META_ADS_ACCESS_TOKEN": "<secret>", "META_AD_ACCOUNT_ID": "<value>", "META_APP_ID": "<value>", "META_APP_SECRET": "<secret>", "META_BUSINESS_ID": "<value>", "META_PIXEL_ID": "<value>" } } }}เครื่องมือ
ยังไม่มีรายการเครื่องมือ เซิร์ฟเวอร์แบบรีโมตจะได้รายการหลังการตรวจสอบสถานะครั้งแรก
FAQ
คัดลอกคอนฟิก stdio สำหรับ Cursor, Claude Desktop, Claude Code หรือ VS Code ได้ในหน้านี้ คอนฟิกนี้ใช้การติดตั้งของผู้เผยแพร่ ไม่ใช่พร็อกซีของ PlugMCP
ผู้เผยแพร่ระบุตัวแปรสภาพแวดล้อมเหล่านี้: META_ADS_ACCESS_TOKEN, META_AD_ACCOUNT_ID, META_APP_ID, META_APP_SECRET, META_BUSINESS_ID, META_PIXEL_ID
Meta Ads ทำงานแบบโลคัลผ่าน stdio
ตรวจสอบล่าสุดเมื่อ 2026-11-09 MCP server for Meta Marketing API — Facebook & Instagram ad campaign management