# hyperliquid-info-mcp [Health: Active]

**Category:** 💰 Finance & Fintech  
**Repository:** https://github.com/Glebenjoy/hyperliquid-info-mcp  
**GitHub Stars:** 0  
**npm Downloads (last month):** 295  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/hyperliquid-info-mcp

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

## Tools
Capabilities this server exposes over MCP:

- **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

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

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

## Documentation

## What hyperliquid-info-mcp does

The hyperliquid-info-mcp MCP server connects MCP-compatible agents to Hyperliquid’s public info API at `https://api.hyperliquid.xyz/info`. It provides read-only data for perpetual and spot markets, including current prices, market rankings, funding rates, open interest, order books, and public wallet state.

The server does not place orders and does not require a private key, API key, account signup, or authenticated access. It is suited to agents that need to answer market-data questions, compare perpetual metrics, inspect liquidity, or review positions associated with a public wallet address.

## How it works

The package runs over stdio and can be launched directly with `npx`. An MCP client starts the process, discovers its tools, and sends requests for market or account data. Responses come from Hyperliquid’s public information endpoint.

Market queries can cover all available markets or a selected coin, depending on the tool. Perpetual-market results can be ranked by volume, open interest, funding, price change, gainers, or losers. Funding data includes both the hourly rate used by Hyperliquid and an annualized value for comparison. Wallet lookups use a public address and return the account information exposed by the same data source used by the explorer.

## Setup and configuration

No environment variables or API credentials are required. Add the server to the MCP client configuration with the `npx` command and package name:

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

For Claude Desktop, place this entry in `claude_desktop_config.json`. For Cursor, place it in `.cursor/mcp.json`, then restart the client so the tools are loaded. The project also documents local development commands: `npm install`, `npm run dev`, `npm test`, and `npm run build`.

## Tools and capabilities

The hyperliquid-info-mcp MCP server exposes seven tools:

- `get_all_mids` returns current mid prices for all markets, with optional filtering by coin.
- `get_perp_markets` lists perpetual markets and supports ranking by volume, open interest, funding, change, gainers, or losers.
- `get_market` returns a detailed perpetual snapshot with mark, oracle, and mid prices; 24-hour change and volume; funding; open interest; premium; and leverage.
- `get_funding_history` retrieves funding rates for a perpetual over a requested number of hours and includes the average.
- `get_order_book` returns the live level-2 book, including top bids, asks, and spread, for a perpetual or spot pair.
- `get_spot_markets` lists spot markets and ranks them by volume or change.
- `get_user_state` reads a wallet’s perpetual account value, margin, open positions, profit and loss, and liquidation price.

## Limitations and notes

The hyperliquid-info-mcp MCP server is read-only. It cannot submit, cancel, or modify orders, and it does not provide trading execution. Its account tool accepts public wallet addresses and exposes only the account information available through Hyperliquid’s public API.

The server depends on live data from Hyperliquid’s public endpoint, so results reflect that source and its availability. It is intended for current market and account inspection, not for authenticated actions or private-key workflows.

_Full upstream README: https://allmcps.com/mcp/hyperliquid-info-mcp/readme_

