OKX MCP: Can Your AI Assistant See Your OKX Data?

Scott Blandford

·

Published

·

Updated

Sign up free

Want to hook AI up to your finances?

Get started—it’s free

OKX MCP: Can Your AI Assistant See Your OKX Data?

Scott Blandford

·

Published

·

Updated

Want to hook AI up to your finances?

Get started—it’s free

OKX MCP: Can Your AI Assistant See Your OKX Data?

Scott Blandford

·

Published

·

Updated

Want to hook AI up to your finances?

Get started—it’s free

Find out where you stand.

Connect your accounts and unlock ways to save in minutes.

Yes. OKX publishes its own official, open-source MCP server, called agent-trade-kit and shipped as the okx-trade-mcp npm package. According to the project's GitHub README, an MCP-capable AI assistant can use it to connect directly to OKX for account data, market data, and spot, swap, futures, and options trading. A read-only mode is there if you don't want the agent placing trades. That covers your OKX activity. If you want the same assistant to also see your bank, brokerage, and other crypto accounts alongside OKX, Truthifi is the read-only layer that adds the rest of your financial life to the picture.

What OKX does

OKX is a global crypto exchange that pairs a centralized order book with a self-custody Web3 wallet and DEX tooling, and it ships its own MCP server rather than leaving that to third parties. For AI users, that means one provider spans trading, custody, and on-chain activity, which shapes what an agent can reach.

It serves both retail and institutional traders, and the split shows in its tooling: an app for people buying and holding, and a versioned V5 API for traders and desks that automate. It offers spot trading, derivatives such as swaps, futures, and options, and a Web3 wallet for interacting with decentralized applications, alongside the exchange's core order book and custody functions. Traders use OKX to buy, sell, and hold crypto assets, and increasingly to automate parts of that activity through API access and, now, through AI agents.

Does OKX have an MCP server or API?

Yes, both. OKX's agent-trade-kit is an official MCP server that lets an AI agent read your account and, if permitted, trade. Its V5 REST and WebSocket API is the lower-level interface for developers. Your API key's permissions, not the assistant, decide whether the agent can only look or can also act.

MCP server. OKX's agent-trade-kit (okx/agent-trade-kit on GitHub, distributed as the okx-trade-mcp npm package) is presented in its repository as an official, open-source Model Context Protocol server exposing roughly 170 tools. According to that README, it gives an MCP-capable AI agent account access, market data, and the ability to place spot, swap, futures, and options trades on OKX. Check the current README before relying on a specific trade type, since supported features can change between releases. A --read-only mode is available for anyone who wants their assistant to see balances and market activity without being able to execute trades, and the server ships live and demo profiles so you can test against OKX's demo environment before pointing it at real funds. Because it's an official OKX project, OKX sets the server's scope and behavior, and what the agent can actually do is capped by the API key permissions you set.

REST and WebSocket API. Separately, according to OKX's V5 API documentation, OKX runs a public API over REST and WebSocket, covering market data, trading, and account information. Each key comes with a secret and a passphrase you choose, and requests are authenticated with HMAC signing. This is the lower-level interface the MCP server itself is typically built on top of, and it's also what a developer would use to build a custom integration instead of using the MCP server. OKX additionally exposes DEX and Web3 APIs for interacting with decentralized exchange and wallet functionality outside the centralized order book.

In short: if your AI assistant supports MCP, you can point it at OKX's own server today and get real account and trading access, with the option to lock it to read-only.

The permission that matters lives at OKX, not in your assistant. An assistant's behavior can shift with a new prompt or a new tool. An OKX key created without trade permission is rejected by OKX if the agent tries to place an order. That's why we treat key scope as the real control, and the server's read-only toggle as a second layer on top of it.

How to connect OKX to an AI assistant today

Setup takes six steps: create an OKX API key, install the server, set credentials and scope, connect your assistant, test read-only, then optionally add Truthifi. If you've never run an npm package, the install step is the only technical one. Everything else happens in OKX's settings or your assistant's app.

  1. Create an API key. Create or sign in to your OKX account and generate an API key with the permissions (read-only vs. trading) you want to grant.

  2. Install the OKX MCP server. Install the okx-trade-mcp npm package, or pull the okx/agent-trade-kit project from GitHub.

  3. Configure credentials and scope. Configure the server with your API credentials, choosing read-only mode if you don't want trading enabled.

  4. Connect your AI assistant. Connect your MCP-capable AI assistant to the running OKX MCP server per its setup documentation.

  5. Test read-only first. Ask the assistant a read-only question, such as summarizing your OKX balances, before enabling trading permissions.

  6. Add Truthifi for the rest of your accounts. Connect your bank, brokerage, and other accounts to Truthifi and authorize Truthifi's MCP access so your assistant sees OKX alongside everything else.

If you're not a developer: a read-only key is the sensible starting point. You lose nothing by waiting to enable trading until you've seen how the assistant answers questions about your balances.

If you are: consider giving the agent's key its own OKX subaccount, so a misfiring prompt can only touch the balance you've moved there. Binding the key to your machine's IP address in OKX's key settings, where offered, narrows exposure further.

What You Can Ask

With OKX's server connected, your assistant can answer questions about your OKX balances, positions, and market prices. Add Truthifi and the same assistant can put those numbers next to your bank and brokerage holdings, so questions about net worth, crypto concentration, or derivatives exposure draw on more than one institution.

