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: AgentWallet MCP Server
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
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