Bitget MCP Server

Bitget MCP Server

The official Bitget MCP (Model Context Protocol) server. Gives AI assistants direct, real-time access to the Bitget exchange through natural language.

Category
访问服务器

README

<p align="center"> <img src="assets/logo.png" alt="Bitget" width="120" /> </p>

<h1 align="center">Bitget Agent Hub</h1>

<p align="center"> <strong>Connect AI assistants to Bitget — trade, query, and manage your crypto portfolio through natural language.</strong> </p>

<p align="center"> <a href="https://www.npmjs.com/package/bitget-mcp-server"><img src="https://img.shields.io/npm/v/bitget-mcp-server.svg?style=flat-square&color=cb3837" alt="MCP Server" /></a> <a href="https://www.npmjs.com/package/bitget-client"><img src="https://img.shields.io/npm/v/bitget-client.svg?style=flat-square&color=0070f3" alt="CLI" /></a> <a href="https://www.npmjs.com/package/bitget-core"><img src="https://img.shields.io/npm/v/bitget-core.svg?style=flat-square&color=6f42c1" alt="Core" /></a> <a href="https://www.npmjs.com/package/bitget-skill"><img src="https://img.shields.io/npm/v/bitget-skill.svg?style=flat-square&color=28a745" alt="Skill" /></a> <a href="https://modelcontextprotocol.io"><img src="https://img.shields.io/badge/MCP-compatible-8A2BE2?style=flat-square" alt="MCP compatible" /></a> <a href="LICENSE"><img src="https://img.shields.io/npm/l/bitget-mcp-server.svg?style=flat-square" alt="license" /></a> </p>


Bitget Agent Hub connects AI assistants and automation tools to the Bitget exchange. Two integration modes, plus a built-in Skill Hub for market analysis:

  • MCP Server — for Claude Code, Cursor, Codex, and any MCP-compatible AI
  • CLI (bgc) + Skill — for shell-based AI agents (Claude Code skills, OpenClaw)

Once configured, your AI can check prices, query balances, place and cancel orders, manage futures positions, set leverage, and transfer funds — all through natural language.


Installation

Use bitget-hub to install, upgrade, and manage all Bitget Agent Hub packages. No installation required — run directly via npx.

Quick Start

# Install everything and deploy skills to Claude Code (default)
npx bitget-hub upgrade-all --target claude

This installs all three packages globally and deploys skills to Claude Code:

Package What it does
bitget-client CLI tool (bgc) — shell access to all Bitget tools
bitget-skill Trading skill — AI uses bgc as a live API bridge
bitget-skill-hub 5 market-analysis skills (macro, sentiment, technical, news, on-chain)

Deploy Skills to AI Tools

Skills can be deployed to Claude Code, Codex, and OpenClaw:

# Deploy to a specific tool
npx bitget-hub install --target codex

# Deploy to multiple tools
npx bitget-hub install --target claude,codex

# Deploy to all supported tools
npx bitget-hub install --target all

# Deploy a single skill package
npx bitget-hub install bitget-skill --target claude

Install or Upgrade Individual Packages

# Upgrade a single package
npx bitget-hub upgrade bitget-client

# Upgrade and deploy skills
npx bitget-hub upgrade bitget-skill --target claude

# Rollback to a specific version
npx bitget-hub rollback bitget-skill --to 1.0.0

Interactive Mode

npx bitget-hub

Launches an interactive menu to upgrade, rollback, or install skills — no flags needed.

Set Credentials

All integrations need a Bitget API key for private endpoints (account, trading). Public market data works without credentials.

  1. Log in to bitget.comSettings → API Management
  2. Create a new API key — select Read and/or Trade permissions
  3. Set environment variables:
export BITGET_API_KEY="your-api-key"
export BITGET_SECRET_KEY="your-secret-key"
export BITGET_PASSPHRASE="your-passphrase"

MCP Server

Gives AI assistants direct access to Bitget tools via the Model Context Protocol. No global install needed — runs via npx.

Claude Code

claude mcp add -s user \
  --env BITGET_API_KEY=your-api-key \
  --env BITGET_SECRET_KEY=your-secret-key \
  --env BITGET_PASSPHRASE=your-passphrase \
  bitget \
  -- npx -y bitget-mcp-server

Codex

Add to ~/.codex/config.toml:

[[mcp_servers]]
name = "bitget"
command = "npx"
args = ["-y", "bitget-mcp-server"]

[mcp_servers.env]
BITGET_API_KEY = "your-api-key"
BITGET_SECRET_KEY = "your-secret-key"
BITGET_PASSPHRASE = "your-passphrase"

OpenClaw

Add to your OpenClaw agent config:

{
  "mcp_servers": {
    "bitget": {
      "command": "npx",
      "args": ["-y", "bitget-mcp-server"],
      "env": {
        "BITGET_API_KEY": "your-api-key",
        "BITGET_SECRET_KEY": "your-secret-key",
        "BITGET_PASSPHRASE": "your-passphrase"
      }
    }
  }
}

→ See docs/packages/bitget-mcp.md for more clients (Claude Desktop, Cursor, VS Code Copilot, Windsurf).


CLI Tool (bgc)

A command-line interface for all Bitget tools. Outputs JSON — ideal for scripting and AI agent shell use.

# Market data (no credentials needed)
bgc spot spot_get_ticker --symbol BTCUSDT

# Account queries
bgc account get_account_assets

# Trading
bgc spot spot_place_order --orders '[{"symbol":"BTCUSDT","side":"buy","orderType":"limit","price":"95000","size":"0.01"}]'

Skill Hub

5 market-analysis skills for Claude Code, Codex, and OpenClaw. Each skill instructs the AI how to use the market-data MCP server to deliver analyst-grade outputs.

Skill What it does
macro-analyst Macro & cross-asset analysis — Fed policy, yield curve, BTC vs DXY/Nasdaq/Gold
market-intel On-chain & institutional intelligence — ETF flows, whale activity, DeFi TVL
news-briefing News aggregation & narrative synthesis — morning briefings, keyword search
sentiment-analyst Sentiment & positioning — Fear & Greed, long/short ratios, funding rates
technical-analysis Technical analysis — 23 indicators across 6 categories

The technical-analysis skill requires Python: pip install pandas numpy

→ See docs/skill-hub.md for full documentation.


Modules

Module Tools Loaded by default
spot 13
futures 14
account 8
margin 7
copytrading 5
convert 3
earn 3
p2p 2
broker 3

Default: spot + futures + account = 36 tools (fits within Cursor's 40-tool limit). Load everything: --modules all


Security

  • Credentials via environment variables only — never hardcoded or logged
  • --read-only flag disables all write operations at server level
  • All authenticated requests signed with HMAC-SHA256
  • Client-side rate limiting prevents accidental API abuse
  • Write operations (orders, transfers) require explicit confirmation before execution

Development

# Prerequisites: Node.js ≥ 18, pnpm ≥ 8
pnpm install
pnpm -r build
pnpm -r test

License

MIT

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选