How to Set Up Claude Code for Shopify (2026)

Last updated
•
Expert reviewed
•
5 min read

Key takeaways

  • Install Shopify AI Toolkit with claude plugin install shopify-ai-toolkit@claude-plugins-official.
  • For safer storefront changes, add Fudge to Claude Code. It builds private drafts with visual previews; you control publishing.
  • Use Fudge’s saved brand context and ecommerce design references to give page and theme designs a stronger starting point.
  • Start with read-only store access. GraphQL writes through shopify store execute require --allow-mutations and confirmation.
  • Manual skills need updates. The toolkit reports code, searches and some prompt context by default; use the documented opt-out if needed.

To set up Claude Code for Shopify, install the Shopify AI Toolkit plugin with claude plugin install shopify-ai-toolkit@claude-plugins-official, then ask a Shopify API question to confirm it searches current docs. The Dev MCP server is an alternative for developer resources. Authenticate with shopify store auth when you need private store data or approved store changes.

Once connected, your Claude Code session gets access to current Shopify documentation, code validation against bundled API schemas, and the ability to execute store operations through the Shopify CLI.

For storefront work, connect Fudge alongside Claude Code before your first change. We recommend its private drafts and previews for reviewing the design before it reaches shoppers. Fudge uses your store’s theme, products and saved brand context; keep the toolkit for the developer work covered below.

For the full breakdown of what the toolkit does, how it works, and the governance risks around store execution, see our Shopify AI Toolkit overview.


Connect Claude to Shopify: which path do you need?

“Connect Claude to Shopify” means different things depending on who’s connecting:

Merchants (no code): the official Shopify connector for Claude. Shopify ships a connector for Claude that you install from Claude’s connector directory. It redirects to your Shopify admin to approve access, with no App Store install involved.

  • What it can do: from Claude on the web or desktop, create and update products, look up orders (read-only), pull analytics with tables and charts, and manage collections, inventory, pages, and percentage-off discount codes.
  • Theme work: it can edit an unpublished theme and show pending edits. Review the preview before publishing. Store settings and refunds remain admin tasks.
  • Where Fudge fits: add Fudge to Claude for store reviews, saved brand context and storefront drafts you review and publish in Fudge. You can keep both connections.

Developers: Claude Code + the Shopify AI Toolkit. The rest of this guide. This path gives Claude validated access to Shopify’s APIs, docs, and CLI - the right choice when you’re writing theme code, apps, or automation.

Shopping agents: storefront endpoints. Every Shopify store also exposes agent-facing storefront endpoints that AI shopping assistants use to browse catalogues and build carts. For channel requirements and store readiness, see our piece on Shopify’s Universal Commerce Protocol for what it means for your store.


Why you can trust us

Jacques has over 15 years of development experience and has worked with hundreds of Shopify stores. We build Fudge, the AI operator for Shopify stores, with a 4.9 rating on the Shopify App Store and a Built for Shopify badge. We use these tools daily.


Prerequisites

  • Claude Code installed and working
  • Node.js 22.12 or higher for the current Shopify CLI. Check with node --version; use a supported Node release
  • Shopify CLI installed (needed for store operations)
  • A Shopify store to connect to (only required for store operations - not needed for documentation search and code validation)

The plugin method is the fastest path and auto-updates whenever Shopify releases new capabilities.

Prefer to follow along visually? Watch the full plugin installation walkthrough:

Step 1: Install the plugin

Run this from your terminal (Shopify’s currently documented command, verified November 2026):

claude plugin install shopify-ai-toolkit@claude-plugins-official

This installs the current shopify skill and its supporting scripts. Our video shows the earlier two-step /plugin marketplace add Shopify/shopify-ai-toolkit flow from April 2026; the one-liner above is the path Shopify’s docs now document.

Step 2: Verify installation

Ask Claude something Shopify-specific to confirm the toolkit is active:

What's the correct GraphQL mutation to update a product's title in the Shopify Admin API?

Check that Claude actually searches Shopify documentation and runs validation. Read the validation result before using the query.


Alternative: manual skills installation

If your setup can’t use the plugin, or you’d rather manage the skill yourself, install it directly:

npx skills add Shopify/shopify-ai-toolkit

This installs the toolkit’s single shopify skill, which covers every Shopify developer surface: the GraphQL Admin API, Shopify Functions, Polaris, Liquid, Hydrogen and Shopify CLI. Earlier versions shipped a separate skill per surface, such as shopify-admin and shopify-liquid. Those are deprecated and no longer updated, so if you installed any of them, remove them (for example npx skills remove shopify-admin shopify-liquid) and install the shopify skill instead.

