Getting Started
Bismuth gives your AI agent access to pay-per-use APIs — screenshots, PDF extraction, and crypto intelligence. One install, no API keys. Free test mode is available immediately; paid mode unlocks any URL with a USDC wallet on Base. No API key required — every call is a micropayment.
Quick Start — Free Mode
Section titled “Quick Start — Free Mode”-
Add the server to your MCP client
Add the following to your Claude Desktop config file.
macOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:%APPDATA%\Claude\claude_desktop_config.json{"mcpServers": {"x402": {"command": "npx","args": ["-y", "x402-mcp-server"]}}}Run this command in your terminal:
Terminal window claude mcp add x402 npx -y x402-mcp-serverAdd the following to
.cursor/mcp.jsonin your project (or the global Cursor MCP settings):{"mcpServers": {"x402": {"command": "npx","args": ["-y", "x402-mcp-server"]}}}Add the following to your Windsurf MCP settings:
{"mcpServers": {"x402": {"command": "npx","args": ["-y", "x402-mcp-server"]}}} -
Restart your MCP client
After adding the config, restart your MCP client completely. Claude Desktop requires a full quit and reopen. The x402 tools will appear in the tool list on the next launch.
-
Try your first API call
Ask your AI agent:
"Take a screenshot of example.com"In free mode, screenshots are limited to
example.com,example.org, andhttpbin.org. Thex402_network_infotool is also free and shows all available APIs with their current status.
Paid Mode
Section titled “Paid Mode”Paid mode unlocks any URL and the full suite of crypto intelligence tools. Calls cost $0.01–$0.10 USDC per request, settled on-chain via the x402 protocol.
-
Set up a wallet
You need a small amount of USDC on the Base network. See the Wallet Setup Guide for complete instructions — MetaMask install, adding Base, getting USDC, and exporting your private key.
Even $1 of USDC covers 100 screenshot calls.
-
Add your private key
Once you have a wallet, add your private key to the MCP config as an environment variable.
Update your
claude_desktop_config.jsonto include theenvblock:{"mcpServers": {"x402": {"command": "npx","args": ["-y", "x402-mcp-server"],"env": {"X402_PRIVATE_KEY": "0xYOUR_PRIVATE_KEY"}}}}Run this command to add the server with your private key:
Terminal window claude mcp add x402 --env X402_PRIVATE_KEY=0xYOUR_PRIVATE_KEY npx -y x402-mcp-serverUpdate
.cursor/mcp.jsonto include theenvblock:{"mcpServers": {"x402": {"command": "npx","args": ["-y", "x402-mcp-server"],"env": {"X402_PRIVATE_KEY": "0xYOUR_PRIVATE_KEY"}}}}Update your Windsurf MCP settings to include the
envblock:{"mcpServers": {"x402": {"command": "npx","args": ["-y", "x402-mcp-server"],"env": {"X402_PRIVATE_KEY": "0xYOUR_PRIVATE_KEY"}}}} -
Make a paid API call
Ask your AI agent:
"What's the crypto sentiment for BTC?"This calls
x402_sentimentat $0.01 USDC. The payment is handled automatically — your agent receives a sentiment score, confidence level, and sourced analysis in return.
Common Issues
Section titled “Common Issues”npx without -y
If your MCP client shows "unexpected token" errors or fails to start, check that your config uses npx -y x402-mcp-server, not just npx x402-mcp-server. The -y flag is required for MCP’s stdio transport.
@x402/fetch vs x402-fetch
The package name is x402-fetch (no scope). @x402/fetch is a placeholder stub that will not work. If you see import errors referencing @x402/fetch, update your dependency to x402-fetch.
Insufficient USDC
Paid tools require USDC on Base. Check your balance with a Base block explorer (basescan.org). Even $1 covers 100 screenshot API calls at $0.01 each.
Node version
x402-mcp-server requires Node 18+. Run node --version to check. If you’re on an older version, update via nodejs.org or use a version manager like nvm.
Server not appearing
After adding the config, restart your MCP client completely. Claude Desktop requires a full quit and reopen — not just closing the chat window.
Next Steps
Section titled “Next Steps”- API Reference — full documentation for all 6 tools with parameters, pricing, and examples
- Wallet Setup — detailed wallet configuration guide for crypto newcomers