Skip to main content

A Model Context Protocol server for Bybit V5 API

Project description

bybit-mcp-server

A Model Context Protocol server for the Bybit V5 API.

Connect AI assistants (Claude, Cursor, etc.) to Bybit for market data, trading, and account management.

Quick Start

uvx bybit-mcp-server

MCP Client Configuration

Claude Desktop

Add to claude_desktop_config.json:

{
  "mcpServers": {
    "bybit": {
      "command": "uvx",
      "args": ["bybit-mcp-server"],
      "env": {
        "BYBIT_API_KEY": "your-api-key",
        "BYBIT_API_SECRET": "your-api-secret",
        "BYBIT_TESTNET": "true"
      }
    }
  }
}

Cursor

Add to .cursor/mcp.json:

{
  "mcpServers": {
    "bybit": {
      "command": "uvx",
      "args": ["bybit-mcp-server"],
      "env": {
        "BYBIT_API_KEY": "your-api-key",
        "BYBIT_API_SECRET": "your-api-secret",
        "BYBIT_TESTNET": "true"
      }
    }
  }
}

Available Tools

Category Tools Permission
Market get_tickers, get_kline, get_orderbook, get_instruments_info, get_server_time, get_funding_rate_history, get_public_trades, get_open_interest read
Account get_wallet_balance, get_fee_rate, get_account_info read
Trade place_order, amend_order, cancel_order, cancel_all_orders, get_open_orders, get_order_history trade
Position get_positions, set_leverage, set_trading_stop, get_closed_pnl read / trade
Asset get_coin_balance, get_coin_info, internal_transfer read / full

Environment Variables

Variable Default Description
BYBIT_API_KEY API key from Bybit
BYBIT_API_SECRET API secret from Bybit
BYBIT_TESTNET true Use testnet (true) or mainnet (false)
BYBIT_MODE read Permission mode: read, trade, or full

Development

git clone https://github.com/workspace/bybit-mcp-server.git
cd bybit-mcp-server
uv sync --all-groups
uv run bybit-mcp-server

Documentation

Full docs at workspace.github.io/bybit-mcp-server

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

bybit_mcp_server-0.2.0.tar.gz (212.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

bybit_mcp_server-0.2.0-py3-none-any.whl (13.9 kB view details)

Uploaded Python 3

File details

Details for the file bybit_mcp_server-0.2.0.tar.gz.

File metadata

  • Download URL: bybit_mcp_server-0.2.0.tar.gz
  • Upload date:
  • Size: 212.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.10.6 {"installer":{"name":"uv","version":"0.10.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for bybit_mcp_server-0.2.0.tar.gz
Algorithm Hash digest
SHA256 e6efa77c6fabc0e0b40396bdb1957c425b3ddb64da981e9c4e712d81a28d014b
MD5 568e471581ced711eaf599d1d6f167ee
BLAKE2b-256 acf225993c5070fc0313d078636f57f05a901d2dae0dfb6708cb6b23f8d18a8a

See more details on using hashes here.

File details

Details for the file bybit_mcp_server-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: bybit_mcp_server-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 13.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.10.6 {"installer":{"name":"uv","version":"0.10.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for bybit_mcp_server-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 514a619591bfac0b99f71994c06a7e5a98b10057e7f2c25a88ed657329d5c4e5
MD5 2509c9e39353b2495ebd15c73d8b08b1
BLAKE2b-256 194afbaa7ea338a544192ba6efb0076e69b8ba008cd0d23af9d0c9031c387313

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page