Bybit MCP Server

Bybit MCP Server

mcp-server-demo-dlwjdtn535•bydlwjdtn535

An MCP server that wraps the Bybit V5 API, exposing tools for market data, account information, and order management.

License: MIT License•Runtime: Awaiting documentation review•Category: finance crypto

WHAT IT DOES

  • •Provides market data tools such as order books, candlesticks, tickers, public trade history, instrument info, funding rate history, open interest, and fee rates.
  • •Offers a composite market_snapshot tool combining orderbook, ticker, kline, instrument, recent trades, and for futures funding rate and open interest.
  • •Exposes account tools for wallet balances, open positions, order history, open orders, and API key information.
  • •Trading tools are mutating and disabled by default; they must be enabled explicitly, and trading can be hard-blocked with a read-only mode.

BEST FOR

  • •Retrieving Bybit market data like order books, tickers, and funding rates through an MCP client.
  • •Checking Bybit account balances and open positions from an MCP-enabled assistant.
  • •Placing and managing Bybit orders with safety controls such as testnet, order size caps, and read-only mode.

ABOUT MCP-SERVER-DEMO-DLWJDTN535

Bybit MCP Server is cataloged as an MCP server attributed to dlwjdtn535. An MCP server that wraps the Bybit V5 API, exposing tools for market data, account information, and order management. It is categorized under finance crypto. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: MIT License. Check the source repository's current license and terms before using, modifying or distributing this software.

能力检查器

能力定义尚未审核。未核验的采集内容不会作为可信接口展示。

