x402 Seller

io.github.entreprisedaney33-rgbPublished by GitHub account entreprisedaney33-rgbv0.1.1Updated Oct 25, 2026

Pay-per-call MCP tools (crypto/DeFi data, web reading, AI tasks) in USDC over x402 on Base.

VerifiedSTDIODesktop onlyWeb Search & ScrapingFinance

Overview

AI-generated overview

An MCP server that exposes a remote x402 pay-per-call API (crypto/DeFi data, web reading, AI tasks) as tools, paying in USDC on Base or explaining the payment.

What you can do
Call paid endpoints of an x402-compatible origin as tools, generated at startup from its discovery document, one tool per endpoint (for example gas price or web reading). In explain-only mode, return a plain-language description of the 402 payment challenge (price, network, how to enable payment) instead of data. With a wallet configured, pay each call automatically in USDC on Base and return the real result plus a settlement receipt (payer address, transaction hash). Point the server at a different x402-compatible origin if needed.
When to use it
Use it when you want an assistant to reach a pay-per-call x402 API for crypto/DeFi data, on-chain reads, web reading or AI text tasks, and you are comfortable paying small per-call fees in USDC. Explain-only mode is a safe way to inspect the available endpoints and pricing first.
Requirements
Runs locally over stdio via npx (Node.js). Network access to the x402 origin. Optional BUYER_PRIVATE_KEY (EVM private key) to enable automatic payments; leave unset for explain-only mode. Optional X402_ORIGIN to choose which x402-compatible server to expose (defaults to the provider's hosted origin). A funded USDC balance on Base is needed for paid calls.
Before you install
Setting BUYER_PRIVATE_KEY puts a wallet private key in the environment; any process that can read it could use it, so use a throwaway wallet with only a few dollars of USDC on Base. Paid calls spend real money (about $0.005–$0.02 per call) and sign USDC transfers automatically. Tool calls send requests to the configured origin, a third party by default. Tool list and schemas come from the live origin at startup.

Installation

In SourceWeft

  1. Open x402 Seller in the dashboard and add it to a workspace.
  2. Enable the server for the chats that should use its tools.

Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.

Other MCP clients

Follow the launch instructions in the repository.

README

x402-seller-mcp

An MCP server that turns every paid endpoint of x402-seller — crypto prices, DeFi data, on-chain reads, web reading, Claude-powered text tasks — into a tool your agent (Claude Desktop, Cursor, or any MCP client) can call.

Tools are generated at startup from the server's own /.well-known/x402.json discovery document — not hand-listed — so the tool list always matches what's actually live on the origin.

Two modes

  • No wallet configured (default) — calling a tool fetches the endpoint, gets back the real 402 Payment Required challenge, and returns a plain-language explanation (price, network, how to enable payment) instead of the actual data. Safe to try with zero setup.
  • Wallet configured (BUYER_PRIVATE_KEY set) — calls are paid automatically over x402 (via @x402/fetch) and return the real result plus the settlement receipt (payer address, transaction hash).

Install

bash
npx x402-seller-mcp

That's the whole install — nothing to clone, build, or configure to try it in explain-only mode.

Claude Desktop

Add this to your claude_desktop_config.json (Settings → Developer → Edit Config):

json
{  "mcpServers": {    "x402-seller": {      "command": "npx",      "args": ["-y", "x402-seller-mcp"]    }  }}

To enable automatic payments, add an env block (see Enabling payments below):

json
{  "mcpServers": {    "x402-seller": {      "command": "npx",      "args": ["-y", "x402-seller-mcp"],      "env": {        "BUYER_PRIVATE_KEY": "0x..."      }    }  }}

Restart Claude Desktop after editing the config.

Cursor

Cursor uses the same mcpServers shape — add the same block to ~/.cursor/mcp.json (or your project's .cursor/mcp.json), then reload the MCP servers from Settings → MCP.

Enabling payments

⚠️ Use a throwaway wallet, never a wallet holding significant funds. The private key you set here can sign USDC transfers on Base up to whatever price each tool call costs (all endpoints on this server are priced at $0.005–$0.02 per call) — but any process with the key in its environment can, in principle, use it. Generate a fresh wallet dedicated to this MCP server and fund it with a few dollars of USDC on Base, nothing more.

  1. Generate a wallet (any EVM wallet works — e.g. with viem: node -e "const {generatePrivateKey,privateKeyToAccount}=require('viem/accounts');const k=generatePrivateKey();console.log(k, privateKeyToAccount(k).address)", or MetaMask/any wallet app export).
  2. Send a small amount of USDC on Base (the network this server settles on) to that wallet's address — a few dollars covers hundreds of calls at these prices.
  3. Set BUYER_PRIVATE_KEY to that wallet's private key (the 0x...-prefixed hex string) in your MCP client's config (see examples above) or in your shell environment if running the server directly.
  4. Restart the MCP server (or your MCP client). Tool calls will now pay automatically and return real results.

Configuration

Env varRequiredDefaultPurpose
BUYER_PRIVATE_KEYNo(unset)EVM private key used to pay for tool calls. Unset = explain-only mode.
X402_ORIGINNohttps://x402-seller-0ay3.onrender.comWhich x402 server to expose as tools — point this at a different x402-compatible server (or a local dev instance) if needed.

Tools

One tool per paid resource in the origin's discovery document, named <method>_<path> (e.g. get_api_gas_base, post_api_web_read). Run the server and call tools/list, or browse /.well-known/x402.json directly, for the current full list and per-tool input schemas — deliberately not duplicated here, since it would drift from the live origin.

Related

For a general-purpose agent that just wants a small set of everyday tools (fact verification, market data, gas price, quick AI tasks) instead of one tool per endpoint, see @dm2233/agent-data-mcp (npm) — it wraps this same 33-endpoint catalog as 5 grouped tools.

Development

bash
git clone https://github.com/entreprisedaney33-rgb/x402-seller.gitcd x402-seller/mcpnpm installnode server.js          # runs on stdio, waits for a client

test/manual-test.mjs is a standalone harness that spawns the server exactly like an MCP client would (via StdioClientTransport) and drives it with the official Client class — listTools(), then callTool() in both modes. Run it directly with node test/manual-test.mjs after npm install (it reads BUYER_PRIVATE_KEY from the parent repo's .env if present, to exercise the paid path too).

License

MIT

Source: mcp/README.md at commit 3754b3d

Tools

0
SourceWeft has not started this package in its sandbox yet, so its tools are not known.

Version history

1
  1. v0.1.1LatestSep 16, 2026

Score

40% of the applicable checks met

How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.

  • Reached in the last 30 days25 pts

    Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.

  • Auth declared10 pts

    Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.

  • Tools listed15 pts

    Answer tools/list without a credential, or ship a package that starts in a sandbox without one.

  • DescriptionRequired15 pts
  • Logo10 pts
  • Documentation15 pts
  • License10 pts

    Declare a license in the repository or the registry entry.