Why connect Stripe to Codex?
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. Connected through Lemonado, it reads your Stripe revenue, subscriptions, refunds and customers, so it can check refunds after a promo with today's numbers.
All your Stripe data
Customers and subscriptions, ready to ask about.
Always today's numbers
New revenue and MRR, synced from Stripe automatically, so answers use today's numbers.
Connect all your tools
Questions like "Is ad spend turning into revenue?" use Stripe and Google Ads, Meta Ads at once.
How to connect Stripe to Codex
Before you start
- A Stripe account you can sign in to
- Codex installed
- A Lemonado account (the free trial works)
- 1
Connect Stripe in Lemonado
In Lemonado, open Connectors, find Stripe and sign in. Connect the Stripe account that takes your live payments.
- 2
Turn on external access
In the company's settings, open External tools, turn the connection on, choose which sources it can reach and 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
Ask Codex about Stripe
Run codex mcp list, or /mcp inside Codex, to see the server and its tools. Try "Pull last week's Stripe numbers, save them to data/stripe-weekly.csv and give me the codex exec command to refresh it." Or ask: "What does a customer cost by month?" or "Which campaigns bring revenue?"
What can Codex do with Stripe?
Codex reads your Stripe data from your terminal and turns one-off questions into commands you can rerun with codex exec.
Pull last week's Stripe numbers, save them to data/stripe-weekly.csv and give me the codex exec command to refresh it.
Saved data/stripe-weekly.csv. Run the same prompt with codex exec in a scheduled job and the file refreshes with each week's numbers.
Source: Stripe + your code
Save monthly new customers, revenue and ad spend for the last 12 months as data/payback.csv.
Saved 12 months to data/payback.csv. Customer cost ranges from $212 to $248.
Source: Stripe + your code
Join Stripe customers with the utm_campaign we store at signup and save revenue by campaign as data/revenue_by_campaign.csv.
Saved 64 campaigns. 12% of new revenue has no utm_campaign, mostly from the mobile signup flow.
Source: Stripe + your code
Look at our signup code and check that every new Stripe customer gets the utm fields in metadata. Where do we drop them?
The Google sign-in path skips metadata. That's 31% of signups since September.
Source: Stripe + your code
How many months does it take to earn back what we spend to get a customer?
About 5.5 months on average. Customers on the annual plan pay back in month one.
Source: Stripe
Did refunds go up for customers who bought during the Black Friday promo?
Yes. 7.8% of promo customers refunded within 30 days, against 3.1% normally.
Source: Stripe
Connect Stripe to another AI app.
Claude
Connect Stripe to Claude
ChatGPT
Connect Stripe to ChatGPT
Claude Code
Connect Stripe to Claude Code
Cursor
Connect Stripe to Cursor
VS Code (GitHub Copilot)
Connect Stripe to VS Code (GitHub Copilot)
Perplexity
Connect Stripe to Perplexity
Google Antigravity
Connect Stripe to Google Antigravity
Windsurf (Devin Desktop)
Connect Stripe to Windsurf (Devin Desktop)
Zed
Connect Stripe to Zed
n8n
Connect Stripe to n8n
Other integrations for Codex
All Codex integrations- 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.
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.
# Connect Stripe to Codex (Lemonado MCP) - Server URL: https://mcp.lemonado.io/mcp - Transport: Streamable HTTP - Auth: OAuth; the user signs in to Lemonado in the browser. No API keys. - In Lemonado: connect the Stripe account. Connect the Stripe account that takes your live payments. - In Codex: ~/.codex/config.toml ```toml [mcp_servers.lemonado] url = "https://mcp.lemonado.io/mcp" ``` 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 Stripe accounts Lemonado can reach. First question to try: "Pull last week's Stripe numbers, save them to data/stripe-weekly.csv and give me the codex exec command to refresh it." More: https://lemonado.io/integrations/stripe · https://lemonado.io/llms.txt
Frequently Asked Questions
Yes, through Lemonado. Connect your Stripe account in Lemonado, add Lemonado in ~/.codex/config.toml, and Codex can check refunds after a promo with your live data.
Run codex mcp list. If lemonado shows as not logged in, run codex mcp login lemonado again. In Lemonado, check that Stripe is connected and External tools is on for the company. If revenue looks wrong, check you connected the account that takes live payments. Test-mode payments aren't real revenue.
Yes, if both are connected in Lemonado. One connection reaches every source you allow, so you can ask things like "Weekly ad spend across Google and Meta next to new Stripe revenue for the last quarter."
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