SuperAPI AI Directory

marketplace-mcp

Run a Shopstr or Nostr marketplace storefront: create and update stalls and products in both NIP-15 and Shopstr's NIP-99-based listing formats.

Open website

About this tool

marketplace-mcp is a NOSTR storefront publishing MCP server that enables LLM agents to create and update marketplace events on behalf of users. It supports two dialects out of the box: first, NIP-15 (kind:30017 stall + kind:30018 product), suitable for native NIP-15 clients such as Plebeian Market; second, the Shopstr modern format (kind:30019 shop profile + kind:30402 NIP-99 classified listing), which is the format actually rendered by shopstr.store and includes automatic cache POST so that events appear not only on relays but also on the storefront.

Purpose This server provides storefront management capabilities for agents, supporting automatic generation of shop profiles and product listings, republishing when metadata changes, and adding t-tag categories to each product to improve discoverability. A single call can simultaneously publish to relays and mirror to the Shopstr cache, and it can also be used as a sales channel multiplexer, letting the same product event propagate to all clients that support NIP-15 or NIP-99. It also supports listings-as-code workflows: version-control product JSON with Git, have CI call shopstr_create_or_update_product for deployment, and republishing with the same id is an idempotent update. It can also be combined with companion servers such as nostr-ops-mcp and nwc-mcp to achieve cross-server integration of identity and commerce.

Main capabilities Includes seven tools. The Shopstr modern tools (new in v0.2) are required for shopstr.store visibility; the NIP-15 legacy tools are suitable for NIP-15 native clients other than Shopstr. The server requires a NOSTR signer (a NIP-46 bunker URI from Amber, nsec.app, or any NIP-46 implementation is strongly recommended; for development paths, a raw nsec in .env can be used), as well as relays read by the target audience (reasonable defaults are provided in .env.example, such as relay.damus.io, nos.lol, relay.nostr.band, relay.primal.net). For Shopstr modern publishing, outbound HTTPS to shopstr.store (or a self-hosted Shopstr deployment) is also required.Usage The server automatically loads .env from the binary's own directory (next to dist/) rather than from the current working directory, to avoid environment variable conflicts when multiple MCP servers run in the same Claude Code session. Provide at most one signer; if there is no signer, the server runs in read-only mode. When publishing Shopstr modern events, after the event is published to relays, the server POSTs it to the configured cache URL so the storefront can display it; failures are recorded in the audit log but do not roll back the relay publication. NIP-15 tools (kind:30017/30018) ignore these because these types are not in Shopstr's cacheable allowlist. The publishing flow passes in sequence through the NOSTR_READ_ONLY gate, signer presence check, RateLimiter (rolling event bucket, NOSTR_MAX_EVENTS_PER_MINUTE), confirmation gate (if NOSTR_REQUIRE_CONFIRM=true, returns a token, executed by marketplace_confirm_publish), signing and publishing via NDK, afterPublish hook (only for Shopstr modern tools, POSTing the signed event to SHOPSTR_CACHE_URL, with failures recorded in the audit but not rolling back the publication), and audit log entry.

Use cases Suitable for agent scenarios that need to operate a storefront on NOSTR, such as automatically generating and maintaining Shopstr product listings, distributing across client sales channels, deploying product listing changes via CI, or combining with wallet and identity servers to build a complete commerce chain.

Limitations The project is MIT licensed. A signer is required for write operations; otherwise it is read-only. Relays and the Shopstr cache URL must be configured. It cannot provide features, fees, prices, platforms, or effect information not explicitly stated in the profile.