
Market Depth Lab
io.github.derkccPublished by GitHub account derkccv0.2.2Updated Oct 24, 2026
Read-only Hyperliquid, funding-rate and cross-exchange perpetual spread tools.
Overview
Read-only MCP server giving assistants public Hyperliquid and cross-exchange perpetual market data: funding rates, spreads, wallets, TWAPs and fees.
- What you can do
- Inspect HYPE spot and perp snapshots, Hyperliquid funding rates with trailing 24h sums, and active public TWAP schedules
- Analyze a public Hyperliquid wallet's positions, balances, orders, leverage and PnL, and estimate fees for a given notional and tier
- Rank monitored large-trader positions and top position holders in a market, with snapshot time and coverage boundaries
- Scan cross-exchange funding and perpetual top-of-book price spreads across Binance USD-M, OKX and Hyperliquid, with fee and capacity estimates
- When to use it
- Useful when you want an assistant to research Hyperliquid and cross-venue perpetual funding or price spreads, check a public wallet's exposure, or estimate trading fees, without any exchange login or trading rights.
- Requirements
- Runs locally over stdio via npx or a source checkout; needs Node.js 20 or newer and internet access to public Hyperliquid, HypurrScan, Binance USD-M and OKX endpoints. No API key or wallet connection. Optional variables MDL_POSITION_INDEX_URL, MDL_POSITION_INDEX_PATH, MDL_MAX_SNAPSHOT_AGE_HOURS, MDL_REJECT_STALE and MDL_HTTP_TIMEOUT_MS tune the position index and timeouts.
Installation
In SourceWeft
- Open Market Depth Lab in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
README
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.
Tools
Funding rate and spread engines
The three concepts are deliberately separate:
hyperliquid_list_funding_ratesdescribes the current Hyperliquid main and HIP-3 funding universe, including exact trailing-24h sums for the returned page.scan_cross_exchange_funding_spreadsnormalizes 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.scan_cross_exchange_perp_price_spreadscompares 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 instrumentctValbefore 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:
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
Use the absolute path to dist/index.js in your MCP client:
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
Data and privacy
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.
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
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.
Public project links
- Website: https://marketdepthlab.com
- Live tools: https://marketdepthlab.com
- Issues: GitHub Issues
- Security: SECURITY.md
- Contributing: CONTRIBUTING.md
License
Source: README.md at commit ad78fbc
Tools
0Version history
1- v0.2.2LatestSep 16, 2026
Score
50% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 days25 pts
Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.
- Auth declared10 pts
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts