Codex · Meta Ads
Manage Meta Ads from Codex CLI with the same hosted MCP Claude uses
NotFair is a hosted Meta Ads MCP for OpenAI's Codex CLI. One terminal command registers the server. Codex then reads live Meta Ads data and stages writes for approval. 40 Meta Ads tools.
40 Meta Ads tools
Turn Codex Into Your Marketing Engine
Bring ads, search, analytics, CRM, and WordPress into your AI client. Explore each integration to see its supported actions.
Choose a platform
Choose your AI client
Install the MCP
codex mcp add NotFair-MetaAds --url https://notfair.co/api/mcp/notfairSign in and start asking
Audit my Meta Ads account and rank fixes by impact.How it works
From install to an approved Meta Ads change
Connect Meta Ads
NotFair hosts the Meta Marketing API app. You authorize existing ad accounts through OAuth; you do not create a Meta developer app.
Add Codex
From any shell where Codex CLI is installed: `codex mcp add NotFair-MetaAds --url https://notfair.co/api/mcp/notfair`. Codex walks through OAuth and registers the MCP.
Ask, then approve writes
Codex can inspect Campaigns, ad sets, ads, spend, frequency, CPM, CTR, conversions, and audience overlap across Facebook and Instagram. Writes wait for your confirmation. createAdImage uploads supplied PNG/JPEG assets. uploadAdVideo exists but production availability is gated behind a Graph API version and test-account canary.
What you get
Facebook and Instagram, with Meta's real write contract
Meta publishes an official Ads MCP with paused-by-default writes. NotFair hosts the Marketing API app and does not copy Google Ads impact snapshots or undo onto Meta.
Live diagnosis
Ask what is wrong. The client reads Campaigns, ad sets, ads, spend, frequency, CPM, CTR, conversions, and audience overlap across Facebook and Instagram.
Platform-true writes
Preview the target and intended change, wait for explicit approval, then record operation provenance. NotFair does not expose Google Ads-style impact snapshots or undo on Meta.
Hosted OAuth
NotFair hosts the Meta Marketing API app. You authorize existing ad accounts through OAuth; you do not create a Meta developer app.
Honest limits
createAdImage uploads supplied PNG/JPEG assets. uploadAdVideo exists but production availability is gated behind a Graph API version and test-account canary. Meta publishes an official Ads MCP with paused-by-default writes.
Meta Ads tools
40 Meta Ads tools the client can call
The advertised count is measured from the production registrar and guarded by a drift test. The table below is a representative subset from the existing Meta Ads Claude landing.
| Tool | Type | Description |
|---|---|---|
runScript | read | Sandboxed JS with Graph API fan-out across Facebook and Instagram. |
getInsights | read | Spend, impressions, clicks, CTR, CPC, CPM, conversions, ROAS. |
listCampaigns | read | Campaigns with status, objective, budget, bid strategy, and schedule. |
listAdSets | read | Ad set optimization goal, billing event, budget, and targeting summary. |
pauseCampaign | write | Pause a Meta campaign — reversible via enableCampaign. Not Google Ads undo. |
pauseAdSet | write | Pause an ad set without touching its parent campaign. |
updateCampaignBudget | write | Update daily or lifetime budget on a Meta campaign. |
createCampaign | write | Launch a new Meta campaign with objective, budget, and schedule. |
Full tool surface: /meta-ads-mcp.
Meta Ads + Codex FAQ
Direct answers for operators connecting Meta Ads to OpenAI Codex CLI through NotFair.
Connect Meta Ads at notfair.co, run `codex mcp add NotFair-MetaAds --url https://notfair.co/api/mcp/notfair`, then ask Codex to inspect live data. Writes stay staged until you approve them.
Same hosted MCP endpoint, different client. Codex CLI calls NotFair using OpenAI's MCP support. Claude's connector and Claude Code call the same server from Anthropic's clients.
Only with explicit approval. Preview the target and intended change, wait for explicit approval, then record operation provenance. NotFair does not expose Google Ads-style impact snapshots or undo on Meta. createAdImage uploads supplied PNG/JPEG assets. uploadAdVideo exists but production availability is gated behind a Graph API version and test-account canary.
Meta publishes an official Ads MCP with paused-by-default writes.
Related pages
Keep evaluating the same connection.
Meta Ads MCP
Tool surface, endpoint, and 40 Meta Ads tools.
Meta Ads Codex setup guide
One-liner install for OpenAI Codex CLI.
Meta Ads for Claude
Same hosted MCP endpoint on Claude's first-class landing.
Meta Ads for ChatGPT
ChatGPT-style workflows through an MCP-capable OpenAI client.
Meta Ads for Grok Bot
Marketplace install for the same hosted MCP tools.
Compare Meta Ads MCP servers
Sourced benchmark with public verification prompts.
Meta Ads write safety
Preview the target and intended change, wait for explicit approval, then record operation provenance. NotFair does not expose Google Ads-style impact snapshots or undo on Meta.
Connect Meta Ads to Codex
Preview the target and intended change, wait for explicit approval, then record operation provenance. NotFair does not expose Google Ads-style impact snapshots or undo on Meta.