Manually installed skills don’t auto-update. Run npx skills update periodically to stay current with Shopify’s API changes. Otherwise the bundled schemas drift from the live platform.


Shopify MCP + Claude Code: direct server setup

For direct MCP integration without the plugin, add Shopify’s Dev MCP server to Claude Code with one command:

claude mcp add --transport stdio shopify-dev-mcp -- npx -y @shopify/dev-mcp@latest

Restart Claude Code after adding it. This is an alternative developer-resource connection, not a required second install or private-store connection.

The server runs locally but makes network calls to Shopify endpoints for documentation search. Authentication depends on which MCP server you’re connecting to - Dev MCP for docs doesn’t require store auth; store operations do.

Refer to the Shopify AI Toolkit docs for configuration format and options.


Telemetry and code transmission

Shopify’s telemetry disclosure lists documentation searches and results, validated code, usage metadata and, when supplied, the latest user prompt (up to 2,000 characters). Skill-use hooks can report usage too.

On Linux or macOS, create the opt-out file before using the toolkit:

mkdir -p ~/.config/shopify-ai-toolkit
touch ~/.config/shopify-ai-toolkit/opt-out

On Windows, create an empty file at %APPDATA%\shopify-ai-toolkit\opt-out.

Alternatively, set OPT_OUT_INSTRUMENTATION=true in the environment inherited by your assistant. Opting out of telemetry does not make documentation searches or authenticated store requests offline.


Connecting to your store

To read private store data or make approved changes, authenticate through the Shopify CLI. You can use a development store for testing.

Authentication

Ask Claude to explain the store and scopes first, then approve authentication. For a first product lookup, the command is:

shopify store auth --store yourstore.myshopify.com --scopes read_products

Approve the connection in Shopify. Authentication is required for private store reads as well as writes. Run shopify store auth again if the token expires or you need different scopes.

Scope selection

Start with read_products for a product lookup. Add scopes only for the work you need. Validation can report required scopes for supported operations; check the API reference too. Common scopes:

OperationScope
Read productsread_products
Update productswrite_products
Read inventoryread_inventory
Adjust inventorywrite_inventory
Read ordersread_orders
Read customersread_customers

Stick to the minimum scopes needed. write_products gives access to ALL product write operations, not just the specific mutation you’re running.


What you can do with Claude Code + Shopify

Validated GraphQL development

Ask Claude to write Shopify GraphQL queries and mutations. The toolkit validates them against the bundled API schema before you use them.

Claude will search current Shopify Admin API docs, generate the query, validate it against the bundled schema, and report any issues or required scopes. Fewer hallucinated fields and deprecated patterns.

Theme development

Work with Liquid templates with validation against Shopify’s theme rules. The toolkit validates schemas against JSON definitions and enforces LiquidDoc headers.

Hydrogen storefront development

Build headless storefronts with validated React components and correct imports from @shopify/hydrogen.

Store operations

Execute operations directly on your connected store. Claude generates the mutation, validates it, authenticates with your store, and executes it via shopify store execute --allow-mutations.

Read queries do not need that flag. The current skill requires confirmation before a write; its effect depends on the resource and store you target. A product update may affect customers immediately, while an unpublished theme remains unpublished.

Metafield management

Extend your store’s data model with metafield definitions. The toolkit uses TOML for metafield definitions and knows the difference between app-owned and merchant-owned data.

Functions and extensions

Build backend customization - discounts, cart validation, delivery rules - and scaffold UI extensions with Polaris components. Use the Functions reference for runtime constraints; network fetch targets have separate eligibility requirements.

For hands-on theme examples, see How to Add Custom Liquid Logic in Shopify.


Best practices

Always query before mutating

Before updating anything, read the current state first:

Show me the current title, description, and SEO fields for the product with handle "classic-tee"

This gives you a baseline and helps prevent unintended overwrites.

Be specific with mutations

Vague prompts lead to broad mutations. Instead of “Optimize my products for SEO,” be specific:

Update ONLY the meta description for the product with handle "classic-tee" to "Shop the Classic Tee - premium cotton, 5 colors, free shipping over $50"

Push themes as unpublished

When pushing theme changes, always push as unpublished first. The toolkit supports shopify theme push --unpublished, but doesn’t enforce it by default. Make it a habit.

One resource at a time for critical changes

For important updates, run them one product at a time rather than in bulk. This limits blast radius if something goes wrong.

Keep your own backups

The toolkit has no universal undo. Before running mutations that update existing content, export or note down the current values.


