Model Context Protocol (MCP) lets AI agents like Claude, ChatGPT, and custom bots query your derivatives data natively — no custom integration code needed.
Step-by-step guides for connecting Laevitas derivatives data to your favorite AI platform. Requires an Enterprise API key from your Laevitas dashboard.
Connect directly from Claude.ai using the built-in MCP Connectors feature. OAuth handles authentication automatically.
Go to Settings → Connectors in Claude.ai
Click Add custom connector
Fill in the fields:
Laevitashttps://apiv2.laevitas.ch/api/v1/mcpClick Add — a popup will open asking for your Laevitas API key
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.
The MCP server supports three authentication methods. Use whichever your platform requires.
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 |
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) |
Pay per tool call with USDC. No signup required. Connect and list tools for free, pay only when calling tools.
| initialize | Free |
| tools/list | Free |
| tools/call | 1 credit per call |
No API key? No problem. AI agents can pay per tool call using USDC on Base or Solana.
Connect for free — initialize and tools/list work without any auth
Call a tool — first tools/call without payment returns 402 with payment instructions
Pay with USDC — sign a payment and retry. Get data + a credit token + 99 prepaid credits
Use credits — send X-Credit-Token header for instant tool calls (~1ms, no gas)
Credits work across both REST endpoints and MCP tool calls. A credit token earned via REST can be used for MCP and vice versa.
20 tools the AI agent can call. Grouped by category.
| Tool | Description |
|---|---|
get_futures_catalog | List all available futures and perpetual instruments on an exchange |
get_options_catalog | List all available options instruments on an exchange |
get_futures_metadata | Data availability metadata for a futures instrument (date range, data points) |
get_options_metadata | Data availability metadata for an options instrument |
| Tool | Description |
|---|---|
get_futures_ohlcvt | OHLCVT candle data (price, volume, trades, liquidations) |
get_futures_ticker_history | Ticker snapshots (mark price, funding rate, OI, bid/ask) |
get_futures_trades | Individual trade records with full details |
get_futures_open_interest | Aggregated open interest OHLC over time |
get_futures_volume | 24-hour rolling volume (contracts + USD) |
get_futures_level1 | Best bid/ask, spread, and liquidity over time |
get_futures_reference_price | Mark price and index price OHLC |
get_futures_snapshot | Full market snapshot of ALL instruments at one point in time |
| Tool | Description |
|---|---|
get_options_ohlcvt | OHLCVT candle data for options (trade-based) |
get_options_ticker_history | Ticker snapshots (IV, Greeks, OI, bid/ask) |
get_options_trades | Individual option trade records with Greeks |
get_options_open_interest | Aggregated open interest over time |
get_options_volatility | IV (mark/bid/ask), Greeks, and vol spread over time |
get_options_volume | 24-hour rolling volume (contracts + USD) |
get_options_level1 | Best bid/ask, spread, and liquidity over time |
get_options_snapshot | Full options chain snapshot (all strikes, maturities) at one time |
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"
}
}
}'
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"
}'
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_ohlcvt",
"arguments": {
"instrument_name": "BTC-PERPETUAL",
"exchange": "deribit",
"resolution": "1h",
"limit": 10
}
}
}'
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"