Skip to main content
Glama
Derive MCP Server

Derive MCP Server

by yashhsm

Derive MCP Server

WARNING

Experimental version. This MCP server is still experimental and should not be treated as production-grade trading infrastructure. Tool names, response shapes, lifecycle helpers, and operational behavior may change. Review every action carefully before using it with live funds.

An MCP (Model Context Protocol) server for Derive (formerly Lyra), built for AI assistants that need structured market data, account visibility, raw execution primitives, and safer lifecycle helpers for derivatives trading.

This repo currently exposes 52 tools total:

  • 43 core Derive tools mapped from the API

  • 8 lifecycle and audit tools layered on top

  • 1 auth_status meta tool for runtime capability checks

It works with Claude Code, Claude Desktop, and any MCP client that supports stdio.

What It Covers

  • Public market data: options chains, tickers, instruments, trade history, charts, funding, liquidations, rates

  • Authenticated account data: subaccounts, notifications, positions, portfolio summary, margin, transfers, session keys

  • Raw execution: place/replace/cancel orders, RFQ flows, open orders, order history, private trade history

  • Operational controls: cancel-on-disconnect and market maker protection (MMP)

  • Lifecycle helpers: normalized receipts, audit logging, RFQ polling, quote acceptance, multi-leg margin checks, reconciliation

Related MCP server: hyperliquid-mcp

What It Looks Like In Use

You:    "Show me the liquid SOL options chain for the nearest expiry"
Client: [calls get_options_chain] -> structured chain with bid/ask/mark/IV/greeks

You:    "Check my current Derive portfolio"
Client: [calls get_portfolio_summary] -> balance, positions, aggregate greeks, PnL

You:    "Buy 0.1 of this contract and verify the fill"
Client: [calls place_and_verify] -> normalized receipt, warnings, audit log event

You:    "Price this two-leg spread through RFQ and execute the best quote"
Client: [calls create_rfq -> await_rfq_quotes -> accept_rfq_quote]

Quick Start

1. Install

git clone https://github.com/yashhsm/derive-mcp-server.git
cd derive-mcp-server
npm install
npm run build

Requires Node.js >=18.

2. Choose an auth mode

You can run the server in three modes:

Mode

Required env

What it unlocks

Public only

none

Public market data and chart tools only

API key

DERIVE_API_KEY

Authenticated private requests that do not require local EIP-712 signing

Session-key trading

DERIVE_SESSION_PRIVATE_KEY, DERIVE_WALLET_ADDRESS, DERIVE_SUBACCOUNT_ID

Signed order placement and RFQ quote execution

Notes:

  • DERIVE_SUBACCOUNT_ID is effectively required for signed trading flows because order signing uses the default subaccount from env.

  • Legacy aliases are also supported: LYRA_SESSION_PRIVATE_KEY, LYRA_WALLET_ADDRESS, LYRA_SUBACCOUNT_ID.

  • DERIVE_TESTNET=true switches the server to https://api-demo.lyra.finance.

  • DERIVE_API_URL can override the base URL directly.

Example env file:

mkdir -p ~/.config/derive-mcp
cat > ~/.config/derive-mcp/env << 'EOF'
# Signed trading mode
DERIVE_SESSION_PRIVATE_KEY=your_session_key_here
DERIVE_WALLET_ADDRESS=0xyourwallet
DERIVE_SUBACCOUNT_ID=123

# Optional alternatives / overrides
# DERIVE_API_KEY=your_api_key_here
# DERIVE_TESTNET=true
# DERIVE_API_URL=https://api.lyra.finance
EOF
chmod 600 ~/.config/derive-mcp/env

3. Create a launcher script

This keeps secrets out of repo config and works for public-only mode too.

mkdir -p ~/.local/bin
cat > ~/.local/bin/derive-mcp-launcher << 'SCRIPT'
#!/bin/bash
set -euo pipefail

DERIVE_SERVER="/absolute/path/to/derive-mcp-server/dist/index.js"
DERIVE_ENV_FILE="${DERIVE_ENV_FILE:-$HOME/.config/derive-mcp/env}"

if [ -f "$DERIVE_ENV_FILE" ]; then
  set -a
  . "$DERIVE_ENV_FILE"
  set +a
fi

exec node "$DERIVE_SERVER" "$@"
SCRIPT

