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 |
Capabilities
Features and capabilities supported by this server
| 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 | |
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/erscoder/hyperliquid-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server