With OKX's own MCP server connected, you could ask your assistant things like:

  • "What's my current OKX balance across spot and derivatives?"

  • "Summarize my open positions on OKX right now."

  • "What's the current market price for a given trading pair on OKX?"

With Truthifi also connected, you could extend that to:

  • "What's my total net worth across OKX, my brokerage account, and my bank accounts?"

  • "How concentrated is my overall portfolio in crypto versus everything else I hold?"

  • "Is my OKX derivatives exposure large relative to the cash I keep at my bank?"

With & Without Truthifi

Without Truthifi, your assistant sees OKX in detail and nothing else. With Truthifi, it keeps OKX's trading-capable connection and gains a read-only view of your linked bank, brokerage, and other crypto accounts. The difference is context: the agent's reach at OKX stays the same, but its picture of your finances widens.

Without Truthifi: OKX's own MCP server gives your AI assistant a direct, capable window into your OKX account, including trading if you allow it. What it can't do is see anything outside OKX. Your bank balance, your brokerage holdings, and any other exchange you use stay invisible to that assistant unless each one also has its own connector set up separately.

With Truthifi: You keep OKX's MCP server for OKX-specific tasks, including trading if you choose, and you add Truthifi's read-only connection for your bank, brokerage, and other crypto accounts. Your AI assistant can then see your OKX holdings next to everything else you've connected to Truthifi, so questions about your whole financial picture, not just your OKX activity, have real data behind them.

How Truthifi Can Help

Truthifi is the read-only layer that sits next to OKX's server. It links bank, brokerage, and other accounts, lets your assistant see them, and runs automated diagnostics on what you connect. It doesn't trade on OKX, and you can cut an assistant's access whenever you choose through Connections → Agents → ⋯ → Revoke.

Per Truthifi platform data (2026), Truthifi connects to 18,000+ financial institutions through Plaid, Yodlee, and By All Accounts, monitors $6B+ in assets, and reports a 99.7% accuracy figure. It gives an AI assistant read-only access to the bank and brokerage accounts you link, plus the ability to add or remove manually tracked assets and run an on-demand refresh. It does not replace OKX's own MCP server or extend into trading on OKX. It fills the gap next to it: the rest of your financial accounts that OKX's connector was never built to see. Read-only stays scoped to your connected bank and brokerage accounts. According to Truthifi's current pricing, an on-demand refresh costs 3 credits, while automatic daily refreshes are free. Paid Monitoring plans unlock fee breakdowns, benchmarks, and concentration and exposure analysis across everything connected. Truthifi is not an investment adviser and doesn't give investment, tax or legal advice.

Try it next to OKX: connect your first account free on Truthifi and ask your assistant one question that spans OKX and your bank. If it isn't useful, revoke access under Connections → Agents → ⋯ → Revoke.

FAQ

Short answers to the questions we hear most about OKX and AI assistants: whether the MCP server is official, whether it can trade, what it can't see, which free API sits underneath it, and where Truthifi fits. Each answer reflects the setup described above as of this review (2026).

Does OKX have an official MCP server? Yes. OKX publishes agent-trade-kit, an open-source MCP server (roughly 170 tools) distributed as the okx-trade-mcp npm package, giving AI agents account, market-data, and trading access, with a --read-only mode and live/demo profiles available.

Can an AI assistant trade on OKX through this server? Yes, if you configure it with trading-enabled API permissions. A read-only mode is also available if you only want your assistant to see account and market data without the ability to place trades.

Does OKX's MCP server also show my bank or brokerage accounts? No. OKX's MCP server is scoped to your OKX account and market data. Seeing your bank or brokerage accounts alongside it requires a separate connection, which is what Truthifi provides.

Is there a free way to access OKX data programmatically besides the MCP server? Yes. OKX runs a public REST and WebSocket V5 API covering market data, trading, and account information, authenticated with an API key and HMAC signing, along with separate DEX and Web3 APIs.

Can Truthifi connect directly to my OKX account? This article describes OKX's own MCP server as the direct path to your OKX account data. Whether OKX is separately available as a Truthifi-aggregated crypto exchange connection is not addressed here; check Truthifi's current supported-institutions list for that.

Read Next

These guides pick up where this page stops: whether OKX itself holds up to due diligence, how MCP connects assistants to real accounts, how read-only access protects credentials, and how OKX's server compares with other exchanges' connectors. Start with the full hub of provider MCP guides.

Start Free on Truthifi

See your OKX activity next to the rest of your financial life. Connect free on Truthifi and run 130+ checks on the accounts you link, with read-only access you can revoke under Connections → Agents → ⋯ → Revoke. One habit worth keeping: decide what an agent can do at the source institution before you decide what it can see.

Disclaimer: This article is for educational purposes only and does not constitute financial, tax, or legal advice. It should not be construed as a personalized recommendation regarding any investment, financial advisor, or financial product. All calculations use hypothetical scenarios and historical return assumptions; actual results will vary. Past performance does not guarantee future results. Consult a qualified financial professional for guidance specific to your situation. Truthifi is an investment monitoring platform — not a financial advisor, broker-dealer, or tax professional. Truthifi does not manage assets, recommend investments, sell financial products, or provide personalized financial advice. Truthifi earns no revenue from advisor referrals, product commissions, or AUM fees. Statistics and data cited reflect publicly available sources current as of the article’s publication date. Sources are linked throughout.