
Obol
io.github.halfkeyPublished by GitHub account halfkeyv2.0.1Updated Oct 25, 2026
Solana agent gateway via x402. Wallet, token, DeFi, and swap tools. Pay per request.
Overview
A local MCP server that gives an assistant pay-per-request Solana data tools: wallet analytics, token prices, DeFi positions and swap quotes, paid in USDC via x
- What you can do
- Query Solana wallets: overview, portfolio, activity, risk assessment and P&L analysis, each billed per request in USDC over x402 payment protocol
- When to use it
- Useful when an assistant needs Solana wallet analytics, token prices, DeFi position data or swap quotes and the user is willing to pay small per-request USDC fees instead of managing API keys or subscriptions.
- Requirements
- Runs locally via npx from the npm package obol-mcp (Node.js). Needs the OBOL_URL environment variable pointing at an Obol API instance. Paid endpoints require a Solana wallet with USDC and the x402 payment flow; no accounts or API keys are used.
Installation
In SourceWeft
- Open Obol 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
obol
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.
How it works
- Agent requests data from a paid endpoint
- Obol returns HTTP 402 with a payment requirement (amount, recipient, network)
- Agent sends USDC on Solana matching the requirement
- Agent retries with transaction proof in the
X-PAYMENTheader - Obol verifies on-chain and returns the data
No accounts. No tokens. No onboarding. Just pay and go.
Endpoints
Wallet Analytics
Token Data
DeFi
Free
Agent Example
See examples/agent-client.ts for a full reference implementation. The key flow:
Run in discovery-only mode (no wallet needed):
MCP Server
Obol ships as an MCP server — any AI agent that supports the Model Context Protocol can discover and call Obol's tools natively.
Install from npm
Claude Desktop / Claude Code
Add to your MCP config:
Or if developing locally:
Available MCP Tools
Run locally
Stack
- Fastify 5 — high-performance HTTP
- @x402/svm — official x402 SDK for Solana
- Helius — RPC + DAS API
- Jupiter — token prices + swap execution
- Upstash Redis — cache + payment receipts
- TypeScript — full type safety
- Zod — runtime validation
Setup
Testing
Environment
See .env.example. Key variables:
PAYMENT_MODE—mock(dev, auto-approve) oronchain(production)PAYMENT_RECIPIENT_ADDRESS— your Solana wallet that receives USDCHELIUS_API_KEY— Helius RPC accessUPSTASH_REDIS_REST_URL/TOKEN— cache layer
Roadmap
- 11 paid endpoints (wallet, token, DeFi, LST, P&L)
- On-chain USDC verification with replay prevention
- Test suite (46 vitest + 20-point smoke test)
- Agent client reference implementation
- GitHub Actions CI
- WebSocket subscriptions for wallet monitoring
- Dynamic congestion-based pricing
- Multi-chain support
License
MIT
Source: README.md at commit 86297f1
Tools
0Version history
1- v2.0.1LatestSep 16, 2026
Score
50% 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