meta-ads MCP Server
MCP server for Meta Marketing API — Facebook & Instagram ad campaign management
meta-ads scores 67 (Good), licensed MIT and written in TypeScript. It installs as a local process. It declares 40 tools. Filed under Marketing. GitHub shows 97 stars. Package registries report about 338 downloads a week. Install configs are generated for 10 clients. Being listed in the registry is not the same as being vendor-official.
Good trust
67 of 100 from six public signals. Nobody can buy a point.
- Listed in the official MCP registry.
- OSI-style license: mit.
License, quality and maintenance
Quality: Grade B
80/100 for listing completeness. Lost points: 21 of 40 tools barely described, short summary, no docs link.
How quality is graded
Where the 67 comes from
22 + 15 + 6 + 10 + 4 + 10 = 67. Each factor is capped, so no single signal can carry a listing.
Active in the official MCP registry, plus a known vendor namespace.
Registry: 22 of 30 points.How recently the repository saw a commit or release.
Maintenance: 15 of 20 points.GitHub stars and weekly downloads, on a log scale.
Popularity: 6 of 20 points.A clear, OSI-style open-source license.
License: 10 of 10 points.Not archived, a secure install path, a pinned version.
Security: 4 of 10 points.A real summary, a README with depth, listed tools.
Docs: 10 of 10 points.Install
Pick your client, copy the config, paste it in.
Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.
{ "mcpServers": { "mikusnuz-meta-ads-mcp": { "command": "npx", "args": [ "-y", "@mikusnuz/meta-ads-mcp@1.6.1" ], "env": { "META_ADS_ACCESS_TOKEN": "YOUR_META_ADS_ACCESS_TOKEN", "META_AD_ACCOUNT_ID": "", "META_APP_ID": "", "META_APP_SECRET": "YOUR_META_APP_SECRET", "META_BUSINESS_ID": "", "META_PIXEL_ID": "" } } }}
Environment variables
| Name | Required | Notes |
|---|---|---|
META_ADS_ACCESS_TOKENSecret | Required | Meta Marketing API access token |
META_AD_ACCOUNT_ID | Optional | Meta Ad Account ID (e.g. act_123456) |
META_APP_ID | Optional | Meta App ID |
META_APP_SECRETSecret | Optional | Meta App Secret |
META_BUSINESS_ID | Optional | Meta Business Manager ID |
META_PIXEL_ID | Optional | Meta Pixel ID |
Tools40Tool docs quality grade D
All capabilitiescopy_adtoolCopy an existing ad to same or different ad set
copy_adsettoolCopy an existing ad set to same or different campaign
copy_campaigntoolCopy an existing campaign with ad sets and ads
create_adtoolCreate a new ad
create_adsettoolCreate a new ad set
create_campaigntoolCreate a new campaign
create_creativetoolCreate a new ad creative
Create a dynamic creative
delete_adtoolDelete an ad
delete_adsettoolDelete an ad set
delete_campaigntoolDelete a campaign
delete_imagetoolDelete an image
About
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.
{
"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/extension and debug |
META_APP_SECRET | Optional | App secret — required for token exchange/extension and debug |
META_BUSINESS_ID | Optional | Business Manager ID — required for business tools |
META_PIXEL_ID | Optional | Pixel ID — required for conversion tools |
Tools (134)
Campaign Management (25)
| 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 |
copy_campaign | Copy an existing campaign with ad sets and ads |
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 |
copy_adset | Copy an existing ad set to same or different campaign |
get_adset_targeting_sentence | Get human-readable targeting description |
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 |
copy_ad | Copy an existing ad to same or different ad set |
get_ad_preview | Generate ad preview HTML |
get_delivery_estimate | Get delivery estimate for an ad set |
Creatives (6)
| 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 |
generate_preview | Generate ad preview from creative spec without an existing ad |
Media Assets (12)
| Tool | Description |
|---|---|
list_images | List ad images |
upload_image | Upload an image from a URL or local file |
get_image | Get image details |
delete_image | Delete an image |
list_videos | List ad videos |
upload_video | Upload a video from a URL or local file |
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 (16)
| 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 |
get_audience_health | Get audience health, delivery status, and match rate |
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 the report-run status, then fetch its /insights results when complete |
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)
| Tool | Description |
|---|---|
get_form_leads | Get leads from a lead form |
get_lead | Get a single lead by ID |
create_lead_form | Create a new lead generation form on a page |
list_lead_forms | List lead gen forms for a page |
get_lead_form | Get lead form details |
Catalog & Commerce (17)
| 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 |
batch_products | Batch create, update, or delete products (up to 5,000/request) |
get_batch_status | Check status of a catalog batch operation |
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 schedules from a campaign or ad set budget_schedules edge |
create_budget_schedule | Create a schedule on a campaign or ad set |
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 (15)
| 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_business_pages | List Facebook Pages owned by a business |
list_business_instagram_accounts | List Instagram accounts owned by 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 | Extend a valid long-lived user token through the documented exchange flow |
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
Frequently asked questions
What is meta-ads MCP Server?
MCP server for Meta Marketing API — Facebook & Instagram ad campaign management
How do I install meta-ads MCP Server in Claude Desktop, Cursor, or VS Code?
Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. meta-ads MCP Server runs locally from the npm package @mikusnuz/meta-ads-mcp with the command npx -y @mikusnuz/meta-ads-mcp@1.6.1.
Is meta-ads MCP Server free and open source?
Yes. meta-ads MCP Server is released under the MIT license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.
Does meta-ads MCP Server support remote (HTTP) connections?
No remote endpoint is listed for meta-ads MCP Server. It runs locally on your machine over stdio, started by your MCP client.
What tools does meta-ads MCP Server provide?
meta-ads MCP Server provides 40 tools, including copy_ad, copy_adset, copy_campaign, and create_ad. See the full tool list for descriptions and parameters.
How is meta-ads MCP Server's trust score calculated?
meta-ads MCP Server scores 67 out of 100 (Good). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.
Reviews
No reviews yet—Be the first to review
No published reviews yet. Used it? Tell the next person how it went.
Sign inA verified email is required to review this server.
Add badge to your README
Paste either snippet into the repository README. The image links to this listing.
