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: deriveai

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_MODE – mock (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

Available Tools

13 tools
obol_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

    A3.8/5.0

    Scored across 13 tools

    Disambiguation5/5

    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.

    Naming Consistency5/5

    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.

    Tool Count5/5

    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.

    Completeness5/5

    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

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      C
      maintenance
      Enables 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.
      5
      MIT
    • A
      license
      A
      quality
      C
      maintenance
      Enables 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.
      5
      MIT