obol
Provides pay-per-use Solana APIs for AI agents, including wallet analytics, token prices, DeFi positions, swap quotes and execution, and LST yields, with payments in USDC via the x402 protocol.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@obolWhat's the current price of SOL?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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-PAYMENTheaderObol verifies on-chain and returns the data
No accounts. No tokens. No onboarding. Just pay and go.
Related MCP server: AgentWallet MCP Server
Endpoints
Wallet Analytics
Endpoint | Price | Description |
| $0.01 | SOL balance, token count, total value |
| $0.05 | Full holdings with prices, NFTs, breakdown |
| $0.05 | Transaction history with categorization |
| $0.10 | Multi-factor risk assessment |
| $0.15 | Token flow analysis, current values, P&L |
Token Data
Endpoint | Price | Description |
| $0.005 | Real-time price via Jupiter |
| $0.01 | Name, symbol, supply, decimals |
DeFi
Endpoint | Price | Description |
| $0.005 | Jupiter swap quote with route planning |
| $0.25 | Jupiter swap transaction builder |
| $0.10 | DeFi positions — LSTs, LPs, lending |
| $0.02 | LST yield comparison across Solana |
Free
Endpoint | Description |
| API info and pricing |
| Service status |
| Proxied Helius RPC (allowlisted methods) |
Agent Example
See examples/agent-client.ts for a full reference implementation. The key flow:
import { ObolAgent } from './examples/agent-client';
const agent = new ObolAgent();
await agent.discover(); // fetch pricing
agent.loadWallet(process.env.AGENT_PRIVATE_KEY);
// Auto-discovers price, pays, and returns data
const price = await agent.fetch('/api/v1/token/USDC_MINT/price');Run in discovery-only mode (no wallet needed):
npx tsx examples/agent-client.tsMCP 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
npm install -g obol-mcpClaude Desktop / Claude Code
Add to your MCP config:
{
"mcpServers": {
"obol": {
"command": "npx",
"args": ["-y", "obol-mcp"],
"env": {
"OBOL_URL": "https://obol-production.up.railway.app"
}
}
}
}Or if developing locally:
{
"mcpServers": {
"obol": {
"command": "npx",
"args": ["tsx", "/path/to/obol/src/mcp.ts"],
"env": {
"OBOL_URL": "http://localhost:3000"
}
}
}
}Available MCP Tools
Tool | Description |
| SOL balance, token count, total value |
| Full holdings with prices and breakdown |
| Transaction history with categorization |
| Multi-factor risk assessment |
| Token flow analysis and P&L |
| Real-time price via Jupiter |
| Name, symbol, supply, decimals |
| Jupiter swap quote with routing |
| Build swap transaction for signing |
| LSTs, LPs, lending positions |
| LST yield comparison |
| API health check (free) |
| Endpoint pricing and info (free) |
Run locally
npm run mcpStack
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
git clone https://github.com/halfkey/obol.git
cd obol
npm install
cp .env.example .env
# Edit .env with your Helius key and merchant wallet address
npm run devTesting
# Unit + integration tests (46 tests)
npm test -- --run
# Smoke test against live deployment
npx tsx scripts/smoke-test.ts https://obol-production.up.railway.app
# Manual payment test
npx tsx scripts/test-payment.ts <tx-signature>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
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to interact with the x402 payment protocol on Solana, allowing discovery and consumption of x402-enabled services, USDC payment management, and access to Solana development resources.10MIT
- AlicenseAqualityDmaintenanceProvides permissionless wallet infrastructure for AI agents to manage wallets, sign transactions, and handle tokens across Solana and all EVM-compatible chains. It includes 29 specialized tools for on-chain operations, featuring built-in security guards and automated x402 payment processing without KYC requirements.293343MIT
- AlicenseNot gradedqualityFmaintenanceEnables AI agents to make micropayments using USDC on Solana via the x402 protocol, supporting payment requests, on-chain verification, and revenue tracking.MIT
- AlicenseBqualityCmaintenanceProvides 13 Solana DeFi intelligence tools for AI agents, paid per-call via micropayments (USDC). Enables pulling live DeFi data and automatic payment settlement.13631MIT
Related MCP Connectors
Pay-per-use weather, environment, finance, and on-chain intelligence tools for AI agents via x402.
Token swaps and honeypot/rug checks for AI agents on 8 chains, paid per-call in USDC via x402.
63 pay-per-call tools for agents: vision, text, data, web, blockchain. USDC on Base via x402.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/halfkey/obol'
If you have feedback or need assistance with the MCP directory API, please join our Discord server