chmod +x ~/.local/bin/derive-mcp-launcher

4. Add it to your MCP client

Generic stdio example:

{
  "mcpServers": {
    "derive": {
      "command": "/Users/you/.local/bin/derive-mcp-launcher"
    }
  }
}

Claude Code (~/.claude.json):

{
  "mcpServers": {
    "derive": {
      "type": "stdio",
      "command": "/Users/you/.local/bin/derive-mcp-launcher"
    }
  }
}

Claude Desktop (~/Library/Application Support/Claude/claude_desktop_config.json):

{
  "mcpServers": {
    "derive": {
      "command": "/Users/you/.local/bin/derive-mcp-launcher"
    }
  }
}

If you are building an agent on top of this server, these are the safest defaults:

  • Start with auth_status to see which capabilities are actually available at runtime.

  • Start with get_options_chain for options analysis, not get_ticker.

  • Use get_tickers for executable options quotes from market makers; use get_instruments(compact=true) alongside it when you need lot sizes.

  • Prefer place_and_verify over raw place_order if you want normalized receipts, error classification, and audit logging.

  • Prefer create_rfq, await_rfq_quotes, and accept_rfq_quote over raw RFQ tools if you want a complete multi-step flow.

  • Run check_multi_leg_margin before any short-leg or spread strategy, especially on Standard Margin accounts.

  • Use order_audit_log and reconcile if you want a local operational history of orders placed through lifecycle tools.

Tool Surface

Public Market Data And Charts (12)

Tool

Description

get_options_chain

Structured options chain with strikes as rows and call/put columns. Best starting point for options analysis.

get_tickers

Batch pricing with market-maker quotes, greeks, IV, and liquidity filtering. Primary pricing tool for options.

get_ticker

Detailed single-instrument metadata. Best for perps and instrument metadata, not option bid/ask discovery.

get_instruments

Active instruments for a currency and type, with useful filters for options.

get_all_instruments

Paginated list of all instruments across currencies.

get_trade_history_public

Public trade history.

get_funding_rate_history

Historical perp funding rates.

get_interest_rate_history

Historical USDC borrow and supply APY.

get_liquidation_history

Liquidation auction history.

get_transaction

Transaction status lookup.

get_index_chart_data

Spot or index OHLC candles.

get_tradingview_chart_data

Instrument OHLCV candle data.

Account, Portfolio, Transfers, And Session (12)

Tool

Description

get_account

Account details such as fee tier, rate limits, and subaccount info.

get_subaccounts

List available subaccount IDs.

get_subaccount

Full subaccount snapshot including margin type, positions, open orders, and value.

get_notifications

Account notifications.

get_positions

All active positions with greeks, PnL, margin, and liquidation data.

get_collaterals

Collateral holdings with mark values and interest.

get_margin

Current margin plus optional position or collateral simulation.

get_portfolio_summary

One-call portfolio summary with balance, positions, and aggregate greeks.

get_deposit_history

Deposit history.

get_withdrawal_history

Withdrawal history.

get_erc20_transfer_history

ERC20 transfer history between subaccounts.

get_session_keys

Session keys for the configured wallet.

Raw Orders, RFQ, And Account Controls (16)

Tool

Description

place_order

Raw order placement with automatic EIP-712 signing.

replace_order

Atomic cancel-and-replace for an existing order.

cancel_order

Cancel a single order.

cancel_by_instrument

Cancel all open orders for one instrument.

cancel_by_label

Cancel open orders by label.

cancel_all_orders

Cancel all open orders for a subaccount.

get_open_orders

Current open orders.

get_order

Current state of a single order.

get_order_history

Historical orders.

get_trade_history_private

Private trade fills with fees and realized PnL.

send_rfq

Send a request for quote.

get_rfqs

Retrieve RFQs.

get_quotes

Retrieve quotes for an RFQ.

execute_quote

Execute a specific RFQ quote with signed legs.

cancel_rfq

Cancel an RFQ.

set_cancel_on_disconnect

Enable or disable auto-cancel on disconnect.

Market Maker Protection (3)

Tool

Description

get_mmp_config

Read current MMP configuration.

set_mmp_config

Configure MMP thresholds and freeze behavior.

reset_mmp

Manually reset or unfreeze MMP.

Lifecycle And Audit Helpers (8)

These are composite tools built in this repo on top of the raw Derive endpoints.

