MCP Server

v1.5.0

Model Context Protocol (MCP) lets AI agents like Claude, ChatGPT, and custom bots query your derivatives data natively — no custom integration code needed.

Connect Your AI Platform

Step-by-step guides for connecting Laevitas derivatives data to your favorite AI platform. Requires an Enterprise API key from your Laevitas dashboard.

Claude.ai Connectors

OAuth 2.1

Connect directly from Claude.ai using the built-in MCP Connectors feature. OAuth handles authentication automatically.

  1. 1

    Go to Settings → Connectors in Claude.ai

  2. 2

    Click Add custom connector

  3. 3

    Fill in the fields:

    NameLaevitas
    Remote MCP server URLhttps://apiv2.laevitas.ch/api/v1/mcp
    OAuth Client IDleave empty
    OAuth Client Secretleave empty
  4. 4

    Click Add — a popup will open asking for your Laevitas API key

  5. 5

    Enter your API key and click Authorize. The connector is now active.

OAuth Client ID/Secret are left blank because the server supports dynamic client registration (RFC 7591). Claude.ai registers itself automatically.

Authentication

The MCP server supports two authentication methods. Use whichever your platform requires.

API Key

CLI, Desktop, Custom

Pass your key directly via HTTP header. Best for programmatic access.

Header (preferred) apikey: your-key-here
Header (alternative) x-api-key: your-key-here
Query parameter ?apiKey=your-key-here

OAuth 2.1

Claude.ai, Web Platforms

Automatic OAuth flow for platforms that require it. You enter your API key once during authorization.

PKCE S256 (required)
Grant type authorization_code
Token lifetime 1 hour (auto-refreshes)

Available Tools

20 tools the AI agent can call. Grouped by category.

Catalog & Discovery

Tool Description
get_futures_catalogList all available futures and perpetual instruments on an exchange
get_options_catalogList all available options instruments on an exchange
get_futures_metadataData availability metadata for a futures instrument (date range, data points)
get_options_metadataData availability metadata for an options instrument

Futures & Perpetuals

Tool Description
get_futures_ohlcvOHLCV candle data (price, volume, trade counts, liquidations)
get_futures_ticker_historyTicker snapshots (mark price, funding rate, OI, bid/ask)
get_futures_tradesIndividual trade records with full details
get_futures_open_interestAggregated open interest OHLC over time
get_futures_volume24-hour rolling volume (contracts + USD)
get_futures_level1Best bid/ask, spread, and liquidity over time
get_futures_reference_priceMark price and index price OHLC
get_futures_snapshotFull market snapshot of ALL instruments at one point in time

Options

Tool Description
get_options_ohlcvOHLCV candle data for options (trade-based)
get_options_ticker_historyTicker snapshots (IV, Greeks, OI, bid/ask)
get_options_tradesIndividual option trade records with Greeks
get_options_open_interestAggregated open interest over time
get_options_volatilityIV (mark/bid/ask), Greeks, and vol spread over time
get_options_volume24-hour rolling volume (contracts + USD)
get_options_level1Best bid/ask, spread, and liquidity over time
get_options_snapshotFull options chain snapshot (all strikes, maturities) at one time

Protocol Examples

1. Initialize

curl -X POST https://apiv2.laevitas.ch/api/v1/mcp \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -H "apikey: YOUR_API_KEY" \
  -d '{
    "jsonrpc": "2.0",
    "id": 1,
    "method": "initialize",
    "params": {
      "protocolVersion": "2025-03-26",
      "capabilities": {},
      "clientInfo": {
        "name": "my-app",
        "version": "1.0.0"
      }
    }
  }'

2. List Tools

curl -X POST https://apiv2.laevitas.ch/api/v1/mcp \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -H "apikey: YOUR_API_KEY" \
  -d '{
    "jsonrpc": "2.0",
    "id": 2,
    "method": "tools/list"
  }'

3. Call a Tool

curl -X POST https://apiv2.laevitas.ch/api/v1/mcp \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -H "apikey: YOUR_API_KEY" \
  -d '{
    "jsonrpc": "2.0",
    "id": 3,
    "method": "tools/call",
    "params": {
      "name": "get_futures_ohlcv",
      "arguments": {
        "instrument_name": "BTC-PERPETUAL",
        "exchange": "deribit",
        "resolution": "1h",
        "limit": 10
      }
    }
  }'

Example Prompts

What you can ask an AI agent connected to this MCP server:

"What BTC futures instruments are available on Deribit?"

"What's the current BTC perpetual funding rate?"

"Compare BTC vs ETH perpetual open interest over the last 4 hours"

"Show me the BTC futures term structure and annualized basis"

"Which BTC options expiring this week have the highest OI?"

"Analyze the IV skew for BTC options expiring in March"