loading…
Search for a command to run...
loading…
Enables interaction with the Hyperliquid exchange to trade perpetuals, check positions, and manage risk through natural language. It provides tools for fetching
Enables interaction with the Hyperliquid exchange to trade perpetuals, check positions, and manage risk through natural language. It provides tools for fetching real-time market data, tracking portfolio value, and executing orders with a focus on safety through default paper trading.
The first MCP server for DeFi perpetual futures trading. Let AI agents trade on Hyperliquid — the #1 decentralized derivatives exchange ($50B+ weekly volume).
Trade perps, check positions, manage risk — all through natural language via Claude, GPT, or any MCP-compatible AI agent.
| Tool | Description |
|---|---|
get_account_info |
Wallet balance, margin, withdrawable funds |
list_markets |
All available perpetual futures markets |
get_market_info |
Price, funding rate, OI, 24h volume |
get_orderbook |
Live orderbook with configurable depth |
get_open_orders |
All pending orders |
get_positions |
Open positions with PnL & liquidation price |
place_order |
Limit or market orders |
cancel_order |
Cancel by order ID |
set_leverage |
Set leverage (cross or isolated) |
close_position |
Close positions (market or limit) |
pip install -e .
Or install dependencies directly:
pip install "mcp[server]" hyperliquid-python-sdk python-dotenv
cp .env.example .env
Edit .env:
HYPERLIQUID_PRIVATE_KEY=your_private_key_here
HYPERLIQUID_WALLET_ADDRESS=0xYourAddress
HYPERLIQUID_TESTNET=true
⚠️ Start with testnet! Set
HYPERLIQUID_TESTNET=truefor paper trading.
hyperliquid-mcp
# or
python -m hyperliquid_mcp.server
Add to your claude_desktop_config.json:
{
"mcpServers": {
"hyperliquid": {
"command": "python",
"args": ["-m", "hyperliquid_mcp.server"],
"cwd": "/path/to/hyperliquid-mcp",
"env": {
"HYPERLIQUID_PRIVATE_KEY": "your_key",
"HYPERLIQUID_WALLET_ADDRESS": "0xYourAddress",
"HYPERLIQUID_TESTNET": "true"
}
}
}
}
Or if installed via pip:
{
"mcpServers": {
"hyperliquid": {
"command": "hyperliquid-mcp",
"env": {
"HYPERLIQUID_PRIVATE_KEY": "your_key",
"HYPERLIQUID_WALLET_ADDRESS": "0xYourAddress",
"HYPERLIQUID_TESTNET": "true"
}
}
}
}
Once connected, try asking your AI agent:
.env file — it contains your private keyMIT
Add this to claude_desktop_config.json and restart Claude Desktop.
{
"mcpServers": {
"hyperliquid-mcp-server": {
"command": "npx",
"args": []
}
}
}