Connect
Stripe to
Claude Code
- When do cohorts pay back?
https://mcp.lemonado.io/mcpQuery Stripe revenue in Claude Code for cohort and payback analysis, joined with ad spend from every channel. Lemonado connects them in about 1 minute, no API keys needed.
https://mcp.lemonado.io/mcpWhy connect Stripe to Claude Code?
Cohort and payback analysis is code work: you want queries you can rerun. Claude Code reads Stripe through Lemonado, joins it with your ad spend and saves the analysis in your project.
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 Claude Code
Before you start
- A Stripe account you can sign in to
- Claude Code 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 the server
With Claude Code installed, run one of these in your terminal. Most people want the first: it adds Lemonado to every project.
bash# every project (recommended) claude mcp add --scope user --transport http lemonado https://mcp.lemonado.io/mcp # this project only claude mcp add --transport http lemonado https://mcp.lemonado.io/mcp - 4
Sign in
Start Claude Code with claude and run /mcp. Choose Lemonado and finish the sign-in in your browser.
bashclaude /mcp - 5
Ask Claude Code about Stripe
Ask a question about the accounts your connection can reach. Claude Code can also write the numbers into a file or a script for you. Try "Build a monthly cohort table from Stripe, new customers by signup month and revenue by month since, and save it to data/stripe_cohorts.csv." Or ask: "What does a customer cost by month?" or "Which campaigns bring revenue?"
Good to know
- The command uses Claude Code's default local scope. Use --scope user to share the server across projects.
What can Claude Code do with Stripe?
Claude Code queries your Stripe data while it works in your repo: it saves data as files, checks tracking against code and runs headless with claude -p.
Build a monthly cohort table from Stripe, new customers by signup month and revenue by month since, and save it to data/stripe_cohorts.csv.
Saved 12 cohorts. Customers from March pay back their acquisition cost in month 4; customers from the June promo haven't paid back yet.
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
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
Which plan do new customers pick this month compared with last?
Annual plan share rose from 22% to 31% after the pricing page change on the 4th.
Source: Stripe
Connect Stripe to another AI app.
Claude
Connect Stripe to Claude
ChatGPT
Connect Stripe to ChatGPT
Cursor
Connect Stripe to Cursor
VS Code (GitHub Copilot)
Connect Stripe to VS Code (GitHub Copilot)
Codex
Connect Stripe to Codex
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 Claude Code
All Claude Code integrations- Google Ads in Claude CodeAsk Claude, ChatGPT or Cursor about your Google Ads campaigns, search terms and spend.
- Meta Ads in Claude CodeAsk Claude, ChatGPT or Cursor about your Facebook and Instagram ads, creatives and results.
- Google Analytics in Claude CodeAsk Claude, ChatGPT or Cursor about GA4 traffic, conversions and funnels, next to your ad spend.
- Google Search Console in Claude CodeAsk Claude, ChatGPT or Cursor about your search queries, rankings and lost clicks.
- Google Sheets in Claude CodeUse your media plans, targets and offline sales sheets in Claude, next to live ad data.
- LinkedIn Ads in Claude CodeAsk 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 Claude Code and ask it to connect you, or copy the block.
# Connect Stripe to Claude Code (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 Claude Code: Terminal: claude mcp add ```bash # every project (recommended) claude mcp add --scope user --transport http lemonado https://mcp.lemonado.io/mcp # this project only claude mcp add --transport http lemonado https://mcp.lemonado.io/mcp ``` If you are Claude Code, run the setup yourself: Add the Lemonado MCP server for all my projects by running: claude mcp add --scope user --transport http lemonado https://mcp.lemonado.io/mcp Then tell me to run /mcp and sign in to Lemonado. Once I've signed in, list the Stripe accounts Lemonado can reach. First question to try: "Build a monthly cohort table from Stripe, new customers by signup month and revenue by month since, and save it to data/stripe_cohorts.csv." More: https://lemonado.io/integrations/stripe · https://lemonado.io/llms.txt
Frequently Asked Questions
They do different jobs. Stripe's MCP server is built for developers working with the Stripe API, like creating customers or searching Stripe's docs. Lemonado is for marketing questions: it puts Stripe revenue next to Google Ads, Meta and GA4 so Claude Code can work out ROAS and payback.
Run claude mcp list to see whether lemonado is connected. If it needs authentication, run /mcp inside Claude Code and sign in 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