Binance MCP Server
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| LOG_LEVEL | No | 日志级别:debug / info / warn / error | |
| HTTP_PROXY | No | HTTP 代理,如 http://user:pass@host:8080 | |
| BINANCE_API_KEY | No | 币安 API 密钥 | |
| BINANCE_TESTNET | No | 测试网开关,默认 true | true |
| MCP_SERVER_NAME | No | 服务器名,默认 binance-mcp-server | binance-mcp-server |
| HTTP_FUTURES_BASE | No | 期货端点,留空按 testnet 自动切换 | |
| BINANCE_API_SECRET | No | 币安 API 私钥 |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| market_pingA | 测试与币安交易所 REST API 的连通性。无需参数,成功返回 { ok: true }。 |
| market_timeA | 获取币安交易所服务器时间(毫秒时间戳),用于时钟同步与签名校验。 |
| market_priceB | 获取交易对最新成交价。返回 symbol 与 price(number 类型)。 |
| market_book_tickerA | 获取最优买/卖价与数量(比订单簿轻量)。缺省 symbol 返回全市场(weight 高,慎用)。 |
| market_orderbookA | 获取指定交易对的买卖盘快照。limit 合法值 5/10/20/50/100/500/1000。 |
| market_klinesB | 获取指定交易对与周期的 K 线(含 OHLCV 与成交信息),支持时间范围过滤。 |
| market_24hr_tickerA | 获取 24h 滚动统计(涨跌幅/高低价/成交量额)。缺省 symbol 返回全市场(weight 高,慎用)。 |
| market_mark_priceA | 获取标记价、指数价与资金费率信息。查单交易对资金费率数值(lastFundingRate + nextFundingTime)首选本工具。缺省 symbol 返回全市场(weight 高,慎用)。 |
| market_open_interestA | 获取指定交易对当前未平仓量。 |
| market_funding_rateA | 获取全市场资金费率规则(各币种费率上下限与结算间隔,无 symbol 过滤,weight 高慎用)。查单交易对当前费率数值请用 market_mark_price。 |
| market_funding_rate_historyB | 获取指定交易对的历史资金费率记录。 |
| market_continuous_klinesB | 获取连续合约(如季度/永续)的 K 线。 |
| market_exchange_infoA | 获取交易对精度规格(价格/数量小数位、tickSize、stepSize、最小名义价值)。缺省返回全市场(数据量大,慎用)。 |
| market_overviewA | 一次返回单个交易对的完整分析数据(行情/流动性/资金/情绪/指标/派生量),供 AI 直接解读并给出分析结论。 |
| indicator_smaA | 直连版:拉取 K 线后计算简单移动平均,返回稳定 SMA 序列(period 为周期)。 |
| indicator_emaB | 直连版:拉取 K 线后计算指数移动平均,返回 EMA 序列(以首价为平滑种子,period 为周期)。 |
| indicator_macdC | 直连版:拉取 K 线后计算 MACD,返回稳定三元组序列(macd / signal / histogram)。 |
| indicator_rsiA | 直连版:拉取 K 线后计算 RSI,返回稳定序列(0-100,Wilder 平滑,period 为周期)。 |
| indicator_stochB | 直连版:拉取 K 线后计算随机指标,返回稳定 K / D / J 三元组序列(kPeriod / kSmoothing / dPeriod 可调)。 |
| indicator_cciB | 直连版:拉取 K 线后计算 CCI,返回稳定序列(以典型价离差归一,可正可负)。 |
| indicator_mfiB | 直连版:拉取 K 线后计算 MFI,返回稳定序列(0-100,带成交量的 RSI 变体)。 |
| indicator_adxA | 直连版:拉取 K 线后计算 ADX,返回稳定序列(衡量趋势强度,0-100,与方向无关)。 |
| indicator_super_trendA | 直连版:拉取 K 线后计算 SuperTrend,返回稳定序列(supertrend 值 + BULLISH/BEARISH 方向)。period 为 ATR 周期,multiplier 为通道倍数。 |
| indicator_vwapB | 直连版:拉取 K 线后计算累计 VWAP,返回稳定序列。 |
| indicator_atrA | 直连版:拉取 K 线后计算 ATR,返回稳定序列(衡量波动,默认 Wilder 平滑)。 |
| indicator_bbandsC | 直连版:拉取 K 线后计算布林带,返回稳定三元组序列(lower / middle / upper)。 |
| indicator_obvC | 直连版:拉取 K 线后计算 OBV,返回稳定序列(结合开盘与收盘方向的累计成交量)。 |
| indicator_ma_crossA | 直连版:拉取 K 线后检测双均线交叉状态(golden_cross / death_cross / none)与多空偏向。 |
| indicator_macd_rsiB | 直连版:拉取 K 线后同时计算 MACD 与 RSI 最新值,返回完整数据(不输出主观信号)。 |
| indicator_bb_rsiB | 直连版:拉取 K 线后同时计算布林带完整数据、RSI、%B 与价格分区。 |
| indicator_divergenceA | 直连版:拉取 K 线后检测价格与 RSI 的顶背离 / 底背离(前后半窗极值对比),返回背离类型与全部极值明细。 |
| indicator_volatility_regimeB | 直连版:基于布林带宽百分位判断 squeeze / low_volatility / normal / high_volatility / expansion,辅助仓位管理。 |
| indicator_multiA | 直连版:单次拉取 K 线,批量计算 RSI(14) + MACD(12/26/9) + BBands(20/2) 最新值。可选启用 ATR / ADX / Stoch。替代逐个调用 3-6 次网络往返。 |
| analysis_sharpeA | 直连版:拉取 K 线推导标的收益率序列,计算年化收益/波动、夏普与索提诺。度量对象为标的价格序列的风险特征(非账户绩效);periodPerYear 缺省按 interval 自动推断(1h→8760、1d→365);严肃评估建议使用 1d×365 及以上大窗口(小窗口年化统计意义有限)。 |
| analysis_drawdownA | 直连版:拉取 K 线以收盘价为净值序列,计算标的最大回撤(负数)与峰谷位置(非账户绩效)。窗口越大越接近历史极值,建议 1d×365 起评估最大可能回撤。 |
| analysis_varA | 直连版:拉取 K 线推导收益率,按历史模拟法计算置信度下的 VaR 与 CVaR(负值=损失;度量标的单根 K 线尾部风险,非账户绩效)。可作止损距离参考:止损应 ≥ 单根 VaR × 杠杆,否则易被正常波动扫损。 |
| trading_balanceA | 返回:账户全部资产余额(含未实现盈亏)。 |
| trading_accountA | 返回:钱包余额 / 未实现盈亏 / 保证金等汇总。 |
| trading_positionsB | 返回:当前持仓列表。缺省 symbol 返回全部持仓。 |
| trading_incomeC | 返回:资金费/手续费/已实现盈亏等流水记录。income 负数为支出。incomeType 合法值与官方枚举一致(如 FUNDING_FEE / COMMISSION / REALIZED_PNL)。 |
| trading_commissionA | 返回:指定交易对的 maker/taker 费率(含 VIP 折扣与 BNB 抵扣)。 |
| trading_get_orderB | 返回:指定订单详情。orderId 与 origClientOrderId 二选一。 |
| trading_open_ordersB | 返回:当前全部未成交订单。symbol 可选。 |
| trading_order_historyB | 返回:指定交易对的历史订单(时间倒序)。 |
| trading_force_ordersC | 返回:强平/自动减仓(ADL)订单记录。 |
| trading_tradesC | 返回:指定交易对的逐笔成交记录。 |
| trading_place_orderA | 下单(自动精度规整)。dryRun=true 时仅校验不提交。reduceOnly 仅单向模式可用。timeInForce 为 GTD 时必须提供 goodTillDate。持仓模式约束:单向省略 positionSide,双向(Hedge)必须传 positionSide(LONG/SHORT),可用 trading_position_mode 查询。 |
| trading_cancel_orderA | 撤销指定订单。orderId 与 origClientOrderId 二选一。 |
| trading_cancel_allA | 撤销指定交易对全部未成交订单。 |
| trading_modify_orderA | 修改未成交订单(仅 LIMIT)。orderId 与 origClientOrderId 二选一。 |
| trading_set_leverageC | 设置交易对杠杆倍数(1~125,视交易对而定)。 |
| trading_set_margin_typeA | 切换 ISOLATED(逐仓)/ CROSSED(全仓)。存在持仓时可能被拒绝。 |
| trading_position_marginA | 调整逐仓保证金。type: 1=增加,2=减少(官方枚举);amount 恒为正数。双向(Hedge)模式下须提供 positionSide。 |
| trading_position_modeA | 查询并切换持仓模式。dual=true 双向(Hedge),false 单向(One-way)。缺省 dual 时仅查询。 |
| trading_algo_ordersA | 返回:当前挂出的未触发条件单。symbol 可选。 |
| trading_place_algoA | 创建条件委托(止损/止盈/追踪止损)。type 决定必填参数:
|
| trading_cancel_algoB | 撤销条件单。clientAlgoId 与 algoId 二选一。 |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/iuk-ink/binance-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server