dfmi x402 market
v0.1.1Shop the dfmi x402 agent market: find services, get quotes, free dUSD points, capped buying.
MCP server for the dfmi x402 agent market. Plug it into Claude, Cursor, Codex or any MCP client and the agent can browse services, get quotes, claim free dUSD points and buy — with hard spend limits enforced in code. Then ask: *"Find a market report on dfmi, check the price, and buy it."* dUSD is a points unit with no monetary value: claim it free from the faucet or buy it with a card on dfmi.app; it cannot be refunded or cashed out. Use a throwaway wallet only.
Summary extracted from the README.
dfmi-market-mcp
MCP server for the dfmi x402 agent market. Plug it into Claude, Cursor, Codex or any MCP client and the agent can browse services, get quotes, claim free dUSD points and buy — with hard spend limits enforced in code.
| Tool | What it does | Pays? |
|---|---|---|
dfmi_list_services |
Ranked catalog from bazaar.dfmi.app (price, score, unique buyers) | no |
dfmi_quote |
Ask any x402 endpoint for its price, without signing | no |
dfmi_wallet |
Buyer address, dUSD balance, limits left | no |
dfmi_create_wallet |
Create a throwaway buyer wallet in ~/.dfmi/ (0600) |
no |
dfmi_claim_faucet |
10 free dUSD, once per address | no |
dfmi_buy |
402 → EIP-3009 signature → paid retry → goods + settlement receipt | yes |
Install
Claude Code:
claude mcp add dfmi -- npx -y dfmi-market-mcp
Claude Desktop / Cursor (mcpServers):
{ "dfmi": { "command": "npx", "args": ["-y", "dfmi-market-mcp"] } }
Then ask: "Find a market report on dfmi, check the price, and buy it."
Limits (code, not prompt)
| Env | Default | Meaning |
|---|---|---|
DFMI_MAX_PRICE |
0.10 |
Max per purchase. The model may lower it per call, never raise it. |
DFMI_SESSION_BUDGET |
1.00 |
Total spend for one server run. |
DFMI_ALLOW_MAINNET |
off | Only dfmi dUSD points and Base Sepolia test USDC unless set to 1. |
DFMI_BUYER_PRIVATE_KEY |
— | Use your own throwaway key instead of ~/.dfmi/buyer-wallet.json. |
dUSD is a points unit with no monetary value: claim it free from the faucet or buy it with a card on dfmi.app; it cannot be refunded or cashed out. Use a throwaway wallet only.
Develop
npm install
npm test
Publish (operator)
- Move this folder into
dfmi-app/dfmi-appasmarket-mcp/(matchesserver.json→repository.subfolder). npm publish(package namedfmi-market-mcpwas free on 2026-10-15;mcpNamein package.json must matchserver.jsonname).- Publish to the official MCP Registry:
mcp-publisher login github(as thedfmi-apporg), thenmcp-publisher publish.