get_candlesticksLABSCO SUMMARY
Prices in, nothing out.
Ask for a quote or a stretch of bars on any instrument OKX lists and you get the exchange's own numbers back rather than a second-hand quote. There is no trading, no balance and no portfolio here — if you want an agent that can place an order on OKX, this is not the one.
What it is
A small server that puts OKX market data in front of an MCP client. Two tools, both read-only: the latest ticker for an instrument, and its candlestick history at the interval you ask for.
What you get
- The latest trade price for an instrument, with the current best bid and ask
- The day's high, low and traded volume alongside that price
- Candlestick history — open, high, low, close and volume per bar — from minutes up to daily bars
- Timestamps on every row, so a series can be lined up against something else
Requirements
Node, and a build from source: you clone the repo, build it, then point your client at the built server. No account and no key appear in its setup — both tools read OKX's public market data.
Setup effort
Build from source
USE CASES
Checking where something is trading right now
One call returns the last trade, the best bid and ask, and the day's range, so the answer is current rather than whatever the model remembers.
Reading the shape of the last session
Pull bars at the interval that matches the question — minute bars for the last hour, daily bars for the last quarter — and let the model describe the move from the actual opens and closes.
Comparing two instruments before a decision
Quote each one in turn and put the two side by side, including how far each has travelled within the day.
Feeding a chart or a note with real bars
Bars come back as plain rows with timestamps and volume, ready to be summarised, charted or pasted into a working document.
2 tools
Listed in project docs. Your client may show a different list.
get_priceBEFORE YOU INSTALL
What to know first
Tools you get
2 tools named in the project's documentation.
Where it runs
The documented client runs the server on your machine.
INSTALLATION
Connect your client
You clone and build this one yourself.
Server setup
git clone https://github.com/esshka/okx-mcp
cd okx-mcp
npm install
npm run buildAdd the mcpServers config block below to your MCP settings file, pointing args at the build output
MCP Clients
Any MCP client
{
"mcpServers": {
"okx": {
"command": "node",
"args": [
"<YOUR_PATH_TO_OKX_MCP_SERVER>/build/index.js"
],
"disabled": false,
"autoApprove": []
}
}
}