Skip to main content
Glama
Aster Finance MCP Server

Aster Finance MCP Server

by questflowai

Aster Finance MCP Server

Powered by Questflow

This project is an MCP (Model Context Protocol) Server that provides a comprehensive set of tools to interact with the Aster Finance Futures API. It allows AI agents and other MCP-compatible clients to access market data, manage trades, and query account information on the Aster exchange.

Features

  • Full REST API Coverage: Implements all RESTful endpoints from the Aster Futures API documentation (excluding WebSocket streams).

  • Market Data: Access real-time and historical market data, including order books, trades, klines, and ticker information.

  • Account & Trading: Full trading capabilities, including placing/canceling orders, managing positions, and checking account balances.

  • Secure: Uses API keys stored securely as environment variables, never hardcoded.

  • Stdio Transport: Runs as a standard I/O process, making it easy to integrate with MCP hosts.

Related MCP server: AsterDex MCP Server

Installation & Configuration

This server is designed to be run by an MCP host environment.

  1. Install Dependencies & Build:

    You can use either npm or pnpm to install the project dependencies and build the server.

    Using npm:

    npm install
    npm run build

    Or using pnpm:

    pnpm install
    pnpm run build
  2. Configure the MCP Host: Add the following configuration to your MCP settings file (e.g., cline_mcp_settings.json). This tells the host how to launch the server and provides the necessary API credentials.

    {
      "mcpServers": {
        "aster": {
          "command": "node",
          "args": [
            "/path/to/your/aster-mcp-server/build/index.js"
          ],
          "env": {
            "ASTER_API_KEY": "YOUR_ASTER_API_KEY",
            "ASTER_API_SECRET": "YOUR_ASTER_SECRET_KEY"
          },
          "disabled": false,
          "autoApprove": []
        }
      }
    }

    Replace /path/to/your/aster-mcp-server with the absolute path to this project directory, and fill in your actual ASTER_API_KEY and ASTER_API_SECRET.

Available Tools

The server exposes the following tools, categorized by function:

Market Data Endpoints

Tool Name

Description

ping

Test connectivity to the Rest API.

time

Get the current server time.

exchangeInfo

Get current exchange trading rules and symbol info.

depth

Get the order book for a symbol.

trades

Get recent market trades.

historicalTrades

Get older market historical trades.

aggTrades

Get compressed, aggregate market trades.

klines

Get Kline/candlestick bars for a symbol.

indexPriceKlines

Get Kline/candlestick bars for the index price.

markPriceKlines

Get Kline/candlestick bars for the mark price.

premiumIndex

Get Mark Price and Funding Rate.

fundingRate

Get funding rate history.

fundingInfo

Get funding rate configuration.

ticker_24hr

24-hour rolling window price change statistics.

ticker_price

Get the latest price for a symbol or symbols.

ticker_bookTicker

Get the best price/qty on the order book.

Account & Trade Endpoints

Tool Name

Description

setPositionMode

Change user's position mode (Hedge vs. One-way).

getPositionMode

Get user's current position mode.

setMultiAssetsMode

Change user's Multi-Assets mode.

getMultiAssetsMode

Get user's current Multi-Assets mode.

placeOrder

Send in a new order.

placeBatchOrders

Place multiple orders at once.

transferAsset

Transfer assets between futures and spot accounts.

queryOrder

Check an order's status.

cancelOrder

Cancel an active order.

cancelAllOpenOrders

Cancel all open orders on a symbol.

cancelBatchOrders

Cancel multiple orders.

countdownCancelAll

Auto-cancel all open orders after a countdown.

queryOpenOrder

Query a specific open order.

getAllOpenOrders

Get all open orders on a symbol.

getAllOrders

Get all account orders (active, canceled, or filled).

getBalance

Get futures account balance.

getAccountInfo

Get current account information.

setLeverage

Change initial leverage for a symbol.

setMarginType

Change margin type (ISOLATED/CROSSED).

modifyPositionMargin

Modify isolated position margin.

getPositionMarginHistory

Get position margin change history.

getPositionInfo

Get current position information.

getTradeList

Get trades for a specific account and symbol.

getIncomeHistory

Get income history.

getLeverageBrackets

Get notional and leverage brackets.

getAdlQuantile

Get Position ADL Quantile Estimation.

getForceOrders

Get user's force orders (liquidations/ADL).

getCommissionRate

Get user's commission rate for a symbol.

Usage Example

Once the server is running, you can invoke its tools through your MCP client. For example, to get the current server time, you would make a callTool request like this:

{
  "server_name": "aster",
  "tool_name": "time",
  "arguments": {}
}

To get the order book for BTCUSDT:

{
  "server_name": "aster",
  "tool_name": "depth",
  "arguments": {
    "symbol": "BTCUSDT",
    "limit": 10
  }
}

This MCP Server was proudly developed with the assistance of Questflow.

Available Tools

44 tools
aggTradesC

Get compressed, aggregate market trades.

Inputs: symbol (required), endTime, fromId, limit, +1 more.

cancelAllOpenOrdersB

Cancel all open orders on a symbol.

Inputs: symbol (required).

cancelBatchOrdersC

Cancel multiple orders.

Inputs: symbol (required), orderIdList, origClientOrderIdList.

cancelOrderC

Cancel an active order.

Inputs: symbol (required), orderId, origClientOrderId.

countdownCancelAllC

Auto-cancel all open orders.

Inputs: countdownTime (required), symbol (required).

depthC

Get the order book for a symbol.

Inputs: symbol (required), limit.

exchangeInfoB

Get current exchange trading rules and symbol information.

Inputs: no named parameters.

fundingInfoC

Get funding rate config.

Inputs: symbol.

fundingRateC

