Hyperliquid MCP Server
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.
README
π Hyperliquid MCP Server
The first MCP server for Hyperliquid β trade perps, check positions, and manage risk via natural language in Claude, ChatGPT, or any MCP-compatible AI agent.
β‘ What You Can Do
Ask Claude in plain English:
"What's my Hyperliquid portfolio worth?" "Show me my open positions and unrealized PnL" "What's the order book for ETH perp right now?" "Which perps have negative funding I can take advantage of?" "How far am I from liquidation on my BTC long?" "Paper trade: buy 0.1 ETH at market" "Set a stop-loss on my SOL position at $120"
π οΈ Tools
| Tool | Description |
|---|---|
get_portfolio_value |
Account balance, equity, margin, unrealized PnL |
get_positions |
All open perp positions with PnL and leverage |
get_orderbook |
Live bid/ask for any market |
get_funding_rates |
Current + predicted funding across all perps |
get_liquidation_price |
Distance from liquidation for each position |
place_order |
Market or limit order (paper trading by default) |
cancel_order |
Cancel one or all open orders |
set_stop_loss |
Set a reduce-only stop-loss trigger |
π Quick Start
1. Clone + Install
git clone https://github.com/YOUR_USERNAME/hyperliquid-mcp
cd hyperliquid-mcp
python -m venv venv
source venv/bin/activate # Windows: venv\Scripts\activate
pip install -r requirements.txt
2. Configure
cp .env.example .env
# Edit .env with your wallet address
# Leave PAPER_TRADING=true until you're ready for live trading
3. Connect to Claude Desktop
Edit ~/Library/Application Support/Claude/claude_desktop_config.json (Mac) or
%APPDATA%\Claude\claude_desktop_config.json (Windows):
{
"mcpServers": {
"hyperliquid": {
"command": "python",
"args": ["/absolute/path/to/hyperliquid-mcp/server.py"],
"env": {
"HL_WALLET_ADDRESS": "0xYOUR_WALLET_ADDRESS",
"HL_PRIVATE_KEY": "0xYOUR_PRIVATE_KEY",
"HL_TESTNET": "true",
"PAPER_TRADING": "true"
}
}
}
}
Restart Claude Desktop. You'll see π¨ tools available in the input bar.
β οΈ Safety
PAPER_TRADING=true by default. In paper trading mode, all orders are logged but NEVER submitted to Hyperliquid. Safe for testing.
To enable live trading:
- Set
PAPER_TRADING=false - Set
HL_TESTNET=falsefor mainnet - Make sure
HL_PRIVATE_KEYis set - Understand: real money is at risk
The server will always show [PAPER TRADING] or [TESTNET] in tool descriptions so you know which mode you're in.
Never commit your private key. .env is in .gitignore by default.
π° Monetization (for the managed version)
| Tier | Price | Features |
|---|---|---|
| Open Source | Free | Self-hosted, all tools |
| Cloud Hosted | $29/mo | We host it, no setup, auto-updates |
| Pro Templates | $97 one-time | Strategy templates + backtesting prompts |
| Custom Bot | $500β$2,000 | Done-for-you custom trading agent |
πΊοΈ Roadmap
- [ ] Historical trade data tool
- [ ] Portfolio P&L over time
- [ ] Multi-account support
- [ ] Telegram bot integration
- [ ] Strategy backtesting tool
- [ ] Automated rebalancing agent
π License
MIT β use it, fork it, build on it.
Built by AgentReady β making businesses and markets AI-agent ready.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.