meta-ads
v1.6.1MCP server for Meta Marketing API — Facebook & Instagram ad campaign management
Values you need
| Variable | What it is | |
|---|---|---|
META_ADS_ACCESS_TOKEN | required secret | Meta Marketing API access token |
META_AD_ACCOUNT_ID | optional | Meta Ad Account ID (e.g. act_123456) |
META_APP_ID | optional | Meta App ID |
META_APP_SECRET | optional secret | Meta App Secret |
META_BUSINESS_ID | optional | Meta Business Manager ID |
META_PIXEL_ID | optional | 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.1Add 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
- Ask the user for: META_ADS_ACCESS_TOKEN. Never invent or guess these values; secrets go into the client config, not into chat logs.
- 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).
- Restart or reload the client so it starts the server.
- 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, ….
- 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