financedeveloper-tools

Bybit

ethancod1ng

by ethancod1ng

Integrate your app with Bybit for real-time crypto data, testnet trading, and account management. Power your portfolio w

Integrates with Bybit cryptocurrency exchange APIs to provide real-time market data, account management, and testnet-only trading operations for cryptocurrency trading and portfolio management applications.

github stars

6

0 commentsdiscussion

Both formats append explainx.ai attribution and the canonical URL for this MCP server listing.

Testnet support for safe testingWorks with Claude and CursorMulti-language documentation

best for

  • / Cryptocurrency traders building automated strategies
  • / Developers creating crypto trading applications
  • / Portfolio managers tracking investments
  • / Testing trading algorithms safely

capabilities

  • / Fetch real-time cryptocurrency market data
  • / Manage Bybit account information
  • / Execute trades on testnet environment
  • / Monitor portfolio balances
  • / Access trading history
  • / Query order book data

what it does

Connects to Bybit cryptocurrency exchange APIs to get market data, manage accounts, and execute testnet trading operations through AI coding tools.

about

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.

how to install

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.

license

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.

readme

Bybit MCP Server

smithery badge npm

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.

Quick Start

Installation

npm install -g bybit-mcp-server

Configuration

This MCP server can be used with various AI tools that support MCP:

Claude Cursor

Claude Code Configuration

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"
      }
    }
  }
}

Cursor Configuration

Use the same configuration as Claude Code above, but add to .cursor/mcp_config.json with mcp.servers instead of mcpServers.

Environment Setup

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

Getting API Keys

For Testnet:

  1. Visit Bybit Testnet
  2. Register an account
  3. Go to API Management and create API keys
  4. Enable required permissions (read, trade)

For Mainnet:

  1. Visit Bybit
  2. Complete account verification
  3. Go to API Management and create API keys
  4. Enable required permissions (read, trade)
  5. Set IP restrictions for additional security

Available Tools

Market Data

  • get_price - Get current price for a trading symbol
  • get_orderbook - Get order book depth for a trading symbol
  • get_klines - Get historical candlestick data
  • get_24hr_ticker - Get 24-hour trading statistics

Account Management

  • get_account_info - Get account information and balances
  • get_wallet_balance - Get wallet balance for specific account type
  • get_open_orders - Get list of open/active orders
  • get_order_history - Get historical orders

Trading (⚠️ Can use real funds on mainnet)

  • place_order - Place a new order
  • cancel_order - Cancel an existing order
  • cancel_all_orders - Cancel all orders for a symbol or category

Usage Examples

Ask your AI assistant to:

  • "Get the current price of BTCUSDT on Bybit"
  • "Show me the order book for ETHUSDT with 50 levels"
  • "Get my account balance"
  • "Place a limit buy order for 0.1 BTC at $45000"
  • "Cancel all my open orders for BTCUSDT"
  • "Get my trading history for the last 20 orders"

Security

⚠️ Important Security Notes:

  • TESTNET is the default and recommended environment for safety
  • MAINNET operations use real funds - use with extreme caution
  • API keys are automatically redacted from error messages
  • Always test thoroughly on testnet before using mainnet
  • Trading operations will display warnings when using mainnet

🔐 API Key Safety:

  • Never commit API keys to version control
  • Use environment variables for credentials
  • Regularly rotate your API keys
  • Use IP restrictions in Bybit API settings

Development

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

Local Development

  1. Clone the repository:
git clone https://github.com/your-username/bybit-mcp-server.git
cd bybit-mcp-server
  1. Install dependencies:
npm install
  1. Set up environment:
cp .env.example .env
# Edit .env with your API credentials
  1. Run in development mode:
npm run dev

Configuration Options

VariableDescriptionDefaultRequired
BYBIT_API_KEYYour Bybit API key-
BYBIT_API_SECRETYour Bybit API secret-
BYBIT_ENVIRONMENTtestnet or mainnettestnet
BYBIT_BASE_URLCustom API base URLAuto-detected
DEBUGEnable debug loggingfalse

API Reference

This server implements Bybit's V5 API endpoints. For detailed API documentation:

Contributing

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add some amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

License

MIT License - see LICENSE file for details.

Support

FAQ

What is the Bybit MCP server?
Bybit is a Model Context Protocol (MCP) server profile on explainx.ai. MCP lets AI hosts (e.g. Claude Desktop, Cursor) call tools and resources through a standard interface; this page summarizes categories, install hints, and community ratings.
How do MCP servers relate to agent skills?
Skills are reusable instruction packages (often SKILL.md); MCP servers expose live capabilities. Teams frequently combine both—skills for workflows, MCP for APIs and data. See explainx.ai/skills and explainx.ai/mcp-servers for parallel directories.
How are reviews shown for Bybit?
This profile displays 44 aggregated ratings (sample rows for discoverability plus signed-in user reviews). Average score is about 4.5 out of 5—verify behavior in your own environment before production use.

