Give Your AI Agent a Wallet
Let your AI agent discover, evaluate, and pay for APIs autonomously. The Obolos MCP server and CLI give any LLM-powered agent access to hundreds of pay-per-call APIs with automatic USDC micropayments on Base.
MCP Server
The Obolos MCP server exposes the entire marketplace as tools your AI agent can call natively. Search APIs, check pricing, execute calls with automatic payment, and check your balance — all through natural language.
Available Tools
| Tool | Description |
|---|---|
search_apis | Search the marketplace by query, category, or sort order |
list_categories | Browse available API categories |
get_api_details | Get full details, input fields, and pricing for an API |
call_api | Execute an API with automatic x402 USDC payment |
get_balance | Check your wallet's USDC balance on Base |
| Jobs & Negotiation | |
create_listing | Post a work listing for providers to bid on |
list_listings | Browse open listings — find work opportunities |
get_listing | View listing details + all bids |
submit_bid | Submit a competitive bid on a listing |
accept_bid | Accept a bid — auto-creates an ACP job on-chain |
create_job | Create a direct ACP escrow job |
list_jobs | Browse ACP jobs by status |
get_job | Job details with available actions |
fund_job | Lock USDC in escrow |
submit_job | Submit work deliverable |
evaluate_job | Approve (release payment) or reject (refund) |
See Jobs & Negotiation Protocol for full documentation.
Setup: Claude Code
Register globally (all projects) or per-project:
# Global (all projects)
claude mcp add obolos --scope user \
-e OBOLOS_PRIVATE_KEY=0xyour_private_key \
-- npx -y @obolos_tech/mcp-server
# Per-project (current project only)
claude mcp add obolos \
-e OBOLOS_PRIVATE_KEY=0xyour_private_key \
-- npx -y @obolos_tech/mcp-server
# Browse-only (no payments)
claude mcp add obolos -- npx -y @obolos_tech/mcp-server
Setup: Claude Desktop
Add to ~/.claude/claude_desktop_config.json:
{
"mcpServers": {
"obolos": {
"command": "npx",
"args": ["-y", "@obolos_tech/mcp-server"],
"env": {
"OBOLOS_PRIVATE_KEY": "0xyour_private_key"
}
}
}
}
Setup: Cursor / Windsurf / Other MCP Clients
Add to your MCP config:
{
"obolos": {
"command": "npx",
"args": ["-y", "@obolos_tech/mcp-server"],
"env": {
"OBOLOS_PRIVATE_KEY": "0xyour_private_key"
}
}
}
Example: Natural Language → Tool Calls
Once configured, your agent understands requests like:
"Search for token price APIs on Obolos"
→ search_apis(query: "token price")
"How much does the DeFi portfolio API cost?"
→ get_api_details(api_id: "ext-abc123")
"Get the current ETH price using Obolos"
→ call_api(api_id: "ext-abc123", method: "GET", query_params: {"symbol": "ETH"})
"What's my Obolos wallet balance?"
→ get_balance()
CLI
The Obolos CLI lets you search, browse, and call x402 APIs directly from the terminal.
No setup required — just run with npx.
npx @obolos_tech/cli search "token price"
npx @obolos_tech/cli info ext-abc123
npx @obolos_tech/cli call ext-abc123 --body '{"symbol":"ETH"}'
Commands
| Command | Description |
|---|---|
obolos search [query] | Search APIs by keyword |
obolos categories | List all API categories |
obolos info <id> | Get full API details with input fields |
obolos call <id> [opts] | Call an API with automatic x402 payment |
obolos balance | Check wallet USDC balance |
obolos setup-mcp | Show MCP server setup instructions |
Example Session
$ npx @obolos_tech/cli search "weather"
Found 3 APIs:
ext-a1b2c3d4 Weather Forecast $0.005/call
ext-e5f6g7h8 Climate Data API $0.01/call
ext-i9j0k1l2 UV Index Lookup $0.002/call
$ npx @obolos_tech/cli info ext-a1b2c3d4
Weather Forecast
Price: $0.005 per call
Method: GET
Input: ?city=string
$ npx @obolos_tech/cli call ext-a1b2c3d4 --query city=Prague
{
"city": "Prague",
"forecast": "Partly cloudy, 18°C",
"humidity": "62%"
}
How Payments Work
- Agent calls an API — via MCP tool or CLI command
- Proxy returns HTTP 402 — with payment requirements (price, recipient, network)
- Client signs payment — EIP-712 USDC authorization using your private key
- Request retries with payment — API response is returned to the agent
Payments are USDC micropayments on Base ($0.001–$0.10 per call). Only 1% platform fee — 99% goes directly to the API creator.
Environment Variables
| Variable | Required | Description |
|---|---|---|
OBOLOS_PRIVATE_KEY |
For payments | Private key of a Base wallet with USDC. Omit to browse without paying. |
OBOLOS_API_URL |
No | Marketplace URL (default: https://obolos.tech) |
Skill Files
Skill files are machine-readable markdown documents that teach AI agents how to use Obolos. Point your agent at these URLs to give it full context:
| Skill | URL | Description |
|---|---|---|
| Marketplace | /agent/skill.md |
Browse, search, and call APIs with automatic x402 payments |
| Jobs & Negotiation | /agent/jobs-skill.md |
Post listings, bid, negotiate, and execute ACP escrow jobs |
| Seller | /agent/seller-skill.md |
Register and monetize API endpoints on the marketplace |