Aster Info MCP 是一个 MCP 服务器,它提供对 Aster DEX 市场数据的结构化访问,涵盖K线图、订单簿、交易记录和资金费率等数据。
get_kline、get_index_price_kline、get_mark_price_kline)get_latest_price、get_price_change_statistics_24h、get_order_book_ticker)get_order_book、get_recent_trades、get_historical_trades、get_aggregated_trades)get_premium_index、get_funding_rate_history)克隆仓库:
git clone https://github.com/kukapay/aster-info-mcp.git
cd aster-info-mcp
安装依赖:
uv sync
安装到 Claude Desktop:
将服务器作为 Claude Desktop 应用程序进行安装:
uv run mcp install main.py --name "Aster Info"
参考配置文件如下:
{
"mcpServers": {
"Aster Info": {
"command": "uv",
"args": [ "--directory", "/path/to/aster-info-mcp", "run", "main.py" ]
}
}
}
请将 /path/to/aster-info-mcp 替换为你实际的安装路径。
| 工具名称 | 描述 | 参数 |
|---|---|---|
get_kline |
获取某个交易对的K线数据 | symbol、interval、startTime(可选)、endTime(可选)、limit(可选) |
get_index_price_kline |
获取某个交易对的指数价格K线数据 | pair、interval、startTime(可选)、endTime(可选)、limit(可选) |
get_mark_price_kline |
获取某个交易对的标记价格K线数据 | symbol、interval、startTime(可选)、endTime(可选)、limit(可选) |
get_premium_index |
获取某个交易对的溢价指数数据 | symbol(可选) |
get_funding_rate_history |
获取某个交易对的历史资金费率数据 | symbol、startTime(可选)、endTime(可选)、limit(可选) |
get_price_change_statistics_24h |
获取某个交易对的 24 小时价格变动统计数据 | symbol(可选) |
get_latest_price |
获取某个交易对或所有交易对的最新价格 | symbol(可选) |
get_order_book_ticker |
获取某个交易对的订单簿行情数据(最佳买卖价格和数量) | symbol(可选) |
get_order_book |
获取某个交易对的订单簿数据(买卖盘) | symbol、limit(可选) |
get_recent_trades |
获取某个交易对的最近交易记录 | symbol、limit(可选) |
get_historical_trades |
获取某个交易对的历史交易记录 | symbol、limit(可选)、fromId(可选) |
get_aggregated_trades |
获取某个交易对的聚合交易记录 | symbol、fromId(可选)、startTime(可选)、endTime(可选)、limit(可选) |
注意事项:
(可选) 的参数为可选参数。priceChangePercent 四舍五入到 2 位)。下面是 13 种工具的使用示例。
get_kline)提示:
Get me the latest 1-minute candlestick data for ETHUSDT, limited to the last 2 entries.
预期响应(Markdown 表格):
| open_time | open | high | low | close |
|---------------------|-----------|-----------|-----------|-----------|
| 2025-06-18 22:42:00 | 3500.1234 | 3510.5678 | 3490.4321 | 3505.6789 |
| 2025-06-18 22:43:00 | 3505.6789 | 3520.1234 | 3500.8765 | 3510.2345 |
get_index_price_kline)提示:
Show me the 1-hour index price candlestick data for BTCUSD for the last 2 hours.
预期响应(Markdown 表格):
| open_time | open | high | low | close |
|---------------------|------------|------------|------------|------------|
| 2025-06-18 21:00:00 | 65000.1234 | 65200.5678 | 64900.4321 | 65100.6789 |
| 2025-06-18 22:00:00 | 65100.6789 | 65300.1234 | 65050.8765 | 65210.2345 |
get_mark_price_kline)提示:
Give me the 1-minute mark price candlestick data for BTCUSDT, limited to the last 2 entries.
预期响应(Markdown 表格):
| open_time | open | high | low | close |
|---------------------|------------|------------|------------|------------|
| 2025-06-18 22:42:00 | 65010.1234 | 65020.5678 | 65000.4321 | 65015.6789 |
| 2025-06-18 22:43:00 | 65015.6789 | 65030.1234 | 65010.8765 | 65025.2345 |
get_premium_index)提示:
Show me the premium index data for ETHUSDT.
预期响应(Markdown 表格):
| symbol | markPrice | indexPrice | lastFundingRate | nextFundingTime |
|---------|------------|------------|-----------------|---------------------|
| ETHUSDT | 3505.1234 | 3500.5678 | 0.0001 | 2025-06-19 00:00:00 |
get_funding_rate_history)提示:
Get the funding rate history for BTCUSDT, limited to the last 2 records.
预期响应(Markdown 表格):
| symbol | fundingTime | fundingRate |
|---------|---------------------|-------------|
| BTCUSDT | 2025-06-18 16:00:00 | 0.00012 |
| BTCUSDT | 2025-06-18 20:00:00 | 0.00015 |
get_price_change_statistics_24h)提示:
Show me the 24-hour price change statistics for ETHUSDT.
预期响应(Markdown 表格):
| symbol | priceChange | priceChangePercent | lastPrice | volume |
|---------|-------------|--------------------|------------|------------|
| ETHUSDT | 50.1234 | 1.45 | 3505.6789 | 1000.4321 |
get_latest_price)提示:
Show me the current price of BTCUSDT.
预期响应(Markdown 表格):
| symbol | price |
|---------|------------|
| BTCUSDT | 65000.1234 |
get_order_book_ticker)提示:
Get the best bid and ask prices for ETHUSDT.
预期响应(Markdown 表格):
| symbol | bidPrice | bidQty | askPrice | askQty |
|---------|-----------|-----------|-----------|-----------|
| ETHUSDT | 3500.1234 | 10.5678 | 3505.6789 | 15.4321 |
get_order_book)提示:
Show me the order book for BTCUSDT with 2 entries per side.
预期响应(Markdown 表格):
| side | price | quantity |
|------|------------|------------|
| bid | 65000.1234 | 0.5678 |
| bid | 64995.6789 | 0.4321 |
| ask | 65005.1234 | 0.8765 |
| ask | 65010.6789 | 0.2345 |
get_recent_trades)提示:
Get the most recent trades for ETHUSDT, limited to 2 trades.
预期响应(Markdown 表格):
| tradeId | price | qty | quoteQty | time | isBuyerMaker |
|---------|-----------|-----------|-----------|---------------------|--------------|
| 123456 | 3505.6789 | 1.2345 | 4321.1234 | 2025-06-18 22:43:00 | True |
| 123457 | 3500.1234 | 0.8765 | 3067.5678 | 2025-06-18 22:42:00 | False |
get_historical_trades)提示:
Show me historical trades for BTCUSDT starting from trade ID 1000, limited to 2 trades.
预期响应(Markdown 表格):
| tradeId | price | qty | quoteQty | time | isBuyerMaker |
|---------|------------|-----------|------------|---------------------|--------------|
| 1000 | 65000.1234 | 0.1234 | 8025.6789 | 2025-06-18 20:00:00 | True |
| 1001 | 64995.6789 | 0.2345 | 15245.1234 | 2025-06-18 20:01:00 | False |
get_aggregated_trades)提示:
Get aggregated trades for ETHUSDT starting from aggregated trade ID 500, limited to 2 trades.
预期响应(Markdown 表格):
| aggTradeId | price | qty | firstTradeId | lastTradeId | time | isBuyerMaker |
|------------|-----------|-----------|--------------|-------------|---------------------|--------------|
| 500 | 3500.1234 | 5.6789 | 1000 | 1005 | 2025-06-18 22:40:00 | True |
| 501 | 3505.6789 | 3.4321 | 1006 | 1010 | 2025-06-18 22:41:00 | False |
本项目采用 MIT 许可证 进行许可。