Bybit Py MCP Server

A comprehensive Model Context Protocol (MCP) server that provides full access to Bybit's v5 API. This server enables AI assistants to fetch real-time

Local serverstdioPython

What is the Bybit Py MCP MCP server?

A comprehensive Model Context Protocol (MCP) server that provides full access to Bybit's v5 API. This server enables AI assistants to fetch real-time market data, execute trading operations, manage positions, and access account information. That is what the bybit py mcp mcp server brings to an AI assistant: the same capability, reachable through the Model Context Protocol rather than a separate app or dashboard.

The tools it exposes

The server publishes 14 tools. What each one is for:

  • Trading — Full order lifecycle management (place, amend, cancel, batch operations)
  • Positions — Complete position management (leverage, margin, stops, P&L tracking)
  • Account — Wallet balances, account info, and multi-account support
  • Read-only — For market data (always safe)
  • Trade — Required for order operations (enable only when needed)
  • Position — Required for position management
  • Withdraw — Not required for this server
  • category — Product type (linear, inverse, option, spot)
  • symbol — Trading symbol (e.g., BTCUSDT)
  • limit — Data size limit per page
  • Problem — 401 Unauthorized or insufficient permissions
  • Solution — Verify your Bybit API key has the required permissions:

What it needs from you

Configuration is passed through the environment: BYBIT_API_KEY, BYBIT_API_SECRET, BYBIT_TESTNET, BYBIT_TRADING_ENABLED, DOCKER_CONTAINER. Treat anything key-shaped as a real credential — scope it to the minimum the server needs, and rotate it if it ever lands in a shared config.

  • Python 3.13+ - uv package manager

Getting it running

The server ships on npm as @modelcontextprotocol/inspector, so your MCP client can launch it on demand — there is no separate build step. Add the server block to your client's configuration, restart it, and the tools register themselves.

How it compares

Among the planning and project tracking options, the useful question is rarely "what can it do" but "what does it cost you to run" — permissions, credentials, and how much of your context its toolset consumes. Bybit Py MCP's toolset — Trading, Positions, Account and 11 more — is a fair guide to whether it matches your workflow. It is maintained by BCusack; worth a glance at recent repository activity before you build anything load-bearing on it.

This entry was verified against Bybit Py MCP's own documentation before publication; SyncDev keeps the directory reviewed rather than auto-generated.

Things to watch

  • It runs with your machine's permissions. That is convenient and also the reason to think about what you point it at before you approve a tool call.
  • With 14 tools registered it takes up a noticeable share of the context window; turn it off in projects that never touch Bybit Py MCP.
  • Missing credentials fail quietly in some clients — if no tools show up, check the environment block first.
  • Keep per-call confirmation enabled while you learn its behaviour; it is the cheapest safeguard you have.

Available tools

ToolWhat it does
TradingFull order lifecycle management (place, amend, cancel, batch operations)
PositionsComplete position management (leverage, margin, stops, P&L tracking)
AccountWallet balances, account info, and multi-account support
Read-onlyFor market data (always safe)
TradeRequired for order operations (enable only when needed)
PositionRequired for position management
WithdrawNot required for this server
categoryProduct type (linear, inverse, option, spot)
symbolTrading symbol (e.g., BTCUSDT)
limitData size limit per page
Problem401 Unauthorized or insufficient permissions
SolutionVerify your Bybit API key has the required permissions:
PrerequisitesThe Prerequisites tool exposed by this server.
ToolsAll tools support the following common parameters where applicable:

How to install the Bybit Py MCP MCP server

{
  "mcpServers": {
    "bybit-mcp": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "--init",
        "-e", "BYBIT_API_KEY=your_api_key_here",
        "-e", "BYBIT_API_SECRET=your_api_secret_here",
        "-e", "BYBIT_TESTNET=false",
        "-e", "BYBIT_TRADING_ENABLED=false",
        "falconiun/bybit-mcp"
      ]
    }
  }
}

Configuration as documented by the project. Restart the client after saving.

Configuration

  • Python 3.13+ - uv package manager
VariableDescriptionRequired
BYBIT_API_KEYCredential the server authenticates with.Yes
BYBIT_API_SECRETCredential the server authenticates with.Yes
BYBIT_TESTNETConfiguration value read at startup.Optional
BYBIT_TRADING_ENABLEDConfiguration value read at startup.Optional
DOCKER_CONTAINERConfiguration value read at startup.Optional

Example prompts to try

  • Use Bybit Py MCP to Trading.
  • Use Bybit Py MCP to Positions.
  • Use Bybit Py MCP to Account.

Frequently asked questions

It connects Bybit Py MCP to MCP-compatible AI assistants such as Claude and Cursor, exposing 14 tools (Trading, Positions, Account, and more) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with Bybit Py MCP directly.