# hyperliquid-mcp [Health: Active]

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

## Description
Read-only Hyperliquid data: markets, funding rates, order books, candles, positions and fills

## Tools
Capabilities this server exposes over MCP:

- **get_markets** — List Hyperliquid perpetual markets with mark price, 24h change, 24h volume, open interest, funding rate (1h and annualized APR) and max leverage. Pass `coin` for a single market, or sort/limit the full list.
- **get_price** — Current mid prices. Pass `coins` for specific perp markets (e.g. ["BTC", "ETH"]) or omit to get all perp mids at once.
- **get_orderbook** — L2 order book snapshot for a perp market: best bid/ask, spread, and aggregated levels per side.
- **get_candles** — Historical OHLCV candles for a perp market. Intervals: 1m, 3m, 5m, 15m, 30m, 1h, 2h, 4h, 8h, 12h, 1d, 3d, 1w.
- **get_account** — Full account state for any Hyperliquid address: account value, margin usage, withdrawable, every open perp position (side, size, entry, liquidation price, unrealized PnL, leverage) and spot balances. Read-only public data.
- **get_open_orders** — Resting open orders for an address: side, price, size, order type, trigger info.
- **get_recent_fills** — Most recent trade fills for an address: direction (Open Long / Close Short / ...), price, size, notional, closed PnL and fees.
- **get_funding_paid** — Net funding paid or received by an address over the last N hours, broken down by coin. Positive = received, negative = paid.

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

```json
"mcpServers": {
  "hyperliquid-mcp": {
    "command": "npx",
    "args": ["-y","@kitsune-de/hyperliquid-mcp"],
    "env": {
      "HL_INFO_URL": ""
    }
  }
}
```

**Requires environment variables:** `HL_INFO_URL` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## What hyperliquid-mcp does

The hyperliquid-mcp MCP server connects an MCP-compatible agent to Hyperliquid’s public Info API. It is designed for querying perpetual-market and account information, not for placing, modifying, or canceling trades. Account-related queries accept any address, so an agent can inspect a personal account, another public address, or a vault when the relevant data is available through Hyperliquid’s public interface.

Market coverage includes current perpetual prices, 24-hour changes and volumes, open interest, funding rates, annualized funding APR, maximum leverage, order-book levels, and historical OHLCV candles. Account queries cover margin and account values, withdrawable amounts, positions, spot balances, resting orders, fills, and net funding paid or received.

## How it works

The server communicates with the MCP client over standard input/output and uses Hyperliquid’s public Info API for data retrieval. No API credentials, wallet keys, or signing setup is required. Because the implementation is read-only, it cannot submit trades or other signed actions.

The market tools can return all relevant perpetual markets or accept filters such as a coin, sorting field, or result limit. Price queries can target selected coins or return all perpetual mid prices. Order-book requests identify a coin and can specify depth. Candle requests accept a coin, an interval from 1 minute through 1 week, and an optional count.

Address-based tools require a Hyperliquid address. They expose positions with side, size, entry price, liquidation price, unrealized PnL, and leverage; open orders with side, price, size, type, and trigger information; recent fills with direction, notional, closed PnL, and fees; and funding totals by coin over a requested time window.

## Setup and configuration

The hyperliquid-mcp MCP server can be launched directly from npm with `npx -y @kitsune-de/hyperliquid-mcp`. Add that command as an MCP server entry in Claude Desktop, Cursor, or another compatible client. Claude Code can add it with its MCP command-line configuration flow.

A source installation is also available. Clone the repository, run `npm install`, build with `npm run build`, and configure the client to execute `node /path/to/hyperliquid-mcp/dist/index.js`.

The optional `HL_INFO_URL` environment variable selects the Info API endpoint. It defaults to `https://api.hyperliquid.xyz/info`; set it to `https://api.hyperliquid-testnet.xyz/info` when using the Hyperliquid testnet endpoint. The project also provides a `npm run smoke` command that starts the server over stdio and exercises its tools against live mainnet data.

## Tools and capabilities

- `get_markets`: Lists perpetual-market metrics, with optional coin, sort, and limit parameters.
- `get_price`: Returns mid prices for selected coins or all perpetuals.
- `get_orderbook`: Retrieves bid and ask levels, best prices, and spread percentage.
- `get_candles`: Retrieves OHLCV candles across intervals from 1 minute to 1 week.
- `get_account`: Reports account value, margin usage, withdrawable funds, positions, and spot balances.
- `get_open_orders`: Lists resting orders and trigger details.
- `get_recent_fills`: Returns recent executions, prices, sizes, PnL, and fees.
- `get_funding_paid`: Summarizes net funding paid or received by coin over a time range.

## Limitations and notes

The hyperliquid-mcp MCP server only reads public Hyperliquid data. It does not provide trading, wallet management, authentication, or signing operations. Its outputs are market-data and account-data responses rather than financial advice. The repository states that it has no affiliation with Hyperliquid.

The default endpoint is mainnet, while testnet use requires changing `HL_INFO_URL`. Data freshness, availability, and the fields returned ultimately depend on the Hyperliquid Info API.

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

