
hyperliquid mcp
MCP server to fetch data from hyperliquid APIs
Repository Info
About This Server
MCP server to fetch data from hyperliquid APIs
Model Context Protocol (MCP) - This server can be integrated with AI applications to provide additional context and capabilities, enabling enhanced AI interactions and functionality.
Documentation
Hyperliquid MCP Server
This project implements a Model Context Protocol (MCP) server in Node.js that allows you to query your Hyperliquid open positions. The server exposes a tool that can be accessed from MCP clients like the Claude Desktop app.
Overview
The MCP server provides a tool named get-hyperliquid-positions that allows Claude to fetch unrealized PnL and position information for any Hyperliquid wallet address. This integration enables seamless interaction between Claude and your Hyperliquid trading data.
Prerequisites
- Node.js installed on your system
- Claude Desktop app
- npm (Node Package Manager)
Building the Project
- Clone this repository:
git clone https://github.com/tomarsachin2271/hyperliquid-mcp.git
cd hyperliquid-mcp
- Install dependencies:
npm install
- Build the project:
npm run build
This will generate the dist/index.js file that will be used by the MCP server.
Configuring Claude Desktop
- Open Claude Desktop app
- Go to Claude menu → Settings → Developer → Edit Config
- This will open your config file in Finder (on macOS)
- Add the following configuration to the file:
{
"mcpServers": {
"hyperliquid": {
"command": "node",
"args": [
"/path/to/your/hyperliquid-mcp/dist/index.js"
]
}
}
}
Replace /path/to/your with the actual path to your project directory.
- Save the config file
- Restart the Claude Desktop app
Using the Tool
After configuration:
- You'll see a hammer icon in the bottom right section of the chat input box
- The MCP tool will be listed as "get-hyperliquid-positions"
- You can ask Claude questions like:
"Can you tell me unrealised pnl for my position on hyperliquid for 0x7f3B192Ab3220940D66236792F3EBDB0e4E74138" - Claude will identify the appropriate tool and ask for your confirmation
- Click "Allow" to execute the query
- Claude will display the results of your query
Example Usage
- Ask Claude about your positions
- Claude identifies the tool needed
- Approve the tool usage
- Get your position information directly in the chat
This seamless integration allows you to quickly access your Hyperliquid trading information through natural conversation with Claude.
Quick Start
Clone the repository
git clone https://github.com/tomarsachin2271/hyperliquid-mcpInstall dependencies
cd hyperliquid-mcp
npm installFollow the documentation
Check the repository's README.md file for specific installation and usage instructions.
Repository Details
Recommended MCP Servers
Discord MCP
Enable AI assistants to seamlessly interact with Discord servers, channels, and messages.
Knit MCP
Connect AI agents to 200+ SaaS applications and automate workflows.
Apify MCP Server
Deploy and interact with Apify actors for web scraping and data extraction.
BrowserStack MCP
BrowserStack MCP Server for automated testing across multiple browsers.
Zapier MCP
A Zapier server that provides automation capabilities for various apps.