obol
obol
Zahle dem Fährmann. Solana-Agenten-Gateway über x402.
Obol ist eine nutzungsbasierte Solana-API für KI-Agenten. Keine API-Schlüssel, keine Abonnements – Agenten zahlen pro Anfrage in USDC über das x402-Zahlungsprotokoll. Solanas Transaktionskosten im Sub-Cent-Bereich machen Mikrozahlungen zum ersten Mal praktikabel.
Benannt nach der Münze, die den Toten auf die Zunge gelegt wurde, um Charon für die Überfahrt über den Fluss Styx zu bezahlen. Die ursprüngliche Mikrozahlung.
So funktioniert es
Agent fordert Daten von einem kostenpflichtigen Endpunkt an
Obol antwortet mit HTTP 402 und einer Zahlungsanforderung (Betrag, Empfänger, Netzwerk)
Agent sendet USDC auf Solana, das der Anforderung entspricht
Agent wiederholt mit Transaktionsnachweis im
X-PAYMENT-HeaderObol verifiziert on-chain und gibt die Daten zurück
Keine Konten. Keine Token. Kein Onboarding. Einfach zahlen und loslegen.
Related MCP server: deriveai
Endpunkte
Wallet-Analysen
Endpoint | Preis | Beschreibung |
| $0.01 | SOL-Guthaben, Token-Anzahl, Gesamtwert |
| $0.05 | Vollständige Bestände mit Preisen, NFTs, Aufschlüsselung |
| $0.05 | Transaktionshistorie mit Kategorisierung |
| $0.10 | Mehrfaktor-Risikobewertung |
| $0.15 | Token-Fluss-Analyse, aktuelle Werte, P&L |
Token-Daten
Endpoint | Preis | Beschreibung |
| $0.005 | Echtzeitpreis über Jupiter |
| $0.01 | Name, Symbol, Angebot, Dezimalstellen |
DeFi
Endpoint | Preis | Beschreibung |
| $0.005 | Jupiter-Swap-Angebot mit Routenplanung |
| $0.25 | Jupiter-Swap-Transaktions-Builder |
| $0.10 | DeFi-Positionen – LSTs, LPs, Kredite |
| $0.02 | LST-Renditevergleich über Solana |
Kostenlos
Endpoint | Beschreibung |
| API-Informationen und Preise |
| Dienststatus |
| Proxied Helius RPC (zugelassene Methoden) |
Agenten-Beispiel
Siehe examples/agent-client.ts für eine vollständige Referenzimplementierung. Der Schlüsselablauf:
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');Im Nur-Entdeckungsmodus ausführen (keine Wallet erforderlich):
npx tsx examples/agent-client.tsMCP-Server
Obol wird als MCP-Server ausgeliefert – jeder KI-Agent, der das Model Context Protocol unterstützt, kann Obols Tools nativ entdecken und aufrufen.
Installation von npm
npm install -g obol-mcpClaude Desktop / Claude Code
Fügen Sie zu Ihrer MCP-Konfiguration hinzu:
{
"mcpServers": {
"obol": {
"command": "npx",
"args": ["-y", "obol-mcp"],
"env": {
"OBOL_URL": "https://obol-production.up.railway.app"
}
}
}
}Oder wenn Sie lokal entwickeln:
{
"mcpServers": {
"obol": {
"command": "npx",
"args": ["tsx", "/path/to/obol/src/mcp.ts"],
"env": {
"OBOL_URL": "http://localhost:3000"
}
}
}
}Verfügbare MCP-Tools
Tool | Beschreibung |
| SOL-Guthaben, Token-Anzahl, Gesamtwert |
| Vollständige Bestände mit Preisen und Aufschlüsselung |
| Transaktionshistorie mit Kategorisierung |
| Mehrfaktor-Risikobewertung |
| Token-Fluss-Analyse und P&L |
| Echtzeitpreis über Jupiter |
| Name, Symbol, Angebot, Dezimalstellen |
| Jupiter-Swap-Angebot mit Routing |
| Swap-Transaktion zum Signieren erstellen |
| LSTs, LPs, Kreditpositionen |
| LST-Renditevergleich |
| API-Gesundheitscheck (kostenlos) |
| Endpunkt-Preise und Informationen (kostenlos) |
Lokal ausführen
npm run mcpStack
Fastify 5 – Hochleistungs-HTTP
@x402/svm – offizielles x402-SDK für Solana
Helius – RPC + DAS-API
Jupiter – Token-Preise + Swap-Ausführung
Upstash Redis – Cache + Zahlungsbelege
TypeScript – volle Typsicherheit
Zod – Laufzeitvalidierung
Einrichtung
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 devTesten
# 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>Umgebung
Siehe .env.example. Wichtige Variablen:
PAYMENT_MODE–mock(Entwicklung, automatische Genehmigung) oderonchain(Produktion)PAYMENT_RECIPIENT_ADDRESS– Ihre Solana-Wallet, die USDC empfängtHELIUS_API_KEY– Helius-RPC-ZugriffUPSTASH_REDIS_REST_URL/TOKEN– Cache-Schicht
Roadmap
11 kostenpflichtige Endpunkte (Wallet, Token, DeFi, LST, P&L)
On-chain-USDC-Verifizierung mit Replay-Schutz
Test-Suite (46 Vitest + 20-Punkte-Smoke-Test)
Referenzimplementierung des Agenten-Clients
GitHub Actions CI
WebSocket-Abonnements für Wallet-Überwachung
Dynamische Preise basierend auf Netzwerkauslastung
Multi-Chain-Unterstützung
Lizenz
MIT
Available Tools
13 toolsobol_defi_positionsB
Get DeFi positions for a wallet — LSTs, LP tokens, lending positions, categorized by protocol. Costs $0.10 USDC.
Inputs: address (required).
obol_healthA
Check Obol API health and status. Free.
Inputs: no named parameters.
obol_infoA
Get Obol API info — all available endpoints, pricing, and payment mode. Free.
Inputs: no named parameters.
obol_lst_yieldsA
Compare LST yields across Solana — jitoSOL, mSOL, bSOL, jupSOL, hSOL, and more. APYs from Sanctum, exchange rates from Jupiter. Costs $0.02 USDC.
Inputs: no named parameters.
obol_swap_executeA
Build a Jupiter swap transaction for signing. Returns a serialized transaction the agent must sign and submit. Costs $0.25 USDC.
Inputs: amount (required), inputMint (required), outputMint (required), userPublicKey (required), +2 more.
obol_swap_quoteB
Get a Jupiter swap quote with route planning and price impact. Costs $0.005 USDC.
Inputs: amount (required), inputMint (required), outputMint (required), slippageBps.
obol_token_metadataA
Get token metadata — name, symbol, supply, decimals. Costs $0.01 USDC.
Inputs: mint (required).
obol_token_priceB
Get real-time token price via Jupiter. Costs $0.005 USDC.
Inputs: mint (required).
obol_wallet_activityA
Get wallet transaction history with categorization (swaps, transfers, etc). Costs $0.05 USDC.
Inputs: address (required).
obol_wallet_overviewA
Get a Solana wallet overview — SOL balance, token count, total value. Costs $0.01 USDC.
Inputs: address (required).
obol_wallet_pnlC
Wallet P&L analysis — token flows, current values, transaction history analysis. Costs $0.15 USDC.
Inputs: address (required).
obol_wallet_portfolioA
Get full wallet portfolio — all token holdings with prices, NFTs, and breakdown. Costs $0.05 USDC.
Inputs: address (required).
obol_wallet_riskB
Multi-factor risk assessment for a Solana wallet — age, diversification, activity patterns. Costs $0.10 USDC.
Inputs: address (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 13 tools
Each tool targets a clearly distinct resource or granularity level: wallet overview vs. full portfolio vs. activity vs. risk vs. P&L vs. DeFi positions are separately scoped. Token price/metadata, swap quote/execute, LST yields, health, and info also have unambiguous purposes.
All tools follow the consistent `obol_<area>_<detail>` snake_case pattern, e.g. wallet_overview, token_price, swap_quote, lst_yields. Even the simpler health and info tools fit the prefix convention without disrupting the pattern.
13 tools is well within the ideal range and each tool earns its place by covering a distinct wallet analytics, token data, or swap workflow. The count feels complete without being bloated.
The tool surface covers the full advertised Solana workflow: wallet analytics, portfolio detail, transaction history, risk, P&L, DeFi positions, token price/metadata, swap quoting/execution, and LST yield comparison. There are no obvious dead ends or missing core operations for the stated domain.
Maintenance
Related MCP Connectors
Pay-per-call Solana data for AI agents over x402: token, account, tx, trending. No signup, no key.
x402 pay-per-call Solana data + crypto market + JWT/unit utils for AI agents.
x402 paid API tools for AI agents on Solana: crypto safety, market data, KYB/AML verification.
Solana wallet & token checks for agents, pay per call in USDC via x402 (Solana or Base).
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to make micropayments using USDC on Solana via the x402 protocol, supporting payment requests, on-chain verification, and revenue tracking.MIT
- FlicenseNot gradedqualityDmaintenanceEnables AI agents to access 25 pay-per-request intelligence APIs using USDC micropayments via the x402 protocol, without API keys or accounts.-
- AlicenseAqualityCmaintenanceEnables MCP-capable AI agents to access pay-per-call Solana data such as health, token prices, account balances, transactions, and trending DEX pairs, with automated x402 USDC settlement and no signup or API key required.5MIT
- AlicenseAqualityCmaintenanceEnables MCP-capable AI agents to make pay-per-call Solana data requests (snapshots, risk checks, token reports, health, balances, transactions, trending pairs) with automatic USDC settlement over x402.5MIT