Index One Logo

Looking for the REST API instead? See the API Documentation.


MCP Server

Index One runs a remote MCP (Model Context Protocol) server, letting AI agents and assistants query indices, run backtests, and build and deploy index workflows directly.

MCP is the open standard for connecting AI applications to external tools and data. Any MCP-capable client — Claude Code, Claude Desktop, Cursor, VS Code, or your own agent built on the MCP SDKs — can connect to Index One with a few lines of configuration.

The server exposes 22 tools covering index data retrieval (values, holdings, weightings, universes, statistics), historical backtesting, and the full index-building workflow used by our own index builder.

POST

  https://mcp.indexone.io


How It Works

The MCP server is a tool surface, not a chatbot. Your client's own model does the reasoning: when you ask Claude — or Cursor, or an agent you wrote yourself — to build an index, that model plans the work, calls our tools one at a time, reads the results and decides what to do next. Nothing is handed off to a model on our side.

Every call that touches your team's data is authenticated and scoped to your team. Agents see your workflows, datasets and indices, plus public indices, and nothing else. Writes are deliberately narrow: an agent can save drafts and deploy an index — the latter only with an explicit confirmation — and there is no delete tool, so nothing can be destroyed from a chat window.

The server ships a set of instructions that MCP clients pass to their model, so a capable agent knows the correct order of operations before it starts. Requests are stateless and self-contained; preview runs are the one exception, cached for two hours so follow-up tools can inspect them.


Authentication

Two ways to authenticate. Any client that implements the MCP authorization spec — the Claude apps, Claude Code, ChatGPT, Cursor and VS Code among them — needs only the server URL. You'll be sent to a sign-in page the first time and log in with your normal Index One console account; the client then holds a token scoped to your primary team, and no key ever touches your config files.

Clients that cannot do OAuth, such as scripts and agents you run yourself, send a team API key in the x-api-key header. Create and revoke keys in the console under Team → API Keys.

Some tools answer before you sign in: the operation and example catalogs, workflow validation, and reads of public indices. Anything that needs your team's data answers 401, which is how the client knows to start sign-in.

Both methods resolve to the same team scope: workflow, dataset and index tools operate on your team's resources and public indices, and nothing else. MCP is included on every plan, the free one too; a call past a plan limit returns code billing_required with a link to the pricing page. Requests are rate limited to roughly 60 calls per minute per team, and half that per IP address before sign-in; over that the server returns 429 with a Retry-After header. An invalid credential returns 401.

Quick check with curl

curl -X POST https://mcp.indexone.io \
  -H "content-type: application/json" \
  -H "accept: application/json, text/event-stream" \
  -H "x-api-key: YOUR_API_KEY" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'

Claude — Connector

The simplest way to use Index One from Claude (web or Desktop): add it as a connector. Go to Settings → Connectors → Add custom connector, paste the server URL below, and leave the advanced OAuth fields empty.

Claude opens a sign-in window — log in with your Index One account (the same email and password as this console) and you're connected. No API key or config files needed.

Remote MCP server URL

https://mcp.indexone.io

Claude Code

Add the server with one command. In the next session, run /mcp and pick indexone to sign in from your browser.

To use an API key instead, add --header "x-api-key: YOUR_API_KEY" to the command.

Terminal

claude mcp add --transport http indexone https://mcp.indexone.io

Claude Desktop

The connector above is the simple path. To use an API key instead, Claude Desktop connects to remote servers through the mcp-remote bridge. Add this to claude_desktop_config.json (Settings → Developer → Edit Config), putting your API key in the env block.

mcp-remote substitutes ${...} values from env at startup, which keeps the key out of the args list. Write the header without spaces around the colon — Claude Desktop does not escape spaces inside arguments on Windows.

claude_desktop_config.json

{
  "mcpServers": {
    "indexone": {
      "command": "npx",
      "args": [
        "-y", "mcp-remote", "https://mcp.indexone.io",
        "--header", "x-api-key:${INDEXONE_API_KEY}"
      ],
      "env": { "INDEXONE_API_KEY": "YOUR_API_KEY" }
    }
  }
}

Claude Desktop (Windows)

On Windows, launch the bridge through cmd. Claude Desktop resolves npx to its full path under Program Files, and the space in that path breaks the launch ('C:\Program' is not recognized). Everything else is identical.

claude_desktop_config.json

{
  "mcpServers": {
    "indexone": {
      "command": "cmd",
      "args": [
        "/c", "npx", "-y", "mcp-remote", "https://mcp.indexone.io",
        "--header", "x-api-key:${INDEXONE_API_KEY}"
      ],
      "env": { "INDEXONE_API_KEY": "YOUR_API_KEY" }
    }
  }
}

Cursor

Add the server to ~/.cursor/mcp.json (or per-project .cursor/mcp.json). Cursor asks you to sign in when it connects. For an API key instead, add "headers": { "x-api-key": "YOUR_API_KEY" } beside url.

