obol
obol
渡し守に支払え。x402 による Solana エージェントゲートウェイ。
Obol は AI エージェント向けの従量課金制 Solana API です。API キーもサブスクリプションも不要で、エージェントは x402 支払いプロトコル を使用してリクエストごとに USDC で支払います。Solana のサブセント級のトランザクションコストにより、マイクロペイメントが初めて実現可能になりました。
死者の舌に置かれ、ステュクス川を渡るためのカロンへの支払いに使われた硬貨にちなんで名付けられました。元祖マイクロペイメントです。
仕組み
エージェントが有料エンドポイントからデータを要求
Obol は支払い要件(金額、受取人、ネットワーク)を含む HTTP 402 を返す
エージェントは要件に一致する USDC を Solana 上で送信
エージェントは
X-PAYMENTヘッダーにトランザクション証明を付けて再試行Obol はオンチェーンで検証し、データを返す
アカウント不要。トークン不要。オンボーディング不要。支払って進むだけです。
Related MCP server: AgentWallet MCP Server
エンドポイント
ウォレット分析
エンドポイント | 価格 | 説明 |
| $0.01 | SOL 残高、トークン数、合計価値 |
| $0.05 | 価格、NFT、内訳を含む全保有資産 |
| $0.05 | カテゴリ分類付きの取引履歴 |
| $0.10 | 多要素リスク評価 |
| $0.15 | トークンフロー分析、現在価値、P&L |
トークンデータ
エンドポイント | 価格 | 説明 |
| $0.005 | Jupiter によるリアルタイム価格 |
| $0.01 | 名前、シンボル、供給量、小数桁 |
DeFi
エンドポイント | 価格 | 説明 |
| $0.005 | ルート計画付き Jupiter スワップ見積もり |
| $0.25 | Jupiter スワップトランザクションビルダー |
| $0.10 | DeFi ポジション — LST、LP、レンディング |
| $0.02 | Solana 全体の LST 利回り比較 |
無料
エンドポイント | 説明 |
| API 情報と価格 |
| サービスステータス |
| プロキシされた Helius RPC(許可リスト方式) |
エージェント例
完全なリファレンス実装については examples/agent-client.ts を参照してください。主要なフローは次のとおりです。
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');ディスカバリのみのモードで実行(ウォレット不要):
npx tsx examples/agent-client.tsMCP サーバー
Obol は MCP サーバーとして提供されます。Model Context Protocol をサポートする AI エージェントは、Obol のツールをネイティブに発見して呼び出すことができます。
npm からインストール
npm install -g obol-mcpClaude Desktop / Claude Code
MCP 設定に追加:
{
"mcpServers": {
"obol": {
"command": "npx",
"args": ["-y", "obol-mcp"],
"env": {
"OBOL_URL": "https://obol-production.up.railway.app"
}
}
}
}またはローカルで開発する場合:
{
"mcpServers": {
"obol": {
"command": "npx",
"args": ["tsx", "/path/to/obol/src/mcp.ts"],
"env": {
"OBOL_URL": "http://localhost:3000"
}
}
}
}利用可能な MCP ツール
ツール | 説明 |
| SOL 残高、トークン数、合計価値 |
| 価格と内訳を含む全保有資産 |
| カテゴリ分類付きの取引履歴 |
| 多要素リスク評価 |
| トークンフロー分析と P&L |
| Jupiter によるリアルタイム価格 |
| 名前、シンボル、供給量、小数桁 |
| ルーティング付き Jupiter スワップ見積もり |
| 署名用スワップトランザクションの構築 |
| LST、LP、レンディングポジション |
| LST 利回り比較 |
| API ヘルスチェック(無料) |
| エンドポイント価格と情報(無料) |
ローカルで実行
npm run mcpスタック
Fastify 5 — 高性能 HTTP
@x402/svm — Solana 用公式 x402 SDK
Helius — RPC + DAS API
Jupiter — トークン価格 + スワップ実行
Upstash Redis — キャッシュ + 支払いレシート
TypeScript — 完全な型安全性
Zod — ランタイム検証
セットアップ
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テスト
# 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>環境
.env.example を参照してください。主な変数:
PAYMENT_MODE—mock(開発、自動承認)またはonchain(本番)PAYMENT_RECIPIENT_ADDRESS— USDC を受け取るあなたの Solana ウォレットHELIUS_API_KEY— Helius RPC アクセスUPSTASH_REDIS_REST_URL/TOKEN— キャッシュレイヤー
ロードマップ
有料エンドポイント 11 個(ウォレット、トークン、DeFi、LST、P&L)
リプレイ防止付きオンチェーン USDC 検証
テストスイート(vitest 46 件 + 20 項目のスモークテスト)
エージェントクライアントのリファレンス実装
GitHub Actions CI
ウォレット監視用 WebSocket サブスクリプション
動的な輻輳ベースの価格設定
マルチチェーン対応
ライセンス
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