Shopify with Claude: installation, connecting stores and usage

·view .md ↗·chatgpt ↗·claude ↗

Quick guide to working with Shopify stores from Claude Code (the Code tab of Claude Desktop).

What each piece does

PieceWhat it's forDoes it touch the store?
Shopify CLI (shopify)Stores each store's login and runs the Admin API queries and changesYes
Shopify AI Toolkit (shopify-ai-toolkit plugin, includes the Dev MCP)Shopify documentation and GraphQL query validationNo, it only reads docs
Official Shopify connector in the Claude chatTerminal-free alternative for one-off tweaks; goes item by item and asks for confirmation on every changeYes

For bulk changes (translations, metafields, imports) use the CLI from the Code tab.

You can extend this with Claude skills: see Claude skills for Shopify in the wiki.

1. Installation (once per computer)

Install Shopify CLI with Homebrew. npm install -g fails because of permissions (EACCES) and you must not use sudo:

brew tap shopify/shopify
brew trust --formula shopify/shopify/shopify-cli
brew install shopify-cli
shopify version

AI Toolkit plugin (requires the claude command in the terminal; if it doesn't exist, install it with brew install --cask claude-code or add the plugin from the app):

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

Restart Claude Code after installing the plugin.

2. Connecting a store

Do this once per store from the terminal. You approve it in the browser; Claude doesn't log in for you. The token is stored, and you only need to repeat it if it expires or if more permissions are needed.

Always use the original *.myshopify.com domain, not the public domain.

Translations (reviewing and fixing what Translate & Adapt generates):

shopify store auth --store <store>.myshopify.com --scopes read_products,read_translations,write_translations,read_locales

Product import (shopify-product-import skill): check the list of permissions in its SKILL.md.

Check that the connection works:

shopify store execute --store <store>.myshopify.com --query '{ shop { name } shopLocales { locale primary published } }'

If a query fails with Access denied for <field>, a permission is missing: run store auth again adding it to --scopes (the error says which one).

To switch stores you don't need to disconnect anything: authorize the other store with its domain and tell Claude which one to use.

3. Asking Claude to do the work

In the Code tab, give the store and the rules. Example:

In <store>.myshopify.com (already authorized with store auth), review the es and pt-PT translations. The product title, the custom.product_name metafield and collections X, Y, Z must stay in English. If those names appear in other fields, keep them in English only when they work as a product name. First just read and show me a report; don't write anything until I approve it.

The flow it must always follow:

  1. Read: download products, collections, metafields and their translations.
  2. Report: what would change, by product and language, with examples.
  3. Approval: nothing is written to the store without your go-ahead.
  4. Test: apply the change to a single product and read it back.
  5. Apply the rest and verify by reading the store again.

4. What we learned about translations (Translate & Adapt)

  • Don't delete translations that must stay in English: automatic translation would generate them again. Save the English text as the translation (translationsRegister with the original value).
  • Each translation is saved with the current digest of the original text. With an old one it is marked as outdated (outdated).
  • outdated translations mean the original changed after it was translated: they are worth reviewing.
  • Tell names apart from common words: "Lavender" as a product name stays in English; as a scent note in a description it is translated.
  • Sync apps (for example, ERP connectors) can create collections or fields on their own; each resource's history (events) tells you who created it.

5. Notes

  • Claude must never use or ask for an Admin API token: the login is stored by the CLI.
  • Theme commands (shopify theme push/pull) are not run in this kind of work.
  • Before updating the CLI to a major version (for example, from 4.x to 5.0), check its breaking changes.