ต้นแบบ · รุ่นทดลอง: มีทุก server ในทะเบียนทางการ อัปเดตทุก 30 นาที รีวิวและบัญชีผู้ใช้จะมาในขั้นถัดไป
PopNx MCPที่รวม MCP สำหรับคนใช้ AI · อธิบายเป็นภาษาคน

Marketplace MCP

โดย llmops-proรุ่น 0.2.3i★ –iรันบนเครื่อง
ชื่อใน registryio.github.llmops-pro/marketplace-mcp

ติดตั้ง

ภาพรวม

คำอธิบายจากผู้ทำ (ภาษาอังกฤษตามต้นฉบับ)

Publish Nostr marketplace listings (NIP-15 + Shopstr kinds 30019/30402) so agents can run a store.

สามเสาของ PopNx MCP

สามเรื่องนี้ไม่รวมเป็นคะแนนเดียว เพราะความเห็น การวัด และความนิยม เป็นคนละเรื่องกัน

ใช้ทำอะไรได้

ตัวนี้ยังไม่ได้เรียบเรียงเป็นภาษาไทย ด้านล่างคือข้อเท็จจริงที่เราอ่านจาก registry

  • การเชื่อมต่อ: รันบนเครื่อง
  • ช่องทาง (transport): stdio
  • หมวด: ร้านค้าออนไลน์และรับเงิน
  • ต้องใส่ค่าเหล่านี้: NOSTR_RELAYS, NOSTR_NIP46_URI, NOSTR_PRIVATE_KEY

ติดตั้ง

เลือกโปรแกรม AI ที่คุณใช้ แล้วคัดลอกค่าตั้งไปวาง

ก่อนติดตั้ง

ค่าที่ติดป้ายความลับคือกุญแจของบัญชีคุณ อย่าส่งให้ใคร และอย่าวางในแชต

ต้องเตรียมก่อน

  • npmติดตั้ง Node.js (มีคำสั่ง npx) ในเครื่อง

คุณใช้แอปไหน

เลือกแอปด้านบน เราจำไว้ให้ ครั้งหน้าปุ่มจะขึ้นว่า “ติดตั้งลง …”

เปิด Claude Desktop → Settings → Developer → Edit Config แล้ววางค่านี้ในไฟล์ claude_desktop_config.json

{
  "mcpServers": {
    "marketplace": {
      "command": "npx",
      "args": [
        "-y",
        "marketplace-mcp"
      ],
      "env": {
        "NOSTR_RELAYS": "ใส่ค่าของคุณ",
        "NOSTR_NIP46_URI": "ใส่ค่าของคุณ",
        "NOSTR_PRIVATE_KEY": "ใส่ค่าของคุณ",
        "SHOPSTR_CACHE_ENABLED": "ใส่ค่าของคุณ"
      }
    }
  }
}

พิมพ์คำสั่งนี้ใน Terminal

claude mcp add marketplace --env NOSTR_RELAYS='ใส่ค่าของคุณ' --env NOSTR_NIP46_URI='ใส่ค่าของคุณ' --env NOSTR_PRIVATE_KEY='ใส่ค่าของคุณ' --env SHOPSTR_CACHE_ENABLED='ใส่ค่าของคุณ' -- npx -y marketplace-mcp

เติมค่าที่เว้นว่างไว้ก่อนรัน

เปิดใน Cursor

หรือคัดลอกค่าตั้งเอง

วางในไฟล์ .cursor/mcp.json ของโปรเจกต์ หรือ ~/.cursor/mcp.json

{
  "mcpServers": {
    "marketplace": {
      "command": "npx",
      "args": [
        "-y",
        "marketplace-mcp"
      ],
      "env": {
        "NOSTR_RELAYS": "ใส่ค่าของคุณ",
        "NOSTR_NIP46_URI": "ใส่ค่าของคุณ",
        "NOSTR_PRIVATE_KEY": "ใส่ค่าของคุณ",
        "SHOPSTR_CACHE_ENABLED": "ใส่ค่าของคุณ"
      }
    }
  }
}

เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง

เปิดใน VS Code

หรือคัดลอกค่าตั้งเอง

วางในไฟล์ .vscode/mcp.json ของโปรเจกต์

{
  "servers": {
    "marketplace": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "marketplace-mcp"
      ],
      "env": {
        "NOSTR_RELAYS": "ใส่ค่าของคุณ",
        "NOSTR_NIP46_URI": "ใส่ค่าของคุณ",
        "NOSTR_PRIVATE_KEY": "ใส่ค่าของคุณ",
        "SHOPSTR_CACHE_ENABLED": "ใส่ค่าของคุณ"
      }
    }
  }
}

เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง

ตัวนี้รันในเครื่องคุณ แต่ ChatGPT ต่อได้เฉพาะ server บนอินเทอร์เน็ต ลองเลือกแอปอื่น

ตัวเลือกเก็บในคุกกี้บนเครื่องนี้ ไม่ต้องมีบัญชี

ค่าที่ต้องใส่เอง

  • NOSTR_RELAYS จำเป็น env
    Comma-separated wss:// relay URLs
  • NOSTR_NIP46_URI ความลับ env
    NIP-46 bunker URI (preferred signer)
  • NOSTR_PRIVATE_KEY ความลับ env
    nsec private key (alternative to NOSTR_NIP46_URI)
  • SHOPSTR_CACHE_ENABLED env
    Set true to POST Shopstr-dialect events to the Shopstr cache after relay publish

ค่าตั้งนี้สร้างจากข้อมูลใน registry ของผู้ทำ ถ้าไม่ตรงกับ README ให้เชื่อ README

ทำอะไรได้บ้าง

รันในเครื่องคุณ รายการเครื่องมือจะขึ้นในแอป AI หลังติดตั้ง

ผลตรวจเบื้องต้นi

เราตรวจจากข้อมูลที่ใครก็เปิดดูได้ ยังไม่ได้อ่านโค้ด ข้อที่ไม่เกี่ยวกับตัวนี้ไม่นับในตัวหาร · ตรวจเมื่อ 8 พ.ย. 2569

  • ✓ ผ่าน

    ตัวตนผู้ทำตรงกับ repo

    ชื่อใน registry ยืนยันด้วยบัญชี GitHub llmops-pro ซึ่งเป็นเจ้าของ repo

  • … ยังไม่ตรวจ

    ยังมีคนดูแล

    ยังไม่ได้อ่านข้อมูล repo จาก GitHub

  • … ยังไม่ตรวจ

    มีสัญญาอนุญาต (license)

    ยังไม่ได้อ่านข้อมูล repo จาก GitHub

  • – ไม่เกี่ยว

    endpoint ตอบ

    ตัวนี้รันบนเครื่องคุณ ไม่มี endpoint บนอินเทอร์เน็ต

  • – ไม่เกี่ยว

    ล็อกอินแบบ OAuth

    ตัวนี้รันบนเครื่อง ใช้ค่าที่ตั้งในเครื่องแทน

  • … ยังไม่ตรวจ

    คำอธิบายเครื่องมือไม่มีคำสั่งแอบแฝง

    รันในเครื่องคุณ เราอ่านรายการเครื่องมือได้เฉพาะตัวที่มี endpoint บนอินเทอร์เน็ต

เทียบกับตัวอื่นในหมวด ร้านค้าออนไลน์และรับเงินi

  • ดาวมากกว่า 0% ของอีก 2563 ตัวในหมวดนี้
  • ส่งรุ่นใหม่เข้า registry ล่าสุดกว่า 11% ของอีก 2563 ตัวในหมวดนี้
  • ผลตรวจเบื้องต้นดีกว่าหรือเท่ากับ 100% ของอีก 2563 ตัวในหมวดนี้

เทียบกับทุก server ที่ยังใช้งานในหมวดนี้ทั้งทะเบียน ดาวนับเฉพาะเมื่อผู้ลงทะเบียนเป็นเจ้าของ repo

คำถามที่พบบ่อย

Marketplace MCP ปลอดภัยไหม?

จากการตรวจเบื้องต้นของเรา ผ่าน 1 จาก 1 ข้อที่ตรวจได้ เรายังไม่ได้อ่านโค้ด ก่อนใส่กุญแจหรือ token ให้ดูว่า server ขอสิทธิ์อะไร และเลือกกุญแจที่ทำได้เท่าที่จำเป็น

ต้องใช้กุญแจหรือรหัสอะไรบ้าง?

ต้องใส่ค่าเหล่านี้: NOSTR_RELAYS, NOSTR_NIP46_URI, NOSTR_PRIVATE_KEY

ตัวนี้รันบนเครื่องหรือบนคลาวด์?

รันบนเครื่องของคุณ โปรแกรม AI จะเปิด server ขึ้นมาเองเมื่อใช้ ข้อมูลไม่ต้องผ่านเซิร์ฟเวอร์ของผู้ทำ (ยกเว้นตัวที่ไปเรียกบริการออนไลน์ต่อ)

