Skip to main content
Glama
Derive MCP Server

Derive MCP Server

by aadarshvelu

Derive MCP Server

An MCP (Model Context Protocol) server that provides market data from Derive.xyz (formerly Lyra Finance). All endpoints are public — no authentication required.

Tools

Tool

Description

get_all_currencies

List all available currencies

get_currency

Details for a specific currency

get_all_instruments

List instruments (options, perps, ERC20)

get_instrument

Details for a specific instrument

get_ticker

Current price, volume, bid/ask for an instrument

get_tickers

Tickers for all instruments of a given type

get_spot_feed_history

Historical spot prices

get_spot_feed_history_candles

OHLC candlestick data

get_funding_rate_history

Perpetual funding rate history

get_interest_rate_history

Borrowing interest rate history

get_option_settlement_history

Option settlement history

get_latest_signed_feeds

Current oracle price feeds

get_liquidation_history

Liquidation events

get_margin

Margin requirement simulation

get_statistics

Platform volume and open interest stats

Related MCP server: aster-info-mcp

Setup

git clone https://github.com/aadarshvelu/derive-mcp.git
cd derive-mcp
npm install

Usage

Claude Desktop

Add to ~/Library/Application Support/Claude/claude_desktop_config.json:

{
  "mcpServers": {
    "derive": {
      "command": "node",
      "args": ["/path/to/derive-mcp/server.mjs"]
    }
  }
}

Restart Claude Desktop. The 15 market data tools will be available.

Claude Code

Add to your project's .mcp.json:

{
  "mcpServers": {
    "derive": {
      "command": "node",
      "args": ["/path/to/derive-mcp/server.mjs"]
    }
  }
}

Or run directly:

claude mcp add derive node /path/to/derive-mcp/server.mjs

MCP Inspector (debugging)

npx @modelcontextprotocol/inspector node server.mjs

Tests

node test-mcp.mjs

Runs 16 tests against the live Derive API (15 tool calls + tool listing).

API Reference

All tools call the Derive public REST API at https://api.lyra.finance. No API keys or authentication needed.

Available Tools

15 tools
get_all_currenciesB

Get all available currencies on Derive

Inputs: no named parameters.

get_all_instrumentsB

Get all available instruments (options, perps, or ERC20 tokens)

Inputs: expired (required), instrument_type (required), currency, page, +1 more.

get_currencyC

Get details for a specific currency

Inputs: currency (required).

get_funding_rate_historyC

Get historical funding rates for a perpetual instrument

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

get_instrumentC

Get details for a specific instrument by name

Inputs: instrument_name (required).

get_interest_rate_historyC

Get historical borrowing interest rates

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

get_latest_signed_feedsC

Get current oracle price feeds

Inputs: currency, expiry.

get_liquidation_historyC

Get historical liquidation events

Inputs: start_timestamp, end_timestamp, page, page_size.

get_marginB

Simulate margin requirements for a hypothetical portfolio

Inputs: margin_type (required), simulated_collaterals (required), simulated_positions (required), market.

get_option_settlement_historyC

Get historical option settlement data

Inputs: page, page_size, subaccount_id.

get_spot_feed_historyC

Get historical spot price data for a currency

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

get_spot_feed_history_candlesC

Get OHLC candlestick data for spot prices

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

get_statisticsC

Get aggregate platform statistics (volume, open interest, etc.)

Inputs: instrument_name (required), currency, end_time.

get_tickerB

Get current price, volume, bid/ask for an instrument

Inputs: instrument_name (required).

get_tickersC

Get tickers for all instruments of a given type

Inputs: instrument_type (required), currency, expiry_date.

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    B3.2/5.0

    Scored across 15 tools

    Disambiguation4/5

    Most tools have clearly distinct purposes focused on specific data types (currencies, instruments, funding rates, etc.), but there is some potential overlap between get_ticker and get_tickers, and between get_spot_feed_history and get_spot_feed_history_candles, which could cause minor confusion in selection.

    Naming Consistency5/5

    All tools follow a consistent get_* pattern with snake_case naming, creating a predictable and readable structure throughout the toolset. The naming convention is uniform across all 15 tools.

    Tool Count5/5

    With 15 tools, the count is well-scoped for a financial data platform, providing comprehensive coverage without being overwhelming. Each tool appears to serve a distinct data retrieval function that justifies its inclusion.

    Completeness4/5

    The toolset provides extensive read-only coverage for financial data (currencies, instruments, pricing, funding, statistics, etc.), but lacks any write or action-oriented tools (e.g., place orders, manage positions), which may be intentional given the server's apparent focus on data retrieval rather than trading operations.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      D
      maintenance
      Provides real-time and historical cryptocurrency market data through integration with major exchanges. This server enables LLMs like Claude to fetch current prices, analyze market trends, and access detailed trading information.
      7
      83
      MIT
    • A
      license
      A
      quality
      D
      maintenance
      An MCP server that provides structured access to Aster DEX market data—covering candlesticks, order books, trades, and funding rates.
      11
      5
      MIT
    • -
      license
      Not graded
      quality
      Not graded
      maintenance
      Real-time financial market data MCP server. Stocks, crypto, technicals, sentiment, FDA calendar. No API keys required.
      -
    • A
      license
      A
      quality
      D
      maintenance
      MCP server exposing read-only market data tools for crypto prices, funding rates, and prediction markets via Dataline API.
      8
      7 npm
      MIT