Aster MCP logo

Aster MCP

Organization
asterdex

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.

Publisherasterdex
Repositoryaster-mcp
LanguagePython
Forks
16
Stars
48
Available tools
0
Transport typestdio
Links
  • Connect tools to AI workflows

    Aster MCP exposes MCP capabilities that can be used by compatible AI clients and agents.

  • 0 available tools

    Browse the callable actions below, including names and descriptions when provided by the server.

  • Ready-to-copy setup

    Use the installation snippets to configure this server in your preferred MCP client.

  • Open source signals

    48 stars and 16 forks from the linked repository.

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

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

Quick start

bash
# 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)

CategoryFutures toolsSpot tools
Marketget_ticker, get_order_book, get_klines, get_funding_rate, get_funding_info, get_exchange_info, pingget_spot_ticker, get_spot_price, get_spot_order_book, get_spot_klines, get_spot_exchange_info
Accountget_balance, get_positions, get_account_info, get_account_v4get_spot_account
Orderscreate_order, cancel_order, cancel_all_orders, get_order, get_open_orders, get_all_orders, get_my_tradescreate_spot_order, cancel_spot_order, cancel_spot_all_orders, get_spot_order, get_spot_open_orders, get_spot_all_orders, get_spot_my_trades
Otherset_leverage, set_margin_mode, transfer_funds, get_income, get_commission_rate, get_leverage_bracketget_spot_transaction_history, get_spot_commission_rate, transfer_spot_futures
Systemget_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

Use Aster MCP MCP with multiple AI models

TypingMind connects MCP tools at the workspace level, so once Aster MCP is connected, you can use it with different AI models in TypingMind instead of setting it up separately for each model. This MCP runs locally through the TypingMind MCP connector on your device.

Setup guide to use the local connector

Use this when the MCP server needs access to local files, apps, or private resources on your computer.

1

Open the MCP settings

In TypingMind, go to Settings, Advanced Settings, then Model Context Protocol and choose Setup Connector.

  1. Open TypingMind in your browser.
  2. Click the Settings icon.
  3. Go to Advanced Settings.
  4. Open the Model Context Protocol section.
  5. Click Setup Connector and choose This Device.
TypingMind MCP connector setup screen with This Device selected
2

Run the connector command

Choose This Device, copy the command from TypingMind, and run it in Terminal. Keep the process running while you use MCP.

  1. Copy the setup command shown by TypingMind.
  2. Open Terminal on macOS or Windows Terminal on Windows.
  3. Paste and run the command.
  4. Approve the package install if Terminal asks you to proceed.
  5. Keep the Terminal window running while using MCP tools.
3

Add Aster MCP as a server

When the connector status is Ready, click Edit Servers and paste the MCP server configuration.

  1. Wait until the connector status shows Ready.
  2. Click Edit Servers.
  3. Paste the Aster MCP MCP server configuration.
  4. Save the server list.
  5. Refresh if you want to confirm the connector is still ready.
TypingMind MCP settings showing active server and Edit Servers button
{
  "mcpServers": {
    "aster-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

Use it across models

Save the server list, open Plugins, enable the Aster MCP MCP tools, then select any supported AI model in TypingMind and use the tools in chat or assign them to an AI agent.

  1. Open the Plugins page in TypingMind.
  2. Enable the Aster MCP MCP tools.
  3. Start a chat and choose the AI model you want to use.
  4. Use the MCP tools in chat or assign them to an AI agent.
  5. Switch to another AI model whenever needed without reconnecting MCP.
TypingMind chat using enabled MCP tools with a selected AI model
Can you use Aster MCP to help me with this task?
Aster MCP
Sure. I read it.
Here is what I found using Aster MCP.

Frequently asked questions

What is the Aster MCP MCP server used for?

Aster MCP is an MCP server that lets compatible AI clients connect to external tools and context. In TypingMind, you can add this MCP server once and make its tools available in your AI workspace.

Can I use Aster MCP MCP with multiple AI models in TypingMind?

Yes. TypingMind connects MCP tools at the workspace level, so you can use Aster MCP with different AI models such as Claude, ChatGPT, Gemini, or other models you have configured in TypingMind without setting up the MCP server separately for each model.

Why use Aster MCP MCP with TypingMind?

TypingMind is one of the best frontends for LLM chat because it brings multiple AI models, prompts, plugins, AI agents, API keys, and MCP tools into one workspace. With Aster MCP connected, you can use its MCP tools across your preferred models while keeping your chat workflow organized in TypingMind.

How do I connect Aster MCP MCP to TypingMind?

Aster MCP runs through the TypingMind local MCP connector. This is best when the MCP server needs access to local files, desktop apps, command-line tools, or private resources on your computer.

What tools does Aster MCP MCP provide in TypingMind?

Aster MCP exposes MCP capabilities that can be enabled from the TypingMind Plugins page and used in chat or assigned to AI agents.

Do I need to share my API keys with TypingMind to use Aster MCP MCP?

No. TypingMind is local-first and lets you keep your model providers, API keys, prompts, and MCP configuration under your control. If Aster MCP requires authentication, add the required headers, OAuth settings, or local configuration for that MCP server when you create the connection.

Related MCP Servers

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