
x402-market
io.github.AsaiShotaPublished by GitHub account AsaiShotav0.2.0-alpha.1Updated Oct 24, 2026
Let AI agents pay-per-call for any HTTP API via x402 on Base mainnet. One tool: pay_and_call.
Overview
Lets an AI assistant pay per call in USDC via x402 on Base to invoke HTTP APIs listed in a marketplace, using a funded buyer wallet.
- What you can do
- Pay for and call HTTP APIs listed in the x402 marketplace, settling each call in USDC on Base.
- Read-only marketplace tools work without a wallet key, so listings can be browsed before paying.
- Enforce a per-call spending cap through MCP_MAX_PRICE, refusing calls priced above it.
- Point at Base mainnet or Base Sepolia testnet and a custom RPC or marketplace API endpoint.
- When to use it
- Useful when an assistant needs to call paid HTTP APIs that accept x402 payments on Base and you are willing to fund a dedicated buyer wallet. Not needed for free APIs or for browsing the marketplace without paying.
- Requirements
- Runs locally over stdio from the npm package, so Node.js is required. Needs a funded Base wallet private key in MCP_BUYER_PRIVATE_KEY for paid calls, plus a Base RPC endpoint (BASE_RPC_URL, public default) and network access. BASE_CHAIN_ID selects mainnet (8453, default) or Sepolia (84532); MARKET_API_URL sets the marketplace API base.
Installation
In SourceWeft
- Open x402-market in the dashboard and add it to a workspace.
- 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
This repository has no README.
Tools
0Version history
1- v0.2.0-alpha.1LatestSep 16, 2026
Score
25% 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
Declare a GitHub repository with a README, or serve resource_documentation in the OAuth protected-resource metadata.
- License10 pts
Declare a license in the repository or the registry entry.