Connect Shopify to Claude Code
Search orders, products, variants, customers and draft orders, and adjust inventory. Add Toolspoke to Claude Code once and it can use 12 Shopify actions. Your Shopify credential stays in Toolspoke, and you choose which actions Claude Code may call.
Set it up in Claude Code
Three steps, the first one once for every toolkit you will ever add.
Add Toolspoke to Claude Code
Run it in your project, then /mcp to sign in
claude mcp add --transport http toolspoke https://toolspoke.com/mcpThe sign-in opens in your browser, and Toolspoke asks you to approve it.
Install Shopify and connect it
Add Shopify to a project in your Toolspoke workspace.
Admin API access token. You provide it once, when you install the connector. Toolspoke encrypts it at rest and decrypts it only for the length of a single call, and the gateway attaches it to the outbound request itself, so it is never part of the arguments an agent sends.
- Shop subdomain
- Just the subdomain, without .myshopify.com, if your admin is at my-store.myshopify.com/admin, enter my-store.
- Admin API access token
- Shopify admin → Settings → Apps and sales channels → Develop apps → your app → API credentials. Tick only the scopes this install needs (read_orders, read_products, read_customers, read_inventory, plus write_products and write_inventory if it should change anything). The token is shown once.
Choose what Claude Code may do
All 12 actions start on. Switch off any of the 2 actions that change something in Shopify, and Claude Code gets a refusal if it tries.
What you can ask Claude Code for
A few of the Shopify actions that only read, so they are safe to try first.
- Return the store itself: name, myshopify domain, storefront URL, currency, timezone, weight unit and plan
- Search products and return summaries: title, handle, status, type, vendor, tags and total inventory
- List the store's inventory locations with their ids, names and addresses
- Search customers and return name, email, phone, order count and lifetime spend
What Claude Code can do in Shopify
10 actions read, one writes and one deletes or permanently changes something.
Reads
Shop info
Return the store itself: name, myshopify domain, storefront URL, currency, timezone, weight unit and plan. Call it to confirm which store a connection points at and which currency every money amount elsewhere is in. It takes no arguments and is the cheapest call here, which is why it is the connection's health check.
Search orders
Search orders with Shopify's search syntax and return compact summaries: order name, dates, financial and fulfilment status, total, the customer, and the first twenty line items. The search string is the same one the admin's order search takes, "financial_status:paid fulfillment_status:unfulfilled", "created_at:>2026-08-01", "email:[email protected]", "name:#1001". Call get_order for one order's full detail. Responses are kept out of the audit log because they carry shoppers' personal data.
Get order
Fetch one order in full: totals broken down into subtotal, shipping and tax, the shipping address, the customer, every line item with its variant, plus notes, tags and cancellation state. Use it after search_orders when you need to answer a question about a specific order. The id is a global id, gid://shopify/Order/1234567890, exactly as search_orders returns it. Responses are kept out of the audit log because they carry a shopper's name and address.
List products
Search products and return summaries: title, handle, status, type, vendor, tags and total inventory. The search string is the admin's product search, "status:active", "vendor:Acme", "tag:sale", "title:hoodie", "inventory_total:<5". Call get_product for one product's description and its variants, or list_variants when you want variants across many products.
Get product
Fetch one product with its description, options and up to fifty variants, each with SKU, price and inventory quantity. Call this before update_product so you know the current values, and before adjust_inventory to get a variant's inventoryItem id. The id is a global id, gid://shopify/Product/1234567890, as list_products returns it.
List variants
Search product variants across the whole catalogue and return SKU, price, inventory quantity and the inventoryItem id each one is stocked against. Use this rather than get_product when the question is about stock or SKUs spanning many products, "inventory_quantity:<5", "sku:ACME-*". The inventoryItem id it returns is one of the two ids adjust_inventory needs; the other is a location id.
List locations
List the store's inventory locations with their ids, names and addresses. Call this before adjust_inventory: a stock change is always against one location, and the location global id is the second of the two ids that mutation requires.
List customers
Search customers and return name, email, phone, order count and lifetime spend. The search string is the admin's customer search, "email:[email protected]", "country:Germany", "orders_count:>5", "tag:vip". Call get_customer for one customer's detail. This returns other people's personal data, so the response is never written to the audit log.
Get customer
Fetch one customer: name, contact details, order count, lifetime spend, default address, tags, notes and their most recent order. The id is a global id, gid://shopify/Customer/1234567890, as list_customers returns it. This returns another person's name, address and contact details, so the response is never written to the audit log.
List draft orders
List draft orders, quotes and manually created carts that have not been paid yet, with their status, total, customer and invoice URL. Use it to find quotes waiting on a customer, or to check whether an order was raised manually rather than through the storefront. Draft orders carry shopper details, so the response is never written to the audit log.
Writes
Update product
Update a product's own fields: title, description, handle, type, vendor, tags or publication status. Reversible, every field it can set can be set back, and it does not touch variants, inventory or price, which is why it is a write rather than a destructive action. Only the fields you pass are changed, but `tags` replaces the whole tag list, so read the current tags with get_product first. Setting status to ACTIVE publishes the product to the storefront.
Deletes or permanently changes
Adjust inventory
Change the stock level of one or more inventory items at a location by a relative delta. Destructive because it changes what shoppers can buy the moment it lands, a negative delta can take a product out of stock on the live storefront, and a positive one can oversell it, and because deltas compound: calling it twice applies the change twice, with no idempotency key to stop that. Get inventory_item_id from list_variants or get_product, and location_id from list_locations. Confirm the current inventoryQuantity first, and pass change_from_quantity so Shopify rejects the adjustment if stock moved underneath you.
Shopify in Claude Code: questions
Does Claude Code see my Shopify credential?
No. The credential is stored encrypted in Toolspoke, and the gateway adds it to each call. Claude Code only ever talks to Toolspoke, and the dashboard shows the last four characters of the credential and nothing more.
Can I stop Claude Code from changing things in Shopify?
Yes. Each of the 12 actions can be switched off for a project. Turn off the 2 that change something and Claude Code can only read.
Will 12 actions crowd Claude Code's context?
No. Toolspoke shows Claude Code five bridge tools, plus a guide where a toolkit has one, and Claude Code searches for the Shopify action it needs when it needs it. Adding more toolkits does not add more tools to its list.
Can I add it once for every project?
Yes. Add --scope user to the command and Claude Code keeps Toolspoke in every project on this machine. Without it, the server is added to the project you ran the command in.
What does it cost?
Tool calls are free on every plan, and a Shopify call does not run in a sandbox, so it bills nothing.
Shopify in your other apps
More payments toolkits for Claude Code
Try Shopify in Claude Code
Free to start, and tool calls cost nothing on any plan.