Skip to main content

Model Context Protocol server exposing the Meta Ads Graph API — 300+ tools for Facebook & Instagram Ads.

Project description

meta-ads-mcp-server

MCP server for the Meta Marketing API (Facebook & Instagram Ads) — 300+ tools.

PyPI Python License

Install

Option 1: uvx (zero install, recommended)

Add this to your MCP client config (e.g. Claude Desktop's claude_desktop_config.json):

{
  "mcpServers": {
    "meta-ads": {
      "command": "uvx",
      "args": ["meta-ads-mcp-server"],
      "env": {
        "META_ACCESS_TOKEN": "YOUR_TOKEN",
        "META_DEFAULT_AD_ACCOUNT_ID": "act_YOUR_ACCOUNT_ID"
      }
    }
  }
}

Option 2: pip install

pip install meta-ads-mcp-server

Then add to your MCP client config:

{
  "mcpServers": {
    "meta-ads": {
      "command": "meta-ads-mcp",
      "env": {
        "META_ACCESS_TOKEN": "YOUR_TOKEN",
        "META_DEFAULT_AD_ACCOUNT_ID": "act_YOUR_ACCOUNT_ID"
      }
    }
  }
}

Option 3: Interactive Setup Wizard

pip install meta-ads-mcp-server
meta-ads-setup

The wizard auto-detects your installed MCP clients (Claude Desktop, Cursor, VS Code, Windsurf, Gemini CLI) and configures them for you.

Getting Your Meta Access Token

  1. Go to Meta Business Settings > System Users
  2. Create or select a System User
  3. Click Generate New Token
  4. Select ads_management and ads_read permissions
  5. Copy the token

Licensing

Free tier (no key needed): 10 read-only tools — insights, campaign search, spend trends, business listing, and more. Enough to explore and evaluate.

Pro tier (license key): Unlocks all 300+ tools including campaign creation, audience management, optimization, fraud detection, and the full enterprise suite.

Add your license key to the MCP config:

{
  "mcpServers": {
    "meta-ads": {
      "command": "uvx",
      "args": ["meta-ads-mcp-server"],
      "env": {
        "META_ACCESS_TOKEN": "YOUR_TOKEN",
        "META_DEFAULT_AD_ACCOUNT_ID": "act_YOUR_ACCOUNT_ID",
        "LICENSE_KEY": "YOUR_LICENSE_KEY"
      }
    }
  }
}

Contact the developer for a license key.

What's Included

300+ tools covering campaigns, ad sets, ads, audiences, creative, insights, attribution, A/B testing, budget optimization, fraud detection, and much more.

Full documentation | Tool reference

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

meta_ads_mcp_server-0.1.0.tar.gz (571.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

meta_ads_mcp_server-0.1.0-py3-none-any.whl (630.9 kB view details)

Uploaded Python 3

File details

Details for the file meta_ads_mcp_server-0.1.0.tar.gz.

File metadata

  • Download URL: meta_ads_mcp_server-0.1.0.tar.gz
  • Upload date:
  • Size: 571.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for meta_ads_mcp_server-0.1.0.tar.gz
Algorithm Hash digest
SHA256 f91594bc62fbb553f98a8e2022e45548f4addbad771a33dc5a7c302f916d1b13
MD5 13e86c7b7f1ed833a75126c1e6d6e3f9
BLAKE2b-256 4fd0cf3c40204e3d0f78572a166f3fde9804e77aa51ee2f7f320aea1a01c384c

See more details on using hashes here.

File details

Details for the file meta_ads_mcp_server-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for meta_ads_mcp_server-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 14d5e1abdabd58d97d6d5081224dfa5729a261d4f9f6d52f1bb62c333acccbee
MD5 c2d4a73c46e7d672b4ac669f355e1f3f
BLAKE2b-256 c6efd65e7dcd2fb066d3772f10e1871e56c8d9164c39ed6a70eff7cbaf100506

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page