max-mcp
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-mcpget the current ticker for BTCUSDT"
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-mcp
An MCP server for the MAX Exchange (MaiCoin) V3 REST API.
Disclaimer. Unofficial and community-maintained. Not affiliated with, endorsed by, or supported by MaiCoin / MAX Exchange. Trading tools move real funds — use at your own risk.
It exposes MAX endpoints as MCP tools so an agent (Claude Code, Claude Desktop,
etc.) can query market data, read your account, and — when explicitly enabled —
place and cancel orders. The request signing follows the MAX V3 auth scheme:
HMAC-SHA256 over a base64 JSON payload, with the nonce echoed in the query/body
and path matched exactly (see max_mcp/client.py).
Tools
Group | Needs | Tools |
Public market data | — |
|
Account / history (read) | API key+secret |
|
M-Wallet (read) | API key+secret |
|
Trading + m-wallet (write) | API key+secret and |
|
Write tools are not registered at all unless MAX_ENABLE_TRADING is set, so
an agent can't even see them in the default read-only configuration.
Related MCP server: Shioaji MCP Server
Configuration (environment variables)
Variable | Required for | Notes |
| private endpoints | your MAX API access key |
| private endpoints | your MAX API secret key |
| write tools | set to |
| — | override base URL (default |
Public market-data tools work with no credentials.
Install
The package installs a max-mcp console script. The tricky part is where that
binary lives: an MCP client (Claude Code / Desktop) launches a fresh process
that does not inherit your shell's PATH or any activated virtualenv. So the
reliable pattern is to either let uv resolve the environment for you, or point
the client at an absolute path to the binary. Pick one of the options below.
Option A — uv (recommended, no install step)
uv can run the server straight from GitHub and
manage the environment itself, so there's no PATH to worry about:
# one-off smoke test
uvx --from "git+https://github.com/bistin/max-mcp-server.git" max-mcpuvx is the command the MCP client will run too (see config sections below),
which sidesteps the whole "is it on my PATH" problem.
For local development with uv:
git clone https://github.com/bistin/max-mcp-server.git
cd max-mcp-server
uv sync # creates .venv and installs the project + deps
uv run max-mcp # runs the stdio server inside the managed envOption B — venv + pip
Standard library virtualenv, no extra tooling:
git clone https://github.com/bistin/max-mcp-server.git
cd max-mcp-server
python3 -m venv .venv
.venv/bin/pip install -e .
.venv/bin/max-mcp # run via the venv's binary, not a bare `max-mcp`The venv's binary lives at /abs/path/to/max-mcp-server/.venv/bin/max-mcp
(...\.venv\Scripts\max-mcp.exe on Windows). Note that path — you'll give it to
the MCP client below. Activating the venv (source .venv/bin/activate) only
affects your shell, not the client process, so don't rely on a bare max-mcp
working there.
Tip: run
command -v max-mcp(or.venv/bin/python -c "import shutil,sys; print(shutil.which('max-mcp'))") to print the absolute path to paste into the configs below.
Register with Claude Code
With uv (Option A) — no install step, uv resolves the env each launch:
claude mcp add max \
-e MAX_API_KEY=your_key \
-e MAX_API_SECRET=your_secret \
-- uvx --from "git+https://github.com/bistin/max-mcp-server.git" max-mcpWith a venv (Option B) — point at the venv's absolute binary path:
claude mcp add max \
-e MAX_API_KEY=your_key \
-e MAX_API_SECRET=your_secret \
-- /abs/path/to/max-mcp-server/.venv/bin/max-mcpAdd -e MAX_ENABLE_TRADING=1 only if you want the agent to place/cancel orders.
Claude Desktop config
Claude Desktop launches the command itself, so the same rule applies: use uvx,
or give an absolute path. Pick the block that matches your install.
uv (Option A):
{
"mcpServers": {
"max": {
"command": "uvx",
"args": [
"--from",
"git+https://github.com/bistin/max-mcp-server.git",
"max-mcp"
],
"env": {
"MAX_API_KEY": "your_key",
"MAX_API_SECRET": "your_secret"
}
}
}
}venv (Option B) — use the absolute path to the venv binary
(...\.venv\Scripts\max-mcp.exe on Windows):
{
"mcpServers": {
"max": {
"command": "/abs/path/to/max-mcp-server/.venv/bin/max-mcp",
"env": {
"MAX_API_KEY": "your_key",
"MAX_API_SECRET": "your_secret"
}
}
}
}Tests
With uv:
uv run --extra test pytestWith a venv:
.venv/bin/pip install -e ".[test]"
.venv/bin/python -m pytestAll HTTP is mocked with respx, so the suite never touches the live API or your
account — it's safe to run with real credentials in the environment. The 44
tests cover:
Signing/headers — nonce in both query and payload,
pathmatch, HMAC signature, monotonic nonce under same-millisecond concurrency.Request placement — GET params in the query string vs POST/DELETE params in the JSON body;
None-valued optionals dropped, never sent asnull.Tool gating — write tools hidden unless
MAX_ENABLE_TRADING; flag parsing of1/true/yes(case-insensitive).Edge cases —
markets[]array params repeated correctly, thecancel_all_orderssafety scope,calibrate_timepropagating upstream errors instead of crashing, error/network-failure mapping to a structured dict, and the console entry point.
Notes
All prices/volumes/fees/balances are returned as strings — keep them as decimal strings, never parse to float.
K-lines return bare numeric arrays
[ts, o, h, l, c, v]with unix-second timestamps.MAX API errors are returned as
{"_http_status": <int>, "success": false, "error": {"code", "message"}}so the agent can read the code/message.
License
Apache-2.0 © bistin
This server cannot be installed
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
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/bistin/max-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server