Codex MCP for marketing data
Codex MCP servers extend what Codex can do in the terminal and the IDE. Add Lemonado in two lines of config and Codex queries your marketing data and turns it into files and scripts you can rerun.
No card needed. About 1 minute to set up.
Lemonado
Lemonado for Codex
Codex reads your marketing data from your terminal and turns one-off questions into commands you can rerun with codex exec.
Set up in minutes.
- 1
Connect Google Ads
Sign in to Google Ads in Lemonado.
- 2
Copy the server URL
Turn on external access and copy one URL.
- 3
Ask in Codex
Add the URL to Codex and ask away.
Ask it anything.
Codex runs in your terminal, its IDE extension and scripts, so what it finds once can be rerun with codex exec instead of redone by hand.
Which Performance Max asset groups get impressions but almost never convert?
Asset group "Lifestyle video" took 31% of PMax impressions and 4% of conversions. Its CPA is $96 against $38 for the rest.
Source: your marketing stack
Compare the Meta pixel events we fire in the code with the conversion events Meta Ads reports. Which ones are missing or misnamed?
"AddPaymentInfo" fires in checkout.ts but Meta has no conversions for it this month. The event name has a trailing space in the code.
Source: Meta Ads + your code
Save sessions, conversion rate and revenue by landing page for the last 90 days as data/landing_pages.csv.
Saved 312 landing pages to data/landing_pages.csv. The top 20 pages bring 71% of sessions.
Source: Google Analytics + your code
Save queries, pages, clicks, impressions and position for the last 90 days as data/search_queries.csv.
Saved 8,912 rows to data/search_queries.csv. Branded queries are 22% of clicks.
Source: Google Search Console + your code
Use the Q4 media plan sheet and tell me which channels are off pace this month.
Meta is 18% over plan, LinkedIn 31% under. At this pace Meta overspends by $7,200 by month end.
Source: your marketing stack
Is lead form completion dropping on any campaign?
Yes, on "Q4 Demo": opens are steady but completion fell from 14% to 8% after the form gained 3 fields.
Source: your marketing stack
Connect your tools to Codex.
- Google Ads in CodexAsk Claude, ChatGPT or Cursor about your Google Ads campaigns, search terms and spend.
- Meta Ads in CodexAsk Claude, ChatGPT or Cursor about your Facebook and Instagram ads, creatives and results.
- Google Analytics in CodexAsk Claude, ChatGPT or Cursor about GA4 traffic, conversions and funnels, next to your ad spend.
- Google Search Console in CodexAsk Claude, ChatGPT or Cursor about your search queries, rankings and lost clicks.
- Google Sheets in CodexUse your media plans, targets and offline sales sheets in Claude, next to live ad data.
- LinkedIn Ads in CodexAsk Claude, ChatGPT or Cursor about LinkedIn campaigns, lead forms and who converts.
- TikTok Ads in CodexAsk Claude, ChatGPT or Cursor which TikTok videos hold attention and which ones sell.
- Stripe in CodexPut Stripe revenue next to your ad spend in Claude, ChatGPT or Cursor.
- Instagram organic in CodexAsk Claude or ChatGPT which posts and reels grow your account, and which ones to turn into ads.
- Pinterest Ads in CodexAsk Claude or ChatGPT which pins get saved, clicked and bought.
- Snapchat Ads in CodexAsk Claude or ChatGPT which Snapchat ads get swipes and which ones sell.
- YouTube Ads in CodexAsk Claude or ChatGPT which YouTube ads get watched and which ones convert.
How to add Lemonado to Codex
- 1
Connect your marketing tools in Lemonado
In Lemonado, open Connectors and sign in to the tools you want to use: Google Ads, Meta Ads, GA4 and so on. New to Lemonado? The free trial gives you $150 in credits, no card needed.
- 2
Turn on external access and copy the server URL
Open the company's settings, choose External tools, turn the connection on and pick which clients and sources it can reach. Copy the server URL.
texthttps://mcp.lemonado.io/mcp - 3
Add Lemonado to your config
Add this to ~/.codex/config.toml.
toml[mcp_servers.lemonado] url = "https://mcp.lemonado.io/mcp" - 4
Log in
Run the login command and finish the sign-in in your browser.
bashcodex mcp login lemonado - 5
Check it
Run codex mcp list, or /mcp inside Codex, to see the server and its tools.
Use Lemonado with other AI apps.
Reading this as an AI agent?
Everything an agent needs to set this up, in plain text. Paste this page's link into Codex and ask it to connect you, or copy the block.
# Lemonado MCP server in Codex Lemonado is a hosted MCP server that gives AI apps the user's live marketing data from Google Ads, Meta Ads, GA4 and 3,000+ other tools. - Server URL: https://mcp.lemonado.io/mcp - Transport: Streamable HTTP - Auth: OAuth; the user signs in to Lemonado in the browser. No API keys. - Tools on https://mcp.lemonado.io/mcp (custom connectors, coding agents, n8n): list_objects, get_object_details, execute_sql, get_google_ads_resource_metadata, list_companies, get_company_details, list_actions, get_action_details, execute_action - Lemonado's Claude directory app and ChatGPT plugin (read-only): list_projects, list_project_sources, answer_data_question, explain_metric_change ## Setup 1. The user connects their tools in Lemonado (Connectors) and signs in. 2. In the company's settings → External tools, they turn the connection on and copy the server URL. 3. Add Lemonado to your config: Add this to ~/.codex/config.toml. ```toml [mcp_servers.lemonado] url = "https://mcp.lemonado.io/mcp" ``` 4. Log in: Run the login command and finish the sign-in in your browser. ```bash codex mcp login lemonado ``` 5. Check it: Run codex mcp list, or /mcp inside Codex, to see the server and its tools. If you are Codex, run the setup yourself: Add the Lemonado MCP server to my Codex config. Append this to ~/.codex/config.toml: [mcp_servers.lemonado] url = "https://mcp.lemonado.io/mcp" Then run codex mcp login lemonado so I can sign in, and check that codex mcp list shows it. Once I've signed in, list the marketing accounts Lemonado can reach. Docs: https://docs.lemonado.io/mcp-reference Full index for agents: https://lemonado.io/llms.txt
Frequently Asked Questions
Platforms like Google and Meta publish their own MCP servers, each covering one tool. Lemonado is one connection that brings Google Ads, Meta Ads, GA4, Search Console, LinkedIn, TikTok, Stripe and 3,000+ other tools into Codex, so you can ask questions that cross platforms.
Yes. The Codex CLI and the IDE extension share ~/.codex/config.toml, so adding Lemonado once makes it available in both.
Yes. It can read your data and make changes, like pausing an ad or moving budget, once you approve them.
MCP is included in Lemonado's paid plans and in the free trial, so you can try it before you pay.
Still have a question?
Shoot us an email at hello@lemonado.io.
Try for freeStop fighting with data. Start feeding your AI.
Connect your data to AI and free your team from reporting and busywork.
Try Lemonado free