MCP Bybit API Interface logo

MCP Bybit API Interface

by dlwjdtn535

This is a Bybit MCP (Model Context Protocol) Server. It provides a convenient interface to interact with the Bybit API using MCP tools.

View on GitHub

Last updated: N/A

What is MCP Bybit API Interface?

This server is a Bybit API interface that allows users to interact with the Bybit cryptocurrency exchange through MCP tools. It wraps Bybit API calls as tools, making it easy to fetch market data, manage account information, and place/cancel orders.

How to use MCP Bybit API Interface?

The server can be installed via Smithery or configured manually by adding the server configuration to your MCP settings file. You need to set the ACCESS_KEY and SECRET_KEY environment variables with your Bybit API credentials. The README provides example configurations for using the server with uv on Windows, macOS, and Linux, as well as with Docker.

Key features of MCP Bybit API Interface

  • Fetching market data (order book, K-line data, tickers)

  • Managing account information (wallet balance, positions)

  • Placing and canceling orders (limit, market)

  • Setting take profit, stop loss, and trailing stop orders

  • Setting margin mode (isolated or cross)

  • Fetching API key information

  • Fetching instrument information

Use cases of MCP Bybit API Interface

  • Automated trading strategies

  • Market analysis and data aggregation

  • Account management and monitoring

  • Integrating Bybit trading functionality into other applications

  • Building custom trading bots

FAQ from MCP Bybit API Interface

What environment variables are required?

You must set the ACCESS_KEY and SECRET_KEY environment variables with your Bybit API credentials. Optionally, you can set TESTNET=true for the testnet environment.

How do I install this server?

You can install it automatically via Smithery using the command npx -y @smithery/cli install @dlwjdtn535/mcp-bybit-server --client claude or configure it manually by adding the server configuration to your MCP settings file.

What API permissions are required?

The recommended permissions are Read, Trade, and Wallet. IP restriction is also highly recommended for security.

How do I get my API keys?

Go to Bybit, log into your account, navigate to API Management, and create a new API key.

How do I support this project?

You can support the project by buying the author a coffee or signing up for Bybit using the referral link.