Add OHLC as a custom connector in Claude
- In Claude, open Customize → Connectors, choose + Add, then Add custom connector.
- Name it OHLC and enter the server URL
https://api.ohlc.io/mcp. You do not need an OAuth client ID or secret; if Claude asks how to register the client, choose Register automatically, since OHLC supports dynamic client registration. - Click Add, then Connect. Sign in to OHLC and approve access to your workspace.
- In a conversation, open the + menu, choose Connectors and make sure OHLC is enabled.
- Try: “Explain the OHLC quotes endpoint and its parameters.” Then: “Get the latest available quote for XNAS:AAPL.”
On Team and Enterprise plans an owner adds the connector under Organization settings → Connectors; members then find it under Customize → Connectors and click Connect. Claude Desktop uses the same connectors. You can review and disconnect connected applications on the MCP page of your OHLC account.
Claude Code and API-key connections
Claude Code connects over HTTP. Add the server, then run /mcp inside Claude Code to sign in with OAuth.
claude mcp add --transport http ohlc https://api.ohlc.io/mcpFor a headless setup, create an API key and send it as a bearer header instead. In a shared .mcp.json, reference an environment variable so the key never lands in source control.
{
"mcpServers": {
"ohlc": {
"type": "http",
"url": "https://api.ohlc.io/mcp",
"headers": {
"Authorization": "Bearer ${OHLC_API_KEY}"
}
}
}
}Prices delayed 15 minutes · Illustrative sample data
Tools Claude can call
| Tool | Answers |
|---|---|
get_eod_prices | Daily OHLCV history and how a stock has traded |
get_intraday_bars | 5-minute and hourly bars for the last 30 days or so (Pro and above) |
get_quotes, get_snapshot | Latest delayed price, and the change from the previous close |
get_movers, screen_instruments | Biggest gainers and losers; screens by valuation, price, sector or exchange |
get_companies, search_symbols | Company name or ticker prefix to an exchange-qualified symbol |
get_financials_statements, get_financials_metrics | Statements, ratios, market capitalization and dividend metrics |
get_dividends, get_splits, get_earnings | Corporate actions and earnings history |
get_datasets_coverage | How far back a dataset goes for a symbol |
get_api_documentation | Endpoints, parameters, errors, limits and streaming, without spending credits |
Example prompts
- “Chart NVDA's split-adjusted daily closes for 2024 and mark the split.”
- “Compare the dividend history of JNJ and PEP over the last five years.”
- “Which large-cap stocks were the biggest decliners in the last session?”
- “How far back do daily prices for XNYS:KO go?”
- “Write a Python script that pages through /v1/eod for ten symbols and handles 429 errors.”
Plans, credits and troubleshooting
MCP is included on Developer, Pro, Commercial and Scale; a Free account receives 403 mcp-not-entitled. Your plan still decides which datasets and how much history Claude can read, so intraday bars need Pro. Each tool call costs what its REST endpoint costs, while setup, tool discovery and get_api_documentation are free. Prices are delayed at least 15 minutes, and Claude is told never to present them as live.
- 401: reconnect the application, or check the API key in your header.
- 403: check your plan and workspace access; API-key connections also enforce key scopes and IP allowlists.
- 429: wait for the Retry-After interval. REST and MCP share account limits.
- Opening
https://api.ohlc.io/mcpin a browser is not a connection test. Use an MCP client to initialize the server and list its tools.