Skip to content

MCP Server ​

MCP (Model Context Protocol) is a standardized protocol that allows AI clients to securely call external tools. toobit-trade-mcp implements this protocol, providing 66 trading tools for AI use.

Launch Options ​

Use CaseCommand
Market data only (no Key needed)toobit-trade-mcp --modules market
Full functionalitytoobit-trade-mcp --modules all
Read-only monitoringtoobit-trade-mcp --read-only
Spot onlytoobit-trade-mcp --modules market,spot
Futures onlytoobit-trade-mcp --modules market,futures
Specific profiletoobit-trade-mcp --profile sub --modules all
Disable loggingtoobit-trade-mcp --modules all --no-log

Permissions ​

The market module requires no API Key — all endpoints are publicly accessible. Other modules require API Key read permissions; write operations (placing orders, canceling, etc.) also require trade permissions.

Symbol Format ​

Endpoint TypeSymbol FormatExample
Spot (ticker, depth, candles, orders, etc.)No separator, uppercaseBTCUSDT, ETHUSDT
Futures (funding rate, mark price, open interest, long-short ratio, contract ticker, insurance fund, risk limits, place order, positions, leverage, etc.)Contract format with hyphensBTC-SWAP-USDT, ETH-SWAP-USDT

Futures-specific tools in the market module (market_get_mark_price, market_get_funding_rate, market_get_open_interest, market_get_long_short_ratio, market_get_contract_ticker_*, market_get_insurance_fund, market_get_risk_limits) and all futures_* tools require the contract symbol format BTC-SWAP-USDT.

Tool Reference ​

market — Market Data (21 tools, public) ​

ToolDescription
market_get_server_timeGet Toobit server time
market_get_exchange_infoTrading rules and symbol information
market_get_depthOrder book depth
market_get_merged_depthMerged order book depth
market_get_tradesRecent trades
market_get_klinesCandlestick (OHLCV) data
market_get_ticker_24hr24h price change statistics
market_get_ticker_priceLatest price
market_get_book_tickerBest bid/ask price
market_get_index_klinesIndex candlesticks
market_get_mark_priceMark price
market_get_mark_price_klinesMark price candlesticks
market_get_funding_rateCurrent funding rate
market_get_funding_rate_historyHistorical funding rates
market_get_open_interestOpen interest
market_get_long_short_ratioLong/short ratio
market_get_contract_ticker_24hrFutures 24h ticker
market_get_contract_ticker_priceFutures latest price
market_get_index_priceIndex price
market_get_insurance_fundInsurance fund balance
market_get_risk_limitsRisk limit configuration

spot — Spot Trading (10 tools) ​

ToolDescriptionType
spot_place_orderPlace spot order (LIMIT / MARKET / LIMIT_MAKER)Write
spot_place_order_testTest order (not actually submitted)Read
spot_batch_ordersBatch place ordersWrite
spot_cancel_orderCancel orderWrite
spot_cancel_open_ordersCancel all open ordersWrite
spot_cancel_order_by_idsBatch cancel by IDsWrite
spot_get_orderQuery single orderRead
spot_get_open_ordersQuery open ordersRead
spot_get_trade_ordersQuery order historyRead
spot_get_fillsQuery trade recordsRead

futures — USDT-M Perpetual Futures (25 tools) ​

ToolDescriptionType
futures_place_orderOpen/close position (BUY_OPEN / SELL_CLOSE, etc.)Write
futures_batch_ordersBatch place ordersWrite
futures_cancel_orderCancel orderWrite
futures_cancel_all_ordersCancel all ordersWrite
futures_cancel_order_by_idsBatch cancel by IDsWrite
futures_amend_orderAmend orderWrite
futures_get_orderQuery single orderRead
futures_get_open_ordersQuery open ordersRead
futures_get_history_ordersQuery order historyRead
futures_get_positionsQuery current positionsRead
futures_get_history_positionsQuery position historyRead
futures_set_leverageSet leverageWrite
futures_get_leverageQuery leverage settingsRead
futures_set_margin_typeSwitch isolated/cross marginWrite
futures_adjust_marginAdjust marginWrite
futures_set_trading_stopSet take-profit/stop-lossWrite
futures_flash_closeFlash close positionWrite
futures_reverse_positionReverse positionWrite
futures_auto_add_marginAuto add marginWrite
futures_get_fillsQuery trade recordsRead
futures_get_balanceQuery futures balanceRead
futures_get_balance_flowQuery balance flowRead
futures_get_commission_rateQuery commission rateRead
futures_get_today_pnlQuery today's PnLRead

account — Account Management (10 tools) ​

ToolDescriptionType
account_get_infoQuery spot account balanceRead
account_get_balance_flowQuery balance flowRead
account_get_sub_accountsQuery sub-account listRead
account_sub_transferParent-child account transferWrite
account_check_api_keyVerify API Key infoRead
account_withdrawWithdrawWrite
account_get_deposit_addressQuery deposit addressRead
account_get_deposit_ordersQuery deposit recordsRead
account_get_withdraw_ordersQuery withdrawal recordsRead
trade_get_historyQuery local audit logRead

system — System ​

ToolDescription
system_get_capabilitiesReturns server capability snapshot (module availability, auth status, read-only mode, etc.)

Released under the MIT License.