Connect
Klaviyo to
Claude Code
- When should we send?
https://mcp.lemonado.io/mcpPull Klaviyo data into Claude Code to check signup tracking and build send-time and flow analysis. Lemonado connects them in about 1 minute, no API keys needed.
https://mcp.lemonado.io/mcpWhy connect Klaviyo to Claude Code?
Signup forms, events and source properties live in your code. Claude Code reads Klaviyo through Lemonado, checks what actually arrives, and saves the queries for send time or flow performance in your project.
All your Klaviyo data
Email and SMS campaigns, ready to ask about.
Always today's numbers
Opens, clicks, unsubscribes and spam complaints, synced from Klaviyo automatically, so answers use today's numbers.
Connect all your tools
Questions like "Does Klaviyo over-claim?" use Klaviyo and Shopify, Meta Ads at once.
How to connect Klaviyo to Claude Code
Before you start
- A Klaviyo account you can sign in to
- Claude Code installed
- A Lemonado account (the free trial works)
- 1
Connect Klaviyo in Lemonado
In Lemonado, open Connectors, find Klaviyo and sign in. Sign in to Klaviyo and pick the account. A user with access to campaigns, flows and analytics works best.
- 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 Klaviyo
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 "Pull campaign revenue per recipient by weekday and send hour for the last year from Klaviyo and save it to data/klaviyo_send_time.csv." Or ask: "Which flows need a rewrite?" or "Can this run after every campaign?"
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 Klaviyo?
Claude Code queries your Klaviyo data while it works in your repo: it saves data as files, checks tracking against code and runs headless with claude -p.
Pull campaign revenue per recipient by weekday and send hour for the last year from Klaviyo and save it to data/klaviyo_send_time.csv.
Saved 168 rows. Sunday 7 to 9pm earns $0.11 per recipient, double the Tuesday morning slot the team uses now.
Source: Klaviyo + your code
Pull every Klaviyo flow message with sends, clicks and revenue and write a script that flags messages under half their flow's average.
Saved scripts/flow_check.py. 7 messages flagged, including welcome email 3 and the second browse abandonment email.
Source: Klaviyo + your code
Write a prompt file that pulls the latest Klaviyo campaign's opens, clicks, unsubscribes and revenue and saves reports/last-campaign.md.
Saved prompts/last-campaign.md. Run it with claude -p the morning after each send.
Source: Klaviyo + your code
Build a table of new Klaviyo subscribers by month and how many are still engaged each month since. Save it to data/klaviyo_engagement.csv.
Saved 12 cohorts. Half of new subscribers stop opening by month 4. Popup signups decay twice as fast as checkout signups.
Source: Klaviyo + your code
What do our 10 best campaigns by revenue per recipient have in common?
7 of 10 name a product in the subject line, and 6 went out on a Sunday. Discount-led subjects rank lower.
Source: Klaviyo
Compare Klaviyo attributed revenue with Shopify revenue by week. How much of Shopify revenue does Klaviyo claim?
Klaviyo claims 34% of Shopify revenue. On days Meta runs a sale, that rises to 48%, so the two overlap.
Source: Klaviyo
Connect Klaviyo to another AI app.
Claude
Connect Klaviyo to Claude
ChatGPT
Connect Klaviyo to ChatGPT
Cursor
Connect Klaviyo to Cursor
VS Code (GitHub Copilot)
Connect Klaviyo to VS Code (GitHub Copilot)
Codex
Connect Klaviyo to Codex
Perplexity
Connect Klaviyo to Perplexity
Google Antigravity
Connect Klaviyo to Google Antigravity
Windsurf (Devin Desktop)
Connect Klaviyo to Windsurf (Devin Desktop)
Zed
Connect Klaviyo to Zed
n8n
Connect Klaviyo 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 Klaviyo 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 Klaviyo account. Sign in to Klaviyo and pick the account. A user with access to campaigns, flows and analytics works best. - 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 Klaviyo accounts Lemonado can reach. First question to try: "Pull campaign revenue per recipient by weekday and send hour for the last year from Klaviyo and save it to data/klaviyo_send_time.csv." More: https://lemonado.io/integrations/klaviyo · https://lemonado.io/llms.txt
Frequently Asked Questions
Not through Lemonado, which only reads Klaviyo. That's deliberate for analysis work: a script can pull campaign and flow numbers on a schedule without any risk of sending to your list.
Yes. Klaviyo's official MCP server is hosted, so Claude Code can use it too. It covers Klaviyo only. Lemonado covers Klaviyo plus your ad platforms, GA4 and the rest of your stack in one connection, so Claude Code can answer questions across them.
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 Klaviyo is connected and External tools is on for the company. If revenue is missing, check that your store sends orders to Klaviyo. Klaviyo can only attribute revenue to campaigns and flows when it sees the orders.
Yes, if both are connected in Lemonado. One connection reaches every source you allow, so you can ask things like "Compare Klaviyo attributed revenue with Shopify revenue by week. How much of Shopify revenue does Klaviyo claim?"
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