MCP server
by ethancod1ng
Integrate your app with Bybit for real-time crypto data, testnet trading, and account management. Power your portfolio w
Connects to Bybit cryptocurrency exchange APIs to get market data, manage accounts, and execute testnet trading operations through AI coding tools.
Bybit is a community-built MCP server published by ethancod1ng that provides AI assistants with tools and capabilities via the Model Context Protocol. Integrate your app with Bybit for real-time crypto data, testnet trading, and account management. Power your portfolio w It is categorized under finance, developer tools.
You can install Bybit in your AI client of choice. Use the install panel on this page to get one-click setup for Cursor, Claude Desktop, VS Code, and other MCP-compatible clients. This server runs locally on your machine via the stdio transport.
MIT
Bybit is released under the MIT license. This is a permissive open-source license, meaning you can freely use, modify, and distribute the software.
Add new capabilities to Claude beyond text generation
Example
Access external data sources, execute code, interact with tools and services
Transform Claude from chatbot to action-taking agent
Provide Claude with access to relevant context and data
Example
Load project documentation, access knowledge bases, query databases
Get more accurate, context-aware responses
Automate multi-step workflows combining AI and external tools
Example
Research → Summarize → Create document → Send notification
Complete complex tasks end-to-end without manual steps
Share your MCP server with the developer community
Bybit has been reliable for tool-calling workflows; the MCP profile page is a good permalink for internal docs.
According to our notes, Bybit benefits from clear Model Context Protocol framing — fewer ambiguous “AI plugin” claims.
We wired Bybit into a staging workspace; the listing’s GitHub and npm pointers saved time versus hunting across READMEs.
According to our notes, Bybit benefits from clear Model Context Protocol framing — fewer ambiguous “AI plugin” claims.
Bybit is a well-scoped MCP server in the explainx.ai directory — install snippets and categories matched our Claude Code setup.
We wired Bybit into a staging workspace; the listing’s GitHub and npm pointers saved time versus hunting across READMEs.
Bybit is a well-scoped MCP server in the explainx.ai directory — install snippets and categories matched our Claude Code setup.
Bybit has been reliable for tool-calling workflows; the MCP profile page is a good permalink for internal docs.
We wired Bybit into a staging workspace; the listing’s GitHub and npm pointers saved time versus hunting across READMEs.
Bybit has been reliable for tool-calling workflows; the MCP profile page is a good permalink for internal docs.
showing 1-10 of 44
Multi-language Documentation
A Model Context Protocol (MCP) server for Bybit exchange, enabling AI coding tools like Claude Code and Cursor to interact with Bybit's trading platform.
npm install -g bybit-mcp-server
This MCP server can be used with various AI tools that support MCP:
For Testnet (Recommended - Safe for testing):
Add to claude_desktop_config.json:
{
"mcpServers": {
"bybit": {
"command": "npx",
"args": ["bybit-mcp-server"],
"env": {
"BYBIT_API_KEY": "your_testnet_api_key",
"BYBIT_API_SECRET": "your_testnet_api_secret",
"BYBIT_ENVIRONMENT": "testnet"
}
}
}
}
For Mainnet (⚠️ WARNING: Uses real funds):
Add to claude_desktop_config.json:
{
"mcpServers": {
"bybit": {
"command": "npx",
"args": ["bybit-mcp-server"],
"env": {
"BYBIT_API_KEY": "your_mainnet_api_key",
"BYBIT_API_SECRET": "your_mainnet_api_secret",
"BYBIT_ENVIRONMENT": "mainnet"
}
}
}
}
Use the same configuration as Claude Code above, but add to .cursor/mcp_config.json with mcp.servers instead of mcpServers.
Option 1: Testnet (Recommended)
BYBIT_API_KEY=your_testnet_api_key_here
BYBIT_API_SECRET=your_testnet_api_secret_here
BYBIT_ENVIRONMENT=testnet
DEBUG=false
Option 2: Mainnet (⚠️ Real funds)
BYBIT_API_KEY=your_mainnet_api_key_here
BYBIT_API_SECRET=your_mainnet_api_secret_here
BYBIT_ENVIRONMENT=mainnet
DEBUG=false
For Testnet:
For Mainnet:
get_price - Get current price for a trading symbolget_orderbook - Get order book depth for a trading symbolget_klines - Get historical candlestick dataget_24hr_ticker - Get 24-hour trading statisticsget_account_info - Get account information and balancesget_wallet_balance - Get wallet balance for specific account typeget_open_orders - Get list of open/active ordersget_order_history - Get historical ordersplace_order - Place a new ordercancel_order - Cancel an existing ordercancel_all_orders - Cancel all orders for a symbol or categoryAsk your AI assistant to:
⚠️ Important Security Notes:
🔐 API Key Safety:
npm run build # Compile TypeScript
npm run dev # Development mode
npm run lint # Run linting
npm run typecheck # Type checking
npm run watch # Watch mode
git clone https://github.com/your-username/bybit-mcp-server.git
cd bybit-mcp-server
npm install
cp .env.example .env
# Edit .env with your API credentials
npm run dev
| Variable | Description | Default | Required |
|---|---|---|---|
BYBIT_API_KEY | Your Bybit API key | - | ✅ |
BYBIT_API_SECRET | Your Bybit API secret | - | ✅ |
BYBIT_ENVIRONMENT | testnet or mainnet | testnet | ❌ |
BYBIT_BASE_URL | Custom API base URL | Auto-detected | ❌ |
DEBUG | Enable debug logging | false | ❌ |
This server implements Bybit's V5 API endpoints. For detailed API documentation:
git checkout -b feature/amazing-feature)git commit -m 'Add some amazing feature')git push origin feature/amazing-feature)MIT License - see LICENSE file for details.
Prerequisites
Time Estimate
15-60 minutes depending on server complexity
Steps
Troubleshooting
✓ Do
✗ Don't
💡 Pro Tips
Architecture
Model Context Protocol standardizes how AI hosts (Claude, Cursor) communicate with external tools and data sources through server implementations.
Protocols
Compatibility
✓ Use when
Use when you need Claude to access external data, execute actions, or integrate with tools. Best for extending AI capabilities beyond conversation.
✗ Avoid when
Avoid when native integrations exist (use official APIs directly), for real-time critical systems, or when security/compliance requires zero external dependencies.