# shop-mcp [Health: Active]

**Category:** 🛒 E-Commerce  
**Repository:** https://github.com/hello532/shop-mcp  
**GitHub Stars:** 0  
**Views:** 1  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/shop-mcp

## Description
Read-only Shopify catalogue and stock for LLM agents. Stdlib only, no dependencies.

## Tools
Capabilities this server exposes over MCP:

- **search_products** — "what do we sell that matches X" — identity and total stock
- **get_product** — one product in full, every variant with SKU, price, stock
- **check_inventory** — stock for a SKU per location: available, committed, on-hand
- **low_stock_report** — variants at or below a threshold, lowest first

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `uvx` (confidence: high):

```json
"mcpServers": {
  "shop-mcp": {
    "command": "uvx",
    "args": ["--from","shop-mcp","shop-mcp"],
    "env": {
      "SHOPIFY_SHOP_DOMAIN": ""
    }
  }
}
```

**Requires environment variables:** `SHOPIFY_SHOP_DOMAIN` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## What shop-mcp MCP server does

The shop-mcp MCP server gives an LLM agent read-only access to a Shopify store's catalogue and inventory. Its scope is deliberately limited to four questions: which products match a description, what a particular product contains, how much stock exists for a SKU at each location, and which variants are at or below a chosen threshold.

The server does not expose catalogue or inventory mutations. It is intended for agents that need to answer store-operations questions without changing Shopify data.

## How it works

shop-mcp MCP server communicates over standard input and output using MCP messages. The implementation is contained in a single Python file and writes diagnostics to stderr so that stdout remains available for protocol frames. It implements the protocol layer directly rather than depending on an MCP SDK.

The Shopify side uses Admin GraphQL queries. Throttled GraphQL responses are retried with growing backoff, while authentication failures are not retried. Tool failures are returned as tool results marked with `isError`, allowing the model to receive the reason and adjust its request.

The implementation also handles protocol details that affect strict clients, including notifications, request ID `0`, unknown protocol versions, and newline-delimited JSON framing. Product searches quote SKUs correctly, and inventory quantities that Shopify reports as `null` remain distinct from zero.

## Setup and configuration

The basic installation path is the source checkout:

```text
python3 shop_mcp.py
```

The project states that no external Python dependencies are needed. A self-test can be run with:

```text
python3 shop_mcp.py --self-test
```

That test does not require credentials or network access. The package can also be launched with `uvx --from shop-mcp shop-mcp`.

## Tools and capabilities

The shop-mcp MCP server exposes these tools:

- `search_products`: Finds matching products and reports their identity and total stock.
- `get_product`: Returns one product with every variant, including SKU, price, and stock.
- `check_inventory`: Reports a SKU's available, committed, and on-hand quantities for each location.
- `low_stock_report`: Lists variants at or below a supplied threshold, ordered from lowest stock upward.

The low-stock scan reports whether it reached its configured scan limit. This prevents an incomplete scan from being presented as proof that no qualifying variants exist.

## Limitations and notes

The repository's self-test covers 200 assertions in a clone and 183 when installed from PyPI because repository-only files are absent from the package. The tests exercise protocol handling, schema checks, retries, SKU quoting, null quantities, threshold boundaries, and scan exhaustion.

The project has not been run against a live Shopify store. Its Shopify requests are checked against a transport double based on the documented schema, so a successful self-test does not prove a live-store round trip. The server is therefore best evaluated as a read-only Shopify data interface whose production connectivity still needs to be verified with the target shop and credentials.

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