Tool

Description

place_and_verify

Preferred order placement wrapper with normalized receipts, fill verification, and audit logging.

verify_order

Re-check any order and emit audit corrections if the state changed.

create_rfq

Open an RFQ and immediately return a normalized receipt.

await_rfq_quotes

Poll an RFQ for quotes without executing them.

accept_rfq_quote

Execute a chosen RFQ quote by rfq_id and quote_id without replaying legs manually.

check_multi_leg_margin

Compare atomic and sequential margin behavior for multi-leg strategies.

order_audit_log

Query the local append-only audit trail with summary stats.

reconcile

Compare the local audit log with Derive state and optionally backfill corrections.

Meta (1)

Tool

Description

auth_status

Reports the configured auth mode, API URL, default subaccount, and available capabilities.

Important Behavior Notes

Public vs signed trading tools

  • Public tools require no auth.

  • Most authenticated read paths use the private API and can run with an API key or session-key auth.

  • Signed trading flows require DERIVE_SESSION_PRIVATE_KEY, DERIVE_WALLET_ADDRESS, and DERIVE_SUBACCOUNT_ID.

  • In practice, signed order execution includes place_order, execute_quote, and lifecycle tools that depend on them such as place_and_verify and accept_rfq_quote.

Options pricing

  • get_options_chain and get_tickers are the primary options analysis and pricing tools.

  • get_ticker exposes CLOB resting bid and ask, which can be misleading for options because options trade primarily through market-maker streaming quotes.

  • When placing orders, use get_instruments(compact=true) or get_ticker for minimum_amount, amount_step, and tick_size.

Margin and spread safety

  • Standard Margin (SM) does not net option spreads.

  • Portfolio Margin (PM / PM2) does.

  • For short options or credit spreads, inspect margin_type via get_subaccount, simulate with get_margin, and prefer check_multi_leg_margin or RFQ-based execution when appropriate.

Local audit log

Lifecycle tools write an append-only JSONL audit trail to:

~/.config/derive-mcp/audit/<subaccount_id>.jsonl

This is local state owned by the MCP server process. It is useful for:

  • debugging order outcomes

  • reconstructing lifecycle receipts

  • tracking fill rate and fees

  • reconciling raw orders that bypassed lifecycle tools

LLM-Friendly Design Choices

This server is not a thin API wrapper. It includes several choices specifically made for AI agents:

  • get_options_chain returns a structured chain instead of forcing callers to stitch together raw ticker data.

  • get_portfolio_summary collapses balance, positions, and aggregate greeks into one call.

  • get_tickers(only_liquid=true) keeps option responses smaller and more relevant.

  • Numeric strings are rounded for MCP display when Derive returns excessive precision, while the lifecycle audit log retains the underlying raw values that matter operationally.

  • Lifecycle tools normalize common failure cases such as zero liquidity, insufficient funds, transport errors, and partially filled orders.

Included Skills

The repo also includes higher-level Claude Code skills that pair with this MCP server:

Skill

Description

payoff-diagram

Interactive HTML payoff diagrams with PnL curves, DTE views, scenario analysis, and plain-English strategy summaries.

strategy-scanner

Live options chain scanning for trade ideas across skew, term structure, unusual activity, yield screens, and lottery-ticket setups.

trade-intent-parser

Natural-language trade parsing that validates instruments, checks liquidity and margin, previews the trade, and can hand off to execution flows.

Repo Layout

derive-mcp-server/
├── src/
│   ├── index.ts
│   └── protocols/derive/
│       ├── client.ts
│       ├── signing.ts
│       ├── response-schemas.ts
│       ├── public/
│       ├── private/
│       └── lifecycle/
├── docs/
│   └── ORDER_LIFECYCLE_MANAGER.md
├── skills/
│   ├── payoff-diagram/
│   ├── strategy-scanner/
│   └── trade-intent-parser/
├── agents/
│   └── sol-momentum-scalper.ts
├── dist/
├── package.json
└── tsconfig.json

Extra Docs And Examples

Environment Variables

Variable

Required

Description

DERIVE_SESSION_PRIVATE_KEY

Signed trading

Session key private key used for EIP-712 order signing

DERIVE_WALLET_ADDRESS

Signed trading

Wallet address associated with the Derive session key

DERIVE_SUBACCOUNT_ID

