Sponsored by Deepsite.site

Hyperliquid MCP Server

Created By
tomarsachin22719 months ago
MCP server to fetch data from hyperliquid APIs
Content

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

  1. Clone this repository:
git clone https://github.com/tomarsachin2271/hyperliquid-mcp.git
cd hyperliquid-mcp
  1. Install dependencies:
npm install
  1. 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

  1. Open Claude Desktop app
  2. Go to Claude menu → Settings → Developer → Edit Config
  3. This will open your config file in Finder (on macOS)
  4. 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.

  1. Save the config file
  2. Restart the Claude Desktop app

Using the Tool

After configuration:

  1. You'll see a hammer icon in the bottom right section of the chat input box
  2. The MCP tool will be listed as "get-hyperliquid-positions"
  3. You can ask Claude questions like:
    "Can you tell me unrealised pnl for my position on hyperliquid for 0x7f3B192Ab3220940D66236792F3EBDB0e4E74138"
    
  4. Claude will identify the appropriate tool and ask for your confirmation
  5. Click "Allow" to execute the query
  6. Claude will display the results of your query

Example Usage

  1. Ask Claude about your positions
  2. Claude identifies the tool needed
  3. Approve the tool usage
  4. 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.

Recommend Servers
TraeBuild with Free GPT-4.1 & Claude 3.7. Fully MCP-Ready.
WindsurfThe new purpose-built IDE to harness magic
BlenderBlenderMCP connects Blender to Claude AI through the Model Context Protocol (MCP), allowing Claude to directly interact with and control Blender. This integration enables prompt assisted 3D modeling, scene creation, and manipulation.
TimeA Model Context Protocol server that provides time and timezone conversion capabilities. This server enables LLMs to get current time information and perform timezone conversions using IANA timezone names, with automatic system timezone detection.
Visual Studio Code - Open Source ("Code - OSS")Visual Studio Code
MCP AdvisorMCP Advisor & Installation - Use the right MCP server for your needs
Tavily Mcp
Serper MCP ServerA Serper MCP Server
EdgeOne Pages MCPAn MCP service designed for deploying HTML content to EdgeOne Pages and obtaining an accessible public URL.
DeepChatYour AI Partner on Desktop
Context7Context7 MCP Server -- Up-to-date code documentation for LLMs and AI code editors
Playwright McpPlaywright MCP server
MiniMax MCPOfficial MiniMax Model Context Protocol (MCP) server that enables interaction with powerful Text to Speech, image generation and video generation APIs.
AiimagemultistyleA Model Context Protocol (MCP) server for image generation and manipulation using fal.ai's Stable Diffusion model.
Howtocook Mcp基于Anduin2017 / HowToCook (程序员在家做饭指南)的mcp server,帮你推荐菜谱、规划膳食,解决“今天吃什么“的世纪难题; Based on Anduin2017/HowToCook (Programmer's Guide to Cooking at Home), MCP Server helps you recommend recipes, plan meals, and solve the century old problem of "what to eat today"
Zhipu Web SearchZhipu Web Search MCP Server is a search engine specifically designed for large models. It integrates four search engines, allowing users to flexibly compare and switch between them. Building upon the web crawling and ranking capabilities of traditional search engines, it enhances intent recognition capabilities, returning results more suitable for large model processing (such as webpage titles, URLs, summaries, site names, site icons, etc.). This helps AI applications achieve "dynamic knowledge acquisition" and "precise scenario adaptation" capabilities.
ChatWiseThe second fastest AI chatbot™
Baidu Map百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Amap Maps高德地图官方 MCP Server
CursorThe AI Code Editor
Jina AI MCP ToolsA Model Context Protocol (MCP) server that integrates with Jina AI Search Foundation APIs.