Skip to main content
Glama
nicky512500

MAX Exchange MCP Server

by nicky512500

MAX Exchange MCP Server

Integrate the MAX Exchange API into AI assistants like Claude via the Model Context Protocol (MCP), allowing AI to directly query market data, manage accounts, and place trades.

Prerequisites

  • Python 3.11+

  • MAX Exchange account and API keys (Apply here)

Related MCP server: hyperliquid-mcp

Installation and Startup

No manual installation required, run directly from GitHub:

uvx --from git+https://github.com/nicky512500/max-mcp maxmcp

Method 2: Local Installation

git clone https://github.com/nicky512500/max-mcp
cd max-mcp
pip install -e .
maxmcp

Environment Variable Configuration

MAX API keys are required. Two methods are supported:

Method 1: .env file (Recommended)

Create a .env file in the project root directory:

MAX_API_KEY=your_access_key
MAX_API_SECRET=your_secret_key

Method 2: System Environment Variables

export MAX_API_KEY=your_access_key
export MAX_API_SECRET=your_secret_key

Public query functions (market data, K-lines, etc.) do not require API keys.

Usage in Claude Desktop

Edit the Claude Desktop configuration file (~/Library/Application Support/Claude/claude_desktop_config.json):

{
  "mcpServers": {
    "max-exchange": {
      "command": "uvx",
      "args": ["--from", "git+https://github.com/nicky512500/max-mcp", "maxmcp"],
      "env": {
        "MAX_API_KEY": "your_access_key",
        "MAX_API_SECRET": "your_secret_key"
      }
    }
  }
}

Restart Claude Desktop to start using it.

Usage in Claude Code

claude mcp add max-exchange -- uvx --from git+https://github.com/nicky512500/max-mcp maxmcp

Feature Overview

Public Information (No API Key Required)

Tool

Description

get_markets

Get a list of all available trading markets

get_currencies

Get a list of all available currencies

get_timestamp

Get the current MAX server time

get_ticker

Get real-time market data for a single market (latest price, bid/ask, 24h volume)

get_tickers

Get real-time market data for multiple markets (can query multiple at once)

get_depth

Get market depth (order book), up to 300 entries

get_public_trades

Get recent public trade history for a market

get_k

Get K-line (candlestick) data, supports multiple timeframes

K-line timeframes (minutes): 1 / 5 / 15 / 30 / 60 / 120 / 240 / 360 / 720 / 1440

M-Wallet Public Information (No API Key Required)

Tool

Description

get_m_index_prices

Get index prices for M-wallet currencies

get_m_limits

Get borrowing limits for M-wallet

get_m_interest_rates

Get borrowing interest rates for M-wallet currencies

Account Management (API Key Required)

Tool

Description

get_user_info

Get account information (KYC status, account ID, etc.)

get_accounts

Get balances for all currencies (Spot or M-wallet)

get_deposit_address

Get the deposit address for a specific currency

get_withdraw_addresses

Get a list of bound withdrawal addresses

Order Management (API Key Required)

Tool

Description

submit_order

Submit a buy/sell order

get_open_orders

Get a list of currently open orders

get_closed_orders

Get closed orders (filled, cancelled, etc.)

get_orders_history

Get order history paginated by ID sequence

get_order

Query details of a single order

cancel_order

Cancel a single open order

cancel_orders

Batch cancel orders in a specific market

Order types (ord_type): limit / market / stop_limit / stop_market / post_only / ioc_limit

Trade History (API Key Required)

Tool

Description

get_trades

Get personal historical trade records

get_order_trades

Get all trade details for a specific order

Instant Swap (API Key Required)

Tool

Description

submit_convert

Execute instant currency swap

get_convert

Query details of a single instant swap

get_converts

Get instant swap history

Deposits and Withdrawals (API Key Required)

Tool

Description

submit_withdrawal

Submit a cryptocurrency withdrawal request

submit_twd_withdrawal

Submit a TWD withdrawal request

get_withdrawal

Query details of a single withdrawal

get_withdrawals

Get withdrawal history

get_deposit

Query details of a single deposit

get_deposits

Get deposit history

get_internal_transfers

Get internal transfer records (transfers between MAX users)

get_rewards

Get reward records (rebates, airdrops, interest rewards, etc.)

M-Wallet (API Key Required)

Tool

Description

get_m_ad_ratio

Get M-wallet AD ratio (Assets / Debt); liquidation is triggered if below threshold

submit_m_loan

Apply for a loan from M-wallet

get_m_loans

Get M-wallet loan history

submit_m_transfer

Transfer funds between Spot wallet and M-wallet

get_m_transfers

Get M-wallet fund transfer history

submit_m_repayment

Repay loans to M-wallet

get_m_repayments

Get M-wallet repayment history

get_m_liquidations

Get M-wallet liquidation history

get_m_liquidation

Get details of a single M-wallet liquidation

get_m_interests

Get M-wallet interest charge history


Usage Examples

Ask directly in natural language within Claude:

查詢 BTC/USDT 目前的價格
幫我看一下我的現貨帳戶餘額
查詢 btcusdt 最近 10 根 1 小時 K 線
幫我在 btcusdt 以限價 90000 掛買單 0.001 BTC
取消 btcusdt 所有未成交的買單

Important Notes

  • Operations such as withdrawals and placing orders are irreversible; please confirm parameters before execution.

  • Keep API keys secure; do not commit them to version control.

  • M-wallet involves leveraged lending; please monitor your AD ratio to avoid liquidation risks.

Install Server
F
license - not found
B
quality
D
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    Not graded
    quality
    C
    maintenance
    Enables AI assistants to perform cryptocurrency trading analysis and execution with 38+ tools including real-time market data, technical indicators, risk management, and support for both paper trading and live execution on Hyperliquid.
    6
    MIT
  • A
    license
    Not graded
    quality
    D
    maintenance
    Enables AI assistants to securely trade on Hyperliquid perpetual exchange, including order placement, position management, market data retrieval, and vault operations via natural language.
    21
    MIT
  • A
    license
    Not graded
    quality
    A
    maintenance
    Enables AI assistants to trade on MetaTrader 5 using natural language, supporting account management, order placement, and real-time market data.
    1
    MIT
  • F
    license
    Not graded
    quality
    D
    maintenance
    Enables AI tools to execute trades and fetch market data across six crypto exchanges via natural language or API, with dual Telegram and MCP interfaces.
    2

View all related MCP servers

Related MCP Connectors

  • MCP server for Gainium — manage trading bots, deals, and balances via AI assistants

  • Trade, monitor portfolios, and build Coinrule strategies by chat.

  • AI agent access to Asian crypto markets. Korean exchange routing and x402 paid APIs.

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/nicky512500/max-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server