Signed trading / useful elsewhere

Default subaccount used by signed trading flows and as the fallback for tools that accept subaccount_id

DERIVE_API_KEY

Optional

Alternative auth path for authenticated private requests that do not require local signing

DERIVE_API_URL

Optional

Override the base API URL directly

DERIVE_TESTNET

Optional

Set to "true" to use https://api-demo.lyra.finance

LYRA_SESSION_PRIVATE_KEY

Optional

Legacy alias for DERIVE_SESSION_PRIVATE_KEY

LYRA_WALLET_ADDRESS

Optional

Legacy alias for DERIVE_WALLET_ADDRESS

LYRA_SUBACCOUNT_ID

Optional

Legacy alias for DERIVE_SUBACCOUNT_ID

Market Coverage

Market listings on Derive change over time. Instead of relying on a static README list, use:

  • get_instruments

  • get_all_instruments

  • get_options_chain

to discover the current set of live options, perps, strikes, expiries, and collateral-supported markets.

License

MIT

Available Tools

52 tools
accept_rfq_quoteA

Execute a specific quote from an RFQ. Fetches the quote details automatically — you only need rfq_id and quote_id (no need to replay legs). Optional max_total_cost safety bound prevents execution if quote cost exceeds limit. Returns LifecycleResult with trade details on success.

Inputs: rfq_id (required), quote_id (required), subaccount_id, max_total_cost.

auth_statusB

Check what authentication is configured and what capabilities are available.

Inputs: no named parameters.

await_rfq_quotesA

Poll for quotes on an open RFQ. Returns all received quotes without executing any. Does NOT cancel the RFQ on timeout — it remains open until valid_until or explicit cancel. If quotes are found, status is 'QUOTED'. If timeout with no quotes, status remains 'OPEN'. Use accept_rfq_quote to execute a specific quote.

Inputs: rfq_id (required), subaccount_id, max_wait_seconds, poll_interval_seconds.

cancel_all_ordersC

Cancel ALL open orders for a subaccount. Use with caution.

Inputs: subaccount_id, cancel_trigger_orders.

cancel_by_instrumentC

Cancel all orders for a specific instrument.

Inputs: instrument_name (required), subaccount_id.

cancel_by_labelC

Cancel all orders with a specific label.

Inputs: label (required), subaccount_id, instrument_name.

cancel_orderC

Cancel a single order by order ID.

Inputs: order_id (required), instrument_name (required), subaccount_id.

cancel_rfqC

Cancel an open RFQ.

Inputs: rfq_id (required), subaccount_id.

check_multi_leg_marginA

Pre-flight margin check for multi-leg strategies. Simulates BOTH as an atomic portfolio AND sequentially (leg-by-leg in execution order). CRITICAL for Standard Margin (SM) which does NOT net spreads — short options require full naked margin even with protective long legs. Returns warnings when portfolio simulation passes but sequential execution would fail. Execution order: buy legs first (lowest premium), then sell legs (highest margin). For atomic multi-leg execution, use RFQ instead of CLOB.

Inputs: legs (required), subaccount_id.

create_rfqA

Send an RFQ (Request for Quote) to market makers and return immediately. Does NOT poll for quotes or auto-execute — use await_rfq_quotes and accept_rfq_quote for that. RFQs remain open until valid_until (~30 min) or explicit cancel. For multi-leg options strategies, this is the preferred path for atomic execution.

Inputs: legs (required), label, subaccount_id.

execute_quoteA

Accept and execute an RFQ quote. Completes the RFQ flow: send_rfq → get_quotes → execute_quote. Each leg needs EIP-712 signing, which is handled automatically. The quote_id ties the execution to the MM's quote, ensuring you get the quoted price.

Inputs: legs (required), quote_id (required), label, subaccount_id.

get_accountB

Get account details: fee tiers, rate limits, subaccount IDs, cancel-on-disconnect status.

Inputs: wallet.

get_all_instrumentsA

Paginated list of all instruments across currencies. Returns {instruments, pagination}.

Inputs: instrument_type (required), page, expired, page_size.

get_collateralsB

Get all collateral holdings with mark values, interest, and PnL.

Inputs: subaccount_id.

get_deposit_historyC

Get deposit history for a subaccount.

Inputs: end_timestamp, subaccount_id, start_timestamp.

