Read-only Shopify catalogue MCP server: stdlib-only, one file, with a 183-assertion self-test

PrestigiousAddress47 · reddit · 2026-09-15

A developer open-sourced shop-mcp, a read-only Shopify catalogue/inventory MCP server designed to avoid handing write access over a live store to an LLM. It ships four tools (searchproducts, getproduct, checkinventory, lowstockreport) in a single Python file using only the standard library: hand-written JSON-RPC over stdio and urllib for the Shopify Admin GraphQL API. Notable edge-case handling includes quoting SKUs with spaces, not coercing null inventory to zero, and using a presence check (not truthiness) for msg ids. It offers a tokenless --self-test (183 assertions) plus a mutation test that injects 23 defects, all caught. MIT licensed, no telemetry, available on PyPI and the MCP Registry — a useful reference for hand-rolling MCP servers.

Original post →

More from coding & agent

coding & agent channel →