Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault

No arguments

Tools

Functions exposed to the LLM to take actions

NameDescription
get_user_state
Query user state including trading positions, margin, and withdrawable balance. Parameters: account_address (str): The Hyperliquid account address (e.g., '0xcd5051944f780a621ee62e39e493c489668acf4d'). check_spot (bool, optional): If True, queries spot user state; otherwise, queries perpetuals state. Defaults to False. ctx (Context, optional): The MCP context object for accessing server state. Returns: str: A JSON string containing the user state, including a list of positions (with symbol, size, entry_price, current_price, unrealized_pnl), margin_summary, and withdrawable balance. Returns a JSON string with an error message if the query fails.
get_user_open_orders
Fetch all open orders for a specific user account. Parameters: account_address (str): The Hyperliquid account address (e.g., '0xcd5051944f780a621ee62e39e493c489668acf4d'). ctx (Context): The MCP context object for accessing server state. Returns: str: A JSON string containing a list of open orders, each with details such as order ID, symbol, size, price, and status. Returns a JSON string with an error message if the query fails.
get_all_mids
Retrieve the mid prices for all trading pairs available on the exchange. Parameters: ctx (Context): The MCP context object for accessing server state. Returns: str: A JSON string containing a dictionary of trading pairs and their mid prices. Returns a JSON string with an error message if the query fails.
get_user_trade_history
Fetch the trade fill history for a specific user account. Parameters: account_address (str): The Hyperliquid account address (e.g., '0xcd5051944f780a621ee62e39e493c489668acf4d'). ctx (Context): The MCP context object for accessing server state. Returns: str: A JSON string containing a list of trade fills, each with details such as symbol, size, price, timestamp, and trade ID. Returns a JSON string with an error message if the query fails.
get_perp_dexs
Retrieve metadata about perpetual markets available on the Hyperliquid decentralized exchange. Parameters: ctx (Context): The MCP context object for accessing server state. Returns: str: A JSON string containing metadata about perpetual markets, including a list of trading pairs and their contract details (e.g., symbol, tick size, contract type). Returns a JSON string with an error message if the query fails.
get_coin_funding_history
Fetch the funding rate history for a specific coin. Parameters: coin_name (str): The trading symbol (e.g., 'BTC', 'ETH'). start_time (str): The start time for the funding history in ISO 8601 format (e.g., '2025-01-01T00:00:00Z'). end_time (str): The end time for the funding history in ISO 8601 format (e.g., '2025-12-31T23:59:59Z'). ctx (Context): The MCP context object for accessing server state. Returns: str: A JSON string containing a list of funding rate records, each with details such as funding rate and timestamp. Returns a JSON string with an error message if the query fails.
get_user_funding_history
Fetch the funding payment history for a specific user account. Parameters: account_address (str): The Hyperliquid account address (e.g., '0xcd5051944f780a621ee62e39e493c489668acf4d'). start_time (str): The start time for the funding history in ISO 8601 format (e.g., '2025-01-01T00:00:00Z'). end_time (str): The end time for the funding history in ISO 8601 format (e.g., '2025-12-31T23:59:59Z'). ctx (Context): The MCP context object for accessing server state. Returns: str: A JSON string containing a list of funding payment records, each with details such as amount and timestamp. Returns a JSON string with an error message if the query fails.
get_l2_snapshot
Fetch the Level 2 order book snapshot for a specific coin. Parameters: coin_name (str): The trading symbol (e.g., 'BTC', 'ETH'). ctx (Context): The MCP context object for accessing server state. Returns: str: A JSON string containing the Level 2 order book snapshot, including bids and asks with prices and sizes. Returns a JSON string with an error message if the query fails.
get_candles_snapshot
Fetch the candlestick data snapshot for a specific coin. Parameters: coin_name (str): The trading symbol (e.g., 'BTC', 'ETH'). interval (str): The candlestick interval (e.g., '1m', '5m', '1h'). start_time (str): The start time for the candles in ISO 8601 format (e.g., '2025-01-01T00:00:00Z'). end_time (str): The end time for the candles in ISO 8601 format (e.g., '2025-12-31T23:59:59Z'). ctx (Context): The MCP context object for accessing server state. Returns: str: A JSON string containing a list of candlestick data, each with open, high, low, close, volume, and timestamp. Returns a JSON string with an error message if the query fails.
get_user_fees
Fetch the fee structure and rates for a specific user account. Parameters: account_address (str): The Hyperliquid account address (e.g., '0xcd5051944f780a621ee62e39e493c489668acf4d'). ctx (Context): The MCP context object for accessing server state. Returns: str: A JSON string containing the user's fee structure, including maker and taker fees. Returns a JSON string with an error message if the query fails.
get_user_staking_summary
Fetch the staking summary for a specific user account. Parameters: account_address (str): The Hyperliquid account address (e.g., '0xcd5051944f780a621ee62e39e493c489668acf4d'). ctx (Context): The MCP context object for accessing server state. Returns: str: A JSON string containing the staking summary, including staked amounts and status. Returns a JSON string with an error message if the query fails.
get_user_staking_rewards
Fetch the staking rewards history for a specific user account. Parameters: account_address (str): The Hyperliquid account address (e.g., '0xcd5051944f780a621ee62e39e493c489668acf4d'). ctx (Context): The MCP context object for accessing server state. Returns: str: A JSON string containing a list of staking reward records, each with amount and timestamp. Returns a JSON string with an error message if the query fails.
get_user_order_by_oid
Fetch details of a specific order by its order ID for a user account. Parameters: account_address (str): The Hyperliquid account address (e.g., '0xcd5051944f780a621ee62e39e493c489668acf4d'). oid (int): The order ID to query. ctx (Context): The MCP context object for accessing server state. Returns: str: A JSON string containing the order details, including symbol, size, price, and status. Returns a JSON string with an error message if the query fails.
get_user_order_by_cloid
Fetch details of a specific order by its client order ID for a user account. Parameters: account_address (str): The Hyperliquid account address (e.g., '0xcd5051944f780a621ee62e39e493c489668acf4d'). cloid (str): The client order ID to query. ctx (Context): The MCP context object for accessing server state. Returns: str: A JSON string containing the order details, including symbol, size, price, and status. Returns a JSON string with an error message if the query fails.
get_user_sub_accounts
Fetch the sub-accounts associated with a specific user account. Parameters: account_address (str): The Hyperliquid account address (e.g., '0xcd5051944f780a621ee62e39e493c489668acf4d'). ctx (Context): The MCP context object for accessing server state. Returns: str: A JSON string containing a list of sub-accounts and their details. Returns a JSON string with an error message if the query fails.
get_perp_metadata
Fetch metadata about perpetual markets on the Hyperliquid exchange. Parameters: include_asset_ctxs (bool, optional): If True, includes asset contexts with metadata. Defaults to False. ctx (Context, optional): The MCP context object for accessing server state. Returns: str: A JSON string containing metadata about perpetual markets, including trading pairs and contract details (e.g., symbol, tick size). Returns a JSON string with an error message if the query fails.
get_spot_metadata
Fetch metadata about spot markets on the Hyperliquid exchange. Parameters: include_asset_ctxs (bool, optional): If True, includes asset contexts with metadata. Defaults to False. ctx (Context, optional): The MCP context object for accessing server state. Returns: str: A JSON string containing metadata about spot markets, including trading pairs and contract details (e.g., symbol, tick size). Returns a JSON string with an error message if the query fails.

Prompts

Interactive templates invoked by user choice

NameDescription
analyze_positions Analyze the user's trading positions and trading activity. Parameters: account_address (str): The Hyperliquid account address (e.g., '0xcd5051944f780a621ee62e39e493c489668acf4d'). Returns: List[base.Message]: A list of messages guiding the analysis process, including instructions to use relevant tools for fetching trading data.

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Latest Blog Posts

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/kukapay/hyperliquid-info-mcp'

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