get_erc20_transfer_historyC

Get ERC20 transfer history between subaccounts.

Inputs: wallet, end_timestamp, subaccount_id, start_timestamp.

get_funding_rate_historyA

Get funding rate history for a perp instrument. Max 30 days lookback.

Inputs: instrument_name (required), period, end_timestamp, start_timestamp.

get_index_chart_dataC

Get spot/index OHLC candle data for a currency.

Inputs: period (required), currency (required), end_timestamp (required), start_timestamp (required).

get_instrumentsA

Get active instruments for a currency and type. For options, this can return hundreds of instruments — use strike_min/strike_max and/or expiry_date to filter, and compact=true for minimal output. Without filters, the response can be very large (200KB+).

Inputs: currency (required), instrument_type (required), compact, expired, +3 more.

get_interest_rate_historyC

Get USDC borrow/supply APY history.

Inputs: to_timestamp_sec (required), from_timestamp_sec (required), page, page_size.

get_liquidation_historyC

Get liquidation auction history.

Inputs: page, page_size, end_timestamp, subaccount_id, +1 more.

get_marginA

Get current margin. Optionally simulate position/collateral changes before trading. Validates simulated amounts against instrument minimum_amount and amount_step — if amounts violate constraints, returns is_valid_trade=false with violations (the real order would reject). CRITICAL: Simulation evaluates all positions ATOMICALLY as a portfolio — but orders execute LEG BY LEG. A multi-leg spread may show is_valid_trade=true in simulation but FAIL on execution because each leg is margined independently. For multi-leg strategies: simulate EACH sell/short leg INDIVIDUALLY against current positions to verify it passes margin alone. Standard Margin (SM) does NOT net spreads — short options require full naked margin. Portfolio Margin (PM/PM2) does net spreads. Always check margin_type from get_subaccount before placing short option orders.

Inputs: subaccount_id, simulated_position_changes, simulated_collateral_changes.

get_mmp_configC

Get MMP (Market Maker Protection) configuration.

Inputs: currency, subaccount_id.

get_notificationsC

Get account notifications.

Inputs: page, type, status, wallet, +2 more.

get_open_ordersB

Get all open orders for a subaccount.

Inputs: subaccount_id.

get_options_chainA

Get a structured options chain for a currency — strikes as rows, calls and puts as columns, with bid/ask/mark/IV/greeks/OI. This is the RECOMMENDED tool for analyzing options. Returns a compact, pre-filtered chain instead of raw ticker data. Defaults to only_liquid=true and ±30% from spot. Bid/ask here are from MM streaming quotes (real executable prices). NOTE: Does NOT include minimum_amount or amount_step. Call get_instruments(compact=true) alongside if you need lot sizes for order placement. Response: {index_price, expiries: [{expiry, dte, chain: [{strike, call: {bid,ask,mark,iv,delta,...}, put: {...}}]}]}

Inputs: currency (required), strike_max, strike_min, expiry_date, +1 more.

get_orderA

Get a single order's current state: status, filled_amount, average_price, fees. Use this after place_order to confirm fills — especially for IOC orders which vanish from get_open_orders immediately. Returns: order_id, status (open/filled/cancelled/expired), filled_amount, average_price, limit_price, direction, label, creation_timestamp.

Inputs: order_id (required), subaccount_id.

get_order_historyC

Get historical orders for a subaccount or wallet.

Inputs: page, wallet, page_size, to_timestamp, +2 more.

get_portfolio_summaryA

Get a complete portfolio overview in a single call: USDC balance, all positions with greeks, and aggregate totals. Returns {balance, positions: [...], totals: {value, unrealized_pnl, delta, gamma, vega, theta}}. Use this INSTEAD of calling get_collaterals + get_positions separately — saves a tool call and does the aggregation for you. IMPORTANT: totals.delta is summed across ALL currencies (BTC + ETH + SOL + HYPE). For hedging a specific currency, filter positions by currency prefix (e.g., instrument.startsWith('ETH')) and sum their deltas. NOTE: positions include mark_price but NOT bid/ask. To close options, use get_tickers(expiry) for real MM quotes. Theta values are in USD/day for the full position size (already scaled by amount).

Inputs: subaccount_id.

get_positionsB

Get all active positions with Greeks, PnL, margin, and liquidation prices.

Inputs: subaccount_id.

get_quotesC

