JSPM

  • Created
  • Published
  • Downloads 13
  • Score
    100M100P100Q70628F
  • License MIT

Hyperliquid MCP Server - AI Trading Agent for Claude Desktop

Package Exports

  • @hyperliquid-ai/mcp-server/dist/server.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@hyperliquid-ai/mcp-server) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

@hyperliquid-ai/mcp-server

Transform Claude Desktop into an AI Trading Powerhouse

Professional trading signals, technical analysis, and order management directly in Claude Desktop.

๐Ÿš€ Quick Start

Installation

npm install -g @hyperliquid-ai/mcp-server

Claude Desktop Setup

npx @hyperliquid-ai/mcp-server install-claude

Test Your Installation

Open Claude Desktop and ask:

"Get BTC trading signal"

That's it! ๐ŸŽ‰

๐ŸŽฏ What You Get

  • ๐Ÿ“ˆ Real-time Trading Signals - AI-powered BUY/SELL/HOLD recommendations
  • ๐Ÿ“Š Technical Analysis - RSI, MACD, Moving Averages, VWAP, Bollinger Bands
  • ๐Ÿ’ผ Account Management - Balance, positions, and order tracking
  • ๐ŸŽฏ Order Placement - Execute trades directly from Claude (Premium+)
  • ๐Ÿ“š Market Data - Live prices, orderbooks, and market analysis

๐Ÿ”ง Configuration

Environment Setup

Create .env file in your home directory:

# Required: Your Hyperliquid private key
HYPERLIQUID_PRIVATE_KEY=your_private_key_here

# Optional: Main wallet for queries (defaults to trading wallet)
HYPERLIQUID_MAIN_WALLET_ADDRESS=your_main_wallet_address

# Optional: Environment (defaults to testnet)
HL_ENV=mainnet  # or testnet

# Optional: Premium API key for advanced features
HYPERLIQUID_API_KEY=your_premium_api_key

Get Premium API Key

Visit hyperliquid-ai.xyz to:

  • ๐Ÿ†“ Start Free: 10 requests/hour, basic signals
  • ๐Ÿ’Ž Premium ($49/month): 1,000 requests/hour, all features
  • ๐Ÿข Enterprise ($199/month): Unlimited requests, priority support

๐Ÿ“– Usage Examples

Basic Trading Signal

Ask Claude: "Get a trading signal for BTC"

Technical Analysis

Ask Claude: "Analyze ETH with RSI and MACD on 1h timeframe"

Account Information

Ask Claude: "Show my Hyperliquid account balance and positions"

Place Orders (Premium+)

Ask Claude: "Place a buy order for 0.1 BTC at market price"

๐Ÿ› ๏ธ Advanced Configuration

Manual Claude Desktop Setup

Add to ~/Library/Application Support/Claude/claude_desktop_config.json (macOS):

{
  "mcpServers": {
    "hyperliquid-ai": {
      "command": "node",
      "args": ["/path/to/@hyperliquid-ai/mcp-server/dist/server.js"]
    }
  }
}

Custom Installation Path

# Install to specific location
npm install @hyperliquid-ai/mcp-server --prefix /your/custom/path

# Configure Claude Desktop manually
npx @hyperliquid-ai/mcp-server install-claude --path /your/custom/path

๐Ÿ” Available Commands

CLI Commands

# Install Claude Desktop configuration
npx @hyperliquid-ai/mcp-server install-claude

# Remove Claude Desktop configuration  
npx @hyperliquid-ai/mcp-server uninstall-claude

# Test MCP server connection
npx @hyperliquid-ai/mcp-server test

# Start server manually (for debugging)
npx @hyperliquid-ai/mcp-server start

MCP Tools Available in Claude

  • get_trading_signal - Generate AI trading recommendations
  • get_technical_analysis - Advanced technical indicator analysis
  • get_account_info - View balance and positions
  • get_market_data - Real-time prices and market info
  • place_order - Execute trades (Premium+)
  • cancel_order - Cancel existing orders (Premium+)
  • get_order_status - Check order status (Premium+)

๐Ÿšจ Security Best Practices

  • โš ๏ธ Never share your private key
  • ๐Ÿ”’ Use environment variables for sensitive data
  • ๐Ÿงช Start with testnet to learn the system
  • ๐Ÿ’ก Use separate wallet for trading vs main holdings
  • ๐Ÿ“ฑ Enable 2FA on your Hyperliquid account

๐Ÿ› Troubleshooting

Common Issues

"HYPERLIQUID_PRIVATE_KEY is required"

  • Set your private key in .env file or environment variables

"Claude Desktop not detecting MCP server"

  • Run npx @hyperliquid-ai/mcp-server install-claude again
  • Restart Claude Desktop completely
  • Check Claude Desktop logs for errors

"API rate limit exceeded"

Debug Mode

# Enable detailed logging
DEBUG=hyperliquid-mcp npx @hyperliquid-ai/mcp-server start

๐Ÿ“š Documentation

๐Ÿ“„ License

MIT License - see LICENSE file for details.

๐Ÿค Contributing

Contributions welcome! Please see our contributing guidelines.


Transform your trading with Claude Desktop + Hyperliquid MCP Server ๐ŸŽฏ