Skip to main content
Glama
leverra-mcp

leverra-mcp

Official
by leverra-labs

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

markets

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

funding_spreads

same

Coins listed on 2+ venues, ranked by the funding gap; thin venues filtered out

hyperliquid_account

Hyperliquid /info

Any address's positions, liquidation prices, margin and open orders

track_record

Hyperliquid /info

PnL, max drawdown, volume, win rate and fees for a day, week, month or all time

check_challenge

offline

Passed, failed or on-track, plus the dollars left on each rule

replay_challenge

offline

The day a challenge would have passed or failed, intraday lows included

liquidation_price

offline

Hyperliquid's isolated-margin formula

position_size

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.0

Claude 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   # stdio

Apache-2.0. Security reports: see SECURITY.md.

Available Tools

8 tools
check_challengeCheck a prop challenge accountA
Read-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 venuesA
Read-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 stateA
Read-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)A
Read-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 venuesA
Read-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 riskA
Read-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 dayA
Read-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 recordA
Read-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

    A3.9/5.0

    Scored across 8 tools

    Disambiguation4/5

    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.

    Naming Consistency4/5

    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.

    Tool Count5/5

    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.

    Completeness3/5

    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

    ActivityNo data
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      D
      maintenance
      Enables 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.
      10
      1
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables AI assistants to securely trade on Hyperliquid perpetual exchange, including order placement, position management, market data retrieval, and vault operations via natural language.
      25 PyPI
      25
      MIT
    • A
      license
      A
      quality
      D
      maintenance
      Enables AI agents to interact with Hyperliquid perpetual futures exchange for market analysis, account management, and risk-managed trading.
      5
      1
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables natural language trading of Hyperliquid perpetual futures, including portfolio checks, market data, order placement with confirmation, and position management.
      MIT