
Obol
io.github.halfkey由 GitHub 账号 halfkey 发布v2.0.1更新于 Oct 25, 2026
Solana agent gateway via x402. Wallet, token, DeFi, and swap tools. Pay per request.
概览
一个本地 MCP 服务器,为助手提供按请求付费的 Solana 数据工具:钱包分析、代币价格、DeFi 持仓与兑换报价,通过 x402 以 USDC 支付。
- 可以做什么
- 查询 Solana 钱包:概览、持仓组合、交易活动、风险评估与盈亏分析,每次请求按 USDC 计费。
- 适用场景
- 当助手需要 Solana 钱包分析、代币价格、DeFi 持仓数据或兑换报价,且用户愿意按请求支付少量 USDC 费用、不想管理 API 密钥或订阅时适用。
- 运行要求
- 通过 npm 包 obol-mcp 以 npx 在本地运行(需要 Node.js)。需要设置 OBOL_URL 环境变量指向 Obol API 实例。付费端点需要持有 USDC 的 Solana 钱包并走 x402 支付流程;无需账户或 API 密钥。
安装
在 SourceWeft 中
- 打开 控制台中的 Obol,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
obol
Pay the ferryman. Solana agent gateway via x402.
Obol is a pay-per-use Solana API for AI agents. No API keys, no subscriptions — agents pay per request in USDC using the x402 payment protocol. Solana's sub-cent transaction costs make micropayments viable for the first time.
Named after the coin placed on the tongue of the dead to pay Charon for passage across the River Styx. The original micropayment.
How it works
- Agent requests data from a paid endpoint
- Obol returns HTTP 402 with a payment requirement (amount, recipient, network)
- Agent sends USDC on Solana matching the requirement
- Agent retries with transaction proof in the
X-PAYMENTheader - Obol verifies on-chain and returns the data
No accounts. No tokens. No onboarding. Just pay and go.
Endpoints
Wallet Analytics
Token Data
DeFi
Free
Agent Example
See examples/agent-client.ts for a full reference implementation. The key flow:
Run in discovery-only mode (no wallet needed):
MCP Server
Obol ships as an MCP server — any AI agent that supports the Model Context Protocol can discover and call Obol's tools natively.
Install from npm
Claude Desktop / Claude Code
Add to your MCP config:
Or if developing locally:
Available MCP Tools
Run locally
Stack
- Fastify 5 — high-performance HTTP
- @x402/svm — official x402 SDK for Solana
- Helius — RPC + DAS API
- Jupiter — token prices + swap execution
- Upstash Redis — cache + payment receipts
- TypeScript — full type safety
- Zod — runtime validation
Setup
Testing
Environment
See .env.example. Key variables:
PAYMENT_MODE—mock(dev, auto-approve) oronchain(production)PAYMENT_RECIPIENT_ADDRESS— your Solana wallet that receives USDCHELIUS_API_KEY— Helius RPC accessUPSTASH_REDIS_REST_URL/TOKEN— cache layer
Roadmap
- 11 paid endpoints (wallet, token, DeFi, LST, P&L)
- On-chain USDC verification with replay prevention
- Test suite (46 vitest + 20-point smoke test)
- Agent client reference implementation
- GitHub Actions CI
- WebSocket subscriptions for wallet monitoring
- Dynamic congestion-based pricing
- Multi-chain support
License
MIT
来源:README.md,提交 86297f1
工具
0版本历史
1- v2.0.1最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分