
dlwjdtn535/mcp-bybit-server
Developer toolsこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
MCP (モデルコンテキストプロトコル) サーバをビットします。 MCP ツールを使用して、Bybit V5 API とやり取りする便利なインターフェイスを提供します.
概要
MCP (モデルコンテキストプロトコル) サーバをビットします。 MCP ツールを使用して、Bybit V5 API とやり取りする便利なインターフェイスを提供します。 市場データの取得、アカウント情報の管理、API 呼び出しによる注文の配置/処理をツールとしてラップできます。 このサーバは置くことができます。 設定する前にこれをお読みください。 - ツールのミュート(place order, Cancel order, Amend order, cancel all orders, set trading stop, set margin mode, set leverage)は、明示的にTRADING ENABLED=trueを設定しない限り、エラーを返します。 - 実験中にTESTNET=trueを設定します。 TRADING ENABLED=false と完全に読み取り専用のセットアップを組み合わせたり、他の設定に関係なくすべてのミュートツールをハードブロックするために READONLY MODE=true を設定したりします。 - MAX ORDER SIZE USDT (デフォルト 100) は、誤った大きな取引を監視する注文の推定値を制限します。 - ツールがキーを返すことはありません。キーが存在しているかどうかをログだけ報告します。 - 環境変数だけを通してそれらを提供して下さい。 Python 3.12+ が必要です。 このプロジェクトは uv を使用します.
概要(AI 翻訳)
MCP (モデルコンテキストプロトコル) サーバをビットします。 MCP ツールを使用して、Bybit V5 API とやり取りする便利なインターフェイスを提供します。 市場データの取得、アカウント情報の管理、API 呼び出しによる注文の配置/処理をツールとしてラップできます。
⚠️ セキュリティと安全
このサーバーは、実質のお金で*本物の取引を置くことができます。 設定する前にこれをお読みください。
-既定ではTradingが無効になっています。 Mutating tools ([place_order]), [amend_order], [cancel_all_orders]], [set_trading_stop], [[set_margin_mode]]]]], [[[[set_leverage]]]]]]) を明示的に設定しない限り、エラーを返します。 [TRADING_ENABLED=true.
- testnetを最初に使用して下さい。 実験中に[
TESTNET=true]を置いて下さい。TRADING_ENABLED=falseを完全に読み取り専用設定に組み合わせたり、 [READONLY_MODE=true] を設定して、他の設定に関係なくすべてのミュートツールをハードブロックします。 - 注文サイズはキャッピングされます。 [
MAX_ORDER_SIZE_USDT(デフォルト[100]))は、誤って大きな取引を監視する注文の推定値を制限します。 -APIキーが記録されていないか、または露出されていない。 ツールがキーを返すことはありません。キーが存在しているかどうかをログに記録します。 -APIキーをコミットしません。 環境変数だけを通じて提供して下さい.
このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。
README
以下は原文 README の抜粋です。原文を見る。
MCP Bybit API Interface
Bybit MCP (Model Context Protocol) Server. Provides a convenient interface to interact with the Bybit V5 API using MCP tools. Allows fetching market data, managing account information, and placing/canceling orders via API calls wrapped as tools.
⚠️ Security & Safety
This server can place real trades with real money. Read this before configuring it:
- Trading is disabled by default. Mutating tools (
place_order,cancel_order,amend_order,cancel_all_orders,set_trading_stop,set_margin_mode,set_leverage) return an error unless you explicitly setTRADING_ENABLED=true. - Use the testnet first. Set
TESTNET=truewhile you experiment. Combine withTRADING_ENABLED=falsefor a fully read-only setup, or setREADONLY_MODE=trueto hard-block every mutating tool regardless of other settings. - Order size is capped.
MAX_ORDER_SIZE_USDT(default100) limits the estimated notional value of an order to guard against accidental large trades. - API keys are never logged or exposed. No tool returns your keys; logs only report whether a key is present.
- Never commit your API keys. Provide them through environment variables only.
Installation
Requires Python 3.12+. This project uses uv.
git clone https://github.com/dlwjdtn535/mcp-bybit-server.git
cd mcp-bybit-server
uv sync
uv run mcp-bybit-server # runs the MCP server over stdio
After install, the mcp-bybit-server command is the entry point used by the MCP client configs below.
Installing via Smithery
To install this Bybit API Interface server for Claude Desktop automatically via Smithery:
npx -y @smithery/cli install @dlwjdtn535/mcp-bybit-server --client claude
Configuration (Claude Desktop, Cline, Roo Code, etc.)
Add one of the following to your MCP settings file (e.g. claude_desktop_config.json / mcp_settings.json).
Using uv (run from a cloned repo):
{
"mcpServers": {
"bybit": {
"command": "uv",
"args": [
"run",
"--directory",
"/absolute/path/to/mcp-bybit-server",
"mcp-bybit-server"
],
"env": {
"ACCESS_KEY": "YOUR_BYBIT_API_KEY",
"SECRET_KEY": "YOUR_BYBIT_SECRET_KEY",
"TESTNET": "true",
"TRADING_ENABLED": "false"
}
}
}
}
インストール
docker run -i --rm --init -e ACCESS_KEY=YOUR_BYBIT_API_KEY -e SECRET_KEY=YOUR_BYBIT_SECRET_KEY -e TESTNET=true -e TRADING_ENABLED=false -e MAX_ORDER_SIZE_USDT=100 dlwjdtn535/mcp-bybit-server:latest設定
{
"mcpServers": {
"bybit": {
"command": "uv",
"args": [
"run",
"--directory",
"/absolute/path/to/mcp-bybit-server",
"mcp-bybit-server"
],
"env": {
"ACCESS_KEY": "YOUR_BYBIT_API_KEY",
"SECRET_KEY": "YOUR_BYBIT_SECRET_KEY",
"TESTNET": "true",
"TRADING_ENABLED": "false"
}
}
}
}