Skip to main content
Glama

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

  1. Agent fordert Daten von einem kostenpflichtigen Endpunkt an

  2. Obol antwortet mit HTTP 402 und einer Zahlungsanforderung (Betrag, Empfänger, Netzwerk)

  3. Agent sendet USDC auf Solana, das der Anforderung entspricht

  4. Agent wiederholt mit Transaktionsnachweis im X-PAYMENT-Header

  5. Obol 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

GET /api/v1/wallet/:addr/overview

$0.01

SOL-Guthaben, Token-Anzahl, Gesamtwert

GET /api/v1/wallet/:addr/portfolio

$0.05

Vollständige Bestände mit Preisen, NFTs, Aufschlüsselung

GET /api/v1/wallet/:addr/activity

$0.05

Transaktionshistorie mit Kategorisierung

GET /api/v1/wallet/:addr/risk

$0.10

Mehrfaktor-Risikobewertung

GET /api/v1/wallet/:addr/pnl

$0.15

Token-Fluss-Analyse, aktuelle Werte, P&L

Token-Daten

Endpoint

Preis

Beschreibung

GET /api/v1/token/:mint/price

$0.005

Echtzeitpreis über Jupiter

GET /api/v1/token/:mint/metadata

$0.01

Name, Symbol, Angebot, Dezimalstellen

DeFi

Endpoint

Preis

Beschreibung

GET /api/v1/defi/swap/quote

$0.005

Jupiter-Swap-Angebot mit Routenplanung

POST /api/v1/defi/swap/execute

$0.25

Jupiter-Swap-Transaktions-Builder

GET /api/v1/defi/positions/:addr

$0.10

DeFi-Positionen – LSTs, LPs, Kredite

GET /api/v1/defi/lst/yields

$0.02

LST-Renditevergleich über Solana

Kostenlos

Endpoint

Beschreibung

GET /

API-Informationen und Preise

GET /health

Dienststatus

POST /api/v1/rpc

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.ts

MCP-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-mcp

Claude 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

obol_wallet_overview

SOL-Guthaben, Token-Anzahl, Gesamtwert

obol_wallet_portfolio

Vollständige Bestände mit Preisen und Aufschlüsselung

obol_wallet_activity

Transaktionshistorie mit Kategorisierung

obol_wallet_risk

Mehrfaktor-Risikobewertung

obol_wallet_pnl

Token-Fluss-Analyse und P&L

obol_token_price

Echtzeitpreis über Jupiter

obol_token_metadata

Name, Symbol, Angebot, Dezimalstellen

obol_swap_quote

Jupiter-Swap-Angebot mit Routing

obol_swap_execute

Swap-Transaktion zum Signieren erstellen

obol_defi_positions

LSTs, LPs, Kreditpositionen

obol_lst_yields

LST-Renditevergleich

obol_health

API-Gesundheitscheck (kostenlos)

obol_info

Endpunkt-Preise und Informationen (kostenlos)

Lokal ausführen

npm run mcp

Stack

  • 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 dev

Testen

# 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_MODEmock (Entwicklung, automatische Genehmigung) oder onchain (Produktion)

  • PAYMENT_RECIPIENT_ADDRESS – Ihre Solana-Wallet, die USDC empfängt

  • HELIUS_API_KEY – Helius-RPC-Zugriff

  • UPSTASH_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

Install Server
A
license - permissive license
A
quality
D
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

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

  • A
    license
    A
    quality
    D
    maintenance
    Provides 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.
    29
    334
    3
    MIT
  • A
    license
    B
    quality
    C
    maintenance
    Provides 13 Solana DeFi intelligence tools for AI agents, paid per-call via micropayments (USDC). Enables pulling live DeFi data and automatic payment settlement.
    13
    63
    1
    MIT

View all related MCP servers

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.

View all MCP Connectors

Latest Blog Posts

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