bybit-mcp-server
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| BYBIT_MODE | No | Permission mode: read, trade, or full | read |
| BYBIT_API_KEY | No | API key from Bybit (required for local mode) | |
| BYBIT_TESTNET | No | Use testnet (true) or mainnet (false) | true |
| BYBIT_MCP_HOST | No | HTTP bind address | 0.0.0.0 |
| BYBIT_MCP_PORT | No | HTTP port | 8000 |
| BYBIT_API_SECRET | No | API secret from Bybit (required for local mode) | |
| BYBIT_MCP_DB_PATH | No | SQLite database file path | ./bybit_mcp.db |
| BYBIT_RECV_WINDOW | No | Request receive window in ms | |
| BYBIT_MCP_TRANSPORT | No | Set to 'streamable-http' for remote mode | stdio |
| BYBIT_MCP_ISSUER_URL | No | Public URL with scheme, e.g. https://bybit.example.com (required for remote mode) | |
| BYBIT_MCP_SECRET_KEY | No | Fernet key for encrypting API keys at rest (required for remote mode) | |
| BYBIT_MCP_ADMIN_PASSWORD | No | Admin login password (required for remote mode) | |
| BYBIT_MCP_ADMIN_USERNAME | No | Admin login username | admin |
Capabilities
Features and capabilities supported by this server
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
| experimental | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| get_server_timeA | Get the current Bybit server time. |
| get_tickersA | Get latest price ticker for a symbol. |
| get_klineA | Query kline/candlestick data. |
| get_instruments_infoB | Query instrument specifications and trading rules. |
| get_orderbookA | Query order book depth data. |
| get_funding_rate_historyA | Query historical funding rate. |
| get_public_tradesB | Query recent public trading data. |
| get_open_interestA | Get open interest for each symbol. |
| get_wallet_balanceA | Get wallet balance and account risk information. |
| get_fee_rateB | Get trading fee rate. |
| get_account_infoA | Get account margin mode and configuration info. |
| get_open_ordersA | Query unfilled or partially filled orders. |
| get_order_historyA | Query order history. |
| get_trade_historyB | Query trade execution history. |
| place_orderA | Place an order (HIGH risk - requires confirmation). |
| amend_orderA | Amend an existing order (HIGH risk - requires confirmation). |
| cancel_orderA | Cancel an existing order (MEDIUM risk - no confirmation required). |
| cancel_all_ordersA | Cancel all open orders (HIGH risk - requires confirmation). |
| get_positionsB | Query real-time position data. |
| get_closed_pnlA | Query closed profit and loss records. |
| set_leverageA | Set leverage for a position (HIGH risk - requires confirmation). |
| set_trading_stopA | Set take profit, stop loss, or trailing stop for a position (MEDIUM risk). |
| set_auto_add_marginA | Turn on/off auto-add-margin for isolated margin position (MEDIUM risk). |
| get_coin_balanceA | Query coin balance of a specific account type. |
| get_coin_infoA | Query coin information including chain info, deposit/withdraw status. |
| get_transfer_historyB | Query internal transfer records. |
| internal_transferA | Transfer funds between account types under same UID (HIGH risk, requires 'full' mode). |
| confirm_orderA | Execute a previously prepared HIGH-risk operation after review. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/workspace/bybit-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server