# OpenDepth MCP Server & Public Market Data API

> Canonical URL: https://opendepth.io/docs/mcp · MCP Endpoint: https://api.opendepth.io/api/mcp · OpenAPI 3.1: https://api.opendepth.io/openapi.json

## 8 Native MCP Tools (4 Public Zero-Auth + 4 Bearer Scoped)

| Tool Name | Auth | Description |
| --- | --- | --- |
| `list_markets` | public | List live crypto & TradFi markets across all connected CEX & Perp DEX venues (Binance, OKX, Bybit, Bitget, Hyperliquid, Aster, and expanding), optionally filtered by base token. |
| `get_microstructure_klines` | public | Fetch OHLCV + Open Interest + Funding Rate + Orderbook Depth + Taker/Spot Flow Z-score bars (`1m`–`1d`). |
| `scan_anomaly_radar` | public | Scan all connected CEX & Perp DEX venues for Whale Accumulation, Spot Divergence, Squeeze Fuel, High Distribution, and Price×OI 4-quadrant regimes. |
| `get_carry_matrix` | public | Rank cross-venue Spot+Perp cash-and-carry and Perp+Perp funding spread pairs by net 30d APR after orderbook slippage. |
| `list_strategies` | bearer (strategies) | List the authenticated user's saved quantitative strategies and status. |
| `create_strategy` | bearer (strategies) | Create or update a validated OpenDepth StrategyDefinition document. |
| `compile_ai_strategy` | bearer (strategies) | Compile a plain-language trading thesis into a validated StrategyDefinition (Plus / Pro). |
| `get_portfolio_overview` | bearer (strategies) | Fetch multi-strategy dry-run/live equity, symbol exposures, open positions, and account-level risk guard state. |

## Claude Desktop / Cursor / Windsurf Config

```json
{
  "mcpServers": {
    "opendepth": {
      "url": "https://api.opendepth.io/api/mcp",
      "headers": {
        "Authorization": "Bearer odk_optional_for_public_tools"
      }
    }
  }
}
```

## Frequently Asked Questions

### Which OpenDepth MCP tools work with zero authentication?

Four tools work without any API key: `list_markets`, `get_microstructure_klines`, `scan_anomaly_radar`, and `get_carry_matrix` at `POST https://api.opendepth.io/api/mcp`.

### How can an AI agent pay for Plus or Pro autonomously?

Agents can settle Plus ($19/mo) or Pro ($49/mo) with gasless x402 v2 EIP-3009 USDC signatures (Base, Arbitrum, Optimism, Ethereum) via `/api/account/plan/x402` or deposited balance.
