Skip to main content
Glama

Hyperliquid MCP Server

by t3rmed

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
HYPERLIQUID_TESTNETNoSet to "true" for testnet, "false" or unset for mainnet
HYPERLIQUID_PRIVATE_KEYNoYour wallet's private key (with 0x prefix) - required for trading operations
HYPERLIQUID_WALLET_ADDRESSNoYour wallet address (derived from private key if not provided)

Schema

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Tools

Functions exposed to the LLM to take actions

NameDescription
get_all_mids

Get current mid prices for all coins on Hyperliquid

get_l2_book

Get L2 order book snapshot for a specific coin

get_candle_snapshot

Get historical candle data for a specific coin

get_open_orders

Get all open orders for the configured wallet or a specific user

get_user_fills

Get trading history (fills) for the configured wallet or a specific user

get_user_fills_by_time

Get trading history (fills) for a specific time range

get_portfolio

Get portfolio information including positions, PnL, and margin usage

place_order

Place a limit or trigger order on Hyperliquid

place_trigger_order

Place a trigger order (stop-loss or take-profit) on Hyperliquid

cancel_order

Cancel a specific order by order ID or client order ID

cancel_all_orders

Cancel all open orders

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/t3rmed/hyperliquid-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server