
aster-info-mcp
An MCP server that provides structured access to Aster DEX market data—covering candlesticks, order books, trades, and funding rates.
Tools
get_kline
Fetch Kline/Candlestick data from Aster Finance API and return as Markdown table text. Parameters: symbol (str): Trading pair symbol (e.g., 'BTCUSDT', 'ETHUSDT'). Case-insensitive. interval (str): Kline interval (e.g., '1m' for 1 minute, '1h' for 1 hour, '1d' for 1 day). startTime (Optional[int]): Start time in milliseconds since Unix epoch. If None, defaults to API behavior. endTime (Optional[int]): End time in milliseconds since Unix epoch. If None, defaults to API behavior. limit (Optional[int]): Number of Klines to return (1 to 1500). If None, defaults to 500. Returns: str: Markdown table containing open_time, open, high, low, and close. Raises: Exception: If the API request fails or data processing encounters an error.
get_index_price_kline
Fetch Index Price Kline/Candlestick data from Aster Finance API and return as Markdown table text. Parameters: pair (str): Index pair (e.g., 'BTCUSD', 'ETHUSD'). Case-insensitive. interval (str): Kline interval (e.g., '1m' for 1 minute, '1h' for 1 hour, '1d' for 1 day). startTime (Optional[int]): Start time in milliseconds since Unix epoch. If None, defaults to API behavior. endTime (Optional[int]): End time in milliseconds since Unix epoch. If None, defaults to API behavior. limit (Optional[int]): Number of Klines to return (1 to 1500). If None, defaults to 500. Returns: str: Markdown table containing open_time, open, high, low, and close. Raises: Exception: If the API request fails or data processing encounters an error.
get_mark_price_kline
Fetch Mark Price Kline/Candlestick data from Aster Finance API and return as Markdown table text. Parameters: symbol (str): Trading pair symbol (e.g., 'BTCUSDT', 'ETHUSDT'). Case-insensitive. interval (str): Kline interval (e.g., '1m' for 1 minute, '1h' for 1 hour, '1d' for 1 day). startTime (Optional[int]): Start time in milliseconds since Unix epoch. If None, defaults to API behavior. endTime (Optional[int]): End time in milliseconds since Unix epoch. If None, defaults to API behavior. limit (Optional[int]): Number of Klines to return (1 to 1500). If None, defaults to 500. Returns: str: Markdown table containing open_time, open, high, low, and close. Raises: Exception: If the API request fails or data processing encounters an error.
get_premium_index
Fetch Premium Index data from Aster Finance API and return as Markdown table text. Parameters: symbol (Optional[str]): Trading pair symbol (e.g., 'BTCUSDT', 'ETHUSDT'). Case-insensitive. If None, returns data for all symbols. Returns: str: Markdown table containing symbol, markPrice, indexPrice, lastFundingRate, and nextFundingTime. Raises: Exception: If the API request fails or data processing encounters an error.
get_funding_rate_history
Fetch Funding Rate History data from Aster Finance API and return as Markdown table text. Parameters: symbol (str): Trading pair symbol (e.g., 'BTCUSDT', 'ETHUSDT'). Case-insensitive. startTime (Optional[int]): Start time in milliseconds since Unix epoch. If None, defaults to API behavior. endTime (Optional[int]): End time in milliseconds since Unix epoch. If None, defaults to API behavior. limit (Optional[int]): Number of funding rate records to return (1 to 1000). If None, defaults to 100. Returns: str: Markdown table containing symbol, fundingTime, and fundingRate. Raises: Exception: If the API request fails or data processing encounters an error.
get_price_change_statistics_24h
Fetch 24-hour ticker price change statistics from Aster Finance API and return as Markdown table text. Parameters: symbol (Optional[str]): Trading pair symbol (e.g., 'BTCUSDT', 'ETHUSDT'). Case-insensitive. If None, returns data for all symbols. Returns: str: Markdown table containing symbol, priceChange, priceChangePercent, lastPrice, and volume. Raises: Exception: If the API request fails or data processing encounters an error.
get_order_book_ticker
Fetch order book ticker data from Aster Finance API and return as Markdown table text. Parameters: symbol (Optional[str]): Trading pair symbol (e.g., 'BTCUSDT', 'ETHUSDT'). Case-insensitive. If None, returns data for all symbols. Returns: str: Markdown table containing symbol, bidPrice, bidQty, askPrice, and askQty. Raises: Exception: If the API request fails or data processing encounters an error.
get_order_book
Fetch order book data from Aster Finance API and return as Markdown table text. Parameters: symbol (str): Trading pair symbol (e.g., 'BTCUSDT', 'ETHUSDT'). Case-insensitive. limit (Optional[int]): Number of order book entries to return (5, 10, 20, 50, 100, 500, 1000, 5000). If None, defaults to 100. Returns: str: Markdown table containing side (bid or ask), price, and quantity. Raises: Exception: If the API request fails or data processing encounters an error.
get_latest_price
Fetch latest price data from Aster Finance API and return as Markdown table text. Parameters: symbol (Optional[str]): Trading pair symbol (e.g., 'BTCUSDT', 'ETHUSDT'). Case-insensitive. If None, returns data for all symbols. Returns: str: Markdown table containing symbol and price. Raises: Exception: If the API request fails or data processing encounters an error.
get_recent_trades
Fetch recent trades data from Aster Finance API and return as Markdown table text. Parameters: symbol (str): Trading pair symbol (e.g., 'BTCUSDT', 'ETHUSDT'). Case-insensitive. limit (Optional[int]): Number of trades to return (1 to 1000). If None, defaults to 500. Returns: str: Markdown table containing tradeId, price, qty, quoteQty, time, and isBuyerMaker. Raises: Exception: If the API request fails or data processing encounters an error.
get_aggregated_trades
Fetch aggregated trades data from Aster Finance API and return as Markdown table text. Parameters: symbol (str): Trading pair symbol (e.g., 'BTCUSDT', 'ETHUSDT'). Case-insensitive. fromId (Optional[int]): Aggregated trade ID to start from. If None, uses time-based query or most recent trades. startTime (Optional[int]): Start time in milliseconds since Unix epoch. If None, defaults to API behavior. endTime (Optional[int]): End time in milliseconds since Unix epoch. If None, defaults to API behavior. limit (Optional[int]): Number of aggregated trades to return (1 to 1000). If None, defaults to 500. Returns: str: Markdown table containing aggTradeId, price, qty, firstTradeId, lastTradeId, time, and isBuyerMaker. Raises: Exception: If the API request fails or data processing encounters an error.
README
Aster Info MCP
An MCP server that provides structured access to Aster DEX market data—covering candlesticks, order books, trades, and funding rates.
Features
- 13 Tools: Access a variety of Aster Finance Futures API endpoints, including:
- Candlestick data (
get_kline
,get_index_price_kline
,get_mark_price_kline
) - Price and ticker data (
get_latest_price
,get_price_change_statistics_24h
,get_order_book_ticker
) - Order book and trade data (
get_order_book
,get_recent_trades
,get_historical_trades
,get_aggregated_trades
) - Funding and index data (
get_premium_index
,get_funding_rate_history
)
- Candlestick data (
- Markdown Output: All tools return data as formatted Markdown tables for easy readability and integration.
- Robust Error Handling: Handles HTTP errors (e.g., 400, 429) and data processing issues with clear exceptions.
Installation
Prerequisites
- Python 3.10 or higher
- uv (recommended package manager)
Steps
-
Clone the Repository:
git clone https://github.com/kukapay/aster-info-mcp.git cd aster-info-mcp
-
Install Dependencies:
uv sync
-
Installing to Claude Desktop:
Install the server as a Claude Desktop application:
uv run mcp install main.py --name "Aster Info"
Configuration file as a reference:
{ "mcpServers": { "Aster Info": { "command": "uv", "args": [ "--directory", "/path/to/aster-info-mcp", "run", "main.py" ] } } }
Replace
/path/to/aster-info-mcp
with your actual installation path.
Usage
Available Tools
Tool Name | Description | Parameters |
---|---|---|
get_kline |
Fetch candlestick data for a symbol. | symbol , interval , startTime (opt), endTime (opt), limit (opt) |
get_index_price_kline |
Fetch index price candlestick data for a pair. | pair , interval , startTime (opt), endTime (opt), limit (opt) |
get_mark_price_kline |
Fetch mark price candlestick data for a symbol. | symbol , interval , startTime (opt), endTime (opt), limit (opt) |
get_premium_index |
Fetch premium index data (mark price, funding rate). | symbol (opt) |
get_funding_rate_history |
Fetch historical funding rate data for a symbol. | symbol , startTime (opt), endTime (opt), limit (opt) |
get_price_change_statistics_24h |
Fetch 24-hour price change statistics. | symbol (opt) |
get_latest_price |
Fetch the latest price for a symbol or all symbols. | symbol (opt) |
get_order_book_ticker |
Fetch order book ticker data (best bid/ask prices and quantities). | symbol (opt) |
get_order_book |
Fetch order book data (bids and asks) for a symbol. | symbol , limit (opt) |
get_recent_trades |
Fetch recent trades for a symbol. | symbol , limit (opt) |
get_historical_trades |
Fetch historical trades for a symbol. | symbol , limit (opt), fromId (opt) |
get_aggregated_trades |
Fetch aggregated trades for a symbol. | symbol , fromId (opt), startTime (opt), endTime (opt), limit (opt) |
Notes:
- All tools return data as Markdown tables.
- Parameters marked
(opt)
are optional. - Timestamps are in milliseconds (Unix epoch); outputs are converted to readable datetime format.
- Numeric fields are rounded to 8 decimal places (except
priceChangePercent
, rounded to 2).
Examples
Below are examples for each of the 13 tools.
Example: Fetching Candlestick Data (get_kline
)
Prompt:
Get me the latest 1-minute candlestick data for ETHUSDT, limited to the last 2 entries.
Expected response (Markdown table):
| 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 |
Example: Fetching Index Price Candlestick Data (get_index_price_kline
)
Prompt:
Show me the 1-hour index price candlestick data for BTCUSD for the last 2 hours.
Expected response (Markdown table):
| 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 |
Example: Fetching Mark Price Candlestick Data (get_mark_price_kline
)
Prompt:
Give me the 1-minute mark price candlestick data for BTCUSDT, limited to the last 2 entries.
Expected response (Markdown table):
| 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 |
Example: Fetching Premium Index Data (get_premium_index
)
Prompt:
Show me the premium index data for ETHUSDT.
Expected response (Markdown table):
| symbol | markPrice | indexPrice | lastFundingRate | nextFundingTime |
|---------|------------|------------|-----------------|---------------------|
| ETHUSDT | 3505.1234 | 3500.5678 | 0.0001 | 2025-06-19 00:00:00 |
Example: Fetching Funding Rate History (get_funding_rate_history
)
Prompt:
Get the funding rate history for BTCUSDT, limited to the last 2 records.
Expected response (Markdown table):
| symbol | fundingTime | fundingRate |
|---------|---------------------|-------------|
| BTCUSDT | 2025-06-18 16:00:00 | 0.00012 |
| BTCUSDT | 2025-06-18 20:00:00 | 0.00015 |
Example: Fetching 24-Hour Price Change Statistics (get_price_change_statistics_24h
)
Prompt:
Show me the 24-hour price change statistics for ETHUSDT.
Expected response (Markdown table):
| symbol | priceChange | priceChangePercent | lastPrice | volume |
|---------|-------------|--------------------|------------|------------|
| ETHUSDT | 50.1234 | 1.45 | 3505.6789 | 1000.4321 |
Example: Fetching Latest Price (get_latest_price
)
Prompt:
Show me the current price of BTCUSDT.
Expected response (Markdown table):
| symbol | price |
|---------|------------|
| BTCUSDT | 65000.1234 |
Example: Fetching Order Book Ticker Data (get_order_book_ticker
)
Prompt*:
Get the best bid and ask prices for ETHUSDT.
Expected response (Markdown table):
| symbol | bidPrice | bidQty | askPrice | askQty |
|---------|-----------|-----------|-----------|-----------|
| ETHUSDT | 3500.1234 | 10.5678 | 3505.6789 | 15.4321 |
Example: Fetching Order Book Data (get_order_book
)
Prompt:
Show me the order book for BTCUSDT with 2 entries per side.
Expected response (Markdown table):
| side | price | quantity |
|------|------------|------------|
| bid | 65000.1234 | 0.5678 |
| bid | 64995.6789 | 0.4321 |
| ask | 65005.1234 | 0.8765 |
| ask | 65010.6789 | 0.2345 |
Example: Fetching Recent Trades (get_recent_trades
)
Prompt:
Get the most recent trades for ETHUSDT, limited to 2 trades.
Expected response (Markdown table):
| 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 |
Example: Fetching Historical Trades (get_historical_trades
)
Prompt:
Show me historical trades for BTCUSDT starting from trade ID 1000, limited to 2 trades.
Expected response (Markdown table):
| 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 |
Example: Fetching Aggregated Trades (get_aggregated_trades
)
Prompt:
Get aggregated trades for ETHUSDT starting from aggregated trade ID 500, limited to 2 trades.
Expected response (Markdown table):
| 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 |
License
This project is licensed under the MIT License.
推荐服务器

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 模型以安全和受控的方式获取实时的网络信息。