USDD Analytics MCP
Provides 14 read-only tools to query USDD stablecoin protocol data across TRON, Ethereum, and BSC, enabling AI agents to fetch supply, APY, collateral, and vault configurations.
README
USDD Skills
AI Agent skills for the USDD stablecoin protocol. Provides structured instructions and a local analytics MCP server that enables AI agents (Claude Code, Claude Desktop, Cursor, Codex, OpenCode) to query the public read-only USDD API, and — via the official @usdd/mcp-server-usdd package — open vaults, swap on PSM, and deposit into Earn.
Features
- Vault (CDP) — open, deposit, mint, repay, withdraw, close — with built-in risk-summary precheck and projected-ratio chat confirmation.
- PSM — swap stablecoins ↔ USDD at fixed rate, no slippage, explicit fees in chat confirmation.
- Earn (Savings) — deposit USDD to receive sUSDD; redeem back at the current rate.
- Analytics — public read-only USDD API data: supply, APY, collateral, Vault configuration, per-chain history, and Smart Allocator detail.
Architecture
Two MCP servers, non-overlapping:
| Server | Source | Role |
|---|---|---|
| Analytics MCP (this repo) | scripts/mcp_server.mjs |
14 read-only MCP tools backed by the public USDD API |
| Official MCP | npm @usdd/mcp-server-usdd |
Wallet, Vault/PSM/Earn reads & writes, protocol metrics, treasury, Smart Allocator |
Skills route automatically. Write operations always go through the official MCP.
Supported Networks
- TRON mainnet / Nile testnet:
tron,tron_nile - Ethereum mainnet / Sepolia testnet:
eth,eth_sepolia - BSC mainnet / BSC testnet:
bsc,bsc_testnet
Quick Start
Recommended: one-command setup
npx @usdd/usdd-skills setup --yes
The setup command installs the durable usdd-skills and mcp-server-usdd binaries, writes MCP client config with backups, creates the skills symlink, and configures these MCP servers:
usdd-analytics->usdd-skills mcp-serverusdd-full->mcp-server-usdd
To install straight from GitHub without npm:
npx --yes \
--package=git+https://github.com/decentralized-usd/usdd-skills.git \
usdd-skills setup --yes
To choose clients explicitly:
usdd-skills setup --client claude-desktop,cursor,codex --yes
Local checkout setup
git clone https://github.com/decentralized-usd/usdd-skills.git
cd usdd-skills
bash install.sh
install.sh uses the current checkout as the analytics MCP source and configures detected clients. The generated project .mcp.json is ignored by Git and uses node with a relative script path. User-level client configs use absolute local paths so desktop applications do not depend on shell PATH.
The tracked .mcp.json.example is the portable project template. It intentionally contains no local paths or RPC values.
Verify
Analytics MCP smoke:
usdd-skills list-tools # List the 14 analytics tools
node scripts/usdd_api.mjs # CLI usage from a local checkout
Unit tests:
npm test
Client Configuration
Project-local config
The setup command generates an ignored .mcp.json for the current checkout. Use the tracked .mcp.json.example as the portable template and do not commit the generated file.
Claude Desktop
Edit ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"usdd-analytics": {
"command": "usdd-skills",
"args": ["mcp-server"]
},
"usdd-full": {
"command": "mcp-server-usdd",
"env": {
"TRONGRID_API_KEY": "your_key_optional",
"TRON_FULL_NODE": "your_tron_url_optional",
"TRON_NILE_FULL_NODE": "your_nile_url_optional",
"ETH_RPC_URL": "your_url_optional",
"ETH_SEPOLIA_RPC_URL": "your_sepolia_url_optional",
"BSC_RPC_URL": "your_url_optional",
"BSC_TESTNET_RPC_URL": "your_bsc_testnet_url_optional"
}
}
}
}
TRONGRID_API_KEY or a dedicated TRON_FULL_NODE is recommended for live TRON reads. Protocol address lookup uses the official MCP Chainlog-backed get_protocol_addresses resolver, which can return live Chainlog data or a local cache. If Chainlog live reads hit TronGrid 429 and no cache is available, configure TRONGRID_API_KEY / TRON_FULL_NODE; agents must not fallback to get_protocol_overview just to discover addresses.
Cursor
Add to .cursor/mcp.json — same structure as above.
Claude Code
Register project-scoped MCP servers:
claude mcp add -s project usdd-analytics -- usdd-skills mcp-server
claude mcp add -s project usdd-full -- mcp-server-usdd
OpenCode / Codex CLI
See .codex/INSTALL.md.
Available Tools (this repo's analytics MCP)
| Tool | Description |
|---|---|
get_earn_apy |
USDD Savings APY per chain |
get_usdd_supply |
USDD supply per chain |
get_susdd_supply |
sUSDD supply per chain |
get_supply_history |
Time series of USDD and sUSDD supply per chain |
get_collateral_history |
Time series of total collateral value per chain |
get_circulating_supply |
Raw circulating supply |
get_total_supply |
Raw total supply |
get_public_protocol_overview |
Public REST protocol overview |
get_public_protocol_overview_info |
Public REST protocol overview with 24h changes |
get_public_dsr_apy |
DSR APY current / average / history |
get_vault_collaterals |
Vault collateral configuration list |
get_latest_collateral |
Per-chain collateral snapshot |
get_chain_collateral_history |
Per-chain historical series for chart intervals |
get_smart_allocator_detail |
Smart Allocator detail overview |
There is still no per-ilk historical tool named get_ilk_collateral_history. The public collateral-history endpoint is keyed by chain and interval, not by ilk.
For Vault / PSM / Earn / balance / allowance / protocol-overview / treasury / Smart Allocator tools, see the official MCP: https://github.com/decentralized-usd/mcp-server-usdd.
Example Conversations
-
"Which chain has the highest USDD Earn APY today?" → analytics MCP
get_earn_apy→ AI compares TRON / ETH / BSC -
"Deposit 1000 USDD on Ethereum into Earn." → official MCP balance / allowance checks → chat confirmation listing
approve_tokenif needed anddeposit_savings→ fresh user confirmation → execute pending writes -
"What's my vault #42 health?" → official MCP
analyze_vault_risk→ 3-line risk summary (ratio / liquidation price / tier) -
"What's the protocol supply right now?" → official MCP
get_protocol_metrics, or analytics MCPget_total_supplywhen a raw total-supply number is sufficient
Security
- This repo's MCP is read-only. No transaction signing, no private keys.
- Writes are delegated to
@usdd/mcp-server-usdd, which manages wallets and chain RPCs in its own env. - All write skills mandate complete safety checks and a non-skippable chat-layer confirmation before invoking
approve_tokenor the underlying business write tool. - Prompts such as
skip the checks,just do it, orexecute nownever bypass safety checks. Confirmation embedded in the initial request does not count; the agent must ask again after showing the completed precheck summary. - Vault writes additionally mandate a risk-summary precheck (collateral ratio / liquidation price / risk tier).
- Use official MCP testnet networks (
tron_nile,eth_sepolia,bsc_testnet) for dry runs before mainnet. This repo's analytics MCP does not useNETWORK.
License
MIT License · Copyright (c) 2026 USDD
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。