Get quotes for a subaccount. Filter by RFQ, quote ID, or status.

Inputs: page, rfq_id, status, quote_id, +2 more.

get_rfqsC

Get RFQs for a subaccount. Filter by status or time.

Inputs: page, rfq_id, status, page_size, +1 more.

get_session_keysC

List all session keys for a wallet.

Inputs: wallet.

get_subaccountA

Full subaccount snapshot: collaterals, open orders, positions, margin, portfolio value. IMPORTANT: Check margin_type field (SM = Standard Margin, PM/PM2 = Portfolio Margin). SM: short options require full naked margin, spreads NOT netted. Only long options and perps practical. PM/PM2: spreads are netted, credit spreads work, lower margin for hedged positions. Always check margin_type BEFORE planning any strategy involving short options.

Inputs: subaccount_id.

get_subaccountsB

List all subaccount IDs for a wallet.

Inputs: wallet.

get_tickerA

Get detailed instrument data: mark price, index, Greeks, funding, open interest, fees, tick size, minimum_amount, amount_step. WARNING FOR OPTIONS: bid/ask here are CLOB resting orders only — options trade primarily via MM streaming quotes, so CLOB bid/ask is often $0 or wildly off-market. For option pricing/execution, ALWAYS use get_tickers instead. For PERPS: bid/ask from get_ticker is fine — perps have active CLOB liquidity. Use this tool for: perp pricing, instrument metadata (tick_size, minimum_amount, amount_step), and funding rates.

Inputs: instrument_name (required).

get_tickersA

Batch pricing for all instruments of a type. Returns MM streaming quotes (bid/ask/mark/greeks). This is the PRIMARY pricing tool — shows real market maker quotes unlike get_ticker which only shows CLOB resting orders. For options: currency AND expiry_date (YYYYMMDD) are required. Use only_liquid=true to filter out dead strikes with no quotes (recommended — reduces response by ~60%). Use min_delta/max_delta to focus on specific moneyness ranges. Response: {tickers: {instrument_name: {bid, ask, bid_size, ask_size, mark, delta, iv, ...}}}

Inputs: instrument_type (required), currency, max_delta, min_delta, +2 more.

get_trade_history_privateC

Get private trade history (fills) with PnL, fees, tx status.

Inputs: page, page_size, to_timestamp, subaccount_id, +2 more.

get_trade_history_publicC

Get public trade history. Filter by currency, instrument, type, or time range.

Inputs: page, currency, page_size, instrument_name, +1 more.

get_tradingview_chart_dataB

Get OHLCV candle data for a specific instrument (trades-based).

Inputs: period (required), end_timestamp (required), instrument_name (required), start_timestamp (required).

get_transactionA

Look up transaction status: requested, pending, settled, reverted, ignored, or timed_out.

Inputs: transaction_id (required).

get_withdrawal_historyC

Get withdrawal history for a subaccount.

Inputs: end_timestamp, subaccount_id, start_timestamp.

order_audit_logA

Query the local audit trail of orders placed through lifecycle tools. Returns filtered order history with a summary including fill rate, total fees, and volume. Note: only orders placed via place_and_verify or rfq tools are tracked. Use reconcile to backfill orders placed via raw place_order.

Inputs: label, limit, status, to_timestamp, +3 more.

place_and_verifyA

Place an order with automatic fill verification, error classification, and audit logging. Returns a LifecycleResult — never throws for expected failures (zero liquidity, insufficient funds). Submission states: 'accepted' (order on exchange), 'rejected' (exchange rejected), 'unknown' (transport error). For IOC/FOK that can't match, returns rejected with ZERO_LIQUIDITY — no phantom order created. For GTC that crosses the spread, returns filled with trades inline. All events are appended to the audit log.

Inputs: amount (required), direction (required), limit_price (required), instrument_name (required), +6 more.

place_orderA

