Connect
Shopify to
Claude Code
- When do customers reorder?
https://mcp.lemonado.io/mcpPull Shopify orders into Claude Code for cohort, bundle and tracking analysis you can rerun. Lemonado connects them in about 1 minute, no API keys needed.
https://mcp.lemonado.io/mcpWhy connect Shopify to Claude Code?
Cohorts, product bundles and checkout tracking are code work. Claude Code reads Shopify through Lemonado, joins it with ad spend and your theme's tracking code, and saves the result in your project.
All your Shopify data
Orders, line items and refunds, ready to ask about.
Always today's numbers
Customers, first and repeat orders, synced from Shopify automatically, so answers use today's numbers.
Connect all your tools
Questions like "What's our real ROAS?" use Shopify and Meta Ads, Klaviyo at once.
How to connect Shopify to Claude Code
Before you start
- A Shopify account you can sign in to
- Claude Code installed
- A Lemonado account (the free trial works)
- 1
Connect Shopify in Lemonado
In Lemonado, open Connectors, find Shopify and sign in. Sign in with a staff account that can see orders and reports, then pick the store.
- 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 Shopify
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 Shopify, first-order month vs repeat orders by month since, and save it to data/shopify_cohorts.csv." Or ask: "Can you clean up the product feed?" or "Can this run every Monday?"
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 Shopify?
Claude Code queries your Shopify 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 Shopify, first-order month vs repeat orders by month since, and save it to data/shopify_cohorts.csv.
Saved 12 cohorts. Repeat orders peak in month 2 and month 11. Customers who first bought a sleeping bag reorder twice as often as tent buyers.
Source: Shopify + your code
Pull every active Shopify product with title, type and variant count, and write a script that flags titles missing the size or colour.
Saved scripts/feed_check.py and data/products.csv. 74 of 412 product titles have no colour, mostly in the jackets collection.
Source: Shopify + your code
Write a prompt file that pulls last week's Shopify revenue, orders and refunds by collection and saves reports/shopify-weekly.md.
Saved prompts/shopify-weekly.md. Run it with claude -p from cron and it writes that week's report each Monday.
Source: Shopify + your code
Calculate 12-month customer lifetime value by acquisition month from Shopify orders and save it to data/shopify_ltv.csv.
Saved 12 rows. LTV ranges from $164 to $231. Customers acquired in November are worth the least, mostly one-time gift buyers.
Source: Shopify + your code
How did orders with the code AUTUMN15 compare with full-price orders on AOV and refunds?
AUTUMN15 orders averaged $96 vs $121 at full price, and refunded 2.3x as often. 41% were existing customers who would likely have bought anyway.
Source: Shopify
Put Meta and Google Ads spend next to Shopify revenue by week for the last quarter.
Blended ROAS from Shopify is 2.6, against 4.1 the platforms report. The gap is biggest on Meta in weeks with a sale.
Source: Shopify
Connect Shopify to another AI app.
Claude
Connect Shopify to Claude
ChatGPT
Connect Shopify to ChatGPT
Cursor
Connect Shopify to Cursor
VS Code (GitHub Copilot)
Connect Shopify to VS Code (GitHub Copilot)
Codex
Connect Shopify to Codex
Perplexity
Connect Shopify to Perplexity
Google Antigravity
Connect Shopify to Google Antigravity
Windsurf (Devin Desktop)
Connect Shopify to Windsurf (Devin Desktop)
Zed
Connect Shopify to Zed
n8n
Connect Shopify 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 Shopify 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 Shopify store. Sign in with a staff account that can see orders and reports, then pick the store. - 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 Shopify accounts Lemonado can reach. First question to try: "Build a monthly cohort table from Shopify, first-order month vs repeat orders by month since, and save it to data/shopify_cohorts.csv." More: https://lemonado.io/integrations/shopify · https://lemonado.io/llms.txt
Frequently Asked Questions
No. Community Shopify MCP servers ask you to create a custom app and paste an Admin API token into a config file. With Lemonado, a store staff member signs in once, and Claude Code only ever sees the Lemonado server URL.
Not for store data. Shopify's own MCP servers do other jobs: Dev MCP helps developers search Shopify's docs and APIs, and Storefront MCP lets shopping assistants browse a store's public products and cart. Neither gives Claude or ChatGPT your orders, revenue and customers. Lemonado gives Claude Code your orders and customers, next to your ad spend.
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 Shopify is connected and External tools is on for the company. If orders look short, check you connected the right store and that your staff account can view orders. Shopify only shares what that account can see.
Yes, if both are connected in Lemonado. One connection reaches every source you allow, so you can ask things like "Put Meta and Google Ads spend next to Shopify revenue by week 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