使用说明
DefiLlama技能
代理技能 定义MCP --23个具有指导工作流程的DeFi分析工具。
快速安装
将此提示粘贴到您的AI代理中:
Read https://raw.githubusercontent.com/DefiLlama/defillama-skills/master/defillama-setup/SKILL.md and follow the instructions to install DefiLlama MCP.
手动设置
1.添加MCP服务器
第ai条(网络):
转到“自定义”→ 连接器→ + → 添加自定义连接器。姓名: DefiLlama,网址: https://mcp.defillama.com/mcp。单击“添加”并登录。
克劳德代码:
claude mcp add defillama --transport http https://mcp.defillama.com/mcp
食品法典:
codex mcp add defillama --url https://mcp.defillama.com/mcp
克劳德桌面/光标/风帆:
{
"mcpServers": {
"defillama": {
"url": "https://mcp.defillama.com/mcp"
}
}
}
Gemini CLI:
{
"mcpServers": {
"defillama": {
"httpUrl": "https://mcp.defillama.com/mcp"
}
}
}
OpenCode:
{
"mcp": {
"defillama": {
"type": "remote",
"url": "https://mcp.defillama.com/mcp"
}
}
}
OpenClaw和其他仅支持stdio的代理 (使用 mcp-remote 作为桥梁):
{
"mcp": {
"servers": {
"defillama": {
"command": "npx",
"args": ["-y", "mcp-remote", "https://mcp.defillama.com/mcp"]
}
}
}
}
2.登录
需要一个 活动API订阅.
克劳德代码: 跑 /mcp,导航到DefiLama服务器,按Enter键,然后选择“身份验证”。
桌面代理(Cursor、Windsurf、Claude Desktop): 第一次连接时,浏览器会打开DefiLama登录页面。登录,你就完成了。
无头代理(OpenClaw): mcp-remote 输出OAuth URL。在您的手机/计算机上打开它,登录,然后复制 localhost:... 重定向后从浏览器地址栏中获取URL并将其发送回代理。
没有API密钥,没有env变量。只需登录一次。
3.安装技能
npx skills add DefiLlama/defillama-skills --yes
技能
| 技能 | 描述 |
|---|---|
| 定义数据 | 核心参考——将任何DeFi问题映射到正确的工具和参数 |
| defi市场概述 | 完整的市场快照:TVL、类别、链、事件、稳定币、ETF |
| 协议深度潜水 | 完整的协议报告:TVL、费用、收益、收入、用户、代币 |
| 代币研究 | 代币分析:价格、解锁、DeFi存款、收益机会 |
| 链式生态系统 | 区块链概述:TVL、顶级协议、网桥、稳定币、用户 |
| 市场分析 | 筛选和比较:估值比率、增长、跨实体 |
| 收益策略 | 产量狩猎:池过滤、APY惯例、产能评估 |
| 风险评估 | 风险评估:黑客攻击、神谕、资金、基本面、收益率标志 |
| 流程和事件 | 资本流动:桥梁、ETF、稳定币、黑客攻击、融资、OI |
| 机构加密货币 | 机构风险敞口:公司持股、ETF流量、mNAV比率 |
工具(23)
| 工具 | 说明 |
|---|---|
resolve_entity |
将协议、链或令牌名称与精确的slug进行模糊匹配 |
get_market_totals |
全球DeFi TVL、DEX交易量、衍生品交易量 |
get_protocol_metrics |
协议TVL、费用、收入、mcap、比率、趋势 |
get_protocol_info |
协议元数据、URL、审计信息、标签 |
get_chain_metrics |
连锁TVL、天然气费、收入、DEX量 |
get_chain_info |
链元数据、类型、L2父级 |
get_category_metrics |
按TVL、费用、协议计数分类的排名 |
list_categories |
列出所有有效类别 |
get_token_prices |
代币价格、mcap、交易量、ATH |
get_token_tvl |
跨DeFi协议的代币存款 |
get_token_unlocks |
授予时间表和即将解锁 |
get_yield_pools |
池APY、TVL、借贷利率 |
get_stablecoin_supply |
链式稳定币发行 |
get_bridge_flows |
按链计算的桥梁流量和净流量 |
get_etf_flows |
比特币和以太坊ETF流入/流出 |
get_dat_holdings |
机构加密货币持有量和mNAV |
get_events |
黑客、筹款、协议活动 |
get_oracle_metrics |
Oracle TVS和协议覆盖范围 |
get_cex_volumes |
集中交易所交易量 |
get_open_interest |
衍生品未平仓合约 |
get_treasury |
协议金库持有量 |
get_user_activity |
每日活跃用户和交易 |
get_income_statement |
协议收入明细 |