
Bitget Agent Mcp
io.github.Bitget-AI由 GitHub 帳號 Bitget-AI 發布v3.0.2更新於 Oct 24, 2026
Official Bitget MCP Server for the Unified Trading Account (UTA v3) API.
概覽
Bitget 官方 MCP 伺服器,讓桌面 AI 助理查詢加密貨幣行情,並在 Bitget 交易帳戶上下單、管理與轉移資金。
- 可以做什麼
- 透過一組精選的意圖動詞與兩個中繼工具 discover 和 raw,把 Bitget 統一交易帳戶(UTA v3)API 提供給 MCP 用戶端。動詞涵蓋行情資料、現貨與合約下單、持倉、帳戶總覽與設定、轉帳、入金、出金、子帳戶、借貸與稅務。預設設定載入 12 個動詞加上 discover 和 raw,代理會視需要深入查詢參數結構。行情資料是公開的,帳戶操作則需要 API 憑證。
- 適用情境
- 當你希望 Claude Desktop、Cursor、Continue、Windsurf 或 ChatGPT Desktop 等桌面 AI 用戶端以自然語言讀取 Bitget 行情或操作 Bitget 帳戶時使用。它也適合在 Bitget 模擬環境中演練策略,或僅以唯讀方式檢視帳戶。
- 執行需求
- 透過 npx 以 stdio 在本機執行,需要 Node.js 20 或更新版本,以及支援 MCP 的桌面用戶端。私有操作需要具備 Read 與 Trade 權限的 Bitget API 金鑰,透過環境變數 BITGET_API_KEY、BITGET_SECRET_KEY 和 BITGET_PASSPHRASE 提供。需要連線至 api.bitget.com;選用變數可設定 API 基礎網址、逾時與重試次數。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Bitget Agent Mcp,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
bitget-agent-mcp — Official Bitget MCP Trading Server
Connect Claude Desktop, Cursor, Continue, Windsurf & ChatGPT to Bitget via the Model Context Protocol — trade crypto with natural language.
[Bitget Agent MCP continuous integration build status] [Bitget Agent MCP npm package version - latest release on npm registry] [Bitget Agent MCP monthly downloads count from npm] [Model Context Protocol MCP compatible AI integration standard] [Requires Node.js version 20 or higher runtime environment] [Supports macOS Linux Windows operating systems] [MIT open source license - free for commercial use]
Quick Start · Capabilities · How It Works · Installation · Configuration · Security · Troubleshooting · FAQ
Overview
bitget-agent-mcp is the official Model Context Protocol (MCP) server for Bitget, enabling desktop AI agents like Claude Desktop, Cursor, Continue, Windsurf, and ChatGPT Desktop to operate your Bitget account through natural-language commands.
It is built on the Bitget Unified Trading Account (UTA / v3) API and covers 89 trading operations across market data, spot, futures, account & funds management, sub-accounts, loans, and tax. Crucially, it does not flood your model with one tool per endpoint. Instead it exposes a small, progressively-discoverable intent surface of 14 curated intent verbs (the default profile loads 12 verbs + discover + raw = 14 tools) so AI hosts get full capability without the context bloat and tool-selection errors that plague endpoint-per-tool servers.
Part of Bitget Agent Hub — the official open-source AI ecosystem for Bitget, including the CLI, SDK, installer, and market-analysis skills.
Quick Start
Prerequisites
- Node.js ≥ 20 (download)
- Bitget API Key (create here) — enable Read + Trade permissions
- An MCP-capable AI host (Claude Desktop, Cursor, Continue, Windsurf, ChatGPT Desktop, or any stdio MCP client)
One-Step Install (Recommended)
Paste this prompt into your AI agent (Claude Desktop / Cursor / etc.):
The agent will detect your tool, add the npx server entry, wire up credentials, and verify the connection.
Manual Install
Prefer to edit config files yourself? Jump to Configuration for per-tool JSON snippets. The command is always:
What You Can Do
Once configured, your AI gains native access to Bitget's trading stack through natural language. A few examples (every one maps to a real operation in the surface):
Market data (the market verb) is public and works without API credentials; everything that touches your account requires keys.
Advanced Modes
--read-only— Blocks every write operation for the session. The verbs stay visible, but any order, transfer, cancellation, or withdrawal is rejected before it reaches Bitget. Ideal for safe exploration. (Mutually exclusive with--paper-trading.)--paper-trading— Routes signed requests to Bitget's Demo Trading environment (adds thepaptrading: 1header). Requires a separate Demo API Key. Perfect for rehearsing strategies risk-free.--modules <list>— Load only the modules you need. Default:account,trade,market. On-demand:strategy,cryptoloans,tax.--surface <intent|full>—intent(default) exposes the curated verbs.fulladditionally emits one tool per underlying v3 endpoint.
How an Agent Uses It
The intent surface is progressively discoverable. Rather than reading every schema up front, the agent follows discover → drill down → execute:
If the prompt already implies the verb and arguments, the agent skips discovery and calls directly. discover({ search: "funding" }) keyword-searches the whole surface when the domain is unknown. The two meta-tools are always present:
discover— progressive introspection of the surface.raw— an escape hatch that reaches any v3 operation byoperationIdfor the long tail. (In practice every operation is also covered by a verb, sorawis rarely needed.)
Write Safety
- Ordinary writes execute immediately.
- High-risk / irreversible operations (e.g.
cancelAll,withdraw) return{ confirmationRequired: true }unless you passconfirm: true. - Any write accepts
dryRun: trueto preview the would-send request without sending it.
MCP tool annotations are derived from the SDK's riskLevel (read / write / high), so hosts can flag destructive operations before the model invokes them.
Architecture
How it works:
- Your AI host launches the MCP server locally via
npxover stdio — no network listener, no proxy. - Credentials are passed as environment variables from your host's config; the server never stores, logs, or proxies them.
- All authenticated requests are signed in-process with HMAC-SHA256 and sent directly to Bitget's official API.
- Responses flow back through MCP to your AI conversation.
All the "smarts" — discovery, intent routing, the write-safety gate, signing, and response shaping — live in @bitget-ai/bitget-agent-sdk. This package is a thin stdio adapter on top of it.
Installation
Supported AI Hosts
Step-by-Step Setup
1. Get Your API Key
- Log in to bitget.com
- Go to Profile → API Management
- Click Create API Key
- Enable Read and Trade permissions
- Copy the three values:
API Key,Secret Key,Passphrase
⚠️ Security note: store these securely. Never share them or commit them to version control.
2. Configure your host
Use the one-step prompt, or add the server to your host's MCP config manually (see Configuration).
3. Verify
Ask your AI: "What Bitget tools are available?" You should see verbs like market, order, position, account_overview, plus discover and raw.
Configuration
Claude Desktop
Edit claude_desktop_config.json:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json - Linux:
~/.config/Claude/claude_desktop_config.json
Restart Claude Desktop after saving.
Cursor
Settings → MCP → Add New Server:
⚠️ Cursor tool limit: Cursor caps total MCP tools at 40 across all servers. The default Bitget profile loads 14 tools (12 intent verbs +
discover+raw), leaving 26 slots for other servers.--modules allyields 16 tools.
Continue / Windsurf / ChatGPT Desktop / other MCP hosts
Use the same npx -y @bitget-ai/bitget-agent-mcp command and pass credentials via environment variables, following your tool's MCP configuration docs. If the host speaks MCP over stdio, it works.
Custom Configuration Examples
Read-only mode (safe for exploration):
Paper trading (Demo environment — use Demo API keys):
Load extra modules:
CLI Options & Environment Variables
Without API credentials, only public/read (market data) operations succeed.
Modules & Intent Verbs
The default profile loads account,trade,market. The full set spans 6 modules and 14 curated intent verbs:
Always present regardless of module: discover (introspection) and raw (reach any v3 operation by operationId).
Security
Credential Protection
- ✅ Never leaves your machine — API keys are read from environment variables only, never logged, written to disk, or proxied through any server.
- ✅ Local signing — all authenticated requests are signed in-process with HMAC-SHA256 before connecting directly to Bitget's official API.
- ✅ Runs locally over stdio — no network listener, no remote endpoint to harden, no telemetry.
Safety Modes
--read-only— blocks all write operations for the session; the AI can query but cannot place orders, transfer funds, cancel, or withdraw.--paper-trading— routes signed requests to Bitget's Demo environment. No real funds involved. Requires a separate Demo API Key.- Write-safety gate — high-risk/irreversible operations require an explicit
confirm: true, and any write supportsdryRun: truefor a no-network preview.
Rate Limiting
The SDK applies a client-side retry/rate-limit policy that protects against AI loops hammering Bitget's API. If Bitget returns a 429, it backs off and retries automatically.
Troubleshooting
"Command not found: npx"
Cause: Node.js not installed or not on PATH. Fix: install Node.js ≥ 20 from nodejs.org and restart your terminal/host.
"Authentication failed" or "Invalid API key"
Likely causes & fixes:
- API key lacks permissions → enable Read + Trade at API Management.
- Passphrase is wrong → copy all three values exactly as shown.
- Live keys used with
--paper-trading(or vice versa) → use a Demo API Key for paper trading.
"Tool not recognized by AI"
Cause: MCP server not configured correctly, or the host wasn't restarted. Fix: validate the config file is valid JSON, restart the host completely, then ask "List available MCP tools."
Cursor shows fewer Bitget tools than expected
Cause: other MCP servers consuming Cursor's 40-tool cap. The Bitget default profile is 14 tools.
Fix: remove unused MCP servers, or use --modules to load only what you need.
"Rate limit exceeded"
Cause: too many rapid calls. Fix: the SDK auto-throttles, but if you hit Bitget's server-side limit, wait ~60s before retrying. Avoid asking the AI to place hundreds of orders in quick succession.
MCP server won't start
Check: Node.js version (node --version ≥ 20), network reachability to api.bitget.com, and that outbound HTTPS isn't blocked by a firewall.
Updates
Because installation uses npx -y, the latest version is pulled automatically each time your AI host starts — no manual updates needed.
To force-refresh the npm cache:
To upgrade the whole Bitget AI toolkit at once, use the installer in agent_hub.
Related Projects
FAQ
What is bitget-agent-mcp?
It's the official MCP (Model Context Protocol) server for Bitget. It exposes 89 Bitget UTA v3 operations to desktop AI clients (Claude Desktop, Cursor, Windsurf, ChatGPT Desktop, …) through 14 curated intent verbs plus a discover introspection tool and a raw escape hatch — over the MCP standard.
How is this different from agent-cli?
bitget-agent-mcp— for desktop AI hosts that speak MCP (Claude Desktop, Cursor, …).agent-cli(bgc) — for terminal AI (Claude Code, Codex CLI) that runs commands in your shell.
Both sit on the same SDK and expose the same intent surface — pick the one that matches your AI tool.
Why intent verbs instead of one tool per endpoint?
Endpoint-per-tool servers advertise one tool per endpoint, which bloats the model's context and degrades tool-selection accuracy. The intent surface keeps the default tool list at 14 tools (12 verbs + discover + raw) while still covering all 89 default-exposed operations directly — and raw reaches any operation by operationId when you need the long tail. The agent uses discover to drill into detail only when it needs to.
Which modules are loaded by default?
Default: account (39 ops), trade (17 ops), market (16 ops) = 72 operations, exposed through 12 intent verbs plus discover and raw (14 tools total). Load more with --modules strategy,cryptoloans,tax or --modules all (which reaches the 14 verbs across 89 endpoints).
Does Cursor have a tool limit?
Yes — Cursor caps total MCP tools at 40. The default Bitget profile loads 14 tools, well within the cap (26 slots free). --modules all yields 16 tools.
How do I prevent accidental orders?
Add "--read-only" to your config args. Every write operation is rejected for the session — the AI can query balances and markets but cannot place orders, transfer funds, cancel, or withdraw.
Can I test without risking real funds?
Yes — use paper trading: create a Demo API Key, set the Demo credentials as environment variables, and add "--paper-trading" to your args. Signed requests route to Bitget's Demo environment.
Is my API key safe?
Yes. Credentials live only in your host's MCP config, are never proxied through any server, are signed locally with HMAC-SHA256 before reaching Bitget, and are never logged or written to disk by this server.
Is it free?
Yes — MIT-licensed and free for personal and commercial use. The MCP server is maintained by Bitget at no cost.
What AI tools are supported?
Claude Desktop, Cursor, Continue, ChatGPT Desktop, Windsurf, and any MCP client that communicates over stdio transport.
Contributing
Issues and pull requests are welcome.
- Report bugs / request features: GitHub Issues
- Security issues: please report privately via GitHub's security advisory feature on the repository — do not open a public issue.
License
MIT License — free for personal and commercial use.
⚠️ Risk disclaimer: trading cryptocurrency carries substantial risk. You are solely responsible for any orders your AI agent places on your behalf. Use --read-only and --paper-trading to rehearse safely before going live. Past performance does not guarantee future results.
Official Bitget Agent Hub tool · Part of the Bitget open-source AI ecosystem · Foundation: agent-sdk · Other surfaces: agent-cli · agent-skill · Market signals: bitget-signal
來源:README.md,提交 486a7c5
工具
0版本歷史
1- v3.0.2最新Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分