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

# Official MCP endpoint

> Connect an MCP-compatible agent to Meridian through Context Protocol's remote MCP server.

Context Protocol exposes the marketplace through one remote Streamable HTTP MCP server.

```text theme={null}
URL: https://www.ctxprotocol.com/api/mcp
Authentication: Authorization: Bearer sk_live_YOUR_KEY
```

## Cursor

Add the server to `.cursor/mcp.json` or your global Cursor MCP configuration:

```json theme={null}
{
  "mcpServers": {
    "ctxprotocol": {
      "url": "https://www.ctxprotocol.com/api/mcp",
      "headers": {
        "Authorization": "Bearer sk_live_YOUR_KEY"
      }
    }
  }
}
```

Restart Cursor after saving the configuration.

## Claude Code

```bash theme={null}
claude mcp add --transport http ctxprotocol https://www.ctxprotocol.com/api/mcp \
  --header "Authorization: Bearer sk_live_YOUR_KEY"
```

## Pinned Query mode

Call `context_query` with Meridian pinned:

```json theme={null}
{
  "question": "Use Meridian to compare BTC funding and dollar open interest across Binance, Bybit, OKX, and Hyperliquid over the last 24 hours at 1h resolution.",
  "toolIds": [
    "e5e62fa5-28e1-42f4-8b84-f4866234df43"
  ],
  "responseShape": "evidence_only",
  "includeData": true,
  "includeDataUrl": true
}
```

If Context returns a `jobId`, call `context_query_poll` with that same ID. Do not submit the original query again, because that starts another paid job.

## Direct execution

Call `context_discover` with `mode: "execute"` before `context_execute`. Query eligibility does not guarantee Execute eligibility.

```json theme={null}
{
  "toolId": "e5e62fa5-28e1-42f4-8b84-f4866234df43",
  "toolName": "custom_bars",
  "args": {
    "exchange": "binance-futures",
    "product": "BTCUSDT",
    "bar_type": "tick",
    "begin": "2026-01-01T00:00:00Z",
    "end": "2026-01-02T00:00:00Z",
    "threshold": 1000,
    "limit": 100
  },
  "maxSpendUsd": "0.10",
  "closeSession": true
}
```

<Warning>
  The MCP endpoint belongs to Context Protocol. Do not point public clients directly at Meridian's private service ports.
</Warning>
