使用说明
派生MCP服务器
提供市场数据的MCP(模型上下文协议)服务器 Derive.xyz (前身为Lyra Finance)。所有端点都是公共的,不需要身份验证。
工具
| 工具 | 说明 |
|---|---|
get_all_currencies |
列出所有可用货币 |
get_currency |
特定货币的详细信息 |
get_all_instruments |
列出仪器(选项、perps、ERC20) |
get_instrument |
特定仪器的详细信息 |
get_ticker |
工具的当前价格、交易量、买入/卖出价 |
get_tickers |
给定类型的所有乐器的票 |
get_spot_feed_history |
历史现货价格 |
get_spot_feed_history_candles |
OHLC烛台数据 |
get_funding_rate_history |
永久融资利率历史 |
get_interest_rate_history |
借款利率历史 |
get_option_settlement_history |
期权结算历史 |
get_latest_signed_feeds |
当前oracle价格信息 |
get_liquidation_history |
清算事件 |
get_margin |
保证金要求模拟 |
get_statistics |
平台交易量和未平仓合约统计数据 |
设置
git clone https://github.com/aadarshvelu/derive-mcp.git
cd derive-mcp
npm install
用法
克劳德桌面版
添加 ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"derive": {
"command": "node",
"args": ["/path/to/derive-mcp/server.mjs"]
}
}
}
重新启动克劳德桌面。将提供15个市场数据工具。
克劳德代码
添加到您的项目 .mcp.json:
{
"mcpServers": {
"derive": {
"command": "node",
"args": ["/path/to/derive-mcp/server.mjs"]
}
}
}
或者直接运行:
claude mcp add derive node /path/to/derive-mcp/server.mjs
MCP检查员(调试)
npx @modelcontextprotocol/inspector node server.mjs
测试
node test-mcp.mjs
针对实时Derive API运行16个测试(15个工具调用+工具列表)。
API 参考
所有工具都调用 派生公共REST API 在 https://api.lyra.finance。不需要API密钥或身份验证。
