Open-source B2B and marketplace ecommerce; new stores include an MCP server for AI agents.
Shop MCP
ภาพรวม
คำอธิบายจากผู้ทำ (ภาษาอังกฤษตามต้นฉบับ)
Read-only Shopify catalogue and stock for LLM agents. Stdlib only, no dependencies.
สามเสาของ PopNx MCP
สามเรื่องนี้ไม่รวมเป็นคะแนนเดียว เพราะความเห็น การวัด และความนิยม เป็นคนละเรื่องกัน
- เสียงผู้ใช้iยังไม่มีรีวิวรีวิวเปิดพร้อมระบบบัญชีในขั้นถัดไป
- ผลตรวจเบื้องต้นของเราiผ่าน 1 จาก 1 ข้อตรวจจากข้อมูลที่เปิดอยู่ ยังไม่ได้สแกนโค้ด
- การใช้งานiยังไม่ได้วัด★ –
ใช้ทำอะไรได้
ตัวนี้ยังไม่ได้เรียบเรียงเป็นภาษาไทย ด้านล่างคือข้อเท็จจริงที่เราอ่านจาก registry
- การเชื่อมต่อ: รันบนเครื่อง
- ช่องทาง (transport): stdio
- หมวด: ร้านค้าออนไลน์และรับเงิน
- ต้องใส่ค่าเหล่านี้: SHOPIFY_SHOP_DOMAIN, SHOPIFY_ADMIN_TOKEN
ติดตั้ง
เลือกโปรแกรม AI ที่คุณใช้ แล้วคัดลอกค่าตั้งไปวาง
ก่อนติดตั้ง
- ผลตรวจเบื้องต้น: ผ่าน 1 จาก 1 ข้อ
- รันในเครื่องคุณด้วยสิทธิ์ของผู้ใช้คุณ (ไฟล์ อินเทอร์เน็ต แอปต่าง ๆ)
- ค่าที่คุณต้องใส่เอง:
SHOPIFY_SHOP_DOMAIN,SHOPIFY_ADMIN_TOKEN
ค่าที่ติดป้ายความลับคือกุญแจของบัญชีคุณ อย่าส่งให้ใคร และอย่าวางในแชต
ต้องเตรียมก่อน
- PyPIติดตั้ง uv ของ Python (มีคำสั่ง uvx) ในเครื่อง
คุณใช้แอปไหน
เลือกแอปด้านบน เราจำไว้ให้ ครั้งหน้าปุ่มจะขึ้นว่า “ติดตั้งลง …”
เปิด Claude Desktop → Settings → Developer → Edit Config แล้ววางค่านี้ในไฟล์ claude_desktop_config.json
{
"mcpServers": {
"shop": {
"command": "uvx",
"args": [
"shop-mcp"
],
"env": {
"SHOPIFY_SHOP_DOMAIN": "ใส่ค่าของคุณ",
"SHOPIFY_ADMIN_TOKEN": "ใส่ค่าของคุณ"
}
}
}
}พิมพ์คำสั่งนี้ใน Terminal
claude mcp add shop --env SHOPIFY_SHOP_DOMAIN='ใส่ค่าของคุณ' --env SHOPIFY_ADMIN_TOKEN='ใส่ค่าของคุณ' -- uvx shop-mcpเติมค่าที่เว้นว่างไว้ก่อนรัน
หรือคัดลอกค่าตั้งเอง
วางในไฟล์ .cursor/mcp.json ของโปรเจกต์ หรือ ~/.cursor/mcp.json
{
"mcpServers": {
"shop": {
"command": "uvx",
"args": [
"shop-mcp"
],
"env": {
"SHOPIFY_SHOP_DOMAIN": "ใส่ค่าของคุณ",
"SHOPIFY_ADMIN_TOKEN": "ใส่ค่าของคุณ"
}
}
}
}เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง
หรือคัดลอกค่าตั้งเอง
วางในไฟล์ .vscode/mcp.json ของโปรเจกต์
{
"servers": {
"shop": {
"type": "stdio",
"command": "uvx",
"args": [
"shop-mcp"
],
"env": {
"SHOPIFY_SHOP_DOMAIN": "ใส่ค่าของคุณ",
"SHOPIFY_ADMIN_TOKEN": "ใส่ค่าของคุณ"
}
}
}
}เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง
ตัวนี้รันในเครื่องคุณ แต่ ChatGPT ต่อได้เฉพาะ server บนอินเทอร์เน็ต ลองเลือกแอปอื่น
ตัวเลือกเก็บในคุกกี้บนเครื่องนี้ ไม่ต้องมีบัญชี
ค่าที่ต้องใส่เอง
- Your store domain, e.g. your-shop.myshopify.com
- Shopify Admin API access token (shpat_...) with read_products and read_inventory scopes
ค่าตั้งนี้สร้างจากข้อมูลใน registry ของผู้ทำ ถ้าไม่ตรงกับ README ให้เชื่อ README
ทำอะไรได้บ้าง
รันในเครื่องคุณ รายการเครื่องมือจะขึ้นในแอป AI หลังติดตั้ง
ผลตรวจเบื้องต้นi
เราตรวจจากข้อมูลที่ใครก็เปิดดูได้ ยังไม่ได้อ่านโค้ด ข้อที่ไม่เกี่ยวกับตัวนี้ไม่นับในตัวหาร · ตรวจเมื่อ 7 พ.ย. 2569
- ✓ ผ่าน
ตัวตนผู้ทำตรงกับ repo
ชื่อใน registry ยืนยันด้วยบัญชี GitHub hello532 ซึ่งเป็นเจ้าของ repo
- … ยังไม่ตรวจ
ยังมีคนดูแล
ยังไม่ได้อ่านข้อมูล repo จาก GitHub
- … ยังไม่ตรวจ
มีสัญญาอนุญาต (license)
ยังไม่ได้อ่านข้อมูล repo จาก GitHub
- – ไม่เกี่ยว
endpoint ตอบ
ตัวนี้รันบนเครื่องคุณ ไม่มี endpoint บนอินเทอร์เน็ต
- – ไม่เกี่ยว
ล็อกอินแบบ OAuth
ตัวนี้รันบนเครื่อง ใช้ค่าที่ตั้งในเครื่องแทน
- … ยังไม่ตรวจ
คำอธิบายเครื่องมือไม่มีคำสั่งแอบแฝง
รันในเครื่องคุณ เราอ่านรายการเครื่องมือได้เฉพาะตัวที่มี endpoint บนอินเทอร์เน็ต
เทียบกับตัวอื่นในหมวด ร้านค้าออนไลน์และรับเงินi
- ดาวมากกว่า 0% ของอีก 1749 ตัวในหมวดนี้
- ส่งรุ่นใหม่เข้า registry ล่าสุดกว่า 37% ของอีก 1749 ตัวในหมวดนี้
- ผลตรวจเบื้องต้นดีกว่าหรือเท่ากับ 100% ของอีก 1749 ตัวในหมวดนี้
เทียบกับทุก server ที่ยังใช้งานในหมวดนี้ทั้งทะเบียน ดาวนับเฉพาะเมื่อผู้ลงทะเบียนเป็นเจ้าของ repo
คำถามที่พบบ่อย
Shop MCP ปลอดภัยไหม?
จากการตรวจเบื้องต้นของเรา ผ่าน 1 จาก 1 ข้อที่ตรวจได้ เรายังไม่ได้อ่านโค้ด ก่อนใส่กุญแจหรือ token ให้ดูว่า server ขอสิทธิ์อะไร และเลือกกุญแจที่ทำได้เท่าที่จำเป็น
ต้องใช้กุญแจหรือรหัสอะไรบ้าง?
ต้องใส่ค่าเหล่านี้: SHOPIFY_SHOP_DOMAIN, SHOPIFY_ADMIN_TOKEN
ตัวนี้รันบนเครื่องหรือบนคลาวด์?
รันบนเครื่องของคุณ โปรแกรม AI จะเปิด server ขึ้นมาเองเมื่อใช้ ข้อมูลไม่ต้องผ่านเซิร์ฟเวอร์ของผู้ทำ (ยกเว้นตัวที่ไปเรียกบริการออนไลน์ต่อ)
ยังมีคนดูแลอยู่ไหม?
repo บน GitHub มีการแก้โค้ดล่าสุด – และส่งรุ่นล่าสุด (1.0.1) เข้า registry 2 เดือนที่ผ่านมา
ใช้กับโปรแกรมไหนได้บ้าง?
โปรแกรมที่รองรับ MCP เช่น Claude Desktop, Claude Code, Cursor และ VS Code ตัวนี้ต้องมี Python (uv) ในเครื่องด้วย
มีตัวไหนใช้แทนได้บ้าง?
ในหมวดเดียวกันมี Spree Commerce: open-source B2B and marketplace ecommerce, Stripe MCP, MCP Cn Commerce
ตัวที่ใช้แทนได้
server หมวดเดียวกันจากผู้ทำคนอื่น เรียงตามดาว
อ่านการ์ด:★ ดาว GitHubiสามเสา: รีวิว · ผลตรวจ · การใช้งานiอัปเดต = วันที่ส่งรุ่นล่าสุดเข้า registryi
Stripe MCP
server ทางการของ Stripe ให้ AI ดูและจัดการลูกค้า สินค้า การชำระเงิน และใบแจ้งหนี้ ต่อผ่านคลาวด์ของ Stripe และล็อกอินแบบ OAuth
MCP Cn Commerce
8 read-only MCP platform entries; support is operation-specific; merchant live acceptance pending
README จากผู้ทำ
เปิดอ่าน README
ส่วนนี้คัดจาก repo ของผู้ทำตามต้นฉบับ PopNx MCP ไม่ได้ตรวจหรือรับรองเนื้อหา ตัด HTML รูปภาพ และสคริปต์ออกแล้ว ลิงก์จะพาออกนอกเว็บ
shop-mcp
A Model Context Protocol server that lets an LLM agent answer questions about a Shopify store's catalogue and stock — over stdio, from a single file, using only the Python standard library.
No MCP SDK. No requests. No GraphQL client. python3 shop_mcp.py is the whole install.
$ python3 shop_mcp.py --self-test
all green: 200 assertions
That command needs no credentials and no network. It is the point of the repo: the protocol layer and the tool layer are both exercised for real, because the Shopify transport is replaced at a seam rather than mocked at the boundary.
Installed from PyPI, the same command reports 183, and the seventeen-assertion difference is a packaging fact rather than a weaker check:
$ uvx --from shop-mcp shop-mcp --self-test
all green: 183 assertions
manifest.json (5 assertions), llms-install.md (11) and README.md (1) are deliberately not shipped into site-packages — the manifest's entry_point names a bundle path that does not exist in an installed copy, so packaging it would make a correct install fail. All three groups *skip* rather than fail when their file is absent, which is why the count moves and the verdict does not. Clone the repo to run all 200.
This server is the worked example, not a product line. I build the same shape — a stdio MCP server over data you already have, with a self-test suite and proof that the suite catches injected defects — as a fixed-price job: hello532.github.io/services.html, or coolun.337@gmail.com. Nothing on this page needs paying for; issues and PRs are welcome either way.
Why write the protocol by hand
Because the failure modes of a stdio MCP server are all invisible locally and all fatal in a host. Each one below is a real defect this file is built to not have, and each has an assertion naming it:
- A diagnostic on stdout. One stray
print()corrupts the client's next parse. Nothing looks wrong when you run the server yourself. Every diagnostic here goes to stderr, and a test asserts stdout stays byte-empty across a full session. - Answering a notification.
notifications/initializedhas noid, so a reply to it is a message with no pending request. Strict clients treat that as a protocol violation and drop the connection. - `id: 0` read as a notification.
if msg.get("id")is falsy for zero, so a client that numbers requests from zero has its first call silently dropped. Presence, not truthiness. - Tool failures sent as JSON-RPC errors. A JSON-RPC error is for a malformed *request*. A tool that ran and failed must return a normal result with
isError: trueand the reason as text — otherwise the model never sees the message and cannot correct its own arguments. - Echoing an unknown `protocolVersion`. If a client asks for a revision the server does not know, agreeing to it leaves both sides believing a spec is in use that neither implements. This falls back to
2025-03-26, the spec's own default, and says so. - Pretty-printing the reply. Indented JSON contains newlines, and newline is the frame delimiter. One message becomes several broken ones.
Tools
| tool | answers |
|---|---|
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 |
Four tools, chosen because each answers a question a shop owner actually asks. A wider surface would be easy and would make the model worse at picking.
The correctness that is not protocol
Three of the assertions cover mistakes that produce *confidently wrong answers*, which are worse than errors:
- An unquoted SKU.
sku:SH 1is a different query fromsku:"SH 1". The first silently matches the wrong variants and reports their stock as if it were yours. SKUs are quoted and internal quotes escaped. - A null quantity read as zero. Shopify returns
nullfor a variant that does not track inventory. Coerced to0, it appears in every restock report forever. Untracked and out-of-stock are different facts and stay different. - `scan_exhausted`.
low_stock_reportscans a bounded number of variants. If the scan hit its limit, "nothing is low" is indistinguishable from "I did not look far enough" — so the result says which it was, and the model can say so too.
Plus the transport rules any Shopify client needs and most skip: a THROTTLED GraphQL response is a *200* and must be retried, not read as success; a 401 must *not* be retried, because waiting will not fix a bad token; backoff must actually grow.
Verified, and not verified
Verified, by the self-test, on every run: 200 assertions covering the handshake, framing, notification handling, id presence, error mapping, schema strictness, retry and backoff policy, SKU quoting, null-quantity handling, threshold boundaries, and scan exhaustion. Wire shapes were taken from the official mcp Python SDK's types.py (LATEST_PROTOCOL_VERSION, CallToolResult, ServerCapabilities), not from memory.
Not verified: this has never been run against a live Shopify store. There is no credential in this repo and no recorded API session. The Shopify Admin GraphQL queries are written to the documented schema, and every code path around them is tested against a transport double — but the round trip against a real shop is unproven, and the test doubles are my model of Shopify's behaviour, not Shopify.
That distinction is the honest one, and it is the same line drawn in gpt-ads-feed. A README that blurs it is asking to be trusted on the wrong thing.
Assertions that can fail
mutation_test.sh injects known defects into *copies* of the source and asserts --self-test goes red for each, naming which assertion caught it. It also flags a NO-OP EDIT when a search pattern has gone stale — because a mutation that does not apply tests nothing while looking green, which is the failure mode that makes a suite worse than useless: trusted and empty.
It found real weaknesses in the suite on its first run, and all three were the same shape: the defect *was* detected, but by an exception rather than by a named assertion, so the message explained nothing and every assertion after it never ran.
Two were an unhandled KeyError: 'result', from indexing a reply that the defect had turned into a JSON-RPC error. Fixed by routing result access through a shape guard, so the same defect now reports a tool crash returns a result, so the loop survives: reply is a JSON-RPC error {'code': -32603, ...} and the three following assertions each still report their own verdict.
The third was a bare setup call — S.Tools(c).search_products(...), present only to make the assertion below it meaningful. When the throttle branch was disabled it raised, aborting the test before that assertion ran. Fixed with completes(), the exact inverse of raises(): the defect now reports a 200-with-THROTTLED is survivable, not a hard failure: raised ShopifyError: Throttled [THROTTLED], naming the rule and keeping the cause.
Three more defects surfaced only when the server was packaged as an .mcpb bundle and launched the way a host launches it, which no test had ever done:
- The code read
SHOPIFY_SHOP; this README and the bundle manifest both told users to exportSHOPIFY_SHOP_DOMAIN. Anyone following the docs got a permanently unconfigured server. Every one of the 180 assertions passed, because none of them compared the code against the docs. tools/listreturned[]until credentials existed, so a host saw an empty server and reported it broken — and the readable *no store is configured* message ontools/callwas unreachable, since nothing was listed to call. The docstring above that code stated the opposite requirement, and the test below it asserted the defect:eq(tools, [], ...). The list never depended on credentials;descriptors()touched no instance state at all, and is now astaticmethod.--self-testwas advertised in the module docstring but crashed inside the bundle, which shipped only the server file. The bundle now ships the suite.
The first fix then broke the harness in a way worth recording. The new assertion failed when README.md was absent, and the harness copied only two files, so it fired inside *every* mutant. The run still printed 17 caught, but six of those were credited to README.md is present instead of their own labels: six real assertions could have been dead with the suite still green. A missing README is a packaging fact, not a code defect. The load-bearing comparison now runs against the module docstring, which travels with the source, and the harness copies the README so the cross-check is real.
All 23 mutations are caught by an assertion that names what broke, and each is credited to its own label.
Use it
Installed from PyPI — nothing to clone:
export SHOPIFY_SHOP_DOMAIN=your-shop.myshopify.com
export SHOPIFY_ADMIN_TOKEN=shpat_... # read_products, read_inventory uvx shop-mcp # or: pip install shop-mcp && shop-mcp
Claude Desktop / any MCP host:
{
"mcpServers": { "shop": { "command": "uvx", "args": ["shop-mcp"], "env": { "SHOPIFY_SHOP_DOMAIN": "your-shop.myshopify.com", "SHOPIFY_ADMIN_TOKEN": "shpat_..." } } } }
From a clone instead, when you want to read the source before running it — which is the point of a single dependency-free file, and the only way to get the full 200-assertion suite:
python3 shop_mcp.py --self-test # 200 here, 183 installed; see above
python3 shop_mcp.py
{ "command": "python3", "args": ["/absolute/path/to/shop_mcp.py"] }
With no credentials set it still completes a handshake and serves tools/list, then returns isError with the missing variable named. A host that cannot read tools/list reports "broken server" and sends you looking in the wrong place.
MIT.