Get funding rate history.

Inputs: endTime, limit, startTime, symbol.

getAccountInfoB

Get current account information.

Inputs: no named parameters.

getAdlQuantileD

Get Position ADL Quantile Estimation.

Inputs: symbol.

getAllOpenOrdersC

Get all open orders on a symbol.

Inputs: symbol.

getAllOrdersC

Get all account orders; active, canceled, or filled.

Inputs: symbol (required), endTime, limit, orderId, +1 more.

getBalanceB

Get futures account balance.

Inputs: no named parameters.

getCommissionRateC

Get user's commission rate.

Inputs: symbol (required).

getForceOrdersC

Get user's force orders.

Inputs: autoCloseType, endTime, limit, startTime, +1 more.

getIncomeHistoryD

Get income history.

Inputs: endTime, incomeType, limit, startTime, +1 more.

getLeverageBracketsC

Get notional and leverage brackets.

Inputs: symbol.

getMultiAssetsModeB

Get user's Multi-Assets mode.

Inputs: no named parameters.

getPositionInfoC

Get current position information.

Inputs: symbol.

getPositionMarginHistoryC

Get position margin change history.

Inputs: symbol (required), endTime, limit, startTime, +1 more.

getPositionModeC

Get user's position mode.

Inputs: no named parameters.

getTradeListC

Get trades for a specific account and symbol.

Inputs: symbol (required), endTime, fromId, limit, +1 more.

historicalTradesC

Get older market historical trades.

Inputs: symbol (required), fromId, limit.

indexPriceKlinesC

Kline/candlestick bars for the index price of a pair.

Inputs: interval (required), pair (required), endTime, limit, +1 more.

klinesC

Get Kline/candlestick bars for a symbol.

Inputs: interval (required), symbol (required), endTime, limit, +1 more.

markPriceKlinesC

Kline/candlestick bars for the mark price of a symbol.

Inputs: interval (required), symbol (required), endTime, limit, +1 more.

modifyPositionMarginC

Modify isolated position margin.

Inputs: amount (required), symbol (required), type (required), positionSide.

pingB

Test connectivity to the Rest API.

Inputs: no named parameters.

placeBatchOrdersC

Place multiple orders.

Inputs: batchOrders (required).

placeOrderD

Send in a new order.

Inputs: side (required), symbol (required), type (required), positionSide, +4 more.

premiumIndexB

Get Mark Price and Funding Rate.

Inputs: symbol.

queryOpenOrderC

Query current open order.

Inputs: symbol (required), orderId, origClientOrderId.

queryOrderC

Check an order's status.

Inputs: symbol (required), orderId, origClientOrderId.

setLeverageC

Change user's initial leverage.

Inputs: leverage (required), symbol (required).

setMarginTypeC

Change margin type.

Inputs: marginType (required), symbol (required).

setMultiAssetsModeC

Change user's Multi-Assets mode.

Inputs: multiAssetsMargin (required).

setPositionModeC

Change user's position mode (Hedge Mode or One-way Mode).

Inputs: dualSidePosition (required).

ticker_24hrC

24 hour rolling window price change statistics.

Inputs: symbol.

ticker_bookTickerB

Best price/qty on the order book for a symbol or symbols.

Inputs: symbol.

ticker_priceC

Latest price for a symbol or symbols.

Inputs: symbol.

timeA

Get the current server time.

Inputs: no named parameters.

tradesC

Get recent market trades.

Inputs: symbol (required), limit.

transferAssetC

Transfer between futures and spot.

Inputs: amount (required), asset (required), clientTranId (required), kindType (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

    TDQS

    C2.6/5.0

    Scored across 44 tools

    Disambiguation4/5

    Most tools have distinct purposes, but some overlap exists. For example, 'getAllOpenOrders' and 'queryOpenOrder' could be confused, and 'ticker_24hr', 'ticker_bookTicker', and 'ticker_price' are all price-related but serve different functions. Descriptions help clarify, but the sheer number of tools increases the risk of misselection.

    Naming Consistency3/5

    Naming conventions are mixed, with some tools using camelCase (e.g., 'getAccountInfo') and others using snake_case (e.g., 'ticker_24hr'). Verb styles vary, such as 'get', 'set', 'place', and 'modify', but they are generally readable. The inconsistency is noticeable but not chaotic.

    Tool Count2/5

    With 44 tools, the count is too high for typical MCP server purposes, making it heavy and potentially overwhelming for agents. While the domain (finance/trading) is complex, the tool surface could benefit from consolidation or better scoping to reduce cognitive load.

    Completeness5/5

    The tool set provides comprehensive coverage for a trading platform, including order management, account info, market data, and configuration. It supports full CRUD/lifecycle operations (e.g., place, query, cancel orders) and covers various aspects like funding, leverage, and transfers, leaving no obvious gaps.

    Maintenance

    ActivityInactive
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      D
      maintenance
      Enables AI assistants to interact with Bitget cryptocurrency exchange for spot and futures trading. Supports real-time market data, order management, account balances, leverage control, and position tracking with demo trading capabilities.
      17
      6
      MIT
    • F
      license
      Not graded
      quality
      D
      maintenance
      Provides access to AsterDex perpetual futures market data including real-time order books, candlestick charts, funding rates, and price statistics for cryptocurrency trading pairs.
      -
    • A
      license
      Not graded
      quality
      D
      maintenance
      An MCP server for Aster Futures and Spot APIs, enabling AI agents to query market data, place orders, and check positions and accounts securely.
      49
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      A comprehensive MCP server for Aster DEX perpetual futures trading, enabling AI agents to access real-time market data, perform institutional-grade analysis, execute orders, and run automated trading strategies.
      1
      MIT