Hyperliquid MCP Server

Hyperliquid MCP Server

By tomarsachin2271 GitHub

MCP server to fetch data from hyperliquid APIs

hyperliquid mcp
Overview

what is Hyperliquid MCP Server?

Hyperliquid MCP Server is a Node.js implementation of a Model Context Protocol (MCP) server that allows users to query their Hyperliquid open positions and fetch trading data through the Claude Desktop app.

how to use Hyperliquid MCP Server?

To use the Hyperliquid MCP Server, clone the repository, install the dependencies, build the project, and configure the Claude Desktop app to recognize the MCP server. After configuration, you can interact with the server through the Claude app.

key features of Hyperliquid MCP Server?

  • Fetch unrealized PnL and position information for Hyperliquid wallet addresses.
  • Seamless integration with the Claude Desktop app for easy querying.
  • Simple setup and configuration process.

use cases of Hyperliquid MCP Server?

  1. Querying unrealized profits and losses for specific trading positions.
  2. Accessing position information directly through natural language queries in the Claude app.
  3. Monitoring trading data in real-time via the MCP server.

FAQ from Hyperliquid MCP Server?

  • What is required to run the Hyperliquid MCP Server?

You need Node.js, the Claude Desktop app, and npm installed on your system.

  • How do I configure the Claude Desktop app?

You need to edit the config file in the Claude app settings to include the MCP server details.

  • Can I use this server for any Hyperliquid wallet?

Yes, you can query any Hyperliquid wallet address for position information.

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.

No tools information available.
School MCP
School MCP by 54yyyu

A Model Context Protocol (MCP) server for academic tools, integrating with Canvas and Gradescope platforms.

canvas mcp
View Details
repo-template
repo-template by loonghao

A Model Context Protocol (MCP) server for Python package intelligence, providing structured queries for PyPI packages and GitHub repositories. Features include dependency analysis, version tracking, and package metadata retrieval for LLM interactions.

-

google-calendar mcp
View Details
strava-mcp
strava-mcp by jeremysilva1098

MCP server for strava

strava mcp
View Details

Model Context Protocol (MCP) server implementation for Rhinoceros/Grasshopper integration, enabling AI models to interact with parametric design tools

grasshopper mcp
View Details

MCP configuration to connect AI agent to a Linux machine.

security mcp
View Details

AI assistant built with Streamlit, NVIDIA NIM (LLaMa 3.3:70B) / Ollama, and Model Control Protocol (MCP).

python mcp
View Details