Skip to main content
Glama
Nagora MCP server
by m-flex

Nagora MCP server

The official MCP server for nagora.shop, the P2P marketplace where everything settles in Nano (XNO).

It gives any MCP client (Claude Desktop, Claude Code, or your own agent runtime) tools to search listings, place escrow-protected purchases, track orders, and pull signed receipts. Your AI assistant can shop for you, and escrow protects you while it does: funds are held in a per-order Nano account and only released to the seller after delivery is confirmed.

Tools

Tool

Auth

What it does

search_listings

none

Full-text search over active listings

get_listing

none

Full listing detail: variants, delivery options, Nano pricing

register_agent

none

Create an agent + API key in one call, no account needed; key is stored locally

whoami

API key

Verify the key; see spending caps and webhook secret

create_purchase

API key

Place an order; returns the escrow deposit address and amount

get_order

API key

Poll order and escrow status, tracking, receipt ID

confirm_delivery

API key

Confirm arrival and release escrow to the seller

cancel_order

API key

Cancel an order that has not been funded yet

get_receipt

API key

Fetch the KMS-signed receipt with the on-chain payout block

Related MCP server: InventPay MCP Server

Setup

Zero-install alternative: Nagora also hosts these same tools as a remote MCP server. claude mcp add --transport http nagora https://api.nagora.shop/mcp and you are done. The trade-off: the hosted server cannot store your key locally, so register_agent returns it once and you pass it as the apiKey tool argument or pin it with --header "Authorization: Bearer nag_agt_...". This local package keeps the key in ~/.nagora/credentials.json for you instead.

Claude Code

claude mcp add nagora -- npx -y @nagora/mcp

Claude Desktop

In claude_desktop_config.json:

{
  "mcpServers": {
    "nagora": {
      "command": "npx",
      "args": ["-y", "@nagora/mcp"]
    }
  }
}

From source (instead of npx)

cd nagora-mcp
npm install
npm run build
claude mcp add nagora -- node /path/to/nagora-mcp/dist/index.js

Let the agent register itself

That's the whole setup. No Nagora account, no key to copy. The first time your assistant needs to buy something, it calls register_agent with a name and a refund Nano address; the API key comes back once and is saved to ~/.nagora/credentials.json (mode 600). Every other tool picks it up automatically from then on.

Self-registered keys get conservative default spending caps (currently 25 XNO per transaction, 100 XNO per day), enforced server-side. Want higher caps, multiple keys, or a dashboard? Create an account at nagora.shop and manage agents under Settings → Agents; keys minted there work the same way via NAGORA_API_KEY.

Configuration

Variable

Default

Notes

NAGORA_API_KEY

unset

Optional. Overrides the stored credential from register_agent

NAGORA_API_URL

https://api.nagora.shop

Point at http://localhost:5004 for local dev

How a purchase flows

  1. search_listings / get_listing: find the item, note the Nano total.

  2. create_purchase: places the order. The response contains a depositAddress (a per-order escrow account on the Nano network) and amountNano.

  3. Fund the escrow: send exactly amountNano to depositAddress from the agent's own Nano wallet. This server deliberately holds no keys and moves no funds; pair it with a wallet tool such as xno-mcp, or fund it manually. Nano transfers are feeless and settle in under a second.

  4. The order moves to AwaitingShipment automatically when funds land. The seller ships and adds tracking.

  5. get_order (or webhooks, see below) to watch for Shipped.

  6. confirm_delivery once the goods arrive: escrow releases the funds to the seller on-chain.

  7. get_receipt: a signed, independently verifiable proof of the whole transaction, including the payout block hash.

If the seller never ships, the escrow auto-cancel timer refunds the buyer. If something is wrong with the order, open a dispute from the website; a human reviews it.

Webhooks (optional)

Instead of polling get_order, register a callbackUrl on your agent (Settings → Agents). Nagora signs every webhook with HMAC-SHA256: compute HMAC-SHA256("{X-Nagora-Timestamp}.{raw_body}", webhookSecret) and compare it against X-Nagora-Signature: sha256=<hex>. The webhookSecret comes from whoami.

Events: order.funded, order.shipped, and friends fire as the order progresses.

Safety model

  • The server is stateless and keyless: it cannot spend Nano, only request orders that you then fund (or don't).

  • Spending caps are enforced server-side per API key; a runaway agent hits a 429, not your wallet.

  • Escrow means an agent mistake is recoverable: unfunded orders can be cancelled, funded orders are protected until you confirm delivery.

  • Revoke a key at any time from Settings → Agents; revocation takes effect within 60 seconds.

Available Tools

9 tools
cancel_orderCancel an unfunded orderAInspect

Cancels an order whose escrow is still Initiated (no on-chain funds sent yet). Restores listing stock. Cannot cancel once escrow is Funded; use the dispute or refund flow on the website instead.

Inputs: orderId (required).

confirm_deliveryConfirm delivery and release escrowAInspect

Confirms the goods or digital content arrived and releases the escrowed funds to the seller. Requires the order's escrowStatus to be Shipped. Call promptly once delivery is verified: the seller is waiting on this to get paid. If never called, an auto-finalise timer releases funds after the configured window.

Inputs: orderId (required).

create_purchaseCreate an escrow-protected purchaseAInspect

Places an order against a listing. Returns a depositAddress (per-order escrow Nano account) and amountNano. IMPORTANT: the order is not funded by this call. Send exactly amountNano to depositAddress from the agent's Nano wallet to fund escrow. Once funds are detected the order moves to AwaitingShipment automatically. Funds are held in escrow until confirm_delivery, so the buyer is protected if the item never arrives. Physical listings require a shippingAddress.

Inputs: listingId (required), quantity, variantId, quotedTotalNano, +2 more.

get_listingGet listing detailAInspect

Fetch a single listing by ID. No API key required. Returns full detail including variants, delivery options, and pricing. Use the returned Nano total as quotedTotalNano when purchasing to guard against exchange-rate drift.

Inputs: listingId (required).

get_orderGet order and escrow statusAInspect

Polls an order placed by this agent. Returns orderStatus, escrowStatus, funding timestamps, tracking info, and the receipt ID once available. Poll after funding the deposit address, and after the seller ships, before calling confirm_delivery.

Inputs: orderId (required).

get_receiptGet the signed receiptAInspect

Returns the cryptographically signed receipt for a completed order, including the seller's Nano address, the on-chain payout block hash, and Nagora's KMS signature. Available only after escrow is Released; returns an error while the order is still in progress.

Inputs: orderId (required).

register_agentRegister a new agent (no account needed)AInspect

Creates a Nagora agent and mints its API key in one call. No Nagora account or signup required. The key is saved to ~/.nagora/credentials.json and used automatically by all other tools from now on. Requires a name and a nano_ address (your wallet; refunds are routed there if an order is cancelled). Self-registered keys carry conservative default spending caps, returned in the result. Skip this tool if a key is already configured; check with whoami.

Inputs: name (required), nanoAddress (required), callbackUrl, homepageUrl, +1 more.

search_listingsSearch Nagora listingsAInspect

Full-text search over active listings on nagora.shop. No API key required. Prices are in the listing's display currency with a Nano (XNO) equivalent. Returns an items array and total count. Use get_listing for full detail before purchasing.

Inputs: q, count, sortBy, maxPrice, +3 more.

whoamiIntrospect the authenticated agentAInspect

Verifies the configured API key and returns the agent's identity, per-transaction and per-day spending caps, callback URL, and webhook secret. Call this first to confirm the key works.

Inputs: no named parameters.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.4/5.0

    Scored across 9 tools

    Disambiguation5/5

    Each tool has a clearly distinct purpose: listing search/detail, agent registration/auth, purchase creation, order status, cancellation, delivery confirmation, and receipt retrieval are all well-separated. There is little risk of selecting the wrong tool for a given action.

    Naming Consistency4/5

    Most tools follow a consistent verb_noun snake_case pattern such as get_order, cancel_order, search_listings, and create_purchase. The only outlier is whoami, which is a familiar standalone command but does break the pattern slightly.

    Tool Count5/5

    Nine tools is well-scoped for a marketplace agent server. Each tool covers a necessary part of the buyer/escrow workflow and none feel redundant or extraneous.

    Completeness4/5

    The set covers the full purchasing lifecycle: register, authenticate, search, view listing, place order, poll status, cancel, confirm delivery, and retrieve receipt. Minor gaps exist such as no list_orders or in-MCP dispute/refund handling, but those are partially external or non-essential for the core flow.

    Maintenance

    ActivityStale
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers