deriv-market-mcp
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@deriv-market-mcp Is EUR/USD open now, and what did it do over the last 24 hours?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
deriv-market-mcp
An MCP server that gives AI agents live market data from Deriv's public feed: prices, OHLC candles, market lists and trading hours for currencies, stock indices, commodities, crypto and Deriv's synthetic indices.
It is read only. It cannot place trades, and it needs no account or API key.
Tools
Tool | What it returns |
| Every symbol the feed offers, with whether it is open now. Filter by group ( |
| The latest quote for one symbol and the time it was quoted (UTC). |
| Latest quotes for up to 10 symbols in one call. A bad symbol is reported in |
| OHLC candles from M1 to D1, oldest first, up to 500. Says whether the last candle is still forming. |
| Today's open and close times, trading days, and upcoming holidays or early closes. |
Symbols can be given as Deriv codes (frxEURUSD, R_75, cryBTCUSD) or by name (EUR/USD, eurusd, Volatility 75 Index). Every tool has an input schema, an output schema and read-only annotations, so clients get typed, structured results.
Related MCP server: PredMCP
Use it
Requires Node 22 or later.
git clone https://github.com/thegreatola/deriv-market-mcp
cd deriv-market-mcp
npm install
npm run buildClaude Code
claude mcp add deriv-market -- node /absolute/path/to/deriv-market-mcp/dist/index.jsClaude Desktop (claude_desktop_config.json)
{
"mcpServers": {
"deriv-market": {
"command": "node",
"args": ["/absolute/path/to/deriv-market-mcp/dist/index.js"]
}
}
}Then ask things like "Is EUR/USD open right now, and what did it do over the last 24 hours?" or "Compare the last five daily candles of gold and BTC/USD".
Settings
Environment variable | Default | Meaning |
|
| Minimum gap between two requests to Deriv. |
| Deriv's public options feed | WebSocket endpoint. |
How it works
MCP client (Claude, any agent)
| stdio, JSON-RPC
tools.ts schemas, annotations, errors as isError
|
markets.ts symbol names, caching, candle clean-up
|
deriv.ts one paced WebSocket, replies matched by req_id
|
wss://api.derivws.com (public, no key)Design decisions
One paced socket, no retry ladder. Deriv rate-limits its public feed by client IP address, not by connection. When an address is throttled, a brand-new connection is refused on its first request, and every resend counts against the same limit. A client that retries with backoff keeps the address throttled for as long as it runs. So this server sends requests one at a time with a minimum gap, never retries on its own, and tells the agent plainly that it was rate limited and should wait.
An empty reply is treated as a possible rate limit. Under load the feed often answers with an empty series rather than an error. The error message says so, so an agent doesn't decide a market has vanished.
Prices come from a one-shot history read. The feed's ticks call subscribes to a stream. A second read of the same symbol on that socket then fails with "already subscribed", and the socket carries a stream nobody reads. get_price asks for the last tick from ticks_history instead, which returns the same quote at the same time.
The oldest candle is dropped when it is partial. Deriv cuts the requested window mid-period, so the first bar can be a fragment (a "daily" bar that starts at 00:56). Buckets are aligned to UTC, so the server asks for one extra bar and drops the first one if its timestamp is off the period boundary.
Caching protects the budget. The symbol list is cached for 10 minutes, trading hours for an hour, and a price for one second. Resolving "EUR/USD" to frxEURUSD doesn't cost a request after the first call.
Unlisted codes still work. The feed serves history for some symbols its own list leaves out, so an unknown code is passed through to Deriv instead of being refused locally.
Tests
npm test # 19 offline tests against a fake socket, no network
npm run test:live # one test against the real feed
npm run smoke # builds, starts the server over stdio and calls every toolThe offline tests check pacing, one shared socket, reply matching, that a rate-limit refusal is sent exactly once, timeouts, symbol names, that the subscribing ticks call is never sent, partial-candle dropping, and that tool errors come back as isError instead of crashing the server. CI runs them on Node 22 and 24.
Limits
Data is Deriv's own quote feed. It is not an exchange feed and can differ from other brokers.
History depth is set by Deriv: about a year of daily bars and roughly 700 bars of H1 or H4.
Weekly and monthly candles are not served; build them from daily bars.
Not financial advice. Nothing here places or suggests trades.
License
MIT
Available Tools
5 toolsget_candlesGet candlesARead-onlyIdempotent
OHLC candles for one symbol, oldest first. Buckets are aligned to UTC (daily bars start at 00:00 UTC). The last candle may still be forming; lastCandleForming says so. Deriv keeps about a year of daily bars and about 700 bars of intraday history.
Inputs: symbol (required), count, timeframe. Returns: name, symbol, candles, timeframe, +1 more
get_priceGet latest priceBRead-onlyIdempotent
The latest quoted price for one symbol, with the time it was quoted (UTC).
Inputs: symbol (required). Returns: name, time, epoch, price, +2 more
get_pricesGet several pricesARead-onlyIdempotent
Latest prices for up to 10 symbols in one call. Requests are paced to respect the feed's rate limit, so 10 symbols take about 5 seconds. A symbol that fails is reported in errors and does not fail the others.
Inputs: symbols (required). Returns: errors, prices
get_trading_hoursGet trading hoursARead-onlyIdempotent
Today's opening and closing times (UTC), trading days and upcoming holidays or early closes for one symbol.
Inputs: symbol (required). Returns: name, opens, closes, events, +2 more
list_marketsList marketsARead-onlyIdempotent
List the symbols Deriv's public feed offers, with whether each market is open now. Filter by market group (for example forex, indices, commodities, cryptocurrency, synthetic_index) or by a search word.
Inputs: market, search, open_only. Returns: count, symbols, marketGroups
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 5 tools
Each tool targets a distinct operation: listing markets, single quote, batched quotes, candles, and trading hours. The only near-collision is get_price vs get_prices, but the descriptions explicitly differentiate single-symbol vs up-to-10 batch with rate-limit pacing, so an agent can choose correctly.
All five tools follow a consistent snake_case verb_noun pattern (list_markets, get_price, get_prices, get_candles, get_trading_hours). The singular/plural distinction on get_price(s) is a natural, readable variation rather than a convention break.
Five tools is well-scoped for a read-only market data server; each covers a distinct data type (symbols, spot quotes, batch quotes, OHLC history, session hours) with no filler. The batch variant is justified by rate-limit handling rather than redundancy.
The core read surface for a public feed is covered: discovery, current prices (single and batch), historical candles, and trading hours. Minor gaps remain, such as symbol metadata/contract specs (pip size, min stake, market type) and any notion of quote subscriptions, which agents would have to work around.
Maintenance
Related MCP Connectors
Read-only access to your MetaTrader 4 and 5 accounts for AI agents: balances, open positions, trade history with win rate, live quotes, symbol specs and candles. It cannot place, modify or close orders.
Live crypto + IDX stock market intelligence for AI agents — 19 tools, no API key.
Real-time data API for AI Agents: stocks, weather, forex, logistics, search, scrape, news, IP.
Crypto market data for AI agents: live prices, OHLCV, sentiment, indicators and exchanges.
Related MCP Servers
- AlicenseAqualityBmaintenanceHyperliquid liquidations, wallets and live order-flow signals for trading bots and agents. Liquidation map, funding, open interest and SQL from Ironflow's own nodes. 46 tools, no key to start.4461,189 npm1MIT

PredMCPofficial
AlicenseNot gradedqualityDmaintenanceSafe, read-only market data for AI trading agents, offering 44 tools to query prediction markets, perpetuals, and cross-venue signals without the ability to execute trades.1MIT- AlicenseNot gradedqualityDmaintenanceEnables AI agents to access normalized, read-only market data from Binance, KuCoin, and Coinbase without accounts or API keys, with caching and single-flight request collapsing to reduce burst load and provide cleaner, unified data.1MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to read live Hyperliquid market data — perp and spot metadata, mid prices, order books, OHLCV candles, funding rates and history, and current open interest — keylessly from the exchange's public info API, with no wallet or trading access.91 npmMIT