Collect Meta leads with Codex. You approve every change.
Draft instant forms, launch lead campaigns and read new leads from the terminal or your editor; Codex shows each form and campaign before Meta gets it.
Updated
- Instant forms on your Page
- Leads read straight from Meta
- You approve every change
- Lead campaigns start paused
What is the Meta Lead Ads MCP for Codex?
Adneuron is an MCP server that connects Codex to Meta Lead Ads. Once Codex has it, you can create instant forms on your Facebook Page, launch image, video or carousel lead campaigns that use a form or your website, read leads that arrive with every answer, and compare cost per lead by ad. It works in the Codex CLI, IDE extension and ChatGPT desktop app. Every change waits for your approval; campaigns start paused.
- Codex shows every question on a form before it is made
- Lead campaigns are created paused
- Leads are fetched only when you ask, with a Meta permission you grant
- Removing a campaign archives it, so its results stay
How it works in Codex
Leads on request
Ask Codex for this week's leads from a form and they come straight from Meta, with every answer and when it arrived. Reading leads needs a separate Meta permission you grant once.
Draft the questions in a file
Write the form's questions and privacy policy link in a file in the IDE extension, then ask Codex to create the form from it. It shows the whole form before anything is made.
Works on a remote machine
Without a browser to hand, sign in with codex mcp login adneuron --no-browser and open the printed link on your laptop, so lead checks work wherever Codex runs.
Allow, then approve
The first Adneuron tool call asks for your permission in Codex. Creating a form or launching a lead campaign then waits for your yes on the plan.
See it in action
What Codex can do in Meta Lead Ads
Instant forms
Forms on your Facebook Page with name, email and phone filled in from Facebook, plus your own questions and privacy policy link.
Lead campaigns
Image, video or carousel campaigns that open a form or send people to your website, built in one confirmed step and left paused.
Read new leads
Leads for the dates you choose, from a form or an ad, with every answer and the time it came in.
Cost per lead
Leads, spend and cost per lead by campaign, ad set and ad, so the cheapest creative is clear.
Budgets and bids
Ad set budgets, spend limits and bid strategies, moved toward the ads that bring leads for less.
Special ad categories
Housing, employment, financial products and other categories Meta regulates, declared on the campaign.
Prompts to try
Set up in a few minutes
- 1
Connect Meta and your Page
Make a free Adneuron account and connect your Meta ad account and Facebook Page with Facebook's sign-in.
- 2
Add Adneuron to Codex
Run codex mcp add adneuron in a terminal; Codex detects the sign-in and opens your browser.
- 3
Allow and ask
Select your workspace, click Allow, and ask Codex which lead forms your Page already has.
Codex or the Meta Lead Ads website?
| Task | Adneuron in Codex | Meta Lead Ads website |
|---|---|---|
| Create an instant form | Describe the questions; Codex shows the form | Form builder in Meta |
| Read this week's leads | Ask; they appear with every answer | Leads centre or form library |
| Find the cheapest lead ads | Cost per lead by ad in one answer | Columns and breakdowns |
| Compare with LinkedIn or Google | Yes, in one answer | Meta only |
Questions
Setup
What does Codex need to read my leads?
Adneuron added to Codex, your Meta ad account and Page connected, and Meta's separate leads permission, which you grant once. After that, Codex can read leads whenever you ask.
Do I paste a Meta access token into Codex?
No. Codex signs in to Adneuron with your Adneuron account, and Meta connects through Facebook's own sign-in. There is no token to copy into config.toml.
Capabilities
Can Codex create an instant form?
Yes. Name, email and phone come prefilled from Facebook, and you can add your own questions in plain words. Codex shows the whole form, with your privacy policy link, before it is made.
Can lead campaigns send people to my website instead?
Yes. A lead campaign can send people to your site and optimise for the lead event your Meta Pixel records, or use whichever of website or form Meta expects to work better.
Does it handle special ad categories?
Yes. If your ads are about housing, employment, financial products, social issues, elections or politics, or online gambling, Codex declares the category on the campaign as Meta requires.
Safety and control
Will Codex launch a lead campaign without asking?
No. Codex shows the form, budget and audience first, and nothing is created until you say yes. The campaign starts paused, so it collects no leads until you turn it on.
When does Adneuron read my leads?
Only when you ask Codex for them, and only with the leads permission you grant in Meta. Forms and campaigns never change without your 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 AdsFacebook and Instagram campaigns
- Codex × Meta Catalog AdsCatalogs, product sets and catalog campaigns
- 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 Lead Ads in other AI assistants
- ChatGPT × Meta Lead AdsIn ChatGPT, from the app store
- Claude × Meta Lead AdsIn Claude on web, desktop and mobile
- Cursor × Meta Lead AdsWithout leaving the Cursor editor
Claude Code × Meta Lead AdsFrom your terminal with Claude Code
Devin Desktop × Meta Lead AdsWith Devin on your desktop
Grok × Meta Lead AdsIn Grok on the web
Grok Build × Meta Lead AdsFrom Grok Build in your terminal
GitHub Copilot × Meta Lead AdsIn VS Code with GitHub Copilot
Gemini × Meta Lead AdsIn Gemini
Manus × Meta Lead AdsIn Manus
Ready to connect Codex to Meta Lead Ads?
Free plan, no credit card. Every change waits for your yes.