Limitations

  • Review depends on the operation. shopify store execute defaults to read queries. GraphQL writes through that command need --allow-mutations, and the current skill instructs the assistant to show the command, target and effects and wait for confirmation. Schema validation cannot judge whether a change is right for your business.
  • There is no universal draft and rollback workflow. Theme development can use previews and unpublished themes. Other API writes can update store records directly; keep the previous values when you may need to restore them.
  • Permissions cover resource types. A product write scope is broader than permission to change one description. Check the target store and resource before approving.
  • Manual skills need updates. Run npx skills update when you manage the installation yourself.

See the Shopify CLI execution reference and the toolkit’s confirmation rules.


Use Fudge alongside Shopify AI Toolkit

We recommend connecting Fudge to Claude Code before making storefront changes. Use Fudge for landing pages and theme edits, with Shopify AI Toolkit available for API documentation, validation and custom development.

  • Keep the live storefront protected. Fudge prepares the change in a private draft with a visual preview. Its MCP tools cannot publish it; you review and publish in Fudge.
  • Give the design your store’s context. Fudge works with your existing theme, products and saved brand preferences. Ask it for ecommerce design references before it builds, then check the result on mobile.
  • Start with the right change. Ask Fudge for a store review to identify SEO or conversion opportunities before deciding what to build. Its saved context carries into the next request.

For example, use the toolkit to check an app’s GraphQL query, then ask Fudge to build the campaign page that presents the products. Connecting Fudge does not install the toolkit, and CLI access does not connect Fudge; each has its own setup and permissions.

Use Fudge to review [store.myshopify.com] and draft a landing page
for [collection]. Match the store's branding and show me a preview.
Use Shopify AI Toolkit if we need to check Shopify API or Liquid rules.

Quick reference

TaskCommand
Install pluginclaude plugin install shopify-ai-toolkit@claude-plugins-official
Add Dev MCP directlyclaude mcp add --transport stdio shopify-dev-mcp -- npx -y @shopify/dev-mcp@latest
Install all skills manuallynpx skills add Shopify/shopify-ai-toolkit
Update manual skillsnpx skills update
Auth with storeshopify store auth --store domain --scopes list
Opt out of telemetryCreate ~/.config/shopify-ai-toolkit/opt-out
Check Node versionnode --version (22.12+ for Shopify CLI)

For the full picture on risks and governance, read our Shopify AI Toolkit overview. For setup on other platforms, see our Cursor guide and OpenAI Codex guide.

Setup commands checked on 11 November 2026 against Shopify’s installation guide, CLI requirements and store authentication reference.


FAQ

Can I use Fudge and Shopify AI Toolkit in the same assistant?

Yes. Keep the toolkit for Shopify development references and CLI work, and connect Fudge for store reviews, saved brand context and storefront drafts. Each connection has separate authorization. Fudge drafts are reviewed and published in Fudge.

Should I install the Shopify AI Toolkit via the plugin or manually?

Plugin if you want the simplest setup and auto-updates as Shopify releases new capabilities. Manual install if your setup can't use plugins or you want to control when the skill updates. Plugin is the recommended default for most Claude Code users.

Which Node version do I need?

Use Node 22.12 or a supported newer release for the Shopify CLI steps in this guide. The toolkit documentation lists a lower minimum, but that does not cover the current CLI requirements. Check your version with node --version.

Does the toolkit work without authenticating to a Shopify store?

Yes for documentation search and code validation; those don't require store auth. Private store reads and writes both require authentication. You can use the toolkit purely for development reference without ever connecting a store.

Can I use the toolkit on a Shopify development store?

Yes, and recommended for testing mutations safely. Connect to a development store first, run the operations there to verify they behave as expected, then re-auth to production. Development stores are free to create and let you experiment without affecting real data.

Why does the toolkit send my code to Shopify?

Shopify discloses telemetry for searches, validated code and usage, including the latest prompt when supplied. Create ~/.config/shopify-ai-toolkit/opt-out, or set OPT_OUT_INSTRUMENTATION=true in the assistant’s environment, to disable it.

How do I connect Claude to my Shopify store without code?

Install Shopify's connector from Claude's connector directory and approve access in your Shopify admin. Claude can then manage products, collections, inventory, pages and percentage discounts and read orders and analytics, and edit unpublished themes. Store settings remain in Shopify admin. You can also connect Fudge for store reviews and storefront drafts you publish in Fudge.

Jacques's signature
Edit your Shopify storefront without code.

You might also be interested in

Jacques Blom
Jacques Blom
CTO at Fudge.