Bybit

Bybit

MCP server for Bybit enabling AI tools to access trading, market data, and accounts.

2
Stars
2
Forks
0
Releases

Overview

Bybit MCP Server provides a Model Context Protocol interface to Bybit's API, allowing AI assistants and coding tools (e.g., Claude Code, Cursor) to interact with Bybit's trading platform. It exposes Bybit's V5 API endpoints to retrieve market data, manage accounts, and execute trades through MCP-enabled workflows. The server supports common market data functions such as get_price, get_orderbook, get_klines, and get_24hr_ticker; account management functions like get_account_info, get_wallet_balance, get_open_orders, and get_order_history; and trading operations including place_order, cancel_order, and cancel_all_orders. It can be run via npm install -g bybit-mcp-server and configured with environment variables and configuration files for testnet or mainnet usage. Configuration examples show Claude Code and Cursor integrations using BYBIT_API_KEY, BYBIT_API_SECRET, and BYBIT_ENVIRONMENT (testnet or mainnet). The server also documents security best practices, such as redacting API keys from error messages and using IP restrictions, and provides references to Bybit's API documentation. The project emphasizes safety with recommended testnet usage, and notes that mainnet operations involve real funds and risk.

Details

Owner
ethancod1ng
Language
TypeScript
License
Updated
2025-12-07

Features

Bybit V5 API integration

Implements Bybit's V5 API endpoints to enable MCP-based interactions with market data, accounts, and trading.

Market Data Endpoints

Supports get_price, get_orderbook, get_klines, and get_24hr_ticker for real-time and historical market information.

Account Management Endpoints

Supports get_account_info, get_wallet_balance, get_open_orders, and get_order_history to monitor and review holdings.

Trading Endpoints

Supports place_order, cancel_order, and cancel_all_orders to execute and manage trades.

Environment Support

Operates in testnet or mainnet environments via BYBIT_ENVIRONMENT, enabling safe testing or real-fund trading.

Environment Variable Configuration

Configured through environment variables in integration configs (BYBIT_API_KEY, BYBIT_API_SECRET, BYBIT_ENVIRONMENT) for Claude Code and Cursor.

Security Best Practices

API keys are redacted in errors; IP restrictions are recommended to enhance security.

Documentation & References

Provides links to Bybit V5 API docs and related resources for developers.

Audience

AI developersBuild MCP-enabled assistants that query Bybit data and place trades.
Trading tool integratorsConnect Claude Code or Cursor to perform data queries and trading actions via MCP.
Automation engineersDevelop automated strategies using MCP to fetch market data and execute orders on Bybit.

Tags

BybitMCPTradingMarket DataAccount ManagementBybit V5AI ToolsClaudeCursorTestnetMainnetSecurity