ยังมีคนดูแลอยู่ไหม?

repo บน GitHub มีการแก้โค้ดล่าสุด – และส่งรุ่นล่าสุด (0.2.3) เข้า registry 5 เดือนที่ผ่านมา

ใช้กับโปรแกรมไหนได้บ้าง?

โปรแกรมที่รองรับ MCP เช่น Claude Desktop, Claude Code, Cursor และ VS Code ตัวนี้ต้องมี Node.js ในเครื่องด้วย

มีตัวไหนใช้แทนได้บ้าง?

ในหมวดเดียวกันมี Spree Commerce: open-source B2B and marketplace ecommerce, Stripe MCP, MCP Cn Commerce

ตัวที่ใช้แทนได้

server หมวดเดียวกันจากผู้ทำคนอื่น เรียงตามดาว

อ่านการ์ด:↓ ดาวน์โหลดต่อสัปดาห์i★ ดาว GitHubiสามเสา: รีวิว · ผลตรวจ · การใช้งานiอัปเดต = วันที่ส่งรุ่นล่าสุดเข้า registryi

Stripe MCP

server ทางการของ Stripe ให้ AI ดูและจัดการลูกค้า สินค้า การชำระเงิน และใบแจ้งหนี้ ต่อผ่านคลาวด์ของ Stripe และล็อกอินแบบ OAuth

โดย stripeใช้กันมาก★ 2Kอัปเดต 13 เดือนที่ผ่านมา

รันบนคลาวด์✓ stripe.com

MCP Cn Commerce

8 read-only MCP platform entries; support is operation-specific; merchant live acceptance pending

โดย TonyWang-hubเริ่มต้น↓ 73/สัปดาห์★ 96อัปเดต 29 วันที่ผ่านมา

รันบนเครื่อง

README จากผู้ทำ

เปิดอ่าน README

ส่วนนี้คัดจาก repo ของผู้ทำตามต้นฉบับ PopNx MCP ไม่ได้ตรวจหรือรับรองเนื้อหา ตัด HTML รูปภาพ และสคริปต์ออกแล้ว ลิงก์จะพาออกนอกเว็บ

marketplace-mcp

A NOSTR storefront for your LLM agent — speaks both dialects. MCP server that lets an agent create + update marketplace events on your behalf, in two dialects out of the box:

  • NIP-15 (kind:30017 stalls + kind:30018 products) for NIP-15-native clients (Plebeian Market, etc.).
  • Shopstr-modern (kind:30019 shop profile + kind:30402 NIP-99 classified listings) — what shopstr.store actually renders. Includes an automatic cache-POST so events appear on the storefront, not just on relays.

Seven tools, defense-in-depth safety, MIT licensed.

v0.2 — dual-dialect publisher. v0.1.x shipped NIP-15-only and the listings never appeared on shopstr.store because Shopstr is a Postgres-backed CMS that only renders events from its own DB (populated via POST /api/db/cache-event) and its cacheable-event allowlist excludes NIP-15 kinds. v0.2 adds the Shopstr-modern tools and the cache-POST hook so the storefront actually populates. NIP-15 tools left in place for non-Shopstr targets.


Why this server exists

Shopstr (the canonical Bitcoin-Lightning marketplace UI on NOSTR) is not a relay-reading Nostr client — it's a Next.js app with a Postgres cache. Its marketplace page renders products from its own DB, populated when clients POST signed events to /api/db/cache-event. The cacheable-event allowlist (in shopstr-eng/shopstr → utils/db/cache-event-policy.ts) excludes NIP-15 stall/product kinds; modern Shopstr uses kind:30019 (shop profile with merchants: [ ]) and kind:30402 (NIP-99 Classified Listings, all data in tags). Without a ["t","shopstr"] tag the listing won't surface; without at least one ["image", ] tag the card silently never renders.

marketplace-mcp v0.2 builds the right events, POSTs them to Shopstr's cache after the relay publish, and keeps the legacy NIP-15 tools intact for anyone targeting other clients.


