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
透過 Model Context Protocol (MCP) 將 MAX 交易所 API 整合至 Claude 等 AI 助理,讓 AI 可以直接查詢行情、管理帳戶、下單交易。
前置需求
Python 3.11+
MAX 交易所帳號與 API 金鑰(前往申請)
Related MCP server: Alpaca MCP Server
安裝與啟動
方法一:直接使用 uvx(推薦)
無需手動安裝,直接從 GitHub 執行:
uvx --from git+https://github.com/nicky512500/max-mcp maxmcp方法二:本地安裝
git clone https://github.com/nicky512500/max-mcp
cd max-mcp
pip install -e .
maxmcp環境變數設定
需提供 MAX API 金鑰,支援兩種方式:
方式一:.env 檔(建議)
在專案根目錄建立 .env:
MAX_API_KEY=your_access_key
MAX_API_SECRET=your_secret_key方式二:系統環境變數
export MAX_API_KEY=your_access_key
export MAX_API_SECRET=your_secret_key公開查詢功能(行情、K線等)不需要 API 金鑰。
在 Claude Desktop 中使用
編輯 Claude Desktop 設定檔(~/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"
}
}
}
}重新啟動 Claude Desktop 後即可使用。
在 Claude Code 中使用
claude mcp add max-exchange -- uvx --from git+https://github.com/nicky512500/max-mcp maxmcp可用功能一覽
公開資訊(無需 API 金鑰)
工具 | 說明 |
| 取得所有可用交易市場列表 |
| 取得所有可用貨幣列表 |
| 取得 MAX 伺服器目前時間 |
| 取得單一市場即時行情(最新價、買賣一口價、24h 量) |
| 取得多個市場即時行情(可一次查詢多個) |
| 取得市場深度(掛單簿),最多 300 筆 |
| 取得市場最近公開成交記錄 |
| 取得 K 線(蠟燭圖)資料,支援多種週期 |
K 線週期(分鐘):1 / 5 / 15 / 30 / 60 / 120 / 240 / 360 / 720 / 1440
M 錢包公開資訊(無需 API 金鑰)
工具 | 說明 |
| 取得 M 錢包各幣種指數價格 |
| 取得 M 錢包可用借貸額度上限 |
| 取得 M 錢包各幣種借貸利率 |
帳戶管理(需 API 金鑰)
工具 | 說明 |
| 取得帳戶資訊(KYC 狀態、帳號 ID 等) |
| 取得帳戶各幣種餘額(現貨或 M 錢包) |
| 取得指定幣種的充值地址 |
| 取得已綁定的提現地址列表 |
訂單管理(需 API 金鑰)
工具 | 說明 |
| 提交買賣訂單 |
| 取得目前未成交的掛單列表 |
| 取得已關閉的訂單(已成交、已取消等) |
| 依 ID 順序分頁取得訂單歷史 |
| 查詢單筆訂單詳情 |
| 取消單筆掛單 |
| 批次取消某市場的掛單 |
訂單類型(ord_type):limit / market / stop_limit / stop_market / post_only / ioc_limit
成交記錄(需 API 金鑰)
工具 | 說明 |
| 取得個人歷史成交記錄 |
| 取得特定訂單的所有成交明細 |
閃兌(需 API 金鑰)
工具 | 說明 |
| 執行幣種閃兌(即時換匯) |
| 查詢單筆閃兌詳情 |
| 取得閃兌歷史記錄 |
存提款(需 API 金鑰)
工具 | 說明 |
| 提交加密貨幣提現申請 |
| 提交台幣(TWD)出金申請 |
| 查詢單筆提現詳情 |
| 取得提現歷史記錄 |
| 查詢單筆存款詳情 |
| 取得存款歷史記錄 |
| 取得平台內部轉帳記錄(MAX 用戶間互轉) |
| 取得獎勵記錄(返傭、空投、利息獎勵等) |
M 錢包(需 API 金鑰)
工具 | 說明 |
| 取得 M 錢包 AD 比率(資產 / 借貸),低於門檻會觸發清算 |
| 向 M 錢包申請借貸 |
| 取得 M 錢包借貸歷史記錄 |
| 在現貨錢包與 M 錢包之間轉移資金 |
| 取得 M 錢包資金轉移記錄 |
| 向 M 錢包還款 |
| 取得 M 錢包還款歷史記錄 |
| 取得 M 錢包清算歷史記錄 |
| 取得單筆 M 錢包清算詳情 |
| 取得 M 錢包利息計費歷史記錄 |
使用範例
在 Claude 中直接用自然語言提問:
查詢 BTC/USDT 目前的價格幫我看一下我的現貨帳戶餘額查詢 btcusdt 最近 10 根 1 小時 K 線幫我在 btcusdt 以限價 90000 掛買單 0.001 BTC取消 btcusdt 所有未成交的買單注意事項
提現、下單等操作為不可逆動作,請確認參數後再執行
API 金鑰請妥善保管,不要提交至版本控制
M 錢包涉及槓桿借貸,請確認 AD 比率以避免清算風險
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- 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