server hyperliquid

Local 2025-08-31 23:21:24 0

An MCP server implementation that integrates with Hyperliquid exchange, providing access to crypto market data including mid prices, historical candles, and L2 order books.


An MCP server implementation that integrates the Hyperliquid SDK.

Tools

  • get_all_mids

  • Retrieve mid prices for all coins on Hyperliquid

  • No required inputs

  • get_candle_snapshot

  • Get historical candlestick data for any token

  • Inputs:

    • coin (string): Token symbol
    • interval (string): Time interval (e.g., '15m', '1h')
    • startTime (number): Start time in milliseconds since epoch
    • endTime (number, optional): End time in milliseconds since epoch
  • get_l2_book

  • Access the L2 order book for any token
  • Inputs:
    • symbol (string): Token symbol

Usage with Claude Desktop

Add this to your claude_desktop_config.json:

NPX

{
  "mcpServers": {
    "brave-search": {
      "command": "npx",
      "args": ["-y", "@mektigboy/server-hyperliquid"]
    }
  }
}

License

This MCP server is licensed under the MIT License. This means you are free to use, modify, and distribute the software, subject to the terms and conditions of the MIT License. For more details, please see the LICENSE file in the project repository.

[
  {
    "description": "Get mid prices for all coins on Hyperliquid",
    "inputSchema": {
      "properties": {},
      "required": [],
      "type": "object"
    },
    "name": "get_all_mids"
  },
  {
    "description": "Get candlestick data for a token on Hyperliquid",
    "inputSchema": {
      "properties": {
        "coin": {
          "description": "The symbol of the token to get candlestick data for",
          "type": "string"
        },
        "endTime": {
          "description": "End time in milliseconds since epoch (optional)",
          "type": "number"
        },
        "interval": {
          "description": "Time interval (e.g., '15m', '1h')",
          "type": "string"
        },
        "startTime": {
          "description": "Start time in milliseconds since epoch",
          "type": "number"
        }
      },
      "required": [
        "coin",
        "interval",
        "startTime"
      ],
      "type": "object"
    },
    "name": "get_candle_snapshot"
  },
  {
    "description": "Get the L2 book of a token on Hyperliquid",
    "inputSchema": {
      "properties": {
        "required": [
          "symbol"
        ],
        "symbol": {
          "description": "The symbol of the token to get the price of",
          "type": "string"
        }
      },
      "type": "object"
    },
    "name": "get_l2_book"
  }
]