Skip to content

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

How it works: you ask Codex, Adneuron shows the plan and waits for your yes, then the change goes live in Meta Ads.
  • 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

Codex works out the change, shows it to you and waits. Nothing happens in Meta Ads until you say yes.
Example with made-up campaigns. Codex prints both budgets before and after; Meta changes only after your yes.

What Codex can do in Meta Ads

Changes wait for your approval. See everything 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

Talk to Codex the way you would brief a colleague. Tap a prompt to copy it.

Set up in a few minutes

No API key. The Codex setup guide has every step and fixes for common problems.
  1. 1

    Connect Meta

    Create a free Adneuron account and connect your Meta ad account with Facebook's sign-in.

  2. 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. 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?

Use both. Here is what each is good at.
TaskAdneuron in CodexMeta Ads website
Spot ads people are tired ofAsk; get frequency and spend per adAdd columns and compare by hand
Move budget between ad setsCodex shows both sides; you say yesEdit each ad set
Check the learning phase firstPart of the same answerDelivery column per ad set
Compare with Google and TikTokYes, in one answerMeta 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.

Ready to connect Codex to Meta Ads?

Free plan, no credit card. Every change waits for your yes.