.cursor/mcp.json

{
  "mcpServers": {
    "indexone": {
      "url": "https://mcp.indexone.io"
    }
  }
}

VS Code

Add the server to .vscode/mcp.json in your workspace (or via MCP: Add Server in the command palette). VS Code asks you to sign in when it connects. For an API key instead, add "headers": { "x-api-key": "YOUR_API_KEY" } beside url.

.vscode/mcp.json

{
  "servers": {
    "indexone": {
      "type": "http",
      "url": "https://mcp.indexone.io"
    }
  }
}

Python SDK

Connect programmatically from your own agent with the official MCP Python SDK.

Python

from mcp import ClientSession
from mcp.client.streamable_http import streamablehttp_client

async with streamablehttp_client(
    "https://mcp.indexone.io",
    headers={"x-api-key": "YOUR_API_KEY"},
) as (read, write, _):
    async with ClientSession(read, write) as session:
        await session.initialize()
        tools = await session.list_tools()
        result = await session.call_tool(
            "get_index_values", {"index_id": "idx_...", "limit": 100}
        )

Building an Index

An index workflow is a DAG of operations: a trigger that sets the schedule, operations that select, filter and weight securities, and a create_index_holdings step that turns the result into holdings. Agents don't need to know that shape in advance — they discover it through the tools.

The order below is the path our own instructions tell agents to follow, and it matters. Operation names, dataset ids, column names and filter values are always looked up, never guessed, which is what keeps an agent from confidently building an index on a column that doesn't exist. Preview runs execute against real data but persist nothing, so an agent can iterate freely before anything is saved.

Nothing goes live by accident: run_backtest never creates an index, and deploy_index requires confirm=true, runs a full backtest first and refuses to register an index with no holdings.

The path from idea to live index

list_operations     what operations exist?
get_example         copy wiring from a real workflow
get_operations      exact parameter schemas
inspect_dataset     real columns, real values
run_workflow        preview against real data (nothing saved)
validate_workflow   manifest, wiring and structure check
save_workflow       persist as a draft
run_backtest        historical performance
deploy_index        register a live index (confirm=true)

Index Data

Read-only tools for consuming index data. They work on your team's indices and on public indices, which can be read before signing in. Times are ISO datetimes; long value series are evenly downsampled with the latest point always kept.

tooldescription
get_indexIndex metadata: name, stage/status, calendar, value series, operation summary.
get_index_valuesHistorical EOD value series with optional start_time/end_time bounds.
get_index_holdingsThe book held (shares, weights, divisor) at a time, weights priced then (default now); top-N by weight via limit.
get_index_weightingsRebalance target weights at-or-before a time.
get_index_universeUniverse snapshot (eligible securities) at-or-before a time.
get_index_statsCumulative and annualized return, annualized volatility, max drawdown.

Backtesting

Run a historical simulation of any workflow definition. run_backtest returns a backtest_id at once; get_backtest waits briefly server-side, so polling back-to-back is fine. A completed result carries a link to its chart in the data viewer. Backtests never create a live index.

tooldescription
run_backtestSimulate a workflow over history; returns a backtest_id to poll.
get_backtestFetch a stored backtest: performance summary, optional value series, a share link to the data viewer, and the deployed index id after deploy_index.

Workflow Building

The same tool surface our index builder uses: discover operations and examples, inspect real data, preview workflows (nothing is persisted), and validate before saving.

tooldescription
list_operations / get_operationsDiscover workflow operations and their exact parameter schemas.
list_examples / get_exampleProduction-tested example workflows to copy wiring from.
list_workflows / get_workflowYour team's and public workflows, with full definitions.
list_datasets / inspect_datasetYour team's datasets: schema, samples, distinct values, stats.
run_workflow / inspect_run / get_column_valuesPreview any sub-workflow against real data and introspect outputs.
validate_workflowManifest, wiring, and structural validation with actionable issues.

Saving & Deploying

Persist workflows as drafts, iterate, and deploy to a continuously calculated live index. deploy_index requires confirm=true, runs a full backtest first, and never creates an empty index.

tooldescription
save_workflowCreate a draft workflow, or update one your team owns (live workflows reload automatically).
deploy_indexBacktest, persist history, and register a live index. Poll get_backtest for deployed_index_id on long runs.

Protocol Notes

The server implements MCP streamable HTTP in stateless mode: every request is self-contained and only POST is accepted (GET/DELETE return 405). JSON responses are returned directly — no SSE stream is required.

Preview runs cache their outputs for two hours, so inspect_run and get_column_values work across consecutive tool calls. Long backtests return a backtest_id rather than holding the connection open; poll get_backtest for the result.

Index One is listed in the official MCP registry as io.indexone/mcp, so clients that browse the registry can find and add it without any configuration. The server manifest, a full tool reference and runnable client examples live at github.com/index1one/indexone-mcp.

Questions or higher rate limits: contact support@indexone.io.