meta-ads-mcp
meta-ads-mcp
MCP server for the Meta Marketing API v25.0 — 135 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 |
| Yes | Meta Marketing API access token |
| Yes | Ad account ID (numeric, without |
| Optional | App ID — required for token exchange/debug |
| Optional | App secret — required for token exchange/debug |
| Optional | Business Manager ID — required for business tools |
| Optional | Pixel ID — required for conversion tools |
Tools (135)
Campaign Management (25)
Tool | Description |
| List campaigns with filtering and pagination |
| Get campaign details by ID |
| Create a new campaign |
| Update campaign settings |
| Delete a campaign |
| Copy an existing campaign with ad sets and ads |
| List ad sets within a campaign |
| List ads within a campaign |
| Get leads from a campaign |
| List ad sets with filtering |
| Get ad set details by ID |
| Create a new ad set |
| Update ad set settings |
| Delete an ad set |
| Copy an existing ad set to same or different campaign |
| Get human-readable targeting description |
| List ads within an ad set |
| Get leads from an ad set |
| List ads with filtering |
| Get ad details by ID |
| Create a new ad |
| Update ad settings |
| Delete an ad |
| Copy an existing ad to same or different ad set |
| Generate ad preview HTML |
| Get delivery estimate for an ad |
Creatives (6)
Tool | Description |
| List ad creatives |
| Get creative details |
| Create a new ad creative |
| Update an ad creative |
| Create a dynamic creative |
| Generate ad preview from creative spec without an existing ad |
Media Assets (12)
Tool | Description |
| List ad images |
| Upload an image from URL |
| Get image details |
| Delete an image |
| List ad videos |
| Upload a video from URL |
| Get video details |
| Delete a video |
| List Instant Experience canvases |
| Get canvas details |
| Create a canvas |
| Delete a canvas |
Audiences & Targeting (16)
Tool | Description |
| List custom audiences |
| Get audience details |
| Create a custom audience |
| Update audience settings |
| Delete an audience |
| Add users to a custom audience |
| Remove users from a custom audience |
| Create a lookalike audience |
| Get audience health, delivery status, and match rate |
| List saved audiences |
| Get saved audience details |
| Search targeting interests, behaviors, demographics |
| Search targetable locations |
| Browse targeting category tree |
| Estimate audience reach for targeting spec |
| Get related targeting suggestions |
Insights & Reporting (6)
Tool | Description |
| Account-level performance metrics |
| Campaign-level performance metrics |
| Ad set-level performance metrics |
| Ad-level performance metrics |
| Create an async insights report |
| Poll async report status and results |
Leads (5)
Tool | Description |
| Get leads from a lead form |
| Get a single lead by ID |
| Create a new lead generation form on a page |
| List lead gen forms for a page |
| Get lead form details |
Catalog & Commerce (17)
Tool | Description |
| List product catalogs |
| Get catalog details |
| Create a product catalog |
| Update a catalog |
| List product sets in a catalog |
| Create a product set |
| Get product set details |
| Update a product set |
| List products in a catalog |
| Get product details |
| Update a product |
| List data feeds for a catalog |
| Create a data feed |
| Upload data to a feed |
| Get feed upload history |
| Batch create, update, or delete products (up to 5,000/request) |
| Check status of a catalog batch operation |
Automation & Rules (5)
Tool | Description |
| List automated rules |
| Get rule details |
| Create an automated rule |
| Update a rule |
| Delete a rule |
Experiments (5)
Tool | Description |
| List A/B test experiments |
| Create an experiment |
| Get experiment details |
| Update an experiment |
| Get experiment results |
Conversions (4)
Tool | Description |
| Send server-side conversion event via Conversions API |
| Send an offline conversion event |
| List offline event sets |
| Create an offline event set |
Budget & Planning (8)
Tool | Description |
| List budget schedules |
| Create a budget schedule |
| Update a budget schedule |
| Delete a budget schedule |
| List Reach & Frequency predictions |
| Create a Reach & Frequency prediction |
| Get prediction details |
| Delete a prediction |
Brand Safety (5)
Tool | Description |
| List publisher block lists |
| Create a block list |
| Add URLs/domains to a block list |
| Remove entries from a block list |
| Delete a block list |
Account & Business (15)
Tool | Description |
| Get ad account details |
| List ad accounts for a business |
| Update ad account settings |
| Get account activity log |
| List users with access to the account |
| List businesses you have access to |
| Get business details |
| List ad accounts in a business |
| List users in a business |
| Add a user to a business |
| Remove a user from a business |
| List Facebook Pages owned by a business |
| List Instagram accounts owned by a business |
| List system users for a business |
| Create a system user |
Auth & Token (3)
Tool | Description |
| Exchange short-lived token for long-lived token |
| Refresh a long-lived token |
| Debug/inspect token metadata |
Ad Library (1)
Tool | Description |
| Search Meta Ad Library for public ad data |
Resources (3)
URI | Description |
| Ad account overview — status, balance, currency, timezone, and total spend |
| All active campaigns with budget information |
| Today's spending summary — spend, impressions, clicks, and reach |
Prompts (3)
Prompt | Description |
| Step-by-step guide to create a full ad campaign from scratch |
| Analyze ad performance with detailed breakdowns and recommendations |
| 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 |
| All campaign, ad set, ad, and creative CRUD operations |
| All read/list operations and insights |
| Business tools, system users, account assignments |
| Lead form and lead data tools |
| Catalog, product set, product, and feed tools |
| Lead forms linked to pages |
License
MIT
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/mikusnuz/meta-ads-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server