Meta Ads MCP logo

Meta Ads MCP

by mikusnuz

Manage Meta ad campaigns, audiences, creatives, media, insights, catalogs, and automated rules through 134 MCP tools.

Install Meta Ads MCP

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "mikusnuz-meta-ads-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@mikusnuz/meta-ads-mcp"
      ],
      "env": {
        "META_ADS_ACCESS_TOKEN": "YOUR_VALUE_HERE",
        "META_AD_ACCOUNT_ID": "YOUR_VALUE_HERE"
      }
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Values are written into the snippet above so you can paste it as is. They never leave your browser.

Install not yet sandbox-tested— the server itself is confirmed live (we called its tools/list endpoint). The stdio install command is a separate, ongoing check.

Overview

mikusnuz/meta-ads-mcp MCP server connects AI agents to the Meta Marketing API v26.0 for Facebook and Instagram advertising workflows. It exposes tools for creating and managing campaigns, ad sets, ads, creatives, audiences, media assets, insights, catalogs, and automated rules. Use it when an agent needs to inspect performance, modify campaign structure, build ads, or automate routine advertising operations. It runs through npm with a Meta access token and ad account ID.

Use cases

  • Create a complete Facebook or Instagram campaign funnel
  • Review ad performance for a selected date range
  • Pause campaigns that fall below a ROAS threshold
  • Build custom and lookalike audiences
  • Generate asynchronous reports for large date ranges

Key features

  • Campaign, ad set, and ad lifecycle tools
  • Creative and media asset management
  • Audience and targeting operations
  • Performance insights and asynchronous reports
  • Catalogs, feeds, experiments, and automated rules

Tools134

What Meta Ads MCP lets your agent do. Expand a tool for its parameters.

Verified live~19.4k tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked Today

Recent health check succeeded.

21/21 checks healthy over the last 78d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 10d ago via OSV.dev · @mikusnuz/meta-ads-mcp (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars91Stargazers on the source repository.
npm downloads1.8kPackage downloads in the last 30 days.
Last commit7d agoMost recent push to the default branch.
Tools exposed134Callable tools this server registers over MCP.
Directory activity2 viewsConfig copies, upvotes, and views on AllMCPs.

How Meta Ads MCP works

What mikusnuz/meta-ads-mcp does

mikusnuz/meta-ads-mcp exposes Meta Marketing API operations through MCP tools. The repository describes 134 tools covering Facebook and Instagram advertising, including campaign hierarchies, creatives, media assets, audiences, targeting, reporting, catalogs, and automated rules.

Campaign tools can list, inspect, create, update, copy, and delete campaigns, ad sets, and ads. Creation tools support common campaign-building sequences: create a campaign, add an ad set with targeting and budget, create a creative, and create an ad. New campaigns, ad sets, and ads default to paused status. The server also provides lead retrieval, ad previews, delivery estimates, and human-readable ad set targeting descriptions.

The broader toolset supports custom and lookalike audiences, audience health checks, targeting searches, location searches, reach estimates, image and video uploads, account and object-level insights, asynchronous reports, ad library searches, experiments, catalogs, feeds, and automated rules.

How it works

An MCP-compatible host starts the package with npx, and the server sends requests to the Meta Marketing API using the configured credentials. Agents can combine read and write tools into workflows, such as finding campaigns with weak performance and then pausing them, or creating a full funnel from campaign through ad.

Insight tools accept date ranges and can query account, campaign, ad set, or ad performance. Large reporting jobs use an asynchronous flow: create the report, poll its status, and retrieve the completed results. Audience workflows can create an audience, add users, and then create a lookalike audience. The MCP server does not automatically make write operations safe or reversible; deletion and audience creation require particular care.

Setup and configuration

mikusnuz/meta-ads-mcp requires Node.js 20 or later. Configure the MCP host to run:

config.json
{
  "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_ADS_ACCESS_TOKEN and META_AD_ACCOUNT_ID are required. The account ID is numeric and should not include the act_ prefix. META_APP_ID and META_APP_SECRET support token exchange, extension, and debugging. META_BUSINESS_ID is used by business tools, while META_PIXEL_ID is used by conversion tools.

Tools and capabilities

The mikusnuz/meta-ads-mcp MCP server includes tools for:

  • Campaign, ad set, ad, and creative lifecycle management
  • Image, video, canvas, and other media asset operations
  • Custom, saved, and lookalike audience management
  • Targeting, location, reach, and delivery estimates
  • Account, campaign, ad set, and ad insights
  • Asynchronous report creation and result retrieval
  • Experiments, conversion events, catalogs, product feeds, and automated rules
  • Facebook Ad Library searches and ad previews

Recent capabilities include ad set validation without mutation through validate_only, bid and scheduling fields, rule-based custom audiences, and creative destination settings for Shops. EU-targeted ads may require both DSA beneficiary and payer values or corresponding account defaults.

Limitations and notes

Meta permissions and account configuration still govern what the tools can access or change. Lead retrieval requires leads_retrieval permission. Some business and conversion operations need the optional business or pixel identifiers. Deleting campaigns, ad sets, ads, creatives, media, or audiences can be irreversible.

The repository targets Meta Marketing API v26.0. In that version, several delivery-estimate fields are no longer returned, including daily_outcomes_curve, budget_guardrail, and estimate_dau. Poll and fetch asynchronous reports rather than expecting large insight queries to complete immediately. Detailed insight breakdowns may require Ads Manager opt-in, so an empty response does not necessarily indicate zero performance.

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Meta Ads MCP

mikusnuz/meta-ads-mcp is an MCP server that connects AI agents to the Meta Marketing API for Facebook and Instagram advertising. Its main tools manage campaigns, ad sets, ads, creatives, audiences, media, targeting, insights, reports, catalogs, and automated rules through an MCP-compatible host.

Install it by configuring your MCP host to run `npx -y @mikusnuz/meta-ads-mcp`. Node.js 20 or later is required. Add the required Meta access token and numeric ad account ID as environment variables in the host configuration.

It requires `META_ADS_ACCESS_TOKEN` and `META_AD_ACCOUNT_ID`. The app ID and secret are optional for token operations and debugging, while the business ID and pixel ID support specific business and conversion tools.

Yes, it can create a campaign, ad set, creative, and ad as separate operations. Campaign, ad set, and ad creation defaults to paused status, and the ad set and creative inputs must satisfy Meta Marketing API requirements.

Yes. It uses a standard npx-launched MCP process, so it can be configured in Cursor as an MCP server.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewMeta Ads MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/mikusnuz-meta-ads-mcp?style=directory)](https://allmcps.com/mcp/mikusnuz-meta-ads-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/mikusnuz-meta-ads-mcp"><img src="https://allmcps.com/api/badge/mikusnuz-meta-ads-mcp?style=directory" alt="Meta Ads MCP on AllMCPs" /></a>