Manage Facebook and Instagram ads from Codex. You approve every change.
Check ad fatigue, ad set budgets and the learning phase from the terminal or your editor, and approve each change Codex proposes before Meta sees it.
Updated
- Facebook and Instagram together
- Each change waits for your yes
- Remove archives by default
- New campaigns start paused
What is the Meta Ads MCP for Codex?
Adneuron is an MCP server that connects Codex to Meta Ads. Add it with codex mcp add and Codex can report on Facebook and Instagram campaigns by ad set, ad and placement, flag creative people have seen too often, check the learning phase, move ad set budgets, copy campaigns and launch image, video, carousel or boosted-post campaigns. Every change waits for your approval, and new campaigns are created paused.
- Codex shows each budget, pause or copy and waits for your yes
- Removing a campaign archives it, so its results stay
- New campaigns and copies start paused
- Meta connects with Facebook's sign-in; no access token to paste
How it works in Codex
Fatigue check as a table
Ask the Codex CLI for ads with rising frequency and falling click rates, and have it save the result as fatigue.csv beside your weekly notes.
Learning phase before big edits
Before Codex moves a budget, ask it which ad sets are still learning. It reads Meta's status, so you can wait for an ad set to settle first.
Stays signed in
Codex keeps its Adneuron sign-in until you disconnect or access is cleared. If it ever says sign-in is needed, run codex mcp login adneuron again.
Tool prompt, then plan
Codex asks whether it may use an Adneuron tool the first time. Pausing an ad or moving budget still needs your yes on the plan it shows.
See it in action
What Codex can do in Meta Ads
Tired creative
Ads whose frequency is climbing while clicks or results slide, with the spend behind each, so you can swap them before costs rise.
Budgets and bids
Ad set and campaign budgets, spend limits, and bid strategies such as cost cap, bid cap and minimum return on ad spend.
Reports by placement
Spend, results and return on ad spend by campaign, ad set, ad and placement, from Facebook Feed to Instagram Reels.
Copy a campaign
Duplicate a campaign with its ad sets and ads as a paused copy, ready for a new country or offer.
Image, video and carousel
A new campaign with its ad set and ad built in one confirmed step and left paused, with Advantage+ settings named in the plan.
Boost a post
Pick a recent Facebook or Instagram post from your list and turn it into a campaign with its own budget.
Prompts to try
Set up in a few minutes
- 1
Connect Meta
Create a free Adneuron account and connect your Meta ad account with Facebook's sign-in.
- 2
Register Adneuron in Codex
Run codex mcp add adneuron with the address from the setup guide; a browser tab opens for sign-in.
- 3
Allow and check
Pick the workspace, select Allow, then ask Codex which Facebook and Instagram ads spent most this week.
Codex or the Meta Ads website?
| Task | Adneuron in Codex | Meta Ads website |
|---|---|---|
| Spot ads people are tired of | Ask; get frequency and spend per ad | Add columns and compare by hand |
| Move budget between ad sets | Codex shows both sides; you say yes | Edit each ad set |
| Check the learning phase first | Part of the same answer | Delivery column per ad set |
| Compare with Google and TikTok | Yes, in one answer | Meta only |
Questions
Setup
How do I connect Meta Ads to Codex?
Connect your Meta ad account in Adneuron with Facebook's sign-in, then run codex mcp add adneuron in your terminal and sign in. Type /mcp to confirm Adneuron is listed.
Codex answered without using Adneuron. What now?
Mention Adneuron in the question, for example "Use Adneuron to list my Meta campaigns", and check with /mcp that Adneuron is listed and signed in.
Capabilities
Can Codex find Facebook ads people are tired of?
Yes. It looks at how often people saw each ad and whether its click rate or results are falling, names the tired ads with their spend, and can pause them after your yes.
Can Codex launch a Meta campaign?
Yes. It builds image, video and carousel campaigns, or a boost of an existing post, with the ad set and ad, in one confirmed step. The new campaign is paused until you turn it on.
Can I save Meta reports to a file?
Yes. Ask Codex to write the report to a CSV or Markdown file in your project. The figures come from Meta through Adneuron, with the dates and currency stated.
Safety and control
What does removing a Meta campaign do?
By default it archives the campaign, so it stops and its results stay in your reports. Ask to delete it permanently and Codex checks once that this is what you mean.
Will Codex change my ads without asking?
No. Codex shows the exact change, such as a budget before and after or the ad it will pause, and nothing happens in Meta until you say yes.
Related integrations
Codex with other ad platforms
- Codex × Google Search AdsSearch campaigns, keywords and search terms
- Codex × Performance MaxAsset groups, signals and search themes
- Codex × Google ShoppingProduct groups, bids and product results
- Codex × Google DisplayDisplay campaigns and image ads
- Codex × YouTube AdsVideo ads through Demand Gen
- Codex × Meta Catalog AdsCatalogs, product sets and catalog campaigns
- Codex × Meta Lead AdsLead forms and the leads they collect
- Codex × Amazon AdsSponsored Products, Brands and Display
- Codex × LinkedIn AdsB2B campaigns by job title and company
- Codex × TikTok AdsIn-feed video and Smart+ campaigns
Meta Ads in other AI assistants
- ChatGPT × Meta AdsIn ChatGPT, from the app store
- Claude × Meta AdsIn Claude on web, desktop and mobile
- Cursor × Meta AdsWithout leaving the Cursor editor
Claude Code × Meta AdsFrom your terminal with Claude Code
Devin Desktop × Meta AdsWith Devin on your desktop
Grok × Meta AdsIn Grok on the web
Grok Build × Meta AdsFrom Grok Build in your terminal
GitHub Copilot × Meta AdsIn VS Code with GitHub Copilot
Gemini × Meta AdsIn Gemini
Manus × Meta AdsIn Manus
Ready to connect Codex to Meta Ads?
Free plan, no credit card. Every change waits for your yes.