# shopify-operations-mcp [Health: Active]

**Category:** 🛒 E-Commerce  
**Repository:** https://github.com/jpka/shopify-operations-mcp  
**GitHub Stars:** 0  
**Views:** 3  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/shopify-operations-mcp

## Description
Safe-write Shopify operations: plan-before-execute writes with out-of-band approval and audit.

## Tools
Capabilities this server exposes over MCP:

- **search_products** — Search products by title, SKU, vendor, or tag. Returns products with variants, current prices, and per-location inventory levels.
- **list_orders** — List orders filtered by financial status, fulfillment status, and date range.
- **update_inventory** — Set absolute inventory quantities at a named location for multiple inventory items. Preview reads current levels; execute calls `inventorySetQuantities`.
- **cancel_order** — Cancel a Shopify order. **Always requires approval** regardless of item count. **Cannot be rolled back.**
- **refund_order** — Refund a Shopify order. **Always requires approval** regardless of item count. **Cannot be rolled back.**
- **rollback_plan** — Undo an executed reversible plan within the rollback window (default 24 hours).

## Claude Desktop Quick Installation
No generated config for this server: it installs through its own setup steps.

The project's own setup steps (from https://github.com/jpka/shopify-operations-mcp), copied verbatim. Follow them in order; they are not an mcpServers config.

1. Start the server:

```sh
node dist/index.js
```

## Documentation

## 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.

_Full upstream README: https://allmcps.com/mcp/shopify-operations-mcp/readme_

