About dfmi x402 market
dfmi x402 market is an MCP server for browsing and purchasing services in the dfmi x402 agent market. It lets agents inspect listings and quotes, claim dUSD points, and buy services under code-enforced spending limits.
Key features
- 01Browse ranked service listings
- 02Request prices without signing
- 03View wallet balance and limits
- 04Create a throwaway buyer wallet
- 05Claim free dUSD points
- 06Purchase with capped spending
Use cases
- 01Compare listed services and prices
- 02Check an endpoint price before buying
- 03Claim dUSD points for a purchase
- 04Buy a service within configured limits
MCP support
The server exposes market browsing, quoting, wallet, faucet, and purchase tools to MCP clients such as Claude, Cursor, and Codex.
Configuration
Local server config is the same for every client. Copy it into your client’s MCP config file.
npx -y dfmi-market-mcpDFMI_BUYER_PRIVATE_KEYSecretOptional throwaway buyer key. If unset, dfmi_create_wallet makes one in ~/.dfmi.DFMI_MAX_PRICEHard cap per purchase (default 0.10).DFMI_SESSION_BUDGETTotal spend cap per server run (default 1.00).DFMI_ALLOW_MAINNETSet to 1 to allow mainnet payments. Off by default.Local servers need a runtime on your machine (e.g. Node.js 18+). Config file locations differ by client; see your client’s docs.
Tools
6Saved tool list · updated 2w ago
| Parameter | Type | Required | Description |
|---|---|---|---|
| query | string | No | Optional keyword filter, e.g. "report" or "summarize" |
Details
From the project READMEdfmi-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.
Comments
New to MCP?
From what the protocol is to installing your first server, these answers cover most first questions.
An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.