# Market Depth Lab [Health: Active]

**Category:** 💰 Finance & Fintech  
**Repository:** https://github.com/derkcc/market-depth-lab-mcp  
**GitHub Stars:** 0  
**npm Downloads (last month):** 306  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/market-depth-lab

## Description
Read-only Hyperliquid, funding-rate and cross-exchange perpetual spread tools.

## Tools
Capabilities this server exposes over MCP:

- **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?

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

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

## Documentation

## What Market Depth Lab MCP server does

Market Depth Lab MCP server gives AI clients structured access to public market research data without enabling account actions. Its nine tools cover Hyperliquid wallet analysis, active public TWAP schedules, fee estimates, HYPE market data, funding rates, monitored large-trader positions, and cross-exchange perpetual comparisons.

The server is read-only. It does not request private keys, wallet signatures, exchange credentials, or permission to place trades. Results point to the Market Depth Lab website and include source information, timing or coverage boundaries, and structured output for client applications.

## How it works

The MCP process runs locally and retrieves data from public upstream services. Hyperliquid wallet, HYPE, and funding requests use the public Hyperliquid info API. Active TWAP data comes from a public HypurrScan endpoint with Hyperliquid price references. Funding-spread scans query Binance USD-M, OKX, and Hyperliquid market-data APIs, while price-spread scans use Binance and OKX book-ticker data plus Hyperliquid order-book data.

Position summaries and holder rankings use Market Depth Lab’s rolling, read-only index of monitored public addresses. This is a cohort view rather than a complete account census. The fee calculator runs locally and does not make a network request. The process has no analytics or telemetry.

## Setup and configuration

Node.js 20 or newer and internet access are required for live public data. The shortest installation path uses the published npm package:

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

You can instead clone the repository, run `npm ci` and `npm run build`, then point the MCP client at the absolute path to `dist/index.js`.

All configuration variables are optional. `MDL_POSITION_INDEX_URL` selects the remote position index, while `MDL_POSITION_INDEX_PATH` loads a local JSON snapshot instead. `MDL_MAX_SNAPSHOT_AGE_HOURS` controls when position data is labeled stale, `MDL_REJECT_STALE` can turn stale data into an error, and `MDL_HTTP_TIMEOUT_MS` sets the request timeout.

## Tools and capabilities

Market Depth Lab MCP server exposes tools that can:

- List active Hyperliquid TWAPs and estimate their current notional.
- Summarize a public address’s visible balances, positions, orders, leverage, and PnL.
- Estimate fees by notional, trading role, and fee tier.
- Compare HYPE spot and perpetual markets.
- Summarize monitored trader positioning and rank holders within a market.
- Report current Hyperliquid funding and exact trailing-24-hour totals for returned markets.
- Compare normalized funding across Binance USD-M, OKX, and Hyperliquid after a supplied cost estimate.
- Compare perpetual best bids and asks, fees, and visible top-of-book capacity across venues.

## Limitations and notes

The spread scanners produce screening candidates, not proof of executable or risk-free arbitrage. Funding can change, REST requests are not simultaneous, and Binance or OKX commonly settle in USDT while Hyperliquid main perpetuals settle in USDC. Deeper-book slippage, transfers, margin, liquidation, venue access, and closing prices are outside the estimates.

Public exchange endpoints may be unavailable in some regions. Tools report whether venue coverage is available, partial, or unavailable rather than silently presenting an incomplete comparison. Position tools report snapshot age, monitored-address count, staleness, and coverage limits. A monitored address is not necessarily controlled by a known entity, and the index is not a recommendation to copy trades.

_Full upstream README: https://allmcps.com/mcp/market-depth-lab/readme_

