| name | kukapay-hyperliquid-info-mcp |
| description | An MCP server that provides real-time data and insights from the Hyperliquid perp DEX for use in bots, dashboards, and analytics. |
kukapay-hyperliquid-info-mcp
Source: github.com/kukapay/hyperliquid-info-mcp. The body below is the upstream README.md captured at the time of registration.
Hyperliquid Info MCP Server
An MCP server that provides real-time data and insights from the Hyperliquid perp DEX for use in bots, dashboards, and analytics.

Features
Installation
Prerequisites
- Python 3.10: Required by the Hyperliquid Python SDK.
- A valid Hyperliquid account address for user-specific queries.
- uv or pip for package management.
Steps
-
Clone the Repository:
git clone https://github.com/kukapay/hyperliquid-info-mcp.git
cd hyperliquid-info-mcp
-
Install Dependencies:
Using uv:
uv sync
Usage
Running the Server
Run the server in development mode with MCP Inspector:
mcp dev main.py
Or install it for use in Claude Desktop:
mcp install main.py --name "Hyperliquid Info"
Example Usage
Using the MCP Inspector or Claude Desktop, you can interact with the server using natural language prompts. Below are examples of how to trigger the analyze_positions prompt and individual tools conversationally.
-
Analyze Trading Positions:
- Prompt:
"Please analyze the trading activity for my Hyperliquid account with address 0xYourAddress. Provide insights on my positions, open orders, and recent trades."
- Behavior:
This triggers the analyze_positions prompt, which uses get_user_state, get_user_open_orders, get_user_trade_history, get_user_funding_history, and get_user_fees to fetch data and generate a risk/performance analysis.
- Example Output:
For account 0xYourAddress:
- Current Positions: 0.1 BTC long at $50,000, unrealized PNL +$500.
- Open Orders: 1 limit order to sell 0.05 BTC at $52,000.
- Recent Trades: Bought 0.1 BTC at $50,000 on 2025-05-30.
- Funding Payments: Paid $10 in funding fees last week.
- Fees: Maker fee 0.02%, taker fee 0.05%.
Recommendation: Monitor BTC price closely due to high leverage.
-
Fetch User State:
- Prompt:
"Show me the current state of my Hyperliquid account 0xYourAddress, including my positions and margin details for perpetuals."
- Behavior:
Invokes get_user_state(account_address="0xYourAddress", check_spot=False).
- Example Output:
{
"assetPositions": [
{
"position": {
"coin": "BTC",
"szi": "0.1",
"entryPx": "50000.0",
"markPx": "50500.0",
"unrealizedPnl": "500.0"
}
}
],
"marginSummary": {
"accountValue": "10000.0",
"totalMarginUsed": "2000.0"
},
"withdrawable": "8000.0"
}
-
Get Candlestick Data:
- Prompt:
"Can you get the 1-minute candlestick data for ETH on Hyperliquid from January 1, 2025, to January 2, 2025?"
- Behavior:
Invokes get_candles_snapshot(coin_name="ETH", interval="1m", start_time="2025-01-01T00:00:00Z", end_time="2025-01-02T00:00:00Z").
- Example Output:
[
{
"t": 1672531200000,
"o": "3000.0",
"h": "3010.0",
"l": "2995.0",
"c": "3005.0",
"v": "1000.0"
},
...
]
-
Check Trade History:
- Prompt:
"What are the recent trades for my account 0xYourAddress on Hyperliquid?"
License
This project is licensed under the MIT License.