meta-ads
MCP server by mikusnuz Community
meta-ads is an MCP server for the Meta Marketing API. It gives an AI assistant 134 tools to manage Facebook and Instagram ad campaigns, audiences, creatives, insights and catalogs.
Install meta-ads
Built from the published package, never by AI.
claude mcp add meta-ads -e META_ADS_ACCESS_TOKEN=YOUR_META_ADS_ACCESS_TOKEN -- npx -y @mikusnuz/meta-ads-mcpRun in your terminal. Add --scope user to use it in every project.
{
"mcpServers": {
"meta-ads": {
"env": {
"META_ADS_ACCESS_TOKEN": "YOUR_META_ADS_ACCESS_TOKEN"
},
"args": [
"-y",
"@mikusnuz/meta-ads-mcp"
],
"command": "npx"
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
{
"mcpServers": {
"meta-ads": {
"env": {
"META_ADS_ACCESS_TOKEN": "YOUR_META_ADS_ACCESS_TOKEN"
},
"args": [
"-y",
"@mikusnuz/meta-ads-mcp"
],
"command": "npx"
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"meta-ads": {
"env": {
"META_ADS_ACCESS_TOKEN": "YOUR_META_ADS_ACCESS_TOKEN"
},
"args": [
"-y",
"@mikusnuz/meta-ads-mcp"
],
"command": "npx"
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add meta-ads --env META_ADS_ACCESS_TOKEN=YOUR_META_ADS_ACCESS_TOKEN -- npx -y @mikusnuz/meta-ads-mcp{
"mcpServers": {
"meta-ads": {
"env": {
"META_ADS_ACCESS_TOKEN": "YOUR_META_ADS_ACCESS_TOKEN"
},
"args": [
"-y",
"@mikusnuz/meta-ads-mcp"
],
"command": "npx"
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
gemini mcp add meta-ads npx -y @mikusnuz/meta-ads-mcpGemini CLI was replaced by Antigravity CLI in June 2026 and remains only for enterprise licences and paid API keys.
MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the meta-ads block.
About
meta-ads is an MCP server for the Meta Marketing API, version v26.0. It exposes 134 tools for managing Facebook and Instagram ad campaigns. The tools cover campaigns, ad sets, ads, creatives, media assets, audiences and targeting, insights and reporting, leads, catalogs, automated rules, experiments, conversions and budget schedules.
The server runs through npx and needs a Meta Marketing API access token and an ad account ID. App ID, app secret, business ID and pixel ID are optional and are required only for certain tools, such as token exchange or conversion tools. The source is aimed at advertisers and marketers who want an AI assistant to create, review and adjust ad campaigns.
Written from the project's README and checked against it.
Tools it gives your assistant
create_campaignCreate a new campaign.create_adsetCreate a new ad set, with optional validate_only mode.create_creativeCreate a new ad creative.get_campaign_insightsGet campaign-level performance metrics.get_account_insightsGet account-level performance metrics.create_custom_audienceCreate a custom audience, including rule-based audiences.create_lookalike_audienceCreate a lookalike audience.create_async_reportCreate an asynchronous insights report for large date ranges.create_ruleCreate an automated rule for campaigns or ads.create_experimentCreate an A/B test experiment.
What you need
- Meta Marketing API access token
- Meta ad account ID
- Node.js 20 or later
- Meta app ID and app secret for token exchange and extension
| Setting | Needed | What it is |
|---|---|---|
META_Environment variable, secret | Required | Meta Marketing API access token |
META_Environment variable | Optional | Meta Ad Account ID (e.g. act_123456) |
META_Environment variable | Optional | Meta App ID |
META_Environment variable, secret | Optional | Meta App Secret |
META_Environment variable | Optional | Meta Business Manager ID |
META_Environment variable | Optional | Meta Pixel ID |
From the publisher's entry in the official MCP Registry. Required settings are already in the install config below as placeholders.
Try asking
- Create a new Facebook ad campaign with an ad set and creative
- Show me how my ads performed today
- Set up an A/B test between two ad sets
Good to know
- Some detailed Insights breakdowns require an Ads Manager opt-in.
- An empty Insights response does not necessarily mean zero performance.
- Audience creation is a real write, not a dry run.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: README.md, package.json. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to meta-ads
All alternatives →Provides keyword research, site audits, rank tracking and AI visibility checks through an MCP server for AI assistants. It is aimed at people who find tools like Semrush and Ahrefs too expensive or bloated.
Analyzes Google Search Console, Google Analytics and keyword data so your AI agent can find SEO and AI search gaps. Built for SaaS and B2B teams using Claude Code, Codex, ChatGPT or Cursor.
NotFair is an open-source plugin of SEO, GEO, and marketing skills for AI agents. It also registers one hosted NotFair MCP connection that uses OAuth. It is for marketers and site owners who work with Claude Code, Codex, Cursor, Gemini CLI, and similar agents.
Connects AI clients to Elmo, an open-source platform that tracks how AI answer engines mention and cite a brand. It lets assistants read visibility data and manage tracked prompts. It is aimed at marketing, SEO, and agency teams doing answer engine optimization.
Clipwright.io turns a script or short brief into a short video, either a talking-actor ad or a faceless video. The assistant gets a free price quote before each render and receives a video URL back.
Reports new AI model, product, tool and repo names as they start to surge, with the generic search terms people use for them. Built for people who make SEO pages, newsletters or directories around new AI terms.
meta-ads: common questions
Which Meta API version does meta-ads use?
The server is built for the Meta Marketing API v26.0, according to its README.
How many tools does meta-ads provide?
The README lists 134 tools covering campaigns, creatives, media, audiences, insights, leads, catalogs, rules, experiments, conversions and budgets.
Can I check an ad set change without applying it?
create_adset and update_adset accept validate_only set to true, which asks Meta to validate the request without making a change. A successful validation does not create an ad set.
How do I install meta-ads?
In Claude Code run claude mcp add meta-ads -e META_ADS_ACCESS_TOKEN=YOUR_META_ADS_ACCESS_TOKEN -- npx -y @mikusnuz/meta-ads-mcp. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.
Is meta-ads the official server?
meta-ads is a community project by mikusnuz, not verified by a company domain.
Is meta-ads free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is meta-ads safe to use?
It scores 73 of 100. Grades: maintenance B, licence A, quality B. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
Does meta-ads work with ChatGPT?
Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.
