Skip to main content
Glama
market-depth-lab-mcp

market-depth-lab-mcp

by derkcc

Market Depth Lab MCP

Read-only Hyperliquid and cross-exchange market research for AI agents.

🌐 Project website and live dashboards: marketdepthlab.com

Every MCP result points back to Market Depth Lab, where the public dashboards, methodology and related research live.

Market Depth Lab MCP gives Claude, Codex, Cursor and other MCP clients nine structured tools for public Hyperliquid and cross-exchange market data. It does not request a private key, wallet signature, exchange login or permission to trade.

Independent open-source software. Not affiliated with or endorsed by Hyperliquid. Research information only; not financial advice.

Why this server

  • Useful on the first call: live HYPE, funding, wallet, TWAP and cross-exchange spread queries.

  • Read-only by design: no order placement, signing or wallet mutation.

  • Honest coverage: monitored-address rankings are labeled as a cohort, not a protocol-wide holder census.

  • Agent-friendly output: each tool returns concise text and stable structuredContent.

  • Traceable: results include source, time/coverage boundaries and one stateful link to the corresponding Market Depth Lab tool.

Related MCP server: hl-spot

Tools

Tool

What it answers

list_active_hyperliquid_twaps

Which public TWAP schedules are active, and what is their estimated current notional?

analyze_hyperliquid_wallet

What positions, balances, orders, leverage and PnL are visible for this public address?

calculate_hyperliquid_fees

What would the estimated fee be for this notional, role and fee tier?

get_hype_market_snapshot

What is HYPE worth now, and how do spot and perps compare?

hyperliquid_summarize_large_trader_positions

How is the monitored large-trader cohort positioned by market?

hyperliquid_list_top_position_holders

Which monitored addresses have the largest positions in one market?

hyperliquid_list_funding_rates

Who pays funding now, and what is the exact trailing-24h sum for the returned markets?

scan_cross_exchange_funding_spreads

Where is the largest normalized funding difference across Binance USD-M, OKX and Hyperliquid, after a user-supplied cost estimate?

scan_cross_exchange_perp_price_spreads

Where do current perpetual best bids and asks diverge across venues, after fee estimates and a visible top-of-book capacity check?

Funding rate and spread engines

The three concepts are deliberately separate:

  1. hyperliquid_list_funding_rates describes the current Hyperliquid main and HIP-3 funding universe, including exact trailing-24h sums for the returned page.

  2. scan_cross_exchange_funding_spreads normalizes one-hour and eight-hour settlement intervals, then compares a lower-funding long leg with a higher-funding short leg. Its annualized number is a comparison, not a forecast.

  3. scan_cross_exchange_perp_price_spreads compares public top-of-book quotes. It reports both entry-fee and round-trip-fee views, plus the smaller visible notional on the selected bid/ask levels. OKX contract counts are converted with the public instrument ctVal before notional is calculated.

The scanners are original TypeScript implementations informed by the read-only monitoring workflow used in Market Depth Lab's local research. They do not vendor or modify the reference Python projects.

Neither scanner places orders. A row is a screening candidate, not proof of executable or risk-free arbitrage. Funding can change; REST snapshots are not simultaneous; Binance/OKX normally settle in USDT while Hyperliquid main perps settle in USDC; and deeper-book slippage, transfers, margin, liquidation, venue access and close-out prices remain outside the estimate.

Requirements

  • Node.js 20 or newer

  • Internet access for public Hyperliquid/HypurrScan data

  • No API key

Install with npm

The public package is market-depth-lab-mcp-server.

Use this configuration in an MCP client that supports local stdio servers:

{
  "mcpServers": {
    "market-depth-lab": {
      "command": "npx",
      "args": ["-y", "market-depth-lab-mcp-server"]
    }
  }
}

npx downloads the published package and starts the local read-only MCP process. No exchange login, wallet connection or API key is required.

Install from source

git clone https://github.com/derkcc/market-depth-lab-mcp.git
cd market-depth-lab-mcp
npm ci
npm run build

Use the absolute path to dist/index.js in your MCP client:

{
  "mcpServers": {
    "market-depth-lab": {
      "command": "node",
      "args": ["/absolute/path/to/market-depth-lab-mcp/dist/index.js"]
    }
  }
}

