meta-ads

v1.6.1
io.github.mikusnuz/meta-ads Checked 5 days ago Published 1 month ago

MCP server for Meta Marketing API — Facebook & Instagram ad campaign management

Values you need

VariableWhat it is
META_ADS_ACCESS_TOKENrequired secret Meta Marketing API access token
META_AD_ACCOUNT_IDoptional Meta Ad Account ID (e.g. act_123456)
META_APP_IDoptional Meta App ID
META_APP_SECREToptional secret Meta App Secret
META_BUSINESS_IDoptional Meta Business Manager ID
META_PIXEL_IDoptional Meta Pixel ID

npm (npx) discovery passed

Requires Node.js 18+

Run in a terminal
claude mcp add meta-ads -e 'META_ADS_ACCESS_TOKEN=<META_ADS_ACCESS_TOKEN>' -- npx -y @mikusnuz/meta-ads-mcp@1.6.1
Add to claude_desktop_config.json
{
  "mcpServers": {
    "meta-ads": {
      "args": [
        "-y",
        "@mikusnuz/meta-ads-mcp@1.6.1"
      ],
      "command": "npx",
      "env": {
        "META_ADS_ACCESS_TOKEN": "<META_ADS_ACCESS_TOKEN>"
      }
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "meta-ads": {
      "args": [
        "-y",
        "@mikusnuz/meta-ads-mcp@1.6.1"
      ],
      "command": "npx",
      "env": {
        "META_ADS_ACCESS_TOKEN": "<META_ADS_ACCESS_TOKEN>"
      }
    }
  }
}
Add to .vscode/mcp.json
{
  "inputs": [
    {
      "description": "META_ADS_ACCESS_TOKEN",
      "id": "meta-ads-access-token",
      "password": true,
      "type": "promptString"
    }
  ],
  "servers": {
    "meta-ads": {
      "args": [
        "-y",
        "@mikusnuz/meta-ads-mcp@1.6.1"
      ],
      "command": "npx",
      "env": {
        "META_ADS_ACCESS_TOKEN": "${input:meta-ads-access-token}"
      },
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.meta-ads]
command = "npx"
args = ["-y", "@mikusnuz/meta-ads-mcp@1.6.1"]
env = { "META_ADS_ACCESS_TOKEN" = "<META_ADS_ACCESS_TOKEN>" }

For AI agents

  1. Ask the user for: META_ADS_ACCESS_TOKEN. Never invent or guess these values; secrets go into the client config, not into chat logs.
  2. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  3. Restart or reload the client so it starts the server.
  4. Verify: the server should expose these tools: list_campaigns, get_campaign, create_campaign, update_campaign, delete_campaign, copy_campaign, get_campaign_adsets, get_campaign_ads, ….
  5. If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.

Machine-readable: install.md · manifest.json