Bybit MCP Server logo

Bybit MCP Server

by sammcj

A Model Context Protocol (MCP) server that provides read-only access to Bybit's cryptocurrency exchange API. It allows users to query Bybit data through tools accessible via an MCP client.

View on GitHub

Last updated: N/A

What is Bybit MCP Server?

The Bybit MCP Server is a server that implements the Model Context Protocol (MCP) to provide read-only access to Bybit's cryptocurrency exchange API. It exposes various tools for retrieving market data, order book information, kline data, wallet balances, and order history.

How to use Bybit MCP Server?

  1. Install Node.js and pnpm.
  2. Clone the repository and install dependencies using pnpm i.
  3. Configure environment variables with your Bybit API key and secret (read-only).
  4. Start the server using pnpm serve or node build/index.js.
  5. Integrate the server into an MCP client like Claude Desktop or gomcp by configuring the client's settings to point to the server.

Key features of Bybit MCP Server

  • Real-time ticker information

  • Orderbook data

  • Kline/candlestick data

  • Market information

  • Recent trades

  • Instrument information

  • Wallet balance information

  • Positions information

  • Order history

Use cases of Bybit MCP Server

  • Integrating Bybit data into LLM-powered trading bots

  • Building custom trading dashboards with real-time market data

  • Analyzing historical market data for trading strategies

  • Querying account balances and order history through a conversational interface

FAQ from Bybit MCP Server

Is this server safe to use with my Bybit API key?

Yes, but only ever use a read-only API key with this server. The author does not guarantee the security of the code, so it's crucial to protect your funds.

What is MCP?

MCP stands for Model Context Protocol. It's a protocol that allows Language Models (LLMs) to access external tools and data sources.

What is Ollama?

Ollama is a tool that allows you to run open-source large language models, such as Llama 3, locally.

How do I configure the server to use the testnet?

Set the BYBIT_USE_TESTNET environment variable to true.

How do I enable debug logging?

Set the DEBUG environment variable to true.