Shopify Operations MCP logo

Shopify Operations MCP

Shopify Admin API operations with preview-first writes, approval gates, rollback support, and tamper-evident audit records.

Install Shopify Operations MCP

Run the project’s own setup commands, in order.

Setup steps from the project

shopify-operations-mcp installs with its own steps rather than a config we can generate, so these are copied as-is. Follow them in order and run the commands in a terminal. Source: github.com

  1. 1. Start the server
    node dist/index.js
    

Overview

shopify-operations-mcp MCP server connects an MCP client to the Shopify Admin API for product searches, order queries, inventory updates, cancellations, refunds, and rollback of eligible plans. Write operations first create a preview and token, then re-check state before execution; larger or irreversible changes require approval through a local web interface. Reach for it when Shopify mutations need bounded scope, human review, and an audit trail rather than direct, unreviewed writes. It runs over MCP stdio and requires a Shopify Admin API token.

Use cases

  • Search Shopify products with location-level inventory
  • List orders by status and date range
  • Set inventory quantities with preview and approval
  • Require human approval for cancellations and refunds
  • Roll back eligible inventory plans within the recovery window

Key features

  • Preview-first write plans
  • Out-of-band approval for risky changes
  • State-drift detection before execution
  • Hash-chained JSONL audit records
  • Protected-tag enforcement
  • Rollback for reversible plans

Tools6

What Shopify Operations MCP lets your agent do. Expand a tool for its parameters.

Self-reported~182 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

14/14 checks healthy over the last 72d

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

Last commit2mo agoMost recent push to the default branch.
Tools exposed6Callable tools this server registers over MCP.
Directory activity3 viewsConfig copies, upvotes, and views on AllMCPs.

How Shopify Operations MCP works

What shopify-operations-mcp MCP server does

shopify-operations-mcp MCP server exposes selected Shopify Admin API operations through MCP. Read operations cover product discovery and order listing. Product searches can match title, SKU, vendor, or tag and return variants, prices, inventory item identifiers, and inventory by location. Order queries can filter by financial status, fulfillment status, and date range.

The write surface includes setting absolute inventory quantities at a named location, cancelling orders, and refunding orders. Inventory changes can be rolled back during the configured rollback period. Cancellations and refunds are treated as irreversible: they always require approval and cannot be undone through the rollback tool.

How it works

shopify-operations-mcp MCP server uses a preview-first plan flow for writes. During preview, it reads current Shopify values and builds a manifest containing the intended before-and-after changes without making mutations. The server returns a plan token tied to that exact manifest with a SHA-256 fingerprint.

Execution re-reads the relevant Shopify state. If values differ from the preview, the plan is rejected with a state-change condition instead of applying the stale operation. If the plan is approved and still matches, changes are applied per item and recorded in a success or failure ledger.

Plans at or above the approval threshold pause for human approval at a localhost approval URL. The default threshold is 25 items. Plans above the hard maximum, 250 items by default, are refused before approval. Audit entries are stored in a hash-chained JSONL file, and reversible plans can be passed to rollback_plan until the rollback window expires.

Setup and configuration

Install dependencies, run the test suite, build the project, and start the compiled entry point with Node. The MCP transport is stdio; starting the process also starts the approval UI when approval is enabled.

Provide the Shopify Admin API credential through SHOPIFY_ADMIN_TOKEN. The store domain and other settings are read from config.json in the working directory by default, or from the path specified by SHOPIFY_CONFIG. Environment values take precedence over file settings. The API version defaults to 2026-04.

Important settings include plan lifetime, approval threshold, hard item limit, maximum price-change percentage, rollback lifetime, approval-server port, approval authentication, protected tags, and the caller identity written to audit records. The Admin token and optional approval bearer token must remain environment-only. The hard item limit must be at least as high as the approval threshold.

Tools and capabilities

  • search_products searches by title, SKU, vendor, or tag and reports protected-tag flags without hiding protected products.
  • list_orders retrieves orders using financial, fulfillment, and date filters.
  • update_inventory previews and executes absolute quantities for multiple inventory items at a named location.
  • cancel_order creates an approval-required, irreversible cancellation plan.
  • refund_order creates an approval-required, irreversible refund plan.
  • rollback_plan reverses an executed reversible plan within the configured time window.

Protected tags, including the default do-not-touch, prevent a later write plan from modifying matching products. The search result still exposes those products so the protection is visible to the caller.

Limitations and notes

shopify-operations-mcp MCP server does not make cancellations or refunds reversible. Rollback applies only to eligible reversible operations and only before the rollback TTL expires. A plan can also fail when Shopify state changes after preview, when its manifest differs from the token-bound manifest, or when it exceeds the hard item limit.

The approval interface binds to localhost by default and uses a per-session bearer token unless authentication is disabled. The safety model addresses mistakes in operation scope by making intended changes visible and reviewable; it does not replace human judgment about whether an approved change is correct.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Shopify Operations MCP

shopify-operations-mcp is an MCP server that connects AI clients to the Shopify Admin API. Its main tools search products, list orders, update inventory, cancel orders, refund orders, and roll back eligible plans. Writes use previews, token checks, and approval gates, while actions are recorded in a hash-chained audit file.

Install dependencies, test, build, and start the compiled Node entry point. The documented sequence is `npm install`, `npm test`, and `npm run build`; then configure the MCP client to launch `node dist/index.js` and provide the required environment settings.

Set `SHOPIFY_ADMIN_TOKEN`; it is required and is read only from the environment. You can optionally set `SHOPIFY_CONFIG` to choose a configuration-file path. Other environment variables override settings such as approval thresholds, plan lifetime, rollback lifetime, and approval-server behavior.

Start `node dist/index.js` and configure Claude Desktop to launch it. The process connects to Shopify through the Admin API and can also start the localhost approval UI.

No, refunds and cancellations cannot be undone by this server. Both operations always require human approval, regardless of item count. `rollback_plan` is limited to executed reversible plans, such as eligible inventory changes, within the configured rollback window.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewShopify Operations MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/shopify-operations-mcp?style=directory)](https://allmcps.com/mcp/shopify-operations-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/shopify-operations-mcp"><img src="https://allmcps.com/api/badge/shopify-operations-mcp?style=directory" alt="Shopify Operations MCP on AllMCPs" /></a>