Liquidiction
Read-only HIP-4 prediction-market data for Hyperliquid via MCP.
List active markets, current prices, and market summaries
Fetch detailed market metadata and order books for outcome sides
Get OHLCV candle history and recent trades
Query wallet fill history, open orders, and positions
Inspect cross-deployer positions without merging contracts
Use mainnet by default or testnet via env var; no API keys, signing, or trading
Provides a communication channel for the Liquidiction platform, allowing users to engage with the community and receive updates about the prediction market service.
Liquidiction MCP Server
Read-only HIP-4 prediction-market tools for MCP-compatible agents. The server connects directly to Hyperliquid's public API. No API keys, wallet connection or signing permissions are required.
Install
Requires Node.js 20 or newer and npm.
git clone https://github.com/Liquidiction/liquidiction-mcp.git
cd liquidiction-mcp
npm ci
npm startThis is a stdio MCP server, so npm start waits for an MCP client rather than opening a website. Mainnet is the default. Set HL_API_URL=https://api.hyperliquid-testnet.xyz only when you want testnet data.
Existing installations: run git pull --ff-only, npm ci, then restart your MCP client.
Related MCP server: prediction-market-intelligence-mcp
Connect a client
After installing dependencies, configure your client with absolute paths:
{
"mcpServers": {
"liquidiction": {
"command": "node",
"args": [
"/absolute/path/liquidiction-mcp/node_modules/tsx/dist/cli.mjs",
"/absolute/path/liquidiction-mcp/mcp-server.ts"
],
"env": {
"HL_API_URL": "https://api.hyperliquid.xyz"
}
}
}
}This uses the installed runtime and works even when the client's working directory is elsewhere. On Windows, use paths such as C:/Users/you/liquidiction-mcp/mcp-server.ts and the corresponding node_modules/tsx/dist/cli.mjs path. Restart the client after changing its configuration.
For Claude Code:
claude mcp add liquidiction -- node /absolute/path/liquidiction-mcp/node_modules/tsx/dist/cli.mjs /absolute/path/liquidiction-mcp/mcp-server.tsFor clients that launch from the repository directory, npx tsx mcp-server.ts also works.
Tools
Tool | Input | Result |
| None | Active outcomes, selections, venues and prices |
|
| Metadata, venue, selections and side prices |
| None | Market overview and available settlement metadata |
|
| Top bids, asks and spread |
| None | Current outcome mid-prices |
|
| OHLCV history |
|
| Recent public trades for the selected outcome side |
|
| Recent public HIP-4 fills for a wallet |
|
| Public resting HIP-4 orders |
|
| Positions, venues, selections, held shares and mark values |
Outcome API requests use #N. Explicit coin inputs also accept +N, legacy @N and bare numeric aliases and normalize them to #N. Wallet balances returned as +N retain their raw coin and also expose the canonical #N identifier. Ordinary spot @N rows are not classified as outcome holdings or fills.
Cross-deployer positions
Ask your agent:
Show the HIP-4 positions for this wallet, including venue, team, total shares and held shares. Compare positions on the same fixture without merging their contracts.
get_user_positions returns JSON text with address, fetchedAt, source, a snapshot note and a positions array. Each row includes:
coin,rawCoin,outcomeId,side,venueand deployer address.Market and selection labels resolved from the contract metadata when available.
shares, the originaltotalstring,heldSharesandunheldShares.markPriceandmarkedValue, ornullwhen a valid mark is unavailable.Available contract timing, result source and counted-play fields, plus raw descriptions.
Do not assume side 0 means the same team across venues. Outcome and trade.xyz can list a fixture in opposite participant order. The tools preserve distinct contracts and their rules; they do not certify equivalence or automatically merge positions.
unheldShares is total minus held shares, not a guarantee that an order can execute. Reads are not an atomic snapshot. Marks are estimates, not executable sale quotes. Missing active-market metadata remains null; this server does not supply historical metadata for every settled contract.
Supply a known wallet address. This server does not search an index for wallets holding a particular combination of markets.
Development and verification
npm ci
npm run typecheck
npm testThe regression suite runs offline and covers current balance formats, cross-deployer side reversal, held shares, fractional balances, missing marks, input validation and API errors.
An optional read-only smoke check launches a real MCP stdio client and calls all 10 tools against the configured Hyperliquid network:
npm run test:live -- 0xff16003f5bc3560daf4b9df62c191831af47387f 1866The example is a live wallet, so holdings can change. If it no longer has positions, choose another wallet and active outcome ID. The check compares MCP holdings against a separate balance read and can fail if the wallet trades between reads. Normal Hyperliquid rate limits apply.
Links
MIT licensed. This server never submits trades.
Available Tools
10 toolsget_candlesB
Get OHLCV candle data for a prediction market outcome
Inputs: coin (required), interval, hours.
get_market_detailB
Get detailed info about a specific market outcome
Inputs: outcome_id (required).
get_market_summaryA
Get a rich overview of all markets with probabilities, settlement status, and parsed metadata
Inputs: no named parameters.
get_open_ordersC
Get open orders for a user address
Inputs: address (required).
get_orderbookB
Get order book for a specific outcome side
Inputs: outcome_id (required), side.
get_pricesB
Get current mid prices for all outcome coins
Inputs: no named parameters.
get_recent_tradesB
Get recent trades for a prediction market outcome
Inputs: coin (required).
get_user_fillsB
Get trade history for a user address
Inputs: address (required), limit.
get_user_positionsB
Get current outcome share positions for a user
Inputs: address (required).
list_marketsA
List all prediction markets with current prices
Inputs: no named parameters.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 10 tools
Each tool targets a distinct data type (candles, market details, orders, etc.) with clear descriptions, though some overlap exists between get_market_detail, get_market_summary, and get_prices. Overall, an agent can distinguish them.
All tools follow a consistent verb_noun pattern with 'get_' except one using 'list_', which still aligns with a verb+noun convention. No mixing of styles or ambiguous verbs.
10 tools is well-scoped for a read-only prediction market data server. Each tool serves a specific data retrieval need without unnecessary duplication or gaps.
The set covers all essential read operations for prediction markets: listing, details, prices, orderbook, user data. Minor gaps exist, such as aggregated market statistics or historical trade summaries, but core workflows are supported.
Maintenance
Related MCP Connectors
Hyperliquid MCP — read-only market data from Hyperliquid's public info API.
Live and historical Hyperliquid data for AI agents: markets, wallets, liquidations and analytics.
Read-only Hyperliquid analytics: orderflow, liquidation levels, whale positioning, funding.
Hyperliquid market data, wallet analytics and liquidation alerts for AI agents.
Related MCP Servers
- AlicenseBqualityBmaintenanceMCP server for querying historical and real-time crypto market data across Hyperliquid, Hyperliquid HIP-3, and Lighter.xyz - orderbooks, trades, candles, funding, open interest, liquidations, and data quality metrics.10013MIT
- AlicenseNot gradedqualityDmaintenanceReal-time prediction market intelligence for AI agents. Query Polymarket and Kalshi markets, wallet profiles, smart money leaderboards, social pulse signals, price candlesticks, and orderbook data — 13 agents, one MCP connection. Powered by 1.1TB+ of historical data.MIT
- AlicenseAqualityDmaintenanceProvides read-only tools for discovering, analyzing, and monitoring Hyperliquid HIP-4 prediction markets (outcome trading) on testnet.10MIT
- AlicenseAqualityBmaintenanceProvides AI agents read-only, keyless access to Hyperliquid market data, funding rates, account risk, and HyperEVM token transfers through MCP tools, with caching and rate limiting to protect upstream APIs.1239 PyPI1MIT