Shopify guide
How to make Claude your Shopify developer, safely.
Claude Code, Shopify CLI, Shopify's Dev MCP server and a project file that describes your store. Set up on a development theme, so the live store is never touched.
By Sidharth Sahni · Updated · 8 min read
Short answer. To use Claude as a Shopify theme developer, install Claude Code, install Shopify CLI, add Shopify's Dev MCP server with claude mcp add --transport stdio shopify-dev-mcp -- npx -y @shopify/dev-mcp@latest, pull a copy of your theme and run shopify theme dev so every change previews on a development theme, not the live one. Add a CLAUDE.md file that describes your store and rules, then review every change before you publish.
What this setup gives you
Claude Code reads your theme files, edits them, and runs commands in your terminal. Shopify's Dev MCP server gives it Shopify's developer documentation, so it checks the platform instead of guessing. Shopify CLI previews the result on your real store data. Put together, you describe a change in plain English and review a working preview.
This guide is about building the theme. For servers that let an AI read your store data or shop on your behalf, see our guide to Shopify MCP.
Setup, step by step
- Install Claude Code
On macOS, Linux or WSL run: curl -fsSL https://claude.ai/install.sh | bash. On Windows PowerShell run: irm https://claude.ai/install.ps1 | iex. Homebrew also works: brew install --cask claude-code. Open a new terminal and run claude --version to confirm. You need a Claude subscription, a Claude Console account or a supported cloud provider. - Install Shopify CLI
Shopify's docs list Node.js 22.12 or higher, a package manager and Git 2.28.0 or higher. Install with: npm install -g @shopify/cli@latest. On macOS you can use Homebrew instead: brew tap shopify/shopify, then brew install shopify-cli. - Pull a copy of your theme
Make a folder for the project, then run: shopify theme pull --store your-store. Shopify CLI asks you to pick a theme from your store (use --theme with an ID or name to skip the prompt). Duplicate your live theme in the admin first if you want a clean base to pull from. Starting from nothing instead? shopify theme init clones Shopify's Skeleton theme by default. - Preview on a development theme
Run: shopify theme dev --store your-store. Shopify CLI uploads your local theme to the store as a development theme and gives you a local preview at http://127.0.0.1:9292, with a link to the theme editor and a shareable preview link. CSS and sections hot reload. This is the safety rail: your live theme is not the one being edited. Checkout customisations cannot be previewed at the local address. - Add Shopify's Dev MCP server to Claude Code
Run: claude mcp add --transport stdio shopify-dev-mcp -- npx -y @shopify/dev-mcp@latest. Restart Claude Code, then run claude mcp list to see its status, or /mcp inside a session. Shopify says it needs Node.js 18 or higher, runs locally and needs no sign-in. It sends usage data to Shopify by default, and Shopify documents an opt-out: set DONOTTRACK=1 or create the opt-out file it describes. Only connect servers you trust, since a server that fetches outside content can expose you to prompt injection. - Write your CLAUDE.md
Create CLAUDE.md in the project root (run /init in Claude Code to generate a starting file, then edit it). Anthropic's docs say to keep it under 200 lines and to be specific. The next section gives a template. - Start Claude in the theme folder
Run claude inside the project folder, keep shopify theme dev running in a second terminal, and give it one small job at a time. Review each change in the preview before the next.
A CLAUDE.md for a Shopify store
Claude reads this file at the start of every session, so it is where you set the rules. A short, specific file works better than a long one. Here is a starting point to adapt:
# Store
D2C brand on Shopify. Theme: <your theme name and version>.
Store: your-store.myshopify.com
# Rules
- Never edit or push to the live theme. Work only in this folder and preview with shopify theme dev.
- Never run shopify theme push --live or --allow-live.
- Change only the files the task needs. List every file you changed.
- New sections go in sections/, with a schema, settings and presets so they show in the theme editor.
- Use our existing CSS classes and design tokens. No new libraries or apps.
- Keep Liquid readable. Run shopify theme check before saying you are done.
# Brand
Colours, fonts and tone: <short list>
# Do not touch
Checkout, apps' injected code, anything in assets/ named vendor-*Rules in a file are instructions, not locks. Anthropic's docs say CLAUDE.md is context Claude reads and that a hook is the way to block an action outright. Keep the permission prompts on, and read each command Claude asks to run.
Example prompts for real jobs
| Job | Prompt to start with | What to check |
|---|---|---|
| New landing section | Add a new section called feature-strip with a heading, three icon and text blocks and a button. Follow our CLAUDE.md. Give it a schema and a preset so I can add it in the theme editor. | Section appears in the editor, blocks reorder, mobile layout holds |
| Product page change | On the product template, move the size selector above the price and add a short shipping note under the add to cart button. Show me the diff first. | Every variant still adds to cart, the page works with no JavaScript errors |
| Speed fix | Find images on the home page that load without width, height or lazy loading and fix them. Do not touch the hero image. | Layout does not jump, hero still loads first, run your usual speed check before and after |
| Liquid bug | The collection page shows the wrong price for sale items. Find the Liquid that renders price, explain the cause, then fix it. | Test a sale item, a normal item and a sold out item |
| Check the theme | Run shopify theme check and fix the offences that are safe to fix. List any you skipped and why. | Read the list of skipped items yourself |
Review and QA before anything goes live
- Read the diff. Ask Claude to list every file it changed and open them yourself, or have a developer do it.
- Run
shopify theme checkfrom Shopify CLI. It analyses theme code for errors and Liquid best practices. - Test on a real phone through the preview link: menu, collection, product, cart.
- Place a test order through the whole flow before you publish.
- Publish only when you are happy: use the theme editor's publish action, not an automated push to the live theme. Shopify's
shopify theme pushhas an--unpublishedflag that creates a new unpublished theme, which is the safer target, and an--allow-liveflag that exists for pushing to the live theme, which you do not want an agent to run. - Keep the previous live theme in your theme library so you can switch back.
Where Claude still needs a human
| Area | Why a person is needed |
|---|---|
| Design taste | Claude produces a working layout fast. Deciding what looks right for your brand, and what to cut, is your call or your designer's. |
| Checkout | Shopify's CLI docs say checkout customisations cannot be previewed at the local preview address, so they need separate testing. |
| Third-party apps | App code and settings sit outside your theme files. A person has to check how an app, a section and your theme interact. |
| Data and sales | Dev MCP gives Claude Shopify's documentation, not your sales or customer data. Questions about performance need a store data source and a person to read it. |
| Final review and publishing | A human should read the change, run the test order and press publish. |
When to hire it out instead
This workflow is good for small, clear jobs on a theme you understand. A launch page, a rebuilt product page or a full storefront is a different job, because design decisions, speed, tracking and QA all matter at once. That is what our Shopify development team and launch pages service do. You can see the results in our live pages. For the product video or photos on those pages, get a free sample from one product link.
Sources
- Anthropic: Claude Code quickstart, checked December 2026
- Anthropic: How Claude remembers your project (CLAUDE.md), checked December 2026
- Anthropic: Claude Code MCP docs, checked December 2026
- Shopify.dev: Dev MCP server, checked December 2026
- Shopify.dev: Shopify CLI, checked December 2026
- Shopify.dev: shopify theme dev, checked December 2026
- Shopify.dev: shopify theme pull, checked December 2026
- Shopify.dev: shopify theme push, checked December 2026
- Shopify.dev: shopify theme check, checked December 2026
- Shopify.dev: shopify theme init, checked December 2026
Questions
Questions about Claude and Shopify
Can Claude build a Shopify theme?
Claude Code can edit theme files, write new sections and fix Liquid in a theme folder on your computer, and Shopify CLI previews the result. You still review the change, test it and publish it yourself.
Can I use ChatGPT instead of Claude for Shopify?
The Dev MCP server is a standard MCP server, and Shopify's page documents Claude Code and Cursor setups. We have not checked ChatGPT's own setup in this guide, so follow ChatGPT's current MCP docs if you want to try it.
Do I need to know how to code?
You need to be comfortable in a terminal and able to read a change before you publish it. If not, a developer or agency should own the review, and you can still write the briefs.
Is it safe to let Claude edit my store?
It is safe if you control where it works. Pull a copy of the theme, preview with shopify theme dev on a development theme, keep permission prompts on, and never let an agent push to the live theme. Review every change before you publish.
What does it cost?
Shopify's docs list the install commands for Shopify CLI and the Dev MCP package, and we did not find a fee on those pages. Claude Code needs a Claude subscription, a Console account or a cloud provider. Check Anthropic's current pricing page for plans.
What is the Shopify Dev MCP server?
It is Shopify's @shopify/dev-mcp package. It connects an AI tool to Shopify's developer resources, runs locally and needs no authentication. Shopify's page lists Claude Code and Cursor setups.
Keep reading
Related.

How to make a landing page on Shopify, three ways.
A page template in your theme, a page builder app, or a custom section. What each takes, what each limits, and the steps for the built-in route.

Shopify MCP: which servers exist and how to connect Claude or Cursor.
What MCP is, what Shopify's own servers can reach, how to set one up, and how to keep an AI agent from changing your store without you.

Which way to get Shopify work done? Pick the route first.
Five routes, who each one suits, how you pay, the risk, and how to vet whoever you pick before they touch your store.
Done for you
Or have our team build it.
Tell us what you want live and by when. We design, build and test it in your Shopify store.