Skip to main content
Glama
BCusack

Bybit MCP Server

by BCusack

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
BYBIT_API_KEYYesYour Bybit API key
BYBIT_TESTNETNoSet to true to use the Bybit testnet (default is false)false
BYBIT_API_SECRETYesYour Bybit API secret
BYBIT_TRADING_ENABLEDNoSet to true to enable trading operations (default is false). Trading is DISABLED by default for safety.false

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
get_server_time

Get the current Bybit server time

get_tickers

Get real-time ticker information including current prices, 24h volume, and price changes for trading symbols. Use this to get current market data for any cryptocurrency pair.

get_order_book

Get order book depth for a trading symbol

get_recent_trades

Get recent trades for a symbol

get_kline

Get historical candlestick/OHLC data for technical analysis. Returns open, high, low, close prices and volume data. If no time range specified, returns recent data ending at current time.

get_mark_price_kline

Get mark price candlestick data for derivatives trading. Mark price is used for liquidation calculations and PnL. Available for linear and inverse perpetual contracts only.

get_index_price_kline

Get index price candlestick data for derivatives. Index price is the fair value price based on major spot exchanges, used as reference for mark price calculation.

get_premium_index_price_kline

Get premium index price candlestick data for linear perpetuals. Premium index shows the funding rate basis and is used to calculate funding payments.

get_instruments_info

Get trading instruments information

get_funding_rate_history

Get funding rate history

get_open_interest

Get open interest data

get_insurance

Get insurance fund data

get_risk_limit

Get risk limit information

get_long_short_ratio

Get long/short ratio data

get_open_closed_orders

Get both open (pending) and recently closed orders. Essential for monitoring order status and trading activity. Use this to check if orders are filled, cancelled, or still pending.

get_order_history

Get comprehensive order history with detailed information about past orders including execution details, timestamps, and status changes. Useful for trade analysis and record keeping.

get_trade_history

Get detailed execution history showing actual trades (fills) with execution prices, quantities, fees, and timestamps. Essential for performance analysis and tax reporting.

get_wallet_balance

Get detailed wallet balance information including available balance, locked balance, and total equity across different account types. Essential for portfolio monitoring and risk management.

get_single_coin_balance

Get balance information for a specific coin with additional details like transferable amounts and account relationships. More detailed than wallet balance for single coin queries.

get_account_info

Get comprehensive account information including margin ratios, account status, upgrade status, and overall account health metrics. Essential for risk monitoring.

get_position_info

Get detailed position information including size, value, PnL, and margin for your trading positions. Essential for portfolio monitoring and risk management.

get_closed_pnl

Get historical profit and loss data for closed positions. Useful for performance analysis and tax reporting.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription
Bybit Market InformationGeneral information about Bybit market endpoints and capabilities

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/BCusack/bybit-py-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server