Skip to main content
Glama
bybit-mcp

bybit-mcp

by Peakviker

bybit-mcp

Отдельный проект под Bybit API и MCP server.

Что зафиксировано по официальной документации Bybit:

Почему так:

  • Для Hermes/MCP stdio интеграции Node-стек быстрее поднимается и проще тестируется локально.

  • bybit-api покрывает стандартный V5 REST, а bot-layer добран прямым signed POST по официальной docs.

Что дополнительно зафиксировано по runtime watcher:

  • пути runtime/env централизованы в src/paths.ts

  • watcher и scripts больше не размазывают абсолютные runtime path по нескольким файлам

  • snapshot active-orders больше не прибит к BTCUSDT; symbol берётся из fgridbot/detail

  • текущий operational baseline watcher: grid-risk-watcher.service + Hermes cron bybit-grid-risk-delivery

  • есть operator analytics scripts:

    • scripts/alert_stats.ts

    • scripts/risk_metrics_stats.ts

  • controlled redelivery workflow протестирован успешно (pause cron → rewind state → replay → restore → resume)

Текущие MCP tools:

  • bybit_server_time

  • bybit_instruments_info

  • bybit_kline

  • bybit_wallet_balance

  • bybit_positions

  • bybit_closed_pnl

  • bybit_order_history

  • bybit_active_orders

  • bybit_execution_history

  • bybit_strategy_list

  • bybit_strategy_order_list

  • bybit_trade_stats

  • bybit_futures_grid_detail

  • bybit_futures_grid_analysis

  • bybit_futures_grid_validate

  • bybit_futures_grid_close

  • bybit_place_order

  • bybit_cancel_order

  • bybit_amend_order

Безопасность write-операций:

  • приватные write tools требуют BYBIT_API_KEY и BYBIT_API_SECRET

  • mainnet write-операции дополнительно требуют BYBIT_WRITE_CONFIRMED=1

  • для testnet достаточно BYBIT_ENV=testnet

Запуск:

cd /home/peakviker/bybit-mcp
npm install
npm run build
node dist/index.js

Через wrapper:

/home/peakviker/bybit-mcp/run-mcp.sh

Для Hermes как MCP server:

hermes mcp add bybit-mcp --command /home/peakviker/bybit-mcp/run-mcp.sh
hermes mcp test bybit-mcp

Available Tools

19 tools
bybit_active_ordersC

Get active/open orders from Bybit V5 private API

Inputs: category (required), limit, symbol, baseCoin, +1 more.

bybit_amend_orderC

Amend an order on Bybit V5

Inputs: symbol (required), category (required), qty, price, +2 more.

bybit_cancel_orderC

Cancel an order on Bybit V5

Inputs: symbol (required), category (required), orderId, orderLinkId.

bybit_closed_pnlC

Get closed PnL history from Bybit V5

Inputs: category (required), limit, symbol, settleCoin.

bybit_execution_historyC

Get execution/trade history from Bybit V5 private API

Inputs: category (required), limit, symbol, baseCoin.

bybit_futures_grid_analysisC

Analyze Futures Grid Bot metrics by bot_id

Inputs: bot_id (required).

bybit_futures_grid_closeC

Close Futures Grid Bot via official Bybit bot endpoint

Inputs: bot_id (required), close_type.

bybit_futures_grid_detailC

Get Futures Grid Bot detail by bot_id via official Bybit bot endpoint

Inputs: bot_id (required).

bybit_futures_grid_validateC

Validate Futures Grid Bot parameters via official Bybit bot endpoint

Inputs: symbol (required), leverage (required), grid_type (required), max_price (required), +9 more.

bybit_instruments_infoC

Get Bybit instrument metadata for a category and optional symbol

Inputs: category (required), limit, status, symbol, +1 more.

bybit_klineC

Get Bybit kline/candle data

Inputs: symbol (required), category (required), interval (required), end, +2 more.

bybit_order_historyC

Get historical orders from Bybit V5 private API

Inputs: category (required), limit, symbol, baseCoin, +2 more.

bybit_place_orderC

Place an order on Bybit V5

Inputs: qty (required), side (required), symbol (required), category (required), +5 more.

bybit_positionsC

Get open positions from Bybit V5

Inputs: limit, symbol, category, settleCoin.

bybit_server_timeA

Get Bybit server time

Inputs: no named parameters.

bybit_strategy_listC

Get Bybit strategy list from V5 strategy namespace

Inputs: type, limit, status, symbol, +2 more.

bybit_strategy_order_listC

Get Bybit strategy order list from V5 strategy namespace

Inputs: limit, status, symbol, strategyId.

bybit_trade_statsB

Aggregate wallet, positions, closed pnl, orders and executions into trading stats

Inputs: limit, category.

bybit_wallet_balanceC

Get wallet balance for unified account

Inputs: coin, accountType.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.1/5.0

    Scored across 19 tools

    Disambiguation5/5

    Each tool targets a distinct function: orders, positions, PnL, executions, grids, instruments, kline, server time, strategies, trade stats, wallet. No overlap in purpose; descriptions clearly differentiate them.

    Naming Consistency4/5

    All tools use the 'bybit_' prefix and snake_case. Most follow a verb_noun or noun_noun pattern, but some start with verbs (amend_order) while others with nouns (positions). Still predictable and readable.

    Tool Count5/5

    19 tools is well-scoped for a cryptocurrency exchange MCP server, covering core trading operations, market data, grid bots, and strategies without being overwhelming or sparse.

    Completeness4/5

    Major functionalities are covered: order lifecycle, positions, PnL, executions, wallet, market data. Minor gaps like account settings or funding rates are missing, but the core surface is solid.

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      B
      quality
      D
      maintenance
      Interact seamlessly with the Bybit API to fetch market data, manage your account, and execute trades. Leverage powerful tools to enhance your trading experience and automate your strategies effortlessly. If you wish to use an API key restricted to your personal IP address, you must configure the MCP
      15
      9
      MIT
    • A
      license
      C
      quality
      D
      maintenance
      MCP server for Bybit exchange enabling 246 tools for trading, market data, account management, and more via natural language.
      100
      2
      MIT
    • A
      license
      A
      quality
      D
      maintenance
      Enables AI assistants to interact with the Bybit cryptocurrency exchange via the V5 API, supporting market data, trading, and account management with both local and remote OAuth-authenticated connections.
      28
      37 PyPI
      1
      MIT
    • A
      license
      C
      quality
      B
      maintenance
      A production-ready MCP server for Bybit — 206 tools covering market data, trading, positions, account management, assets, and real-time WebSocket streams. Enables AI assistants to interact directly with the Bybit cryptocurrency exchange through natural language.
      400
      1,625 npm
      45
      MIT