Introduction
Use the CoinAPI Indexes MCP server to discover indexes, read current and historical values, query OHLC timeseries, and manage multi-asset weights.
Indexes API MCP
The CoinAPI Indexes API is available through a hosted Model Context Protocol (MCP) server. It exposes the Indexes API as self-describing tools that can be used from Cursor, Claude Desktop, or custom agent runtimes.
Why use MCP?
MCP layers self-describing JSON-Schema tools over the underlying HTTP API, so agent runtimes can discover available operations, validate arguments, and call the service without a custom integration layer.
With the Indexes MCP server you can:
- Reuse the same
X-CoinAPI-Keyauthentication you already use with CoinAPI. - Discover index identifiers, time periods, and exchange metadata from the tool schemas and live responses.
- Query current values, historical snapshots, and OHLC timeseries without wiring raw REST endpoints by hand.
- Access multi-asset weight tools from the same MCP endpoint.
Server endpoint
https://mcp.indexes.coinapi.io/mcpUse your regular CoinAPI API key in the X-CoinAPI-Key header.
Only the
/mcpendpoint is supported for this service.
What is available through MCP?
The Indexes server currently exposes 12 tools grouped into four areas:
| Area | What you can do |
|---|---|
| Metadata discovery | List index identifiers, supported time periods, and exchange metadata. |
| Current and snapshot values | Get one current index value or a full snapshot for all members of an index definition. |
| Historical analytics | Query point-in-time snapshots, historical series with composition data, and OHLC timeseries. |
| Multi-asset index management | Inspect stored weights and use administrative tools to update or delete them. |
Typical workflows
Discover active indexes
- Call
indexes_listto see the identifiers available in the system. - Use an index definition such as
IDX_REFRATE_FXwithindexes_get_current_snapshotto discover members that currently return values. - Call
indexes_get_currentfor a single tracked index once you know the exact activeindex_id.
Build historical analytics
- Call
periods_listto inspect supported candle granularities. - Use
indexes_get_historyfor point-by-point historical values withcomposition. - Use
indexes_get_timeseriesfor OHLC charting withvalue_open,value_high,value_low, andvalue_close.
Work with multi-asset indexes
- Call
multiasset_list_weightsto inspect currently stored weights across indexes. - Use
multiasset_get_weightsfor one specific multi-asset index. - Use
multiasset_update_weightsormultiasset_delete_weightsonly in controlled administrative workflows.
Live-tested notes
indexes_listreturns a very large flat list of objects containingid.indexes_get_currentreturns a compact object withtimestampandvalue.indexes_get_current_snapshotreturns an array of{ index_id, timestamp, value }rows for a definition such asIDX_REFRATE_FX.indexes_get_historyreturnscompositionarrays in addition totimestampandvalue.indexes_get_timeseriesreturns OHLC-style fields prefixed withvalue_.multiasset_list_weightsandmultiasset_get_weightsreturn rows shaped like{ indexId, assetId, weight }.- In practice,
indexes_get_current_snapshotis a good way to discover members that currently have data before issuing single-index calls.
Start here
Getting Started
Configure an MCP client, authenticate requests, and run your first Indexes MCP queries.
Tool Reference
Full reference for all Indexes MCP tools, arguments, grouped workflows, and response patterns.
Use Cases
Practical MCP workflows for snapshots, historical analysis, OHLC charting, and multi-asset index operations.
Messages
WebSocket endpoint provides real-time index value streaming which works in Subscribe-Publish communication model. After establishing a WebSocket connection with us, you will need to send a Hello message documented below.
Getting Started
Connect your MCP client to the CoinAPI Indexes MCP server and start querying index identifiers, snapshots, historical values, OHLC timeseries, and multi-asset weights.