Use the source checkout when you want to review or modify the implementation; use the npm configuration above for the shortest installation path.

Example prompts

Show the five Hyperliquid markets with the highest absolute current funding.
Include trailing 24h funding and explain who pays whom.
Compare BTC, ETH, SOL and HYPE funding on Binance, OKX and Hyperliquid.
Assume a 24-hour holding period and 12 bps of total round-trip costs. Show
the current annualized spread, projected net carry and break-even hours.
Scan BTC, ETH and SOL perpetual top-of-book spreads across Binance, OKX and
Hyperliquid. Use round-trip taker fees, require at least $5,000 visible at
the selected levels, and explain every non-execution boundary.
Analyze 0x... on Hyperliquid. Summarize gross exposure, effective leverage,
largest position and recent realized PnL. Do not give trading advice.
Within the monitored cohort, list the top BTC positions and separate longs
from shorts. State the cohort boundary before the ranking.
Estimate round-trip taker fees for a $25,000 tier-zero perpetual position.

Data and privacy

Capability

Data path

HYPE, wallet and Hyperliquid funding

Your local MCP process → public Hyperliquid info API

Cross-exchange funding spreads

Your local MCP process → public Binance USD-M, OKX and Hyperliquid market-data APIs

Cross-exchange price spreads

Your local MCP process → public Binance USD-M and OKX book-ticker APIs plus Hyperliquid l2Book

Active TWAPs

Your local MCP process → public HypurrScan endpoint, plus Hyperliquid price references

Large positions and top holders

Your local MCP process → Market Depth Lab's rolling read-only position index

Fee calculator

Runs locally; no network request

The server has no analytics or telemetry. A wallet address submitted to analyze_hyperliquid_wallet is sent directly from your machine to the public Hyperliquid API. Position-index calls use https://data.marketdepthlab.com/v1/positions/latest.

Public exchange endpoints can be unavailable in some regions. Both cross-exchange tools expose per-venue available, partial or unavailable coverage and their error messages. They never silently claim that a two-venue or three-venue comparison was complete.

Position-index boundary

Market Depth Lab rotates through a monitored pool of public addresses. The index is useful for cohort-level market structure, but it is:

  • not a list of every Hyperliquid account;

  • not a simultaneous snapshot of all monitored addresses;

  • not proof of who controls an address;

  • not a recommendation to copy any address.

Every position tool reports the snapshot time, age, monitored-address count, staleness state and coverage boundary.

Configuration

All variables are optional.

Variable

Default

Purpose

MDL_POSITION_INDEX_URL

https://data.marketdepthlab.com/v1/positions/latest

Remote read-only position index

MDL_POSITION_INDEX_PATH

unset

Load a local JSON snapshot instead of the remote index

MDL_MAX_SNAPSHOT_AGE_HOURS

24

Mark a position snapshot stale after this age

MDL_REJECT_STALE

false

Return an error instead of labeled stale data

MDL_HTTP_TIMEOUT_MS

15000

Per-request network timeout

When MDL_POSITION_INDEX_PATH is set, the two position tools do not make a network request. Other live-data tools still use public upstream APIs.

Development

npm ci
npm run check
npm test
npm pack --dry-run

The test suite performs an in-memory MCP handshake, verifies the nine tool definitions and calls the local fee tool through the protocol. Live upstream smoke tests should be run before each release, but are intentionally excluded from deterministic CI.

License

MIT

Available Tools

9 tools
analyze_hyperliquid_walletAnalyze a Hyperliquid walletA
Read-onlyIdempotent

Read the public main-account state for one Hyperliquid address: perpetual positions, spot balances, open orders, recent fills, exposure, leverage, PnL and fee totals. No private key, signature or wallet connection is requested.

Inputs: address (required), recent_fill_limit. Returns: data

calculate_hyperliquid_feesCalculate Hyperliquid feesA
Read-onlyIdempotent

Estimate Hyperliquid spot or perpetual trading fees from notional, maker/taker role, fee tier, discounts, asset multiplier, maker rebate, and builder fee. This is a transparent estimate, not an exchange quote.

Inputs: notional_usd (required), role, tier, sides, +6 more. Returns: data

