Hyperliquid MCP
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| HL_PRIVATE_KEY | No | Your Hyperliquid private key for trading mode | |
| HL_WALLET_ADDRESS | No | Your Hyperliquid wallet address for read-only mode |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
| experimental | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| hl_get_all_midsA | Get mid prices for all assets on Hyperliquid. |
| hl_get_orderbookA | Get L2 orderbook (bids/asks) for a specific asset. Args: coin: Asset symbol e.g. BTC, ETH, SOL depth: Number of price levels to return (default 10) |
| hl_get_metaA | Get metadata for all markets: max leverage, tick size, lot size. |
| hl_get_candlesB | Get OHLCV candles for a specific asset. Args: coin: Asset symbol e.g. BTC, ETH, SOL interval: 1m, 5m, 15m, 30m, 1h, 4h, 8h, 1d (default 1h) limit: Number of candles to return (default 50) |
| hl_get_user_stateA | Get your Hyperliquid account: positions, equity, margin, unrealized PnL. Requires HL_WALLET_ADDRESS (read-only) or HL_PRIVATE_KEY (trading) in env. |
| hl_get_open_ordersA | Get all your open orders on Hyperliquid. Requires HL_WALLET_ADDRESS or HL_PRIVATE_KEY in env. |
| hl_get_fillsA | Get your recent trade history (fills). Requires HL_WALLET_ADDRESS or HL_PRIVATE_KEY in env. Args: limit: Number of recent trades to return (default 50) |
| hl_get_funding_historyB | Get funding rate history for a specific asset. Args: coin: Asset symbol e.g. BTC, ETH, SOL days: Number of days of history (default 7) |
| hl_place_orderA | Place an order on Hyperliquid. Requires HL_PRIVATE_KEY in env. Args: coin: Asset symbol e.g. BTC, ETH, SOL is_buy: True for long/buy, False for short/sell size: Position size in coins price: Limit price (None for market order) order_type: limit or market (default limit) reduce_only: Only reduce existing position (default False) |
| hl_cancel_orderA | Cancel a specific order by order ID. Requires HL_PRIVATE_KEY in env. Args: coin: Asset symbol e.g. BTC oid: Order ID to cancel |
| hl_cancel_all_ordersA | Cancel all open orders, optionally filtered by coin. Requires HL_PRIVATE_KEY in env. Args: coin: Optional asset symbol to filter (None cancels all) |
| hl_close_positionA | Close the entire position for a specific asset using a market order. Requires HL_PRIVATE_KEY in env. Args: coin: Asset symbol e.g. BTC, ETH |
| hl_set_leverageA | Set leverage for a specific asset. Requires HL_PRIVATE_KEY in env. Args: coin: Asset symbol e.g. BTC, ETH leverage: Leverage multiplier e.g. 5, 10, 20 is_cross: True for cross margin, False for isolated (default True) |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 13 tools
Every tool has a clearly distinct purpose: order management, position control, data queries, leverage setting. No two tools overlap in functionality.
All tools follow the 'hl_' prefix with consistent verb_noun snake_case pattern (e.g., cancel_order, place_order, get_all_mids). Predictable and uniform.
13 tools is well-scoped for a trading platform, covering essential operations without being excessive or sparse.
Core trading workflow (order placement, cancellation, position closing, market data, account info) is covered. Lacks order modification and detailed trade history, but no critical gaps.