meta-ads-mcp
MCP server for Meta Marketing API v25.0 — 123 tools for Facebook & Instagram ad campaign management
README
meta-ads-mcp
MCP server for the Meta Marketing API v25.0 — 123 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
Installation
{
"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"
}
}
}
}
Environment Variables
| Variable | Required | Description |
|---|---|---|
META_ADS_ACCESS_TOKEN |
Yes | Meta Marketing API access token |
META_AD_ACCOUNT_ID |
Yes | Ad account ID (numeric, without act_ prefix) |
META_APP_ID |
Optional | App ID — required for token exchange/debug |
META_APP_SECRET |
Optional | App secret — required for token exchange/debug |
META_BUSINESS_ID |
Optional | Business Manager ID — required for business tools |
META_PIXEL_ID |
Optional | Pixel ID — required for conversion tools |
Tools (123)
Campaign Management (22)
| Tool | Description |
|---|---|
list_campaigns |
List campaigns with filtering and pagination |
get_campaign |
Get campaign details by ID |
create_campaign |
Create a new campaign |
update_campaign |
Update campaign settings |
delete_campaign |
Delete a campaign |
get_campaign_adsets |
List ad sets within a campaign |
get_campaign_ads |
List ads within a campaign |
get_campaign_leads |
Get leads from a campaign |
list_adsets |
List ad sets with filtering |
get_adset |
Get ad set details by ID |
create_adset |
Create a new ad set |
update_adset |
Update ad set settings |
delete_adset |
Delete an ad set |
get_adset_ads |
List ads within an ad set |
get_adset_leads |
Get leads from an ad set |
list_ads |
List ads with filtering |
get_ad |
Get ad details by ID |
create_ad |
Create a new ad |
update_ad |
Update ad settings |
delete_ad |
Delete an ad |
get_ad_preview |
Generate ad preview HTML |
get_delivery_estimate |
Get delivery estimate for an ad |
Creatives (5)
| Tool | Description |
|---|---|
list_creatives |
List ad creatives |
get_creative |
Get creative details |
create_creative |
Create a new ad creative |
update_creative |
Update an ad creative |
create_dynamic_creative |
Create a dynamic creative |
Media Assets (12)
| Tool | Description |
|---|---|
list_images |
List ad images |
upload_image |
Upload an image from URL |
get_image |
Get image details |
delete_image |
Delete an image |
list_videos |
List ad videos |
upload_video |
Upload a video from URL |
get_video |
Get video details |
delete_video |
Delete a video |
list_canvases |
List Instant Experience canvases |
get_canvas |
Get canvas details |
create_canvas |
Create a canvas |
delete_canvas |
Delete a canvas |
Audiences & Targeting (15)
| Tool | Description |
|---|---|
list_custom_audiences |
List custom audiences |
get_audience |
Get audience details |
create_custom_audience |
Create a custom audience |
update_audience |
Update audience settings |
delete_audience |
Delete an audience |
add_users_to_audience |
Add users to a custom audience |
remove_users_from_audience |
Remove users from a custom audience |
create_lookalike_audience |
Create a lookalike audience |
list_saved_audiences |
List saved audiences |
get_saved_audience |
Get saved audience details |
search_targeting |
Search targeting interests, behaviors, demographics |
search_locations |
Search targetable locations |
search_targeting_map |
Browse targeting category tree |
get_reach_estimate |
Estimate audience reach for targeting spec |
get_targeting_suggestions |
Get related targeting suggestions |
Insights & Reporting (6)
| Tool | Description |
|---|---|
get_account_insights |
Account-level performance metrics |
get_campaign_insights |
Campaign-level performance metrics |
get_adset_insights |
Ad set-level performance metrics |
get_ad_insights |
Ad-level performance metrics |
create_async_report |
Create an async insights report |
get_async_report |
Poll async report status and results |
Leads (4)
| Tool | Description |
|---|---|
get_form_leads |
Get leads from a lead form |
get_lead |
Get a single lead by ID |
list_lead_forms |
List lead gen forms for a page |
get_lead_form |
Get lead form details |
Catalog & Commerce (15)
| Tool | Description |
|---|---|
list_catalogs |
List product catalogs |
get_catalog |
Get catalog details |
create_catalog |
Create a product catalog |
update_catalog |
Update a catalog |
list_product_sets |
List product sets in a catalog |
create_product_set |
Create a product set |
get_product_set |
Get product set details |
update_product_set |
Update a product set |
list_products |
List products in a catalog |
get_product |
Get product details |
update_product |
Update a product |
list_feeds |
List data feeds for a catalog |
create_feed |
Create a data feed |
upload_feed |
Upload data to a feed |
get_feed_uploads |
Get feed upload history |
Automation & Rules (5)
| Tool | Description |
|---|---|
list_rules |
List automated rules |
get_rule |
Get rule details |
create_rule |
Create an automated rule |
update_rule |
Update a rule |
delete_rule |
Delete a rule |
Experiments (5)
| Tool | Description |
|---|---|
list_experiments |
List A/B test experiments |
create_experiment |
Create an experiment |
get_experiment |
Get experiment details |
update_experiment |
Update an experiment |
get_experiment_results |
Get experiment results |
Conversions (4)
| Tool | Description |
|---|---|
send_conversion_event |
Send server-side conversion event via Conversions API |
send_offline_event |
Send an offline conversion event |
list_offline_event_sets |
List offline event sets |
create_offline_event_set |
Create an offline event set |
Budget & Planning (8)
| Tool | Description |
|---|---|
list_budget_schedules |
List budget schedules |
create_budget_schedule |
Create a budget schedule |
update_budget_schedule |
Update a budget schedule |
delete_budget_schedule |
Delete a budget schedule |
list_rf_predictions |
List Reach & Frequency predictions |
create_rf_prediction |
Create a Reach & Frequency prediction |
get_rf_prediction |
Get prediction details |
delete_rf_prediction |
Delete a prediction |
Brand Safety (5)
| Tool | Description |
|---|---|
list_block_lists |
List publisher block lists |
create_block_list |
Create a block list |
add_to_block_list |
Add URLs/domains to a block list |
remove_from_block_list |
Remove entries from a block list |
delete_block_list |
Delete a block list |
Account & Business (13)
| Tool | Description |
|---|---|
get_ad_account |
Get ad account details |
list_ad_accounts |
List ad accounts for a business |
update_ad_account |
Update ad account settings |
get_account_activities |
Get account activity log |
list_account_users |
List users with access to the account |
list_businesses |
List businesses you have access to |
get_business |
Get business details |
list_business_ad_accounts |
List ad accounts in a business |
list_business_users |
List users in a business |
add_business_user |
Add a user to a business |
remove_business_user |
Remove a user from a business |
list_system_users |
List system users for a business |
create_system_user |
Create a system user |
Auth & Token (3)
| Tool | Description |
|---|---|
exchange_token |
Exchange short-lived token for long-lived token |
refresh_token |
Refresh a long-lived token |
debug_token |
Debug/inspect token metadata |
Ad Library (1)
| Tool | Description |
|---|---|
search_ad_library |
Search Meta Ad Library for public ad data |
Resources (3)
| URI | Description |
|---|---|
ads://account |
Ad account overview — status, balance, currency, timezone, and total spend |
ads://campaigns-overview |
All active campaigns with budget information |
ads://spending-today |
Today's spending summary — spend, impressions, clicks, and reach |
Prompts (3)
| Prompt | Description |
|---|---|
campaign_wizard |
Step-by-step guide to create a full ad campaign from scratch |
performance_report |
Analyze ad performance with detailed breakdowns and recommendations |
audience_builder |
Build and refine target audiences using Meta's targeting tools |
Permissions Required
Your Meta access token needs the following permissions depending on which tools you use:
| Permission | Tools |
|---|---|
ads_management |
All campaign, ad set, ad, and creative CRUD operations |
ads_read |
All read/list operations and insights |
business_management |
Business tools, system users, account assignments |
leads_retrieval |
Lead form and lead data tools |
catalog_management |
Catalog, product set, product, and feed tools |
pages_read_engagement |
Lead forms linked to pages |
License
MIT
推荐服务器
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 模型以安全和受控的方式获取实时的网络信息。