Aster MCP Server

Aster MCP Server

An MCP server for Aster Futures and Spot APIs, enabling AI agents to query market data, place orders, and check positions and accounts securely.

Category
Visit Server

README

Aster MCP Server

GitHub

An Model Context Protocol server for Aster Futures and Spot APIs, enabling AI agents (e.g. Cursor, Claude, LangChain) to securely query market data, place orders, and check positions and accounts.

Features

  • Config & security: Multi-account, local Fernet-encrypted API key storage (~/.config/aster-mcp/)
  • Auth: HMAC (API Key/Secret) and V3 key signing (EIP-712, user/signer/private_key; see aster-finance-futures-api-v3)
  • MCP tools:
    • Futures: Market data, account/positions, place/cancel orders, leverage & margin, transfers, income, commission rate, leverage bracket
    • Spot: Market data, account, place/cancel orders, trades, transaction history, commission rate, spot–futures transfer
  • CLI: config / list / start / stop / status / test / backup

Installation

pip install -e .
# or
pip install git+https://github.com/asterdex/aster-mcp.git

Quick start

# 1. Configure account (interactive, default HMAC)
aster-mcp config

# V3 key-signing account (EIP-712)
aster-mcp config --account-id main --auth-type v3

# 2. List accounts
aster-mcp list

# 3. Start MCP service (default stdio for Cursor/Claude)
aster-mcp start

# 4. Test connection
aster-mcp test main

Using with Cursor

  1. Configure at least one account with aster-mcp config.
  2. Add Aster MCP in Cursor’s MCP settings; command example:
    • python -m aster_mcp.simple_server (use a Python environment where aster_mcp is installed).
  3. Use natural language in chat (e.g. “get Aster BTC price”, “place an Aster order”).

Tool list (summary)

Category Futures tools Spot tools
Market get_ticker, get_order_book, get_klines, get_funding_rate, get_funding_info, get_exchange_info, ping get_spot_ticker, get_spot_price, get_spot_order_book, get_spot_klines, get_spot_exchange_info
Account get_balance, get_positions, get_account_info, get_account_v4 get_spot_account
Orders create_order, cancel_order, cancel_all_orders, get_order, get_open_orders, get_all_orders, get_my_trades create_spot_order, cancel_spot_order, cancel_spot_all_orders, get_spot_order, get_spot_open_orders, get_spot_all_orders, get_spot_my_trades
Other set_leverage, set_margin_mode, transfer_funds, get_income, get_commission_rate, get_leverage_bracket get_spot_transaction_history, get_spot_commission_rate, transfer_spot_futures
System get_server_info

Full parameters and integration details: Aster-MCP External Integration Guide.

Project structure

aster-mcp/
├── aster_mcp/
│   ├── __init__.py
│   ├── config.py       # Config & encryption
│   ├── client.py       # Aster FAPI client (futures, HMAC)
│   ├── v3_client.py    # Aster FAPI v3 client (EIP-712)
│   ├── spot_client.py  # Aster SAPI client (spot)
│   ├── tools.py        # MCP tool implementations
│   ├── simple_server.py
│   └── cli.py
├── docs/
│   └── Aster-MCP-External-Integration.md
├── tests/
├── pyproject.toml
├── requirements.txt
└── README.md

Relation to Aster APIs

  • This repo includes Aster FAPI (client.py, futures) and SAPI (spot_client.py, spot) clients.
  • Auth:
    • HMAC: API Key/Secret for /fapi/v1, /fapi/v2, etc.
    • V3 key signing: user (main wallet), signer (API wallet), private_key (signer key), EIP-712; for /fapi/v3. Requires eth-account.
  • Futures base URL: https://fapi.asterdex.com; Spot base URL: https://sapi.asterdex.com (overridable per account in config).
  • API docs: aster-finance-futures-api, aster-finance-futures-api-v3, aster-finance-spot-api.

Risk and compliance

  • Futures trading involves risk; verify in a test environment first.
  • API keys are stored locally with encryption; do not leak or commit them.
  • Comply with local regulations and Aster platform terms.

License

MIT

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured