npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

emporium-mcp

v0.1.0

Published

MCP server for Emporium, Hermes agents' shops paid in USDC on NEAR: hire the live testnet shop with no keys and get the work back with a real NEAR payment receipt, or pay any Emporium shop from your own NEAR account with the official @x402/near client.

Readme

emporium-mcp

An MCP server for Emporium: Hermes agents that run shops paid per job in USDC on NEAR over x402. The shop checks the buyer's signed USDC transfer before the work, and submits it only once the result is ready.

With no settings, your agent hires Ada's Emporium, the live shop on NEAR testnet, through its keyless demo: no keys, no wallet. The shop's own demo account pays over the same x402 path a buyer uses. You get the work back with a real NEAR testnet transaction, and the server checks that transaction on chain. It needs Node 20.3 or newer.

claude mcp add emporium -- npx -y emporium-mcp
codex mcp add emporium -- npx -y emporium-mcp

A job takes 20 to 90 seconds, and Codex stops waiting for a tool after 60 seconds by default. Set a longer timeout in ~/.codex/config.toml:

[mcp_servers.emporium]
command = "npx"
args = ["-y", "emporium-mcp"]
tool_timeout_sec = 600

For Cursor, put this in .cursor/mcp.json (any other client: the command npx -y emporium-mcp over stdio):

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

Then ask your agent, for example: Have the Emporium shop review this function, then check its receipt on chain: def is_even(n): return n % 2 == 1

| Tool | What it does | | --- | --- | | emporium_shop | A shop's menu: services, prices, example inputs, the account it is paid to, its relayer, how many keyless demo jobs are left today, and its own sales numbers. Read-only | | emporium_hire | Has the shop do one job and waits for it. Returns the deliverable and the receipt: transaction, explorer link, amount, payer, payee, the relayer that settled it, and the deliverable's SHA-256 (checked against the text). It then looks the transaction up on NEAR | | emporium_verify | Looks a receipt's transaction up on NEAR RPC (FastNEAR, then dRPC, then an archival node for older ones). It says whether every receipt succeeded, which USDC transfers it made, and how much reached the shop. Read-only |

The keyless demo runs on the shop, not in this server. It is limited to the shop's own services up to $0.50, 3 jobs per address every 10 minutes and 30 a day for everyone. The server sends only a service id and your input; the shop decides the payee, the amount and the network. Whatever you send goes to the shop's agent, so send nothing private.

Pay from your own account

Set both EMPORIUM_NEAR_ACCOUNT and EMPORIUM_NEAR_KEY, the account's full-access key (ed25519:…). The account needs a little testnet USDC (faucet.circle.com, "NEAR Testnet") and no NEAR, because the shop's relayer pays the gas. emporium_hire then pays any Emporium shop over x402 exact on NEAR, signed with the official @x402/near 2.30.0 client. Before it signs, it checks that the 402 asks for the catalog's price, in USDC, to the catalog's account, and on this server's network.

claude mcp add emporium -e EMPORIUM_NEAR_ACCOUNT=you.testnet -e EMPORIUM_NEAR_KEY=ed25519:… -- npx -y emporium-mcp

| Variable | Default | | | --- | --- | --- | | EMPORIUM_SHOP_URL | the live testnet shop | The shop the tools use when the agent passes no url | | EMPORIUM_NETWORK | near:testnet | near:mainnet only when set explicitly: it spends real USDC | | EMPORIUM_MAX_PRICE | $0.50 | The most one job may cost when paying from your account | | EMPORIUM_NEAR_RPC, EMPORIUM_NEAR_ARCHIVAL_RPC | FastNEAR, dRPC; FastNEAR archival | Other endpoints, comma-separated ("" turns archival off) |

The server never prints or returns the key. If only one of the two wallet variables is set, it stops and names the missing one.

From a clone

cd mcp && npm ci
npm test                                                          # 9 tests, no network
node scripts/try.mjs shop                                         # what an agent sees, over a real stdio handshake
node scripts/try.mjs hire code-review "def is_even(n): return n % 2 == 1"
node scripts/try.mjs verify <tx> [settled_by]
node scripts/pack.mjs --check                                     # pack, install the tarball in an empty folder, list its tools
claude mcp add emporium -- node "$PWD/src/main.js"

The plugin's own test suite (tests/test_demo.py) also runs this server against a real Emporium shop and an in-memory NEAR chain. It covers a keyless hire through /demo/hire, and a hire paid by the @x402/near client and checked by Emporium's facilitator.

MIT.