Hyperliquid Info MCP Server
Real-time Hyperliquid perp DEX data and analytics via MCP.
Key Features
Use Cases
README
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
-
User Data Queries:
get_user_state: Fetch user positions, margin, and withdrawable balance for perpetuals or spot markets.get_user_open_orders: Retrieve all open orders for a user account.get_user_trade_history: Get trade fill history with details like symbol, size, and price.get_user_funding_history: Query funding payment history with customizable time ranges.get_user_fees: Fetch user-specific fee structures (maker/taker rates).get_user_staking_summary&get_user_staking_rewards: Access staking details and rewards.get_user_order_by_oid&get_user_order_by_cloid: Retrieve specific order details by order ID or client order ID.get_user_sub_accounts: List sub-accounts associated with a main account.
-
Market Data Tools:
get_all_mids: Get mid prices for all trading pairs.get_l2_snapshot: Fetch Level 2 order book snapshots for a specific coin.get_candles_snapshot: Retrieve candlestick data with customizable intervals and time ranges.get_coin_funding_history: Query funding rate history for a specific coin.get_perp_dexs: Fetch metadata about perpetual markets (usingmeta).get_perp_metadata&get_spot_metadata: Get detailed metadata for perpetual and spot markets, with optional asset contexts.
-
Analysis Prompt:
analyze_positions: A guided prompt to analyze user trading activity using relevant tools.
-
ISO 8601 Support: Time-based queries (
get_candles_snapshot,get_coin_funding_history,get_user_funding_history) accept ISO 8601 time strings for precise data filtering.
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:
bashgit clone https://github.com/kukapay/hyperliquid-info-mcp.git cd hyperliquid-info-mcp -
Install Dependencies: Using
uv:bashuv 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 theanalyze_positionsprompt, which usesget_user_state,get_user_open_orders,get_user_trade_history,get_user_funding_history, andget_user_feesto 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.
- Prompt:
-
Fetch User State:
- Prompt:
"Show me the current state of my Hyperliquid account 0xYourAddress, including my positions and margin details for perpetuals." - Behavior:
Invokesget_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" }
- Prompt:
-
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:
Invokesget_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" }, ... ]
- Prompt:
-
Check Trade History:
- Prompt:
"What are the recent trades for my account 0xYourAddress on Hyperliquid?" - Behavior:
Invokesget_user_trade_history(account_address="0xYourAddress"). - Example Output:
[ { "coin": "ETH", "px": "3000.0", "sz": "0.5", "time": 1672531200000, "tid": "123456" }, ... ]
- Prompt:
-
Fetch Market Metadata:
- Prompt:
"Tell me about the perpetual markets available on Hyperliquid, including trading pairs." - Behavior:
Invokesget_perp_metadata(include_asset_ctxs=False). - Example Output:
{ "universe": [ { "name": "BTC-PERP", "maxLeverage": 50, "szDecimals": 4, "tickSz": "0.1" }, ... ] }
- Prompt:
License
This project is licensed under the MIT License.
Star History
Repository Owner
User
Repository Details
Programming Languages
Tags
Join Our Newsletter
Stay updated with the latest AI tools, news, and offers by subscribing to our weekly newsletter.
Related MCPs
Discover similar Model Context Protocol servers
PumpSwap MCP Server
MCP server for real-time Solana token trades and pool data.
PumpSwap MCP Server allows AI agents to interact with the PumpSwap DEX on Solana for automated, real-time token swaps and on-chain trading operations. It exposes commands for buying and selling tokens, querying token prices, and retrieving liquidity pool information. Designed for secure integration with Solana accounts, it enables customizable slippage and transaction fees while supporting context-driven, AI-issued commands. The server operates as a bridge between AI agents and the PumpSwap protocol, facilitating seamless trading and data queries.
- ⭐ 5
- MCP
- kukapay/pumpswap-mcp
Hyperliquid WhaleAlert MCP
Real-time whale alerts and analytics for Hyperliquid with MCP integration
Hyperliquid WhaleAlert MCP is an MCP server that delivers real-time notifications and summaries for high-value positions on the Hyperliquid exchange, specifically flagging positions exceeding $1 million in notional value. It provides tools to fetch recent whale transactions in a well-formatted Markdown table and prompts to generate comprehensive analytical summaries of whale activity. Designed for seamless integration with Claude Desktop and AI model context handling protocols, it utilizes the CoinGlass API and Python 3.10+. The toolset enhances oversight and analysis of significant trading activities for users and LLM-integrated applications.
- ⭐ 9
- MCP
- kukapay/hyperliquid-whalealert-mcp
Uniswap PoolSpy MCP Server
Tracks newly created Uniswap V3 liquidity pools across nine blockchain networks in real time.
Uniswap PoolSpy MCP Server is an MCP-compliant server designed to monitor and provide real-time data on newly created liquidity pools on Uniswap V3 across nine popular blockchain networks, including Ethereum, Base, and Arbitrum. The server allows users to customize their queries by time range, sorting fields, and result limits, making it suitable for DeFi analysis, trading, and development. It integrates directly with MCP environments such as Claude Desktop, supporting seamless plugin installation and natural language queries. The tool leverages The Graph API for fetching on-chain data and offers easy configuration for discovery by client applications.
- ⭐ 6
- MCP
- kukapay/uniswap-poolspy-mcp
Octagon MCP Server
AI-powered financial research and market intelligence via MCP.
Octagon MCP Server enables specialized, AI-powered financial research and analysis by integrating with the Octagon Market Intelligence API. It provides the ability to analyze public filings, earnings call transcripts, financial metrics, stock data, and private market transactions within Claude Desktop and other MCP-compatible clients. The server orchestrates multiple specialized agents for comprehensive market analysis and can aggregate, extract, and structure data from financial sources and public websites. Designed for seamless use in standardized Model Context Protocol environments, it supports rapid integration into advanced AI workflows.
- ⭐ 78
- MCP
- OctagonAI/octagon-mcp-server
Bitcoin MCP Server
Real-time Bitcoin blockchain data server for MCP clients.
Provides tools to deliver real-time Bitcoin blockchain data for use with Model Context Protocol (MCP) clients. Offers specialized endpoints for querying blockchain addresses, transactions, UTXOs, and block information by interfacing with the mempool.space API. Supports easy installation and integration with popular MCP clients, enabling seamless access to blockchain analytics.
- ⭐ 0
- MCP
- JamesANZ/bitcoin-mcp
Pydantic Logfire MCP Server
Enables LLMs to access and analyze application telemetry data through standardized MCP tools.
Pydantic Logfire MCP Server provides an MCP-compatible interface to access, analyze, and query telemetry data sent to Pydantic Logfire. It allows LLMs to retrieve distributed traces, perform SQL queries on telemetry databases, and generate links for trace inspection. The server can be integrated with well-known MCP clients and supports configuration for secure access with read tokens.
- ⭐ 124
- MCP
- pydantic/logfire-mcp
Didn't find tool you were looking for?