# Bitget Wallet MCP Server An [MCP (Model Context Protocol)](https://modelcontextprotocol.io) server that exposes Bitget Wallet on-chain API as tools for AI agents. ## Features ### ๐Ÿ“Š Market Data (21 tools) - **Token Search** โ€” v3 keyword search with ordering + v2 broader DEX search - **Token Info** โ€” price, market cap, holders, social links (single + batch) - **Market Info** โ€” price, MC, FDV, liquidity, holders, narratives, pool list - **K-line** โ€” candlestick data + simplified K-line with smart money/KOL overlays - **Transaction Stats** โ€” buy/sell volume, trader counts (single + batch) - **Trading Dynamics** โ€” buy/sell pressure across time windows - **Transaction List** โ€” recent trades with tag filtering (KOL, smart money) - **Holder Analysis** โ€” distribution, top holders, special holder filters - **Profit Analysis** โ€” profitable vs losing addresses, top earners per token - **Developer Analysis** โ€” dev history, rug rate, project migration status - **Rankings** โ€” top gainers, top losers, hot picks - **Liquidity Pools** โ€” LP pool information per token - **Launchpad Scanning** โ€” new tokens on pump.fun etc. with filters - **Historical Tokens** โ€” discover tokens by creation timestamp - **Security Audit** โ€” honeypot detection, permission checks, tax analysis ### ๐Ÿ” Smart Money (1 tool) - **Address Discovery** โ€” find KOL and smart money wallets with PnL, win rate, trade count filters ### ๐Ÿ“ˆ RWA Stock Trading (6 tools) - **Ticker List** โ€” available RWA stocks (NVDA, TSLA, AAPL, etc.) on BNB/ETH - **Stock Info** โ€” market status, trading limits, description - **Order Price** โ€” pre-trade buy/sell price display - **K-line** โ€” stock price charts - **Trading Config** โ€” stablecoins, slippage, amount limits, gas info - **Portfolio** โ€” user's RWA holdings ### ๐Ÿ’ฑ Swap (7 tools) - **Quote** โ€” multi-market quotes with `requestId` - **Confirm** โ€” second quote with MEV protection, gas features - **Make Order** โ€” create order, get unsigned txs - **Send** โ€” submit signed transactions - **Order Details** โ€” track order status (init โ†’ processing โ†’ success/failed) - **Check Token** โ€” pre-trade risk check - **Token List** โ€” popular tokens per chain ### ๐Ÿ” Token Transfer (3 tools) - **Make Transfer Order** โ€” create transfer order, get unsigned tx data (supports gasless) - **Submit Transfer** โ€” submit signed transfer transaction - **Get Transfer Order** โ€” poll transfer order status (PENDING โ†’ PROCESSING โ†’ SUCCESS/FAILED) ### ๐Ÿ’ฐ Balance (1 tool) - **Batch Balance** โ€” multi-chain token balances with USD values ### Supported Chains Ethereum ยท Solana ยท BNB Chain ยท Base ยท Arbitrum ยท Tron ยท TON ยท Sui ยท Optimism ยท Polygon ยท Morph ## Quick Start ### Install ```bash pip install -e . ``` ### Run ```bash python server.py ``` Or via MCP CLI: ```bash mcp run server.py ``` ### Configure in Claude Desktop Add to your `claude_desktop_config.json`: ```json { "mcpServers": { "bitget-wallet": { "command": "python", "args": ["/path/to/bitget-wallet-mcp/server.py"] } } } ``` ### Configure in Cursor / Windsurf Add to your MCP settings: ```json { "bitget-wallet": { "command": "python", "args": ["/path/to/bitget-wallet-mcp/server.py"] } } ``` ## Tools (39) ### Market Data | Tool | Description | |------|-------------| | `token_info` | Detailed token info (price, market cap, supply, holders) | | `token_price` | Quick price lookup | | `batch_token_info` | Multi-token info in one call | | `search_tokens` | v3 token search with ordering | | `search_tokens_v2` | v2 broader search (DEX tokens) | | `coin_market_info` | Market info + pool list + narratives | | `coin_dev` | Developer history and rug rate | | `kline` | Candlestick data (1s to 1w periods) | | `simple_kline` | K-line with smart money/KOL/developer overlays | | `tx_info` | Transaction volume and trader stats | | `batch_tx_info` | Batch transaction stats | | `trading_dynamics` | Buy/sell pressure across time windows | | `transaction_list` | Recent trades with tag filtering | | `holders_info` | Holder distribution and top holders | | `profit_address_analysis` | Profitable vs losing address stats | | `top_profit` | Top profitable addresses per token | | `rankings` | Top gainers / losers / hot picks | | `liquidity` | Liquidity pool info | | `launchpad_tokens` | Launchpad scanning with filters | | `historical_coins` | Discover tokens by creation time | | `security_audit` | Contract security checks | ### Smart Money | Tool | Description | |------|-------------| | `smart_money_addresses` | KOL/smart money address discovery with filters | ### RWA Stock Trading | Tool | Description | |------|-------------| | `rwa_ticker_list` | Available RWA stocks | | `rwa_config` | Trading config (stablecoins, limits) | | `rwa_stock_info` | Stock info and market status | | `rwa_order_price` | Pre-trade buy/sell price | | `rwa_kline` | Stock K-line charts | | `rwa_my_holdings` | User's RWA portfolio | ### Swap | Tool | Description | |------|-------------| | `swap_quote` | Multi-market swap quotes | | `swap_confirm` | Confirm with MEV protection | | `swap_make_order` | Create order (unsigned txs) | | `swap_send` | Submit signed transactions | | `swap_get_order_details` | Track order status | | `check_swap_token` | Pre-trade risk check | | `get_token_list` | Popular tokens per chain | ### Token Transfer | Tool | Description | |------|-------------| | `transfer_make_order` | Create transfer order (unsigned tx data, supports gasless) | | `transfer_submit` | Submit signed transfer transaction | | `transfer_get_order` | Poll transfer order status | ### Balance | Tool | Description | |------|-------------| | `balance` | Batch balance + USD values | > โš ๏ธ **Amounts are human-readable** โ€” pass `"0.1"` for 0.1 USDT, NOT wei/lamports. ## Environment Variables | Variable | Default | Description | |----------|---------|-------------| | `BGW_WALLET_ID` | _(empty)_ | Wallet ID for Social Login Wallet users (optional) | No API key required โ€” uses SHA256 hash signing (BKHmacAuth). ## Security - Only communicates with `https://copenapi.bgwapi.io` โ€” no other external endpoints - No API keys or secrets โ€” SHA256 hash signing with zero credentials - No `eval()` / `exec()` or dynamic code execution - No file system access outside the project directory - No data collection, telemetry, or analytics - No access to sensitive files (SSH keys, credentials, wallet files, etc.) - Dependencies: `requests`, `mcp` only - SlowMist security review: ๐ŸŸข LOW risk - We recommend auditing the source yourself before installation ## Related Projects - [bitget-wallet-skill](https://github.com/bitget-wallet-ai-lab/bitget-wallet-skill) โ€” OpenClaw AI Agent skill - [bitget-wallet-cli](https://github.com/bitget-wallet-ai-lab/bitget-wallet-cli) โ€” CLI tool for terminal users ## License MIT