Tools (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Resources (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Prompts (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for Bybit MCP Server are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

Does this server place real trades by default?

No. Trading is disabled by default; mutating tools return an error unless TRADING_ENABLED=true is set.

Can I cap the size of orders placed through the server?

Yes. MAX_ORDER_SIZE_USDT (default 100) caps the estimated notional value of a single order.

上游原版 README

在 GitHub 查看同一版本原文

README.md · e2fde878b920 · 采集于 2026-11-13 12:44:57 UTC

保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。

当前显示最后一次成功采集的文档快照,请以来源页面为准。

MCP Bybit API Interface

smithery badge Buy Me A Coffee

Bybit MCP (Model Context Protocol) Server. Provides a convenient interface to interact with the Bybit V5 API using MCP tools. Allows fetching market data, managing account information, and placing/canceling orders via API calls wrapped as tools.

Bybit Server MCP server

⚠️ Security & Safety

This server can place real trades with real money. Read this before configuring it:

  • Trading is disabled by default. Mutating tools (place_order, cancel_order, amend_order, cancel_all_orders, set_trading_stop, set_margin_mode, set_leverage) return an error unless you explicitly set TRADING_ENABLED=true.
  • Use the testnet first. Set TESTNET=true while you experiment. Combine with TRADING_ENABLED=false for a fully read-only setup, or set READONLY_MODE=true to hard-block every mutating tool regardless of other settings.
  • Order size is capped. MAX_ORDER_SIZE_USDT (default 100) limits the estimated notional value of an order to guard against accidental large trades.
  • API keys are never logged or exposed. No tool returns your keys; logs only report whether a key is present.
  • Never commit your API keys. Provide them through environment variables only.

Installation

Requires Python 3.12+. This project uses uv.

git clone https://github.com/dlwjdtn535/mcp-bybit-server.git
cd mcp-bybit-server
uv sync
uv run mcp-bybit-server   # runs the MCP server over stdio

After install, the mcp-bybit-server command is the entry point used by the MCP client configs below.

Installing via Smithery

To install this Bybit API Interface server for Claude Desktop automatically via Smithery:

npx -y @smithery/cli install @dlwjdtn535/mcp-bybit-server --client claude

Configuration (Claude Desktop, Cline, Roo Code, etc.)

Add one of the following to your MCP settings file (e.g. claude_desktop_config.json / mcp_settings.json).

Using uv (run from a cloned repo):

{
  "mcpServers": {
    "bybit": {
      "command": "uv",
      "args": [
        "run",
        "--directory",
        "/absolute/path/to/mcp-bybit-server",
        "mcp-bybit-server"
      ],
      "env": {
        "ACCESS_KEY": "YOUR_BYBIT_API_KEY",
        "SECRET_KEY": "YOUR_BYBIT_SECRET_KEY",
        "TESTNET": "true",
        "TRADING_ENABLED": "false"
      }
    }
  }
}

On Windows, use an absolute path with double backslashes (e.g. C:\\Users\\YOUR_USERNAME\\mcp-bybit-server).

Using Docker:

First pull the image: docker pull dlwjdtn535/mcp-bybit-server:latest

{
  "mcpServers": {
    "bybit-server-docker": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "--init",
        "-e", "ACCESS_KEY=YOUR_BYBIT_API_KEY",
        "-e", "SECRET_KEY=YOUR_BYBIT_SECRET_KEY",
        "-e", "TESTNET=true",
        "-e", "TRADING_ENABLED=false",
        "-e", "MAX_ORDER_SIZE_USDT=100",
        "dlwjdtn535/mcp-bybit-server:latest"
      ]
    }
  }
}

Note: Always use @latest or a specific version tag for both NPX and Docker to ensure you are using the intended version.

Environment Variables

VariableRequiredDefaultDescription
ACCESS_KEYYes–Bybit API key.
SECRET_KEYYes–Bybit API secret.
MEMBER_IDNo–Bybit member ID (optional).
TESTNETNofalseUse the Bybit testnet when true.
TRADING_ENABLEDNofalseMust be true to allow any mutating/trading tool.
READONLY_MODENofalseWhen true, blocks every mutating tool (takes precedence over TRADING_ENABLED).
MAX_ORDER_SIZE_USDTNo100Caps the estimated notional value (USDT) of a single order.
RESPONSE_VERBOSITYNonormalminimal trims get_tickers/get_positions responses to core fields to save tokens; normal/full return the full payload.

Tools 🛠️

Market data

  • get_orderbook — order book (category, symbol, limit?).
  • get_kline — candlesticks (category, symbol, interval, start?, end?, limit?).
  • get_tickers — ticker info (category, symbol).
  • get_public_trade_history — recent public trades (category, symbol, limit?).
  • get_instruments_info — instrument metadata / limits (category, symbol, status?, baseCoin?).
  • get_funding_rate_history — funding rate history for perps (category, symbol, startTime?, endTime?, limit?).
  • get_open_interest — open interest over time (category, symbol, intervalTime?, ...).
  • get_fee_rate — maker/taker fee rates (category, symbol?, baseCoin?).
  • get_server_time — Bybit server time.
  • market_snapshot — composite market view (orderbook + ticker + kline + instrument + recent trades, plus funding rate & open interest for futures) in a single call.

Account

  • get_wallet_balance — balances (accountType, coin?).
  • get_positions — open positions (category, symbol?).
  • get_order_history — historical orders.
  • get_open_orders — current open orders.
  • get_api_key_information — API key details.

Trading (mutating — requires TRADING_ENABLED=true)

  • validate_order — pre-flight validation; never places an order. Not blocked by trading flags.
  • place_order — place an order; supports dry_run=true to validate without placing.
  • amend_order — modify an existing order in place.
  • cancel_order — cancel a single order.
  • cancel_all_orders — cancel all open orders (optionally scoped).
  • set_trading_stop — set take profit / stop loss / trailing stop.
  • set_margin_mode — set isolated/cross margin.
  • set_leverage — set leverage for a futures symbol.

(Refer to the function docstrings in the code for detailed parameter descriptions and examples.)

API Key Setup

To use this Bybit API interface, create an API key from Bybit:

  1. Log into your Bybit account.
  2. Navigate to API Management.
  3. Create a new API key.
  4. Important security settings:
    • Enable IP restriction if possible, and add ONLY the IP address(es) the server runs from.
    • Never share your API keys or expose them in public repositories.
    • Recommended permissions:
      • Read (required)
      • Trade (required only if you enable order execution)
      • Wallet (required for balance checking)

Development

uv sync --group dev   # install dev dependencies (pytest, ruff)
uv run ruff check .   # lint
uv run pytest -q      # run the unit test suite (no live API calls)

CI (GitHub Actions) runs lint + tests on every push/PR; Docker images are built and published automatically on pushes to main.

Sponsorship & Donations

If you find this project helpful and would like to support its development:

Buy Me a Coffee

"Buy Me A Coffee"

Referral Program

You can also support this project by signing up for Bybit using our referral link:

Your support helps maintain and improve this project. Thank you! 🙏

Contact & Support

For additional inquiries or support, please contact:

We welcome your questions and feedback!

License

MIT License

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for Bybit MCP Server from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/mcp-server-demo-dlwjdtn535)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

下载与拉取统计

来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。

尚无已审核的包 / 镜像标识,暂不展示下载统计。

Related finance crypto MCP Servers

Alternative and complementary servers in the same category

View all in finance crypto →
USA Spending MCP Server
usaspending-mcp-server•thsmale

A stateless streamable HTTP MCP server for interacting with the official source of government spending data.

Repository stats unavailable
Finance & Analytics
Fortnox MCP server — More AI
more-ai-chatgpt-claude-mcp-fortnox•amor3

A hosted, remote MCP server for Fortnox that lets AI assistants answer questions from a company's bookkeeping and propose changes for approval before writing them.

0
Finance & Analytics

OptimistFi is a read-only remote MCP server that provides perpetual futures market data, perps prop firm rules and pricing, and US equity investment research.

Repository stats unavailable
Finance & Analytics