MAX Exchange MCP Server
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@MAX Exchange MCP Serverwhat's my BTC balance and the current ETH/USDT price?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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
Method 1: Using uvx (Recommended)
No manual installation required, run directly from GitHub:
uvx --from git+https://github.com/nicky512500/max-mcp maxmcpMethod 2: Local Installation
git clone https://github.com/nicky512500/max-mcp
cd max-mcp
pip install -e .
maxmcpEnvironment 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_keyMethod 2: System Environment Variables
export MAX_API_KEY=your_access_key
export MAX_API_SECRET=your_secret_keyPublic 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 maxmcpFeature Overview
Public Information (No API Key Required)
Tool | Description |
| Get a list of all available trading markets |
| Get a list of all available currencies |
| Get the current MAX server time |
| Get real-time market data for a single market (latest price, bid/ask, 24h volume) |
| Get real-time market data for multiple markets (can query multiple at once) |
| Get market depth (order book), up to 300 entries |
| Get recent public trade history for a market |
| 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 index prices for M-wallet currencies |
| Get borrowing limits for M-wallet |
| Get borrowing interest rates for M-wallet currencies |
Account Management (API Key Required)
Tool | Description |
| Get account information (KYC status, account ID, etc.) |
| Get balances for all currencies (Spot or M-wallet) |
| Get the deposit address for a specific currency |
| Get a list of bound withdrawal addresses |
Order Management (API Key Required)
Tool | Description |
| Submit a buy/sell order |
| Get a list of currently open orders |
| Get closed orders (filled, cancelled, etc.) |
| Get order history paginated by ID sequence |
| Query details of a single order |
| Cancel a single open order |
| 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 personal historical trade records |
| Get all trade details for a specific order |
Instant Swap (API Key Required)
Tool | Description |
| Execute instant currency swap |
| Query details of a single instant swap |
| Get instant swap history |
Deposits and Withdrawals (API Key Required)
Tool | Description |
| Submit a cryptocurrency withdrawal request |
| Submit a TWD withdrawal request |
| Query details of a single withdrawal |
| Get withdrawal history |
| Query details of a single deposit |
| Get deposit history |
| Get internal transfer records (transfers between MAX users) |
| Get reward records (rebates, airdrops, interest rewards, etc.) |
M-Wallet (API Key Required)
Tool | Description |
| Get M-wallet AD ratio (Assets / Debt); liquidation is triggered if below threshold |
| Apply for a loan from M-wallet |
| Get M-wallet loan history |
| Transfer funds between Spot wallet and M-wallet |
| Get M-wallet fund transfer history |
| Repay loans to M-wallet |
| Get M-wallet repayment history |
| Get M-wallet liquidation history |
| Get details of a single M-wallet liquidation |
| 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.
Maintenance
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
- AlicenseNot gradedqualityCmaintenanceEnables 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.6MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to securely trade on Hyperliquid perpetual exchange, including order placement, position management, market data retrieval, and vault operations via natural language.21MIT
- AlicenseNot gradedqualityAmaintenanceEnables AI assistants to trade on MetaTrader 5 using natural language, supporting account management, order placement, and real-time market data.1MIT
- FlicenseNot gradedqualityDmaintenanceEnables 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
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.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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