> ## Documentation Index
> Fetch the complete documentation index at: https://docs.tradingoctant.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Connect to the market data MCP

Add a remote server in an MCP client that supports **Streamable HTTP** and custom headers. Set the URL to `https://api.tradingoctant.com/mcp` and choose Bearer authentication with a key from [Account](https://dash.tradingoctant.com/account). This server retrieves market data.

## Connect in VS Code

Add this entry to your user MCP configuration. Enter your key when the server starts, then select `discover` in the tool list to see the available symbols.

```json theme={null}
{
  "inputs": [
    {
      "id": "octant-key",
      "type": "promptString",
      "description": "Trading Octant API key",
      "password": true
    }
  ],
  "servers": {
    "trading-octant": {
      "type": "http",
      "url": "https://api.tradingoctant.com/mcp",
      "headers": {
        "Authorization": "Bearer ${input:octant-key}"
      }
    }
  }
}
```

## Read a snapshot

1. Call `discover` with `{}`.
2. If `get_gex` is listed, call it with the arguments below. Read the snapshot from `result.structuredContent`. Each snapshot request draws on the same account quota as REST.

```json theme={null}
{"symbol": "SPX", "basis": "naive"}
```

For a custom client, POST JSON-RPC 2.0 with a Bearer header on every request, `Content-Type: application/json` and `Accept: application/json, text/event-stream`. Send `initialize`, `notifications/initialized`, `tools/list`, then `tools/call`. Send the negotiated version in `MCP-Protocol-Version` on subsequent requests. Supported revisions are 2025-11-25, 2025-06-18 and 2025-03-26.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.