shopify-operations-mcp

v0.1.2
io.github.jpka/shopify-operations-mcp Checked 3 days ago Published 3 months ago

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

This server failed our last smoke test; it may not start.

Values you need

VariableWhat it is
SHOPIFY_STORE_DOMAINrequired The myshopify.com store domain, e.g. my-store.myshopify.com. Overrides shopify.storeDomain from the config file.
SHOPIFY_ADMIN_TOKENrequired secret Shopify Admin API access token. Required and only ever read from the environment — never from the config file.
SHOPIFY_CONFIGoptional Path to a config.json with shopify/plans/approvalServer/protectedTags settings. Defaults to ./config.json in the working directory.
SHOPIFY_PLAN_TTL_MSoptional How long a plan token stays valid before it must be executed or expires, in milliseconds. Default 60000.
SHOPIFY_APPROVAL_SERVER_PORToptional Port the localhost human-approval HTTP server binds to (127.0.0.1 only). Default 4319.
SHOPIFY_PROTECTED_TAGSoptional Comma-separated tags that plans may never modify; any plan touching an item carrying one is refused. Default do-not-touch.
SHOPIFY_CALLER_IDoptional Identity recorded as the caller on every audit log row. Default unknown.
SHOPIFY_AUDIT_PATHoptional File path for the tamper-evident JSONL audit log. Default shopify-operations-audit.jsonl in the working directory.

npm (npx)

Requires Node.js 18+

Run in a terminal
claude mcp add shopify-operations-mcp -e 'SHOPIFY_ADMIN_TOKEN=<SHOPIFY_ADMIN_TOKEN>' -e 'SHOPIFY_STORE_DOMAIN=<SHOPIFY_STORE_DOMAIN>' -- npx -y shopify-operations-mcp@0.1.2
Add to claude_desktop_config.json
{
  "mcpServers": {
    "shopify-operations-mcp": {
      "args": [
        "-y",
        "shopify-operations-mcp@0.1.2"
      ],
      "command": "npx",
      "env": {
        "SHOPIFY_ADMIN_TOKEN": "<SHOPIFY_ADMIN_TOKEN>",
        "SHOPIFY_STORE_DOMAIN": "<SHOPIFY_STORE_DOMAIN>"
      }
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "shopify-operations-mcp": {
      "args": [
        "-y",
        "shopify-operations-mcp@0.1.2"
      ],
      "command": "npx",
      "env": {
        "SHOPIFY_ADMIN_TOKEN": "<SHOPIFY_ADMIN_TOKEN>",
        "SHOPIFY_STORE_DOMAIN": "<SHOPIFY_STORE_DOMAIN>"
      }
    }
  }
}
Add to .vscode/mcp.json
{
  "inputs": [
    {
      "description": "SHOPIFY_ADMIN_TOKEN",
      "id": "shopify-admin-token",
      "password": true,
      "type": "promptString"
    },
    {
      "description": "SHOPIFY_STORE_DOMAIN",
      "id": "shopify-store-domain",
      "password": true,
      "type": "promptString"
    }
  ],
  "servers": {
    "shopify-operations-mcp": {
      "args": [
        "-y",
        "shopify-operations-mcp@0.1.2"
      ],
      "command": "npx",
      "env": {
        "SHOPIFY_ADMIN_TOKEN": "${input:shopify-admin-token}",
        "SHOPIFY_STORE_DOMAIN": "${input:shopify-store-domain}"
      },
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.shopify-operations-mcp]
command = "npx"
args = ["-y", "shopify-operations-mcp@0.1.2"]
env = { "SHOPIFY_ADMIN_TOKEN" = "<SHOPIFY_ADMIN_TOKEN>", "SHOPIFY_STORE_DOMAIN" = "<SHOPIFY_STORE_DOMAIN>" }

For AI agents

  1. Ask the user for: SHOPIFY_STORE_DOMAIN, SHOPIFY_ADMIN_TOKEN. Never invent or guess these values; secrets go into the client config, not into chat logs.
  2. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  3. Restart or reload the client so it starts the server.
  4. If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.

Machine-readable: install.md · manifest.json