mcpField
H
Hl Spot X402

Hl Spot X402

Remote
github.comFinance0Updated 8w ago

About Hl Spot X402

Hl Spot X402 is an MCP server and pay-per-call API for Hyperliquid spot data, aimed at agents and clients that need token, market, or wallet information. It provides native DEX data and uses x402 payments over USDC on Base without an API key or signup.

Key features

  1. 01List and search spot tokens
  2. 02View live spot prices and 24-hour volume
  3. 03Sort markets by volume, change, or name
  4. 04Check wallet spot balances and holdings
  5. 05Pay per API call through x402

Use cases

  1. 01Find tokens listed on Hyperliquid spot
  2. 02Review spot prices and market activity
  3. 03Check available and held wallet balances
  4. 04Retrieve data through an x402-aware agent

MCP support

Exposes token listings, spot market data, and wallet balance tools through an MCP endpoint for clients such as Claude Desktop, Cursor, and ElizaOS.

Configuration

Remote servers need no local install. Pick your client, then copy the config or install in one click.

Endpointhttps://hl-spot.api.klymax402.com/mcp
Copy install command
Claude CodeTerminal
Cursor.cursor/mcp.json
VS Code.vscode/mcp.json
Claude Desktopclaude_desktop_config.json
Windsurf~/.codeium/windsurf/mcp_config.json

Run commands in a terminal; paste JSON into the client’s MCP config and restart. Servers that need sign-in will prompt on first connect.

Tools

Details

From the project README

Hyperliquid Spot API

MCP Server x402 License: MIT

Hyperliquid SPOT market data: 454 tokens, live prices, 24h volume, wallet balances. Native L1 DEX data, no CoinGecko. The spot data layer agents need for Hyperliquid trading. Pay-per-call via x402 (USDC on Base L2) -- no API key, no signup, no rate-limit wall.

Part of the klymax402 marketplace -- 100 x402 micropayment APIs for AI agents, one wallet, USDC on Base.

Quickstart -- MCP

Add to your MCP client config (Claude Desktop, Cursor, ElizaOS, etc.):

{
  "mcpServers": {
    "hl-spot": {
      "url": "https://hl-spot.api.klymax402.com/mcp"
    }
  }
}

Quickstart -- HTTP (x402)

curl -X POST "https://hl-spot.api.klymax402.com/api/tokens" \
  -H "Content-Type: application/json" \
  -d '{}'
# -> 402 Payment Required, with an x402 payment challenge in the response body

Any x402-aware client (@x402/fetch, x402-agent-tools, ATXP) handles the 402 -> sign -> retry cycle automatically.

Tools

ToolMethodPathPriceDescription
hyperliquid_list_spot_tokensPOST/api/tokens$0.005List all 454 spot tokens on Hyperliquid with metadata: name, tokenId, index, decimals, wei decimals.
hyperliquid_get_spot_marketsPOST/api/markets$0.005Spot market prices, 24h volume, mid price, and trading pair info for all Hyperliquid spot pairs.
hyperliquid_get_spot_balancesPOST/api/balance$0.005Spot token balances for any wallet address on Hyperliquid, including held and available amounts.
hyperliquid_list_spot_tokens

Use this when you need to list or search spot tokens available on Hyperliquid L1 DEX. Returns all 454 spot tokens with full metadata including token name, symbol, tokenId, index, decimals, and wei conversion factors.

Parameters

NameTypeRequiredDescription
searchstringnoOptional filter: search tokens by name or symbol (case-insensitive substring match). Omit to return all 454 tokens.

Example response:

{ tokens: [{ name: "PURR", tokenId: "0xc4bf3f...", index: 1, decimals: 0, weiDecimals: 8 }], count: 454 }

Not for: perps/futures data (use hyperliquid_get_perp_markets), token prices on CEX/CoinGecko (use token_get_price), wallet portfolio across chains (use wallet_get_portfolio), Hyperliquid vault data (use hyperliquid_get_vaults).

hyperliquid_get_spot_markets

Use this when you need live spot market data from Hyperliquid DEX: prices, 24h volume, and trading activity for all spot pairs. Returns merged token metadata + real-time market context for every active spot market.

Parameters

NameTypeRequiredDescription
sortstringnoSort order for results. 'volume' = highest 24h volume first (default), 'change' = biggest price movers first, 'name' = alphabetical.

Example response:

{ markets: [{ name: "PURR/USDC", markPx: "0.0234", dayNtlVlm: "1250000", change24h: 5.32 }], count: 120 }

Not for: perps/futures markets (use hyperliquid_get_perp_markets), CoinGecko prices (use token_get_price), funding rates (use hyperliquid_get_funding_rates), historical OHLCV candles (use token_get_ohlcv).

hyperliquid_get_spot_balances

Use this when you need to check spot token balances for a specific wallet address on Hyperliquid L1 DEX. Returns all non-zero spot token holdings with available and held (in-order) amounts.

Parameters

NameTypeRequiredDescription
addressstringyesWallet address in 0x format (42 characters). Example: 0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045

Example response:

{ address: "0xabc...", balances: [{ coin: "PURR", total: "15000", hold: "5000", available: "10000", entryNtl: "350.50" }], count: 3 }

Not for: perps positions (use hyperliquid_get_perp_positions), Hyperliquid vault balances (use hyperliquid_get_vaults), EVM token balances (use token_get_balance).

Example agent prompts

  • "List or search spot tokens available on Hyperliquid L1 DEX"
  • "Live spot market data from Hyperliquid DEX: prices, 24h volume, and trading activity for all spot pairs"
  • "Check spot token balances for a specific wallet address on Hyperliquid L1 DEX"

Payment

  • Protocol: x402 -- HTTP-native pay-per-call, no signup, no API key
  • Network: Base L2 (eip155:8453)
  • Asset: USDC
  • Facilitator: Coinbase CDP (primary), PayAI (fallback)
  • Also reachable via ATXP (OAuth-wrapped x402, RFC 9728 protected-resource metadata)

Part of klymax402

100 x402 micropayment APIs for AI agents -- one wallet, USDC on Base, zero signup.

License

MIT

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.