Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add nirholas/x402-mcp-commerce --skill x402-commerce-toolsgit clone --depth 1 https://github.com/nirholas/x402-mcp-commerceWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/nirholas/x402-mcp-commerce/x402-commerce-tools)<a href="https://agentmods.dev/skills/nirholas/x402-mcp-commerce/x402-commerce-tools"><img src="https://agentmods.dev/badge/skills/nirholas/x402-mcp-commerce/x402-commerce-tools/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/nirholas/x402-mcp-commerce/x402-commerce-tools"><img src="https://agentmods.dev/badge/skills/nirholas/x402-mcp-commerce/x402-commerce-tools.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00064 | $0.01152 |
| Opus 5.5 | $0.00026 | $0.00461 |
| Sonnet 5.5 | $0.00013 | $0.00230 |
| Haiku 4.5 | $0.00006 | $0.00115 |
Grade A, and why
x402-commerce-tools scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured today.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 61 lines — stays where its author put it; the contents beside it link to each section on GitHub.
x402-mcp-commerce
An MCP server (stdio) that turns x402 merchant routes into tools. Calling a tool pays the upstream merchant in USDC over HTTP 402 and returns the merchant's artifact plus the payment receipt. Keys and spending caps live in the server environment, so the model never sees a key.
Launch
The plugin's .mcp.json runs npx -y @nirholas/x402-mcp-commerce (bin x402-mcp-commerce, entry dist/mcp.js). From a clone instead: npm install && npm run mcp.
Export these in the shell you start Claude Code from. The server inherits that environment, and the plugin's .mcp.json deliberately lists no keys, so no key is ever written to a config file:
SOLANA_PRIVATE_KEY: base58 or JSON-array secret key, enables the USDC-on-Solana rail. Without it, Solana payments fail withSOLANA_PAYMENT_FAILED.PRIVATE_KEY: EVM key, enables the USDC-on-Base rail. Without it, calls on that rail fail withNO_WALLET.- Optional:
SOLANA_RPC_URL,SOLANA_DEVNET_RPC_URL,X402_TIMEOUT_MS(default 20000).
Use throwaway, low-balance wallets. Every payment is real USDC on the configured network.
Upstreams
config/tools.json ships with baseUrls of the form http://localhost:40NN. Point each at a live deployment with X402_UPSTREAM_<UPSTREAM> (upper-snake-case, for example X402_UPSTREAM_X402_TABLEBOOK=https://...), or use another registry file with X402_TOOLS_CONFIG=/path/to/tools.json. The repo also ships config/tools.sandbox.json for rehearsal against x402-agent-sandbox.
Tools
Free built-ins (no payment):
list_commerce_tools: every tool with upstream, route, price, rail and which rails you hold keys for.spending_report: caps, spend so far, remaining budget, full payment ledger.discover_servicewith{baseUrl}: reads any service's/.well-known/x402manifest.
Paid commerce tools (price is the registry hint; the upstream 402 is authoritative): search_flights ($0.005), price_flight ($0.003), find_tables ($0.001), book_table ($0.01), search_hotels ($0.005), check_weather ($0.001), browse_catalog (free), buy_item (per item), search_places ($0.002), search_news ($0.003), check_domain ($0.001), track_confirmation ($0.005). Call list_commerce_tools for the exact input fields of each.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- today First seen · 61 lines · 64 tokens per session scan A a332ff9794f6
x402-commerce-tools is a skill published in the GitHub repository nirholas/x402-mcp-commerce (8 stars, last pushed today), licensed Apache-2.0. It adds 64 tokens to every session and 1,152 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-11.
x402-commerce-tools compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| x402-commerce-toolsnirholas/x402-mcp-commerce | Skill | 8 | today | Apache-2.0 | A | 64 | Claude Code |
| scvd-personal-shopperseancrecord/scvd-general-store-repo | Skill | 3 | yesterday | MIT | A | 73 | Claude Code |
| corbits-marketplacemoonpay/skills | Skill | 112 | 22d ago | MIT | A | 76 | Claude Code, Codex |
| agoragentic-transaction-assurancerhein1/agoragentic-integrations | Skill | 41 | 21d ago | MIT | A | 65 | Cursor |
| agoragentic-assurerhein1/agoragentic-integrations | Skill | 41 | 21d ago | MIT | A | 50 | Cursor |
| scvd-general-storeseancrecord/scvd-general-store-repo | Skill | 3 | yesterday | MIT | A | 79 | Claude Code |
| agoragentic-sellrhein1/agoragentic-integrations | Skill | 41 | 21d ago | MIT | A | 44 | Cursor |