What you can build with this

  • A self-driving Shopstr storefront — agent generates shop profile + product listings from a config file, republishes whenever metadata changes, drops fresh t-tag categories per product for discoverability. Same call publishes to relays AND mirrors to Shopstr's cache.
  • A sales-channel multiplexer — the same product events propagate to every NIP-15- or NIP-99-aware client (Shopstr, Plebeian Market, etc.) by virtue of being on shared relays. Pick your dialect per-tool; publish to both if your audience spans clients.
  • A listing-as-code workflow — version-control your product JSON in git; CI calls shopstr_create_or_update_product to deploy. Republish with the same id = idempotent update (parameterized-replaceable events).
  • Cross-server identity — pair with nostr-ops-mcp and nwc-mcp to wire identity + commerce. Same signer, same npub, three specialized tool surfaces.

The seven tools

Shopstr-modern (new in v0.2) — required for shopstr.store visibility
ToolKindPurpose
shopstr_create_or_update_shop30019Publish the seller's shop profile (name, about, picture, banner). The d tag is the seller's pubkey hex — one shop per pubkey. After relay publish, POSTs to Shopstr's cache so the storefront UI surfaces the shop.
shopstr_create_or_update_product30402Publish a NIP-99 Classified Listing. All product data in tags (title, summary, price, location, shipping, image × N, t × N, quantity, condition, status, valid_until). Auto-adds ["t","shopstr"] so the product surfaces in Shopstr's marketplace feed. Cache-POST included.
NIP-15 legacy — for NIP-15-native clients (not Shopstr)
ToolKindPurpose
marketplace_create_or_update_stall30017NIP-15 stall (id, name, description, currency, shipping[]). The id is the d tag — same id = replace. Relay publish only; no Shopstr cache POST (would be 400'd anyway, kind not allowlisted).
marketplace_create_or_update_product30018NIP-15 product (stall_id, name, description, images, price, quantity, specs, shipping, categories). Relay publish only.
Common
ToolKindPurpose
marketplace_list_my_stalls—Fetch + parse your own NIP-15 stalls. Returns event id, created_at, d tag, parsed JSON.
marketplace_list_my_products—Same for NIP-15 products. Optional stall_id filter (client-side; relays don't index JSON content).
marketplace_confirm_publish—Two-step confirm dispatcher. Routes by tool name so Shopstr-modern publishes re-attach the cache-POST hook automatically.

Requirements

  • Node 20+
  • A NOSTR signer — strongly preferred: a NIP-46 bunker URI from Amber, nsec.app, or any NIP-46 implementation. Dev path: raw nsec in .env.
  • Relays your audience reads from. Sensible defaults in .env.example (relay.damus.io, nos.lol, relay.nostr.band, relay.primal.net).
  • For Shopstr-modern publishes: outbound HTTPS to shopstr.store (or your own Shopstr deployment).

Install

# From npm

npx -y marketplace-mcp

From source

git clone cd marketplace-mcp corepack enable pnpm pnpm install pnpm build

Configure

cp .env.example .env

edit .env: set NOSTR_NIP46_URI OR NOSTR_PRIVATE_KEY

set NOSTR_RELAYS (comma-separated wss://)

set SHOPSTR_CACHE_ENABLED=true (default) for shopstr.store visibility

The server auto-loads .env from this binary's own directory (next to dist/) — deliberately NOT from cwd, to avoid env-var collision when multiple MCP servers run in the same Claude Code session.

Required
VarPurpose
NOSTR_RELAYSComma-separated wss:// relays. Server refuses to start if empty.
Signer — provide AT MOST one (without a signer the server runs read-only)
VarPurpose
NOSTR_NIP46_URIbunker://... URI. Recommended. Pair with Amber (Android) or nsec.app (web).
NOSTR_PRIVATE_KEYRaw nsec1.... Dev/legacy only. Server warns at startup.
Shopstr cache mirror (new in v0.2)

shopstr.store reads from its own Postgres DB, not from open relays. After kind:30019/30402 events publish to relays, the server POSTs them to the configured cache URL so the storefront surfaces them. Failures are logged in the audit log but never roll back the relay publish (a Nostr event already broadcast can't be rolled back anyway).

VarDefaultPurpose
SHOPSTR_CACHE_ENABLEDunset (false) — set true in .env to enableControls whether the cache POST runs at all.
SHOPSTR_CACHE_URLhttps://shopstr.store/api/db/cache-eventOverride to mirror to a self-hosted Shopstr deployment.

The NIP-15 tools (kind:30017/30018) ignore these — those kinds aren't on Shopstr's cacheable allowlist anyway.

Optional safety knobs
VarDefaultPurpose
NOSTR_READ_ONLYfalseDisables all publish tools (list_my_* still work).
NOSTR_REQUIRE_CONFIRMfalseTwo-step confirm — create/update returns a token; marketplace_confirm_publish actually broadcasts.
NOSTR_MAX_EVENTS_PER_MINUTE10Rolling 60s rate limit on publishes.
NOSTR_LOG_PATH./marketplace-mcp.logServer log.
NOSTR_AUDIT_PATH./marketplace-mcp-audit.logAppend-only JSON-line audit log.

Quickstart: publish your first storefront on shopstr.store

1. agent: shopstr_create_or_update_shop({

name: "My Shop", about: "Hand-crafted MCP servers and other Lightning-priced goods.", picture: "https://example.com/avatar.png", banner: "https://example.com/banner.png" }) → returns { event_id, kind: 30019, relays_accepted: [...], after_publish: { shopstr_cache: { ok: true, status: 200 } } }

  1. agent: shopstr_create_or_update_product({ id: "some-product", name: "Some Product", summary: "Long-form description goes here. Becomes the event content.", price: 50000, currency: "sat", location: "online", shipping_option: "Free", shipping_cost: 0, images: ["https://example.com/card.jpg"], // REQUIRED — Shopstr drops cards with zero images categories: ["software", "lightning", "mcp"] }) → returns { event_id, kind: 30402, relays_accepted: [...], after_publish: { shopstr_cache: { ok: true, status: 200 } } }

Visit https://shopstr.store/marketplace/ to see your storefront. (If you've registered a Shopstr profile slug for your npub, the URL canonicalises to /marketplace/ .) Browsers buy through Shopstr's invoice-generation flow → sats land in the Lightning wallet linked to your Shopstr profile.

NIP-15 alternative (for non-Shopstr clients)

If you're targeting NIP-15-native clients instead of (or in addition to) Shopstr, the legacy tools still work:

agent: marketplace_create_or_update_stall({

id: "my-shop", name: "My Shop", shipping: [{ id: "digital", name: "Digital", cost: 0 }] }) agent: marketplace_create_or_update_product({ id: "p1", stall_id: "my-shop", name: "Some Product", price: 50000, currency: "sat", shipping: [{ id: "digital", cost: 0 }] })

You can publish both dialects for the same product to maximise client coverage; they don't collide.


Wire into an MCP client

{

"mcpServers": { "marketplace": { "command": "npx", "args": ["-y", "marketplace-mcp"], "env": {} } } }

Same .env-via-binary-dir pattern as the rest of the substrate — leave the env block empty in client config; secrets stay in marketplace-mcp/.env.


Safety model

The publish pipeline runs in this order, for both NIP-15 and Shopstr-modern tools:

  1. `NOSTR_READ_ONLY` gate.
  2. Signer presence — refuse if no signer.
  3. RateLimiter — rolling events bucket (NOSTR_MAX_EVENTS_PER_MINUTE).
  4. Confirm gate — if NOSTR_REQUIRE_CONFIRM=true, returns a token; marketplace_confirm_publish executes. The confirm dispatcher routes by tool name so Shopstr-modern publishes re-attach their cache-POST hook automatically.
  5. Sign + publish via NDK.
  6. `afterPublish` hook *(Shopstr-modern only)* — POST the signed event to SHOPSTR_CACHE_URL. Failures logged in audit (after_publish.shopstr_cache.{ok, status, error}) but never roll back the relay publish.
  7. Audit log entry.

KindAllowlist is omitted because the kinds (30017/30018/30019/30402) are hard-coded in the tool implementations — there's no agent-supplied kind to validate.

If you want stricter behavior, pair with nostr-ops-mcp and use its kind allowlist on the same npub — but most users find that overhead unnecessary for a single-purpose marketplace server.


Testing

pnpm typecheck

pnpm test # 19 vitest cases (NIP-15 builders/parsers + Shopstr-modern builders/parsers + roundtrips) pnpm build # ~37 KB ESM bundle


Companion servers

  • nwc-mcp — Lightning wallet. The "payment" side of selling.
  • nostr-ops-mcp — General NOSTR primitives. The marketplace MCP is the specialized cousin; nostr-ops-mcp is the generalist.
  • albyhub-admin-mcp — Hub-level admin via Alby Hub's HTTP API. The other half of the wallet story (NWC handles payments, this handles node/channel/sub-wallet ops).

License

MIT — see LICENSE.

Contact / Issues

Built by LLMOps.Pro.

ตัดมาแค่ช่วงต้น อ่านต่อใน repo

ถาม PopNx