Bybit MCP Server

The official Bybit exchange MCP server: market data, accounts, orders, bots and WebSocket streams from Claude, Cursor and VS Code

  • 43 ★ on the repository
  • Last commit
  • MIT
MCP serverOfficial

Broad access

Why this level

  • The agent places real orders, changes leverage and margin, starts bots and takes loans on your account
  • A key with the withdrawal permission exposes funds: grant minimum rights and restrict by IP
  • Private streams and operation history enter the model context
All reasons and checks

bybit-exchange/trading-mcp

Install

In your terminal, with SkillFoxx CLI

npx skillfoxx add mcp/bybit-mcp-server

Detects the agents on your machine, shows the access level and pins the version.

Other ways to install

Access and checks

How we review

Broad accessThe tool can change data, run commands or handle secrets.

  • The agent places real orders, changes leverage and margin, starts bots and takes loans on your account
  • A key with the withdrawal permission exposes funds: grant minimum rights and restrict by IP
  • Private streams and operation history enter the model context

This is third-party code. Review the repository files before installing.

What it does

The MCP server connects an agent to the Bybit V5 API through 398 tools. The market block of 23 tools (candles, order book, tickers, funding rates, open interest) works without a key. With a key the agent reaches wallet balance, transaction history, fees, positions, leverage and margin, loans and earn products, referral queries, tax reports and copy trading. The agent can place orders and run strategies: TWAP, Chase Limit, Iceberg (up to 200 child orders) and POV for spot and derivatives. POV needs an interval of 5 to 3600 seconds and a quantity or value limit. Bots are included too (grid, martingale, DCA), along with 27 WebSocket tools for the order book, tickers, executions and positions. Every write operation requires a separate approval through the client's form. Requests can be signed with an HMAC-SHA256 key or your own RSA-SHA256 pair, and `BYBIT_TESTNET=true` switches the server to the testnet.

Who it is for. Traders and trading-bot developers on Bybit who want to manage an account and watch the market in plain language.

Good fit when

  • You want a market snapshot for BTCUSDT or options: price, order book, funding rate, open interest
  • You want to ask the agent about balance, positions and fees on your own account without opening the app
  • A large order should be split with an Iceberg or TWAP strategy and the parameters dictated in words
  • A trading scheme is first tried on the Bybit testnet with test funds
  • A tax report for your operations is requested and downloaded straight from the chat

Not a fit when

  • A key with the withdrawal permission: such a key does not belong with an agent, grant the minimum rights
  • You only need charts and quotes with no trading: the market tools work without a key, so do not create one
  • The MCP client does not show a write-approval form: the server relies on the client's answer, so use a trusted client
  • You trade on another exchange: the server talks to the Bybit API only

Example request

What is the BTCUSDT price right now and what was the funding rate over the last day?

MCP

Transport
stdio
Authentication
key is optional

Environment variables

BYBIT_API_KEY secret
Bybit API key, needed for private tools.
BYBIT_API_SECRET secret
Secret for HMAC-SHA256 signing.
BYBIT_API_PRIVATE_KEY_PATH secret
Absolute path to the RSA private key PEM file.
BYBIT_TESTNET
Set to `true` to use the testnet.

Limitations

Private tools need a Bybit API key: either `BYBIT_API_KEY` with `BYBIT_API_SECRET`, or `BYBIT_API_KEY` with `BYBIT_API_PRIVATE_KEY_PATH`. If both secrets are set, the server picks RSA and writes a warning to its log.

Node.js 20.6 or newer is required.

The OneTime strategy mode is unavailable through MCP because the API ignores limits in it. POV always needs a quantity or value limit, and a duration cannot replace it.

Use of the server is subject to Bybit's terms.

How to disable. Remove the server with `claude mcp remove bybit` or delete the `bybit` block from `mcpServers` in the client config, then revoke the API key under API Management on Bybit.

FAQ

Do I need an API key just to look at prices?

No, the 23 market tools work without a key. A key is needed for the account, positions, orders and private streams.

How can I try it without real money?

Create a key on testnet.bybit.com and set `BYBIT_TESTNET=true` in the server variables. All calls go to the testnet.

How do I add the server to Claude Code?

Run `claude mcp add bybit -- npx -y bybit-official-trading-server@latest` and restart Claude Code. `~/.claude/settings.json` is the wrong file for this: Claude Code reads MCP servers from `~/.claude.json`.

Can the agent trade with no confirmations?

Every write operation goes through a separate approval form in the client. Always allow in Claude Desktop does not replace it, but the server relies on the client's answer, so pick a trusted client.

Should I pick an HMAC or an RSA key?

The type follows the key you created on Bybit. A system-generated key is signed with `BYBIT_API_SECRET`, a self-generated RSA pair with `BYBIT_API_PRIVATE_KEY_PATH`. Setting both is unnecessary.

Discussion

No questions or reviews yet.

Official

The official CCXT MCP server and skills: market data, balances and opt-in trading across crypto exchanges and prediction markets

MCP serverBroad access44.8KRepository stars

An MCP server for MetaTrader 5: the agent reads the account and quotes, opens, changes and closes trades; a skill, REST and quote stream included

MCP serverBroad access842Repository stars

T-Invest MCP for MOEX futures

t-invest-tinkoff-mcp

Russian stack

An MCP server for MOEX futures through the T-Invest API: market data, portfolio and order placement, with trading enabled by default

MCP serverBroad access12Repository stars
Official

Kraken’s official MCP server gives agents quotes, balances and account history, plus paper trading without real money.

MCP serverBroad access802Repository stars

An MCP server for market data and technical analysis: quotes, indicators, screeners and backtesting for stocks, crypto, forex and futures

MCP serverExtended access5.2KRepository stars
Russian stack

A read-only MOEX ISS and T-Bank Invest market data MCP server: quotes, candles, a screener, and optional portfolio access

MCP serverBroad access

Comparison with similar tools

Cards that share the main search query, and how they differ.

ToolOfficialAuthenticationRepository starsMain difference
Bybit MCP Server (this card)yeskey is optional43
OKX Agent Trade KityesAPI key501a similar kit for the OKX exchange
CCXT MCP Serveryeskey is optional44,758one interface to many exchanges instead of a single exchange API

README in short

The docs lead from creating a key on Bybit through configuring Claude Desktop, Cursor and VS Code to checking the connection with a BTCUSDT price question. Tools are grouped by category and marked by whether they need authorization. The warning section recommends an IP allowlist, minimum permissions and the testnet.

README badge

Report a problem

Foxx AIBybit MCP Server
Foxx AI

I am Foxx AI and I have already vetted this tool. Ask about install, setup or anything else, and I will keep it simple.