get_hype_market_snapshotGet HYPE market snapshotA
Read-onlyIdempotent

Fetch a live HYPE spot/perpetual snapshot from Hyperliquid and convert either HYPE to USD or USD to HYPE. Reports spot-perp basis, 24h spot change, and 24h spot notional when available.

Inputs: no named parameters. Returns: data

hyperliquid_list_funding_ratesList Hyperliquid funding ratesA
Read-onlyIdempotent

List current main-perpetual and HIP-3 funding, open interest, 24h notional and basis. Optionally computes exact trailing-24h funding for only the returned page to limit upstream requests.

Inputs: limit, payer, query, offset, +4 more. Returns: data

hyperliquid_list_top_position_holdersList top position holders in a Hyperliquid marketA
Read-onlyIdempotent

List the largest current positions for one canonical market inside Market Depth Lab's monitored public-address cohort. Rankings are cohort-relative and the index retains only the published top positions per market.

Inputs: market (required), side, limit, offset, +3 more. Returns: data

hyperliquid_summarize_large_trader_positionsSummarize large Hyperliquid trader positionsA
Read-onlyIdempotent

Aggregate current long and short exposure by market within Market Depth Lab's rolling monitored-address cohort. This is not a protocol-wide holder census or a simultaneous snapshot of every address.

Inputs: limit, query, offset, sort_by, +3 more. Returns: data

list_active_hyperliquid_twapsList active Hyperliquid TWAP ordersA
Read-onlyIdempotent

List publicly visible active Hyperliquid TWAP schedules and estimate current notional using live market references. Schedule time is known; execution progress and unfilled quantity are not inferred.

Inputs: side, limit, query, offset, +3 more. Returns: data

scan_cross_exchange_funding_spreadsScan cross-exchange perpetual funding spreadsA
Read-onlyIdempotent

Compare current perpetual funding on Binance USD-M, OKX and Hyperliquid. For each symbol, the scanner pairs a long on the lower hourly funding rate with a short on the higher rate, normalizes different settlement intervals, and estimates gross carry, user-supplied costs and break-even time. It does not place orders or describe the result as risk-free arbitrage.

Inputs: limit, venues, symbols, holding_hours, +2 more. Returns: data

scan_cross_exchange_perp_price_spreadsScan cross-exchange perpetual price spreadsA
Read-onlyIdempotent

Compare best bid and ask quotes for selected perpetual symbols on Binance USD-M, OKX and Hyperliquid. The engine ranks the cheapest cross-venue buy against the richest cross-venue sell, reports top-of-book capacity and subtracts configurable taker-fee estimates. It is a persistent-divergence screen, not a latency-arbitrage or order-execution tool.

Inputs: limit, venues, symbols, cost_basis, +5 more. Returns: data

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4/5.0

    Scored across 9 tools

    Disambiguation5/5

    Each tool has a clearly distinct purpose: snapshot, fee estimation, wallet analysis, positions, top holders, TWAPs, funding rates, and cross-exchange spreads. No overlapping functionality.

    Naming Consistency3/5

    Most tools follow a verb_noun pattern (e.g., get_hype_market_snapshot, calculate_hyperliquid_fees), but some include the server name as prefix (e.g., hyperliquid_summarize_large_trader_positions), causing minor inconsistency.

    Tool Count5/5

    9 tools is well-scoped for a market depth lab covering Hyperliquid and cross-exchange analysis. Each tool serves a distinct function without redundancy.

    Completeness4/5

    The tool set covers major operations: snapshots, fees, wallet, positions, funding, and spreads. Minor gaps like historical data or order book depth are absent but not critical for the stated purpose.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Safe, read-only market data for AI trading agents, offering 44 tools to query prediction markets, perpetuals, and cross-venue signals without the ability to execute trades.
      1
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables AI agents to query Hyperliquid spot market data, including token listings, live prices, 24h volumes, and wallet balances, via pay-per-call x402 micropayments.
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      Provides 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.
      12
      39 PyPI
      1
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables AI agents to read live Hyperliquid market data — perp and spot metadata, mid prices, order books, OHLCV candles, funding rates and history, and current open interest — keylessly from the exchange's public info API, with no wallet or trading access.
      332 npm
      MIT