Hyperliquid MCP Server

Hyperliquid perp & spot data: prices, funding, open interest, order book, positions. No API key.

Local serverstdioTypeScript

What is the Hyperliquid MCP server?

Hyperliquid MCP server is a locally run integration for AI assistants that speak the Model Context Protocol. Hyperliquid perp & spot data: prices, funding, open interest, order book, positions. No API key.

What you get

No API key. No signup. The public Hyperliquid info API is free.

What the assistant can call

Once Hyperliquid is connected, these are the calls the assistant has available:

  • get_all_mids — Current mid prices for all markets, optionally filtered to specific coins
  • get_perp_markets — All perps ranked by volume / OI / funding / change / gainers / losers
  • get_market — Deep snapshot of one perp: mark/oracle/mid, 24h change & vol, funding, OI, premium, leverage
  • get_funding_history — Funding-rate history for a perp over an N-hour window, with the average
  • get_order_book — Live L2 book (top bids/asks + spread) for a perp or spot pair
  • get_spot_markets — Spot markets (HYPE, PURR, etc.) ranked by volume / change
  • get_user_state — Perp account state for any wallet: value, margin, and open positions with PnL & liq price
  • Cursor — The Cursor tool exposed by this server

Setting it up

Installation goes through your MCP client rather than a global install: point it at npm on npm and it is fetched when the client starts. The copy-paste blocks for Claude Desktop, Claude Code and Cursor are further down this page.

Choosing this one

This sits in the developer tooling group, where several servers overlap in what they claim to do but differ sharply once you actually set them up. Hyperliquid's toolset — get_all_mids, get_perp_markets, get_market and 5 more — is a fair guide to whether it matches your workflow. It is maintained by Glebenjoy; worth a glance at recent repository activity before you build anything load-bearing on it.

This entry was verified against Hyperliquid's own documentation before publication; SyncDev keeps the directory reviewed rather than auto-generated.

Before you rely on it

  • It runs with your machine's permissions. That is convenient and also the reason to think about what you point it at before you approve a tool call.
  • MCP clients confirm each tool call by default. Leave that on until you have watched what the hyperliquid mcp server does with a few real requests.

Available tools

ToolWhat it does
get_all_midsCurrent mid prices for all markets, optionally filtered to specific coins
get_perp_marketsAll perps ranked by volume / OI / funding / change / gainers / losers
get_marketDeep snapshot of one perp: mark/oracle/mid, 24h change & vol, funding, OI, premium, leverage
get_funding_historyFunding-rate history for a perp over an N-hour window, with the average
get_order_bookLive L2 book (top bids/asks + spread) for a perp or spot pair
get_spot_marketsSpot markets (HYPE, PURR, etc.) ranked by volume / change
get_user_statePerp account state for any wallet: value, margin, and open positions with PnL & liq price
CursorThe Cursor tool exposed by this server.

How to install the Hyperliquid MCP server

{
  "mcpServers": {
    "hyperliquid": {
      "command": "npx",
      "args": ["-y", "hyperliquid-info-mcp"]
    }
  }
}

Configuration as documented by the project. Restart the client after saving.

Example prompts to try

  • Use Hyperliquid to get all mids.
  • Use Hyperliquid to get perp markets.
  • Use Hyperliquid to get market.

Frequently asked questions

It connects Hyperliquid to MCP-compatible AI assistants such as Claude and Cursor, exposing 8 tools (get_all_mids, get_perp_markets, get_market, and more) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with Hyperliquid directly.