Place an order. Handles EIP-712 signing automatically. Returns order_id and order status. IMPORTANT: For IOC/FOK orders, the order may already be filled or cancelled by the time you read the response. Use get_order(order_id) after placing to confirm fill status, filled_amount, and average_price. MARGIN RULES: Selling/shorting options requires margin. On Standard Margin (SM), short options are treated as NAKED — the full margin is required even if you hold a protective long leg. SM does NOT recognize spreads. Credit spreads (bull put, bear call) ONLY work on Portfolio Margin (PM/PM2). Before selling options: 1) check margin_type via get_subaccount, 2) simulate the sell leg ALONE via get_margin, 3) if SM, only sell options if you have enough margin for naked exposure. Buying options only requires the premium — no additional margin needed. INSTRUMENT CONSTRAINTS: Check minimum_amount and amount_step via get_instruments before placing. Common minimums: ETH options 0.1, BTC options 0.01, SOL options 0.1, HYPE options 1.

Inputs: amount (required), direction (required), limit_price (required), instrument_name (required), +5 more.

reconcileA

Compare local audit log against Derive's actual order state. Detects: orders on Derive not in local log (placed via raw tools), local orders marked as open that Derive shows as filled/cancelled. With auto_fix=true, appends correction events to bring local log in sync.

Inputs: auto_fix, subaccount_id.

replace_orderA

Atomically cancel an existing order and create a new one. If cancel fails, the new order is not placed.

Inputs: amount (required), direction (required), limit_price (required), instrument_name (required), +6 more.

reset_mmpC

Manually reset/unfreeze MMP.

Inputs: currency, subaccount_id.

send_rfqC

Send a Request for Quote (multi-leg) to market makers.

Inputs: legs (required), label, subaccount_id.

set_cancel_on_disconnectB

Enable/disable auto-cancel all orders on WebSocket disconnect.

Inputs: enabled (required), wallet.

set_mmp_configC

Configure MMP. Set interval=0 to disable, frozen_time=0 for manual-only reset.

Inputs: currency (required), mmp_interval (required), mmp_frozen_time (required), subaccount_id, +2 more.

verify_orderA

Check current state of any order and return normalized OrderReceipt. If the order's status changed since last check (e.g., OPEN → FILLED), emits a correction event to the audit log. Use after place_and_verify to check if a GTC order has been filled, or to get settlement details. With include_settlement=true, fetches tx_hash from trade history for filled orders.

Inputs: order_id (required), subaccount_id, include_settlement.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    C2.9/5.0

    Scored across 52 tools

    Disambiguation3/5

    Descriptions work hard to differentiate closely related tools (get_ticker vs get_tickers vs get_options_chain, get_portfolio_summary vs get_collaterals+get_positions), but there are genuine duplicate pairs with overlapping purpose: send_rfq vs create_rfq, execute_quote vs accept_rfq_quote, place_order vs place_and_verify, get_order vs verify_order, and get_quotes vs await_rfq_quotes. An agent must read long descriptions to know which of two near-identical RFQ tools is 'the preferred path', and pricing has at least four overlapping entry points.

    Naming Consistency4/5

    Nearly everything follows a snake_case verb_noun convention (get_*, cancel_*, set_*, place_*, create_*). Minor deviations exist: auth_status and order_audit_log are noun-style, reconcile is a bare verb, and singular/plural pairs (get_ticker/get_tickers, get_rfq vs get_rfqs) rely on tiny spelling differences to mean different things.

    Tool Count2/5

    52 tools is well past the heavy threshold and includes a visible second layer bolted on top of the first (RFQ v1 vs v2, raw place_order vs place_and_verify, plus an audit/reconcile subsystem). While a full derivatives exchange is broad, the count is inflated by redundant legacy/new parallel surfaces rather than by distinct capabilities.

    Completeness4/5

    Coverage is genuinely deep: instrument discovery, pricing, order lifecycle with replace/cancel variants, RFQ flow, margin simulation, MMP, session keys, histories, and audit reconciliation. Main gaps are funding/withdrawal actions (only history is exposed, no initiate transfer/withdraw) and no order-amend beyond replace_order.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      B
      maintenance
      Hyperliquid liquidations, wallets and live order-flow signals for trading bots and agents. Liquidation map, funding, open interest and SQL from Ironflow's own nodes. 46 tools, no key to start.
      4
      46
      1,189 npm
      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.
      24
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables AI clients to query live BTC and ETH perpetual markets, wallet analytics, leaderboards, and liquidation maps, then preview and execute guarded trades through non-custodial session keys.
      85 npm
      4
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables AI assistants to scan crypto perpetuals, assess derivatives and entry/exit setups, simulate trades, size positions, run risk checks, and execute paper or demo trades through a gated confirmation workflow.
      89
      MIT