leverra-mcp
OfficialClick on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@leverra-mcp where is BTC cheapest to hold long right now?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
leverra-mcp
An MCP server for perps traders and prop firms. It gives an AI assistant three groups of tools:
Live markets: markets and funding across Hyperliquid, dYdX and Aster.
Accounts: any Hyperliquid account's positions and track record.
Challenge math, offline: prop challenge checks, day-by-day replays, liquidation price and position sizing.
It is read-only, needs no API keys and has no config.
It runs on the same adapters and rule code as the Leverra terminal and its Ask AI copilot. Leverra is a permissionless on-chain prop firm for perps, with open partner capital pools. Leverra never holds the capital or guarantees payouts.
Tools
Tool | Source | What it answers |
| Hyperliquid, dYdX, Aster | "Where is BTC cheapest to hold long right now?" Mark, 24h change, hourly and yearly funding, OI and volume per venue, plus the spread |
| same | Coins listed on 2+ venues, ranked by the funding gap; thin venues filtered out |
| Hyperliquid | Any address's positions, liquidation prices, margin and open orders |
| Hyperliquid | PnL, max drawdown, volume, win rate and fees for a day, week, month or all time |
| offline | Passed, failed or on-track, plus the dollars left on each rule |
| offline | The day a challenge would have passed or failed, intraday lows included |
| offline | Hyperliquid's isolated-margin formula |
| offline | Size so that hitting the stop loses exactly X% |
Funding is normalised to an hourly rate. Aster's 8-hour (or per-symbol) rate is divided by its interval, and yearly is hourly × 24 × 365. When a venue fails, the result lists it under failed and the tool never makes up a number.
Related MCP server: hyperliquid-mcp
Setup
Claude Code:
claude mcp add leverra -- npx -y github:leverra-labs/leverra-mcp#v0.1.0Claude Desktop, Cursor or any MCP client (mcpServers):
{
"leverra": { "command": "npx", "args": ["-y", "github:leverra-labs/leverra-mcp#v0.1.0"] }
}Node 20 or later.
Real output (2026-12-02)
markets with { "coin": "BTC" }:
BTC at 2026-12-02T07:34:35.394Z: hyperliquid 59784.5 (funding 0.0013%/h), dydx 59734.08651 (funding 0.0019%/h),
aster 59781.33304348 (funding 0.0009%/h). Spread: long aster, short dydx, 0.0010%/h (8.95%/yr) before fees.funding_spreads with { "limit": 3 }:
Widest funding spreads at 2026-12-02T07:34:35.407Z: TRUMP long hyperliquid / short aster 0.0080%/h;
WLFI long hyperliquid / short aster 0.0078%/h; HYPE long aster / short hyperliquid 0.0018%/h. Before fees.check_challenge with { "rules": { "preset": 0 }, "equity": 106200, "day_start": 107300, "peak": 107300, "days": 6 }:
on-track: Inside every limit. To target $1,800, left today $3,900, above floor $16,200 (floor $90,000).Each result also carries the full JSON (structuredContent) so an agent can work with exact numbers.
A funding spread is not free money. Funding resets every hour, and fees, slippage, price moves between venues and liquidation risk all count against it.
Status
Markets, funding, account, track record, challenge math | Live |
Partner pool and settlement reads (on-chain) | In progress, once the pool contracts are deployed |
Development
pnpm install
pnpm test # every tool against recorded venue shapes, in-memory MCP client
pnpm test:live # the real sources
pnpm typecheck
pnpm build && node dist/index.js # stdioApache-2.0. Security reports: see SECURITY.md.
Available Tools
8 toolscheck_challengeCheck a prop challenge accountARead-onlyIdempotent
Applies a prop firm's challenge rules to an account and returns passed / failed / on-track, the reason, and the USD left to the target, left to lose today and above the drawdown floor. Daily loss is measured from the day's starting equity; a trailing floor follows the equity high and stops at the starting balance. Offline, same code as the Leverra rule checker.
Inputs: days (required), peak (required), rules (required), equity (required), +1 more.
funding_spreadsFunding spreads between venuesARead-onlyIdempotent
Coins listed on two or more of Hyperliquid, dYdX and Aster, ranked by the funding gap: long where funding is lowest, short where it is highest. Rates are hourly (yearly = x 24 x 365) and before fees, slippage and price risk; funding changes every hour. Venues under min_volume_usd of 24h volume are left out of each comparison.
Inputs: limit, min_volume_usd.
hyperliquid_accountHyperliquid account stateARead-onlyIdempotent
Any Hyperliquid account's public perps state: account value, margin used, withdrawable, and each open position with size, entry, value, unrealized PnL, ROE, liquidation price and leverage. Plus open orders. Read from Hyperliquid /info.
Inputs: address (required), network.
liquidation_priceLiquidation price (Hyperliquid formula)ARead-onlyIdempotent
Isolated-margin liquidation price with Hyperliquid's formula: maintenance margin is half the initial margin at the market's max leverage. Returns null when the position cannot be liquidated. Offline; get max_leverage from the venue.
Inputs: side (required), entry (required), leverage (required), notional (required), +1 more.
marketsPerp markets across venuesARead-onlyIdempotent
Live perp markets from Hyperliquid, dYdX and Aster in one shape: mark price, 24h change, funding (hourly and yearly), open interest and 24h volume in USD. With coin: that coin on every venue that lists it, plus the funding spread. Without: the top markets by total 24h volume. Aster has no open interest in its bulk endpoints (null).
Inputs: coin, limit.
position_sizePosition size from riskARead-onlyIdempotent
How big a position is so that hitting the stop loses exactly risk_pct of the account. Returns size in units, notional, the dollar risk, the leverage it implies and the side (stop below entry = long). Fees and slippage not included. Offline.
Inputs: stop (required), entry (required), account (required), risk_pct (required).
replay_challengeReplay a challenge day by dayARead-onlyIdempotent
Walks daily equity (open, close, optional intraday low/high) through a prop firm's rules and stops at the first pass or breach. The low is checked before the close, so a day that dips through a limit and closes green still fails. Offline.
Inputs: days (required), rules (required).
track_recordHyperliquid track recordARead-onlyIdempotent
Any Hyperliquid account's public track record for a period: PnL, max drawdown of the PnL curve, volume and account value from Hyperliquid's portfolio history, plus win rate and fees over the latest perp fills (Hyperliquid returns up to 2000). Useful to judge a trader before a prop program or a copy. Past results say nothing certain about future ones.
Inputs: address (required), period, network.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 8 tools
Each tool has a clearly stated lane: cross-venue funding comparison, market snapshots, two prop-rule evaluators, two offline calculators, and two Hyperliquid account readers. The only mild overlap is that markets with a coin also returns a funding spread, which partially duplicates funding_spreads, and check_challenge vs replay_challenge sit close together (live account vs historical walk-forward), though their descriptions make the distinction clear.
All names are lowercase snake_case with consistent noun-phrase style, so the set reads predictably. The only deviation is that some names are noun-only (markets, liquidation_price, track_record, hyperliquid_account) while two use verb_noun (check_challenge, replay_challenge), a minor inconsistency rather than a confusing one.
Eight tools is well within the sweet spot and each one maps to a distinct workflow: research (funding_spreads, markets), prop-firm evaluation (check_challenge, replay_challenge), risk math (liquidation_price, position_size) and account due diligence (hyperliquid_account, track_record). No tool looks redundant or bolted on.
The market-data and risk-math side is solid, but account/position data is Hyperliquid-only even though markets and funding cover dYdX and Aster, so an agent working those venues hits a dead end. There is also no way to discover supported prop firms or their rule sets, and no historical funding or candle data, leaving notable gaps around the stated multi-venue scope.
Maintenance
Related MCP Connectors
OptimistFi gives AI assistants live perpetual futures data across 40 venues: funding on every venue, open interest, leverage and liquidation levels, whale trades, order-book depth and the net position of Hyperliquid's largest accounts, with up to 90 days of history. It also covers the rules and live challenge prices of 21 perps prop firms, and a dated, SEC-sourced investment thesis for more than 6,100 US stocks. Public and read-only: no key, no sign-up. Every answer names its source and time.
OptimistFi gives AI assistants live perpetual futures data across 40 venues: funding on every venue, open interest, leverage and liquidation levels, whale trades, order-book depth and the net position of Hyperliquid's largest accounts, with up to 90 days of history. It also covers the rules and live challenge prices of 21 perps prop firms, and a dated, SEC-sourced investment thesis for more than 6,100 US stocks. Public and read-only: no key, no sign-up. Every answer names its source and time.
Build, backtest and paper-run Hyperliquid strategies from your AI assistant.
Hyperliquid - 2 tools for perpetuals, options, and position data
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables interaction with the Hyperliquid exchange to trade perpetuals, check positions, and manage risk through natural language. It provides tools for fetching real-time market data, tracking portfolio value, and executing orders with a focus on safety through default paper trading.101MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to securely trade on Hyperliquid perpetual exchange, including order placement, position management, market data retrieval, and vault operations via natural language.25 PyPI25MIT
- AlicenseAqualityDmaintenanceEnables AI agents to interact with Hyperliquid perpetual futures exchange for market analysis, account management, and risk-managed trading.51MIT
- AlicenseNot gradedqualityDmaintenanceEnables natural language trading of Hyperliquid perpetual futures, including portfolio checks, market data, order placement with confirmation, and position management.MIT