@mutexa/mcp
OfficialProvides on-chain reads from Ethereum via a user-supplied RPC endpoint, enabling access to Aave V3 reserve data such as LTV, liquidation threshold and bonus, flags, and oracle prices.
Click 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., "@@mutexa/mcp where would a 5x BTC long of $2M liquidate, and how would six slices spread it?"
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.
@mutexa/mcp
A read-only Model Context Protocol server that lets Claude, Cursor or any MCP client reason about liquidation exposure: Hyperliquid markets and positions, liquidation prices, slice and loan ladders, Aave V3 reserves, linkability scores, tracker views and liquidation maps.
Everything runs locally on top of the open Mutexa packages and public venue data. No Mutexa API and no API key are needed. Nothing is signed, no order is placed and no funds move.
Install
Claude Code:
claude mcp add mutexa -- npx -y @mutexa/mcp
# with the Aave V3 tools
claude mcp add mutexa -e MUTEXA_ETH_RPC=https://your-ethereum-rpc -- npx -y @mutexa/mcpClaude Desktop, Cursor and other clients (mcpServers config):
{
"mcpServers": {
"mutexa": {
"command": "npx",
"args": ["-y", "@mutexa/mcp"],
"env": { "MUTEXA_ETH_RPC": "https://your-ethereum-rpc" }
}
}
}Streamable HTTP instead of stdio:
npx @mutexa/mcp --http --port 3000 # http://127.0.0.1:3000/mcp, stateless; GET /healthMUTEXA_ETH_RPC (or --eth-rpc, comma-separated for fallbacks) is only needed by aave_reserves and by
plan_loans with a reserve symbol. There is no built-in default endpoint; use one you trust.
Related MCP server: hyperliquid-mcp
30-second example
From examples/client.ts, which starts the server over stdio like any MCP client would:
import { Client } from "@modelcontextprotocol/sdk/client/index.js";
import { StdioClientTransport } from "@modelcontextprotocol/sdk/client/stdio.js";
const client = new Client({ name: "example", version: "0.0.0" });
await client.connect(new StdioClientTransport({ command: "node", args: ["dist/cli.js"] }));
const { tools } = await client.listTools();
console.log(tools.map((t) => t.name).join(", "));
const r = await client.callTool({ name: "hl_markets", arguments: { limit: 3 } });
const { data, source, fetchedAt } = JSON.parse((r.content as { text: string }[])[0]!.text);
for (const m of data.markets) console.log(m.name, m.mark, `max ${m.maxLeverage}x`);
console.log(source, fetchedAt);
await client.close();Then ask your agent things like "where would a 5x BTC long of $2M liquidate, and how would six slices spread that out?", or "what do trackers see on 0x…, with my alert threshold at $250k?".
Tools
Every tool is read-only and answers with one JSON text block:
{ "data": { … }, "source": "Hyperliquid info API (metaAndAssetCtxs)", "fetchedAt": "2026-10-18T00:00:00.000Z" }source names the public call or local computation behind the numbers. When an upstream fails or an input is
missing, the tool answers isError with { "error", "source" } instead of a guess.
Tool | Input | What it returns | Source |
|
| Perp markets: mark, 24h change and volume, open interest, hourly funding and APR, max leverage, size decimals, margin tiers | Hyperliquid |
|
| Open positions with the venue's liquidation price next to the computed one | Hyperliquid |
|
| Liquidation price and distance |
|
| coin, side, notional, leverage, placement, band, | Slices, band, single-position comparison, alert sizing, cost preview when both cost inputs are given |
|
|
| Loans with staggered LTV, band, extra collateral, |
|
|
| Aave V3 Ethereum reserves at one block: LTV, liquidation threshold and bonus, flags, oracle price | On-chain reads through |
| slices, leverages, jitter, freshAccounts, privateFunding, alertThreshold | Score 0–100, level, factors with fixes |
|
|
| The tracker-view CLI's JSON: positions by closest liquidation, threshold flags, re-plans | Hyperliquid |
|
| Liquidatable notional per price bucket with reconciling totals | Hyperliquid leaderboard file, |
Inputs that only the user can know (alert threshold, fee rate, cost per account) are required inputs with no defaults, and the server instructions tell the agent to ask for them.
Library
Export | What it does |
| An |
| The two transports the CLI uses |
| Tool definitions, for embedding them in another server |
| Constants |
options: fetch (all HTTP reads), ethRpcUrls, env, and test hooks (aave, leaderboard, now).
Tests
Every tool is called through an in-memory MCP client against recorded public responses (Hyperliquid markets,
one account under the fake address 0x…ee01, the first leaderboard rows and their positions under fake
addresses 0x…e001…, and one Aave V3 reserve snapshot), the tool list is pinned by a schema snapshot, and the
streamable HTTP transport is exercised on localhost. Fixtures are written by ETH_RPC=… pnpm record <address>;
the RPC URL and the real address are never written to disk. CI never touches the network.
Logs go to stderr only, so stdout stays protocol-clean on stdio.
How Mutexa uses it
This is the agent-facing side of Mutexa: the same math and reads the app uses, exposed so an agent can check a plan, a tracker view or a map and cite where every number came from. Agent trading through slices comes later, through a separate, authenticated path; this server never gets that ability.
Limitations
Read-only. No orders, no signing, no funding.
Hyperliquid and Aave V3 Ethereum only in this release.
The leaderboard file is unofficial.
liquidation_mapdepends on the file the Hyperliquid web app loads, which is not a documented API and can change.Point in time. Prices and positions change every second; always read
fetchedAt.
Mutexa's privacy limits, for anything an agent plans with these tools: slices are hidden from public trackers, not from the venues themselves; clustering by timing is still possible; very large positions still move markets; splitting and privacy rails cost extra fees; fills that carry an integrator fee are marked as such. Follow each venue's terms in your region.
License
MIT © 2026 Mutexa
Available Tools
9 toolsaave_reservesAave V3 Ethereum reservesARead-onlyIdempotent
Risk parameters of every Aave V3 Ethereum reserve at one block: max LTV, liquidation threshold, liquidation bonus, collateral and borrow flags, frozen and paused state, and the AaveOracle price. The data provider and oracle are resolved from the PoolAddressesProvider, and nothing is reported if it no longer points at the expected Pool. Needs MUTEXA_ETH_RPC.
Inputs: symbols.
hl_marketsHyperliquid perp marketsARead-onlyIdempotent
Live Hyperliquid perp markets sorted by 24h volume: mark price, 24h change, volume, open interest, hourly funding and its annualised rate, max leverage, size decimals and margin tiers (notional bound and max leverage per tier). Filter by coins or take the top N.
Inputs: coins, limit.
hl_positionsHyperliquid positions of an addressARead-onlyIdempotent
Open perp positions of any public Hyperliquid address: side, size, entry, mark, value, leverage, margin mode, margin and unrealized PnL, with the liquidation price Hyperliquid reports next to the one computed from the position's own state (isolated positions only; cross margin depends on the whole account, so computedLiq is null).
Inputs: address (required).
linkability_scoreLinkability scoreARead-onlyIdempotent
How easily a set of slices could be clustered by an observer, 0 (hard to link) to 100 (easy), with every factor that added points and its suggested fix: slice count, size spread, leverage spread, timing jitter, fresh accounts, private funding and slices above your alert threshold. A heuristic documented in the linkability spec, not a statistical guarantee.
Inputs: jitter (required), slices (required), leverages (required), freshAccounts (required), +2 more.
liq_priceLiquidation priceARead-onlyIdempotent
Liquidation price of a fresh isolated Hyperliquid perp position (kind=perp: side, entry, size in coins, isolated margin in USD, and either coin to use that market's live margin tiers or maxLeverage for a single tier), or of a single-collateral, single-debt Aave V3 loan in standard mode (kind=loan: collateral amount, debt in USD, collateral price, liquidation threshold). Uses Hyperliquid's documented formula and Aave's health factor.
Inputs: kind (required), coin, side, size, +7 more.
liquidation_mapLiquidation map of large accountsARead-onlyIdempotent
Where the largest Hyperliquid accounts get liquidated on one coin: ranks the leaderboard by 30-day volume or account value, reads the public positions of the top accounts (at most 100), and buckets their notional by liquidation price around the mark (longs below, shorts above). Totals reconcile: in range + outside + no liquidation price = total. The leaderboard is the file the Hyperliquid web app loads, not a documented API.
Inputs: top (required), coin (required), rank (required), range, +1 more.
plan_ladderPlan a liquidation ladderARead-onlyIdempotent
Split one Hyperliquid perp position into isolated slices whose liquidation prices form a band instead of one public line. Placement 'around' keeps the same capital as one position; 'beyond' puts no slice closer to price than the single position (more margin). Give slices, or alertThreshold to size every slice under your alert threshold. Optional cost preview when feeRate and accountCost are given. Uses the market's live margin tiers and mark.
Inputs: band (required), coin (required), side (required), leverage (required), +9 more.
plan_loansPlan a loan ladderARead-onlyIdempotent
Split one Aave V3 loan (one collateral, one debt, standard mode) into loans with staggered LTV so their liquidation prices form a band. Give collateralSymbol to use the live reserve (LTV, liquidation threshold, oracle price; needs MUTEXA_ETH_RPC), or ltv, liqThreshold and priceUsd to plan offline. Reports the band, extra collateral and whether the single loan is above max LTV.
Inputs: band (required), loans (required), debtUsd (required), placement (required), +7 more.
tracker_viewTracker view of an addressARead-onlyIdempotent
What public trackers see for any Hyperliquid address: every open position sorted by closest liquidation (side, size, value, leverage, isolated or cross, entry, mark, liquidation price, distance, uPnL), flags for positions above your alert threshold, and optionally a re-plan of each position into isolated slices placed beyond today's liquidation price. Same JSON as the tracker-view CLI.
Inputs: address (required), threshold (required), replan.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 9 tools
Most tools target clearly different objects: market data, a single liquidation price, a perp ladder plan, a loan ladder plan, reserve parameters, an aggregate liquidation map, and a linkability heuristic. The one real overlap is hl_positions versus tracker_view, which both return the same open positions of an address; the descriptions differentiate them (tracker-style sorting, alert flags and re-planning), but an agent could easily pick the wrong one. plan_ladder and liq_price are also adjacent, though one computes a single price and the other a slice band.
All names are snake_case, which is good, but the convention is mixed: two domain-prefixed tokens (hl_markets, hl_positions), several noun phrases (aave_reserves, liquidation_map, linkability_score), a verb_noun pair (plan_ladder, plan_loans), and an ambiguous hybrid (tracker_view). The hl_ prefix implies a Hyperliquid namespace that was abandoned for every other Hyperliquid tool. Readable, but not a predictable pattern.
Nine tools is well within the sweet spot, and each one covers a distinct piece of the workflow (market data, position inspection, liquidation pricing, two planning tools, reserve data, a linkability score, and a market-wide liquidation map). No tool appears to be a redundant variant or wrapper of another.
The Hyperliquid side is fairly complete for research and planning, and Aave reserves plus offline loan planning are covered. However, there is no way to read an existing Aave position or health factor by address (liq_price's loan mode requires manual inputs), and the planner tools are one-shot with no way to monitor or re-evaluate a ladder after slices are placed. Execution and account/balance data are entirely absent, so every workflow ends in manual work.
Maintenance
Related MCP Connectors
Read-only crypto market data: Hyperliquid liquidation heatmaps, liquidations, whales, funding, flow.
Read-only Hyperliquid analytics: orderflow, liquidation levels, whale positioning, funding.
Real-time Ethereum liquidation intelligence for AI agents and MEV bots.
Read-only market and on-chain data: BTC and ETH network stats, liquidations, Hyperliquid traders
Related MCP Servers
- AlicenseCqualityDmaintenanceA read-only Model Context Protocol server for Hyperliquid that exposes over 30 tools to query public market data and user state via the Hyperliquid Info API, without requiring a private key.41MIT
- AlicenseAqualityDmaintenanceA read-only MCP server for querying Hyperliquid perp markets, funding rates, order books, candles, and account positions/fills/funding for any address, without needing API keys or wallets.82MIT
- AlicenseAqualityCmaintenanceRead-only MCP server for the Hyperliquid / HyperEVM ecosystem - yields, protocol TVL, fees, markets, funding history, order-book depth.966 npmMIT
- AlicenseNot gradedqualityFmaintenanceMCP server providing a forced-order/liquidation map for AI agents, with tools to fetch liquidation radar and manifest, enabling market structure analysis without custody.MIT