Use Cases

Extended AI Capabilities

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

Context Enhancement

Provide Claude with access to relevant context and data

Example

Load project documentation, access knowledge bases, query databases

Get more accurate, context-aware responses

Workflow Automation

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

Implementation Guide

Prerequisites

  • Claude Desktop 0.7.0+ or Cursor IDE with MCP support
  • Basic understanding of MCP architecture and capabilities
  • Access credentials for integrated services (if required)
  • Willingness to experiment and iterate on configuration

Time Estimate

15-60 minutes depending on server complexity

Installation Steps

  1. 1.Install MCP server: npm install -g [package-name] or via GitHub
  2. 2.Add server configuration to ~/.claude/mcp.json
  3. 3.Provide required credentials and configuration
  4. 4.Restart Claude Desktop to load new server
  5. 5.Test basic functionality with simple prompts
  6. 6.Explore capabilities and experiment with use cases
  7. 7.Document successful patterns for reuse

Troubleshooting

  • MCP server not loading: Check config syntax, verify installation
  • Connection errors: Check network, firewall, credentials
  • Feature not working: Read server docs, check required parameters
  • Performance issues: Monitor resource usage, check for network latency
  • Conflicts with other servers: Check port assignments, namespace collisions

Best Practices

✓ Do

  • +Read server documentation thoroughly before setup
  • +Start with simple use cases to validate functionality
  • +Test in non-production environment first
  • +Monitor resource usage and performance
  • +Keep servers updated for bug fixes and new features
  • +Document configuration for team members
  • +Use environment variables for sensitive configuration

✗ Don't

  • Don't grant overly permissive access to MCP servers
  • Don't skip reading security considerations in docs
  • Don't expose sensitive data without proper controls
  • Don't run untrusted MCP servers without code review
  • Don't ignore error messages—investigate root cause

💡 Pro Tips

  • Combine multiple MCP servers for powerful workflows
  • Create custom MCP servers for your specific needs
  • Share successful configurations with team
  • Use MCP inspector for debugging
  • Join MCP community for tips and troubleshooting

Technical Details

Architecture

Model Context Protocol standardizes how AI hosts (Claude, Cursor) communicate with external tools and data sources through server implementations.

Protocols

  • Model Context Protocol (MCP)
  • JSON-RPC 2.0
  • stdio or HTTP transport

Compatibility

  • Claude Desktop
  • Cursor IDE
  • Custom MCP clients

When to Use This

✓ 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.

Integration

  • Tool composition: Chain multiple MCP tools in workflows
  • Context augmentation: Provide AI with relevant external data
  • Action delegation: Let AI execute tasks on external systems
  • Bidirectional sync: Keep AI context and external systems in sync

Discussion

Product Hunt–style comments (not star reviews)
  • No comments yet — start the thread.

List & Promote Your MCP Server

Share your MCP server with the developer community

GET_STARTED →
MCP server reviews

Ratings

4.544 reviews
  • Sophia Patel· Dec 28, 2024

    Bybit has been reliable for tool-calling workflows; the MCP profile page is a good permalink for internal docs.

  • Pratham Ware· Dec 16, 2024

    According to our notes, Bybit benefits from clear Model Context Protocol framing — fewer ambiguous “AI plugin” claims.

  • Omar Dixit· Dec 8, 2024

    We wired Bybit into a staging workspace; the listing’s GitHub and npm pointers saved time versus hunting across READMEs.

  • Benjamin Brown· Nov 27, 2024

    According to our notes, Bybit benefits from clear Model Context Protocol framing — fewer ambiguous “AI plugin” claims.

  • Sophia Okafor· Nov 19, 2024

    Bybit is a well-scoped MCP server in the explainx.ai directory — install snippets and categories matched our Claude Code setup.

  • Sakshi Patil· Nov 7, 2024

    We wired Bybit into a staging workspace; the listing’s GitHub and npm pointers saved time versus hunting across READMEs.

  • Chaitanya Patil· Oct 26, 2024

    Bybit is a well-scoped MCP server in the explainx.ai directory — install snippets and categories matched our Claude Code setup.

  • Benjamin Tandon· Oct 18, 2024

    Bybit has been reliable for tool-calling workflows; the MCP profile page is a good permalink for internal docs.

  • Sophia Chen· Oct 10, 2024

    We wired Bybit into a staging workspace; the listing’s GitHub and npm pointers saved time versus hunting across READMEs.

  • Arjun Srinivasan· Sep 21, 2024

    Bybit has been reliable for tool-calling workflows; the MCP profile page is a good permalink for internal docs.

showing 1-10 of 44

1 / 5