Solana agent gateway via x402. Wallet, token, DeFi, and swap tools. Pay per request.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
Pay the ferryman. Solana agent gateway via x402.
Obol is a pay-per-use Solana API for AI agents. No API keys, no subscriptions β agents pay per request in USDC using the x402 payment protocol. Solana's sub-cent transaction costs make micropayments viable for the first time.
Named after the coin placed on the tongue of the dead to pay Charon for passage across the River Styx. The original micropayment.
X-PAYMENT headerNo accounts. No tokens. No onboarding. Just pay and go.
| Endpoint | Price | Description |
|---|---|---|
GET /api/v1/wallet/:addr/overview | $0.01 | SOL balance, token count, total value |
GET /api/v1/wallet/:addr/portfolio | $0.05 | Full holdings with prices, NFTs, breakdown |
GET /api/v1/wallet/:addr/activity | $0.05 | Transaction history with categorization |
GET /api/v1/wallet/:addr/risk | $0.10 | Multi-factor risk assessment |
GET /api/v1/wallet/:addr/pnl | $0.15 | Token flow analysis, current values, P&L |
| Endpoint | Price | Description |
|---|---|---|
GET /api/v1/token/:mint/price | $0.005 | Real-time price via Jupiter |
GET /api/v1/token/:mint/metadata | $0.01 | Name, symbol, supply, decimals |
| Endpoint | Price | Description |
|---|---|---|
GET /api/v1/defi/swap/quote | $0.005 | Jupiter swap quote with route planning |
POST /api/v1/defi/swap/execute | $0.25 | Jupiter swap transaction builder |
GET /api/v1/defi/positions/:addr | $0.10 | DeFi positions β LSTs, LPs, lending |
GET /api/v1/defi/lst/yields | $0.02 | LST yield comparison across Solana |
| Endpoint | Description |
|---|---|
GET / | API info and pricing |
GET /health | Service status |
POST /api/v1/rpc | Proxied Helius RPC (allowlisted methods) |
See examples/agent-client.ts for a full reference implementation. The key flow:
Run in discovery-only mode (no wallet needed):
Obol ships as an MCP server β any AI agent that supports the Model Context Protocol can discover and call Obol's tools natively.
Add to your MCP config:
Or if developing locally:
| Tool | Description |
|---|---|
obol_wallet_overview | SOL balance, token count, total value |
obol_wallet_portfolio | Full holdings with prices and breakdown |
obol_wallet_activity | Transaction history with categorization |
obol_wallet_risk | Multi-factor risk assessment |
obol_wallet_pnl | Token flow analysis and P&L |
obol_token_price | Real-time price via Jupiter |
obol_token_metadata | Name, symbol, supply, decimals |
obol_swap_quote | Jupiter swap quote with routing |
obol_swap_execute | Build swap transaction for signing |
obol_defi_positions | LSTs, LPs, lending positions |
obol_lst_yields | LST yield comparison |
obol_health | API health check (free) |
obol_info | Endpoint pricing and info (free) |
See .env.example. Key variables:
PAYMENT_MODE β mock (dev, auto-approve) or onchain (production)PAYMENT_RECIPIENT_ADDRESS β your Solana wallet that receives USDCHELIUS_API_KEY β Helius RPC accessUPSTASH_REDIS_REST_URL / TOKEN β cache layerMIT
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/obol)<a href="https://allmcps.com/mcp/obol"><img src="https://allmcps.com/api/badge/obol?style=directory" alt="Obol on AllMCPs" /></a>