Barker MCP Server — Stablecoin Yield for AI Agents
以下摘录自该仓库的 README(片段) · 在 GitHub 读完整 README →
> **Barker — remote MCP server for real-time stablecoin yield: live APY index, AI yield advisor, risk signals, and non-custodial deposit/redeem execution — 11 tools, x402 pay-per-call. Plus the official Barker agent skill suite.**
Powered by **Barker — Yield Primitive for the Agent Economy**. Every agent touching stablecoins eventually plugs in.
接入 Agent 经济的稳定币收益底座 → barker.money
---
Connect (remote MCP)
The hosted server is a **streamable-http MCP endpoint** — stateless, no signup, no API key. Payment happens per call via x402 (see Payment).
**Claude Code**
**Hermes Agent** — add to ~/.hermes/config.yaml (takes effect in new sessions):
**Cursor / Cline / any MCP host** — add to your MCP config:
**Smoke test from a terminal** (no client needed):
Tools
12 tools in three layers. Prices are per call, settled via x402.
**Data**
| Tool | What it returns | Price |
|------|-----------------|-------|
| barker_defi_vaults | Ranked stablecoin yield pools (APY, TVL, protocol, chain, asset) | $0.001 |
| barker_market_overview | Total market cap, yield-bearing cap, asset/chain distribution | $0.001 |
| barker_market_trend | Historical APY trend (7–180 days) vs US Treasury benchmark | $0.001 |
| barker_pool_search | Search the yield index by asset, chain, protocol or keyword | $0.001 |
| barker_paper_hedge_farm | Papertrade hedge-farm snapshot: PAPER mint rate, BTC/ETH mids and open-interest headroom, fee and limits, optional cost estimate per PAPER | $0.001 |
**Judgment**
| Tool | What it returns | Price |
|------|-----------------|-------|
| barker_yield_advisor | Ranked top-N picks with data-derived reasons and risk flags | $0.03 |
| barker_pool_detail | Full single-pool dossier: APY components, TVL, terms, rewards | $0.005 |
| barker_pool_history | Historical APY / TVL series for one pool | $0.005 |
| barker_crosschain_routes | Cross-chain routing options between pools | $0.01 |
**Execution (non-custodial)**
| Tool | What it returns | Price |
|------|-----------------|-------|
| barker_executable_pools | Vaults an agent can act on right now — every row guaranteed quotable | $0.01 |
| barker_execution_quote | Unsigned, ready-to-sign deposit/redeem tx ({chainId, to, data, value}) + route + risk | $0.05 |
| barker_vault_position | On-chain read of a wallet's ERC-4626 vault position | $0.001 |
**Barker never broadcasts and never holds funds.** The agent verifies the returned calldata (calldata_amount_base_units enables byte-level verification) and the user's own wallet signs. Vault shares always go to the signer — receiver is not a parameter. Same-chain only.
Payment (x402)
Calling a tool without payment returns an HTTP 402 challenge. Settle it (e.g. via an OKX OnchainOS or wallet payment skill, or any x402 buyer client) and retry with the payment header.
Full working buyer — pay → quote → verify → sign → broadcast → confirm shares:
See examples/x402-execution-buyer.mjs — ~200 lines, copy the safety checks into your own agent.
Self-host (stdio)
> ⚠️ **Self-host only.** The bundled barker-mcp stdio server wraps the resource endpoints as local tools, for operators self-hosting against their own BARKER_API_BASE. Barker's hosted tools are served via the remote MCP above.
Then restart Claude Code. Three tools become available:
| Tool | Wraps | Use for |
|------|-------|---------|
| barker_defi_vaults | /defi/vaults | "best USDC yield", "Aave vs Morpho", filter by asset/chain/sort/limit |
| barker_market_overview | /market/overview | total cap, yield-bearing cap, asset/chain distribution |
| barker_market_trend | /market/trend | 7–180 day APY trend vs US Treasury benchmark |
Smoke test outside of an agent host:
---
Agent Skill Suite
10 ready-made skills that call the MCP tools with tuned prompts, triggers and guardrails.