BitCLI

io.github.BitCLI-io由 GitHub 账号 BitCLI-io 发布v1.0.0更新于 Oct 30, 2026

Real-time crypto futures order flow, BCT-30 matrices, and HFT alerts across 1,650+ contracts.

已验证Streamable HTTP可网页运行金融沟通与协作数据与分析

概览

AI 生成的概览

远程 MCP 服务器,让助手获取加密合约行情、风险计算、价格预警,并向 Telegram 或 Discord 推送通知,按调用计费。

可以做什么
  • 读取 BitCLI 官方文档、命令语法与指标公式
  • 获取 Binance、Bybit、Hyperliquid 的衍生品行情,包括紧凑K线矩阵、跨交易所技术指标共识与 1,650+ 永续合约筛选
  • 计算仓位规模、强平价、DCA 盈亏平衡与多目标风险回报等风险模型
  • 创建和移除价格、成交量、爆仓与订单流触发器,命中后异步推送提醒
  • 向用户已验证的 Telegram 会话或 Discord webhook 发送通知
  • 查询账户余额、订阅等级、每日额度与已验证的通知目标
适用场景
适合需要紧凑、已计算好的加密衍生品数据与风险计算,又不想把上下文浪费在原始交易所 JSON 上的场景;也适合希望在对话结束后仍能收到提醒的监控需求。主要用于交易分析与盯盘,而非通用任务。
运行要求
远程 streamable HTTP 端点 mcp.bitcli.io,无需本地安装。需要从网页控制台或 Telegram 机器人生成的 BitCLI API 密钥,以 Authorization Bearer 请求头发送。付费工具需要账户余额或每日额度;通知功能需要已验证的 Telegram 或 Discord 目标。
安装前请注意
多数工具按次收费(0.001 美元,预警最高 0.002 美元),从每日额度或美元余额扣除。alert_manager 与 send_notification 会写入状态并向第三方渠道发送消息。API 密钥是可计费凭证,应妥善保密。行情与提醒仅供参考;服务器声明不托管资金,也不需要交易所交易密钥。

安装

在 SourceWeft 中

  1. 打开 控制台中的 BitCLI,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。

交给智能体安装

把这段提示词粘贴到 Claude Code、Codex、Cursor 等智能体,或 SourceWeft 对话中。智能体会读取该服务器的安装指南,先向你展示发布者、端点和登录方式,经你同意后再把它添加到你的客户端。密钥不会写进任何命令。

阅读 https://sourceweft.com/mcp/io.github.BitCLI-io%2Fbitcli-mcp-server/install.md,并按其中说明把这个 MCP 服务器接入我的客户端。修改任何配置之前,先告诉我它的发布者、端点和登录方式,等我确认。不要把 API 密钥写进命令或我会提交的文件;问我密钥应从哪里获取。

查看智能体所依据的安装指南

其他 MCP 客户端

把它添加到你客户端的 mcpServers 配置中。

{
  "mcpServers": {
    "bitcli": {
      "type": "http",
      "url": "https://mcp.bitcli.io/mcp"
    }
  }
}

README

BitCLI Model Context Protocol (MCP) Server

Institutional-grade crypto derivatives infrastructure, order flow analytics, and HFT triggers for AI Agents.

[MCP Protocol] [TDQS Score] [License: MIT] [Status: Production]

Website • Documentation • Web Dashboard • Telegram Bot


💡 The Economics of AI Trading: Why Raw APIs Bleed Capital

Most AI trading agents connect to crypto exchanges using standard REST endpoints (CCXT, Binance FAPI, or Bybit V5). This burns massive token context on raw formatting boilerplate.

A standard 100-candle JSON array from an exchange dumps 13-digit Unix timestamps, quote/base volume strings, and trade counts. The agent's LLM context window gets clogged with unparsed strings, while having to compute RSI, EMA, and MACD inside its own context—burning tokens and hallucinating math.

The Token Benchmark (100 Candles, 5m Timeframe)

Data Provider / FormatPayload StrategyTokens (100 Bars)Inference Cost (10k Calls)*Context Efficiency
Bybit V5 REST APINamed JSON Key-Value Objects~3,450$86.25Baseline (Bloated)
CCXT Library (Python)Raw 6-element JSON arrays~2,680$67.00Industry Average
BitCLI BCT-30 MatrixKilo-scaled USD + Server-Side Indicators~790$19.75🔥 70% Less Tokens

*Pricing based on standard OpenAI GPT-4o / Claude 3.5 Sonnet input token pricing ($2.50 / 1M).

💰 The Bottom Line

BitCLI queries cost $0.001 USD (Pay-As-You-Go).
By cutting ~1,900 tokens per call, BitCLI saves ~$0.0048 in model inference fees on every single request.
You pay micro-cents for curated market data to save full dollars on LLM compute.


⚡ The BCT-30 Candlestick Matrix

Instead of raw exchange JSON, BitCLI returns dense, mathematical BCT-30 (BitCLI Compact Candlesticks) matrices:

text
@BCT: BYBIT:BTCUSDT|5m|1719705600|kUSD@META: OI:$1.54B(+0.05%|+0.21%|-2.14%) | Fund_8h:+0.0100% | RVOL:2.4x | RSI:62.14 | EMA200:64,250.00@FIELDS: idx o h l c v dv rsi:14 ema:200-4 64120.5 64180.0 64100.0 64150.0 1250 +420 58.2 64210.0-3 64150.0 64210.0 64140.0 64195.0 2100 +1150 61.4 64225.0-2 64195.0 64230.0 64180.0 64210.0 1800 +350 62.1 64238.0-1 64210.0 64260.0 64190.0 64245.0 3400 +2100 64.8 64248.0 0 64245.0 64280.0 64220.0 64270.0 1450 +680 66.2 64250.0
  • Zero-Token Temporal Grids: No 13-digit Unix timestamps per row. Relative integer delta indices (-N ... 0) reconstruct exact time deterministically from the @BCT base timestamp.
  • Normalized Metrics: Volume (v) and Cumulative Volume Delta (dv) are converted to thousands of USD (kUSD).
  • Zero Math Hallucination: RSI, EMA, ATR, MACD, and Bollinger Bands are calculated in C++ on the server with 3,000 bars of historical warmup. The agent reads raw institutional truth.

📡 Dual Integration Architecture

1. Stateless Assistants (Cursor, Claude Desktop, ChatGPT)

  • Endpoint: POST https://mcp.bitcli.io/mcp
  • Mode: The agent queries market data or executes risk calculations on prompt.
  • Asynchronous Alerting: When setting a trigger via alert_manager, the agent does not need to hang open or poll. The trigger is injected into the C++ memory core. When hit, BitCLI dispatches an instant push to the user's Telegram or Discord channel.

2. Autonomous Trading Agents (Python SDK)

  • Endpoint: wss://mcp.bitcli.io/stream
  • Mode: Full duplex event stream with automatic reconnection and Replay API. Agents sleep in memory and wake up via sub-millisecond WebSocket frame pushes.

🛠️ The 6 Core MCP Tools

ToolActionPricingDescription
system_docsreadFree ($0.00)Access official BitCLI documentation, command grammar, and indicator formulas via RAG.
market_dataread$0.001BCT-30 Candlestick matrices, Cross-Exchange Quant TA consensus, and dynamic screening across 1,650+ contracts.
calc_enginecompute$0.001Mathematical risk models: Lot sizing by dollar risk (/pos), True liquidation with MMR (/liq), DCA break-even, multi-target R:R.
alert_managerwrite$0.001 - $0.002Injects sub-500ns triggers into C++ RAM. Dispatches notifications to Telegram / Discord when hit.
send_notificationwrite$0.001AI sends direct HTML messages to the human user's Telegram chat/channel or Discord webhook.
user_accountreadFree ($0.00)Inspect USD balance, daily quota usage, and list verified Telegram/Discord destination IDs.

🚀 Quickstart: Connecting Your AI Client

1. Generate an API Key

Log in to the Web Dashboard (via Discord, Telegram, or Web3) or use /profile in @bitclibot to generate your developer key:

text
bcli_your_api_key_here

2. Cursor IDE Integration

Add BitCLI to your project's .cursor/mcp.json:

json
{  "mcpServers": {    "bitcli": {      "url": "https://mcp.bitcli.io/mcp",      "headers": {        "Authorization": "Bearer bcli_your_api_key_here"      }    }  }}

3. Claude Desktop Configuration

Add BitCLI to your claude_desktop_config.json:

json
{  "mcpServers": {    "bitcli": {      "command": "npx",      "args": [        "-y",        "mcp-remote",        "https://mcp.bitcli.io/mcp",        "--header",        "Authorization: Bearer bcli_your_api_key_here"      ]    }  }}

⌨️ Unified Command Syntax (Used in Chat & alert_manager)

The exact same syntax works whether typed into Telegram or passed into the MCP command parameter:

  • Exact Price: btc 95k or binance eth 3150
  • Velocity (Rapid Moves): sol +3.5% 5m (Surges >3.5% in 5 min)
  • Whale Volume Spikes: * vol 15m x4 (Global scan: 4x above 20-SMA)
  • Liquidation Cascades: * liq z3 (Liquidations exceed 3 standard deviations)
  • Order Flow (CVD): btc cvd div 15m (Cumulative Volume Delta Divergence)
  • Risk Position Sizing: /pos btc 65k 63.7k 50 ($50 fixed risk calculation)

🛡 Security & Transparency

  • No Exchange API Keys Needed: BitCLI does not custody funds or request your private exchange trading keys.
  • Isolated Routing: The send_notification tool strictly enforces ownership validation—agents can only message destination IDs explicitly verified by your account.
  • Zero Polling Overhead: Avoid burning tokens on cron-loops. Set a trigger via alert_manager and let our infrastructure notify your channels.

📄 License

This MCP specification and client wrappers are open-source under the MIT License.

来源:README.md,提交 0937c82

工具

6

system_docs

BEHAVIOR: Read-only RAG documentation tool. Reads and returns official BitCLI markdown specifications, indicator formulas, CLI command guides, and webhook setups. Returns a single string containing the requested Markdown document. PRICING: Free ($0.000). Does not consume quotas. USAGE GUIDELINES: Use this tool FIRST to understand BitCLI mechanics, verify command grammar, or check webhook templates before constructing queries. Do NOT use this tool to query live market prices or active triggers (use `market_data` or `alert_manager` instead). TOPICS: - 'syntax': Price targets, percentage corridors, velocity moves. - 'calculators': Position sizing, true MMR liquidation, DCA break-even, multi-target R:R. - 'market_intel': Screener filters, cross-exchange aggregation. - 'indicators': CVD divergence, Z-Scores, 8h normalized funding. - 'webhooks': PineScript relay setup, private chat routing. - 'tariffs': Subscription tiers and limits. - 'partners': Affiliate program rules. - 'ai': AI Copilot features. - 'mcp': Model Context Protocol architecture. - 'index': System overview. ERRORS: Requesting an invalid topic returns a structured JSON error indicating the file was not found.

输入参数topic必填

market_data

BEHAVIOR: Read-only analytical gateway. Fetches real-time derivatives intelligence across Binance, Bybit, and Hyperliquid. PRICING: $0.001 USD per execution. Deducted from daily tariff quota or USD balance. ACTIONS & RETURNS: - 'screener': Scans 1,650+ perpetuals. Returns a JSON array of matched assets containing fields: symbol, price, rvol, fund, oi, oichg, rsi, bias, natr, cvd. - 'consensus': Returns JSON with Quant TA consensus score, CVD slope, RSI, ATR, and EMA bias for a single coin. - 'bct_matrix': Returns compact historical candlestick matrices with server-side computed indicators to minimize token usage. USAGE GUIDELINES: Use this to analyze market state or find trade setups. Do NOT use this tool to continuously poll for price updates or wait for conditions to be met; instead, invoke `alert_manager` to establish asynchronous monitoring. ERRORS: Malformed filters or unlisted tickers return an explicit JSON error object with syntax correction guidance.

输入参数tfcoinlimitaction必填columnscommandexchangeindicatorsinline_indicators

calc_engine

BEHAVIOR: Deterministic mathematical calculation. Evaluates crypto futures risk management models using live exchange parameters. PRICING: $0.001 USD per execution. Deducted from daily tariff quota or USD balance. SYNTAX EXAMPLES (Passed in 'command'): - '/pos btc 65k 63.7k 50' (Position Sizing) - '/liq sol 20x short' (True Liquidation with MMR) - '/dca btc 65k:100 64k:200' (DCA Break-Even with exit fees) - '/rr btc 65k 64k 67k 69k' (Multi-Target R:R) - '/fncost btc 10000 long' (Carry Cost) - '/atr btc 1h 2' (Volatility Stops) RETURNS: Output is a structured JSON payload. Depending on the command, keys include: 'ideal_lot_coins', 'notional_usd', 'required_margin', 'liquidation_price', 'true_breakeven_price', 'effective_rr_ratio', or 'stop_distance'. USAGE GUIDELINES: Use this tool exclusively for mathematical risk modeling and lot sizing. For live market scanning, use `market_data`. For setting execution triggers, use `alert_manager`. After calculating risk parameters, it is highly recommended to route the generated stop-loss or liquidation prices into `alert_manager` to automate monitoring. ERRORS: Malformed syntax returns an 'error' JSON key with correction guidance.

输入参数command必填exchange

alert_manager

BEHAVIOR: State-mutating operation. Injects or removes in-memory execution triggers in the C++ engine. When triggered, it dispatches asynchronous out-of-band notifications (Telegram/Discord) without requiring the agent to remain awake. PRICING: Targeted coin alerts cost $0.001 USD. Global wildcard scans ('*') cost $0.002 USD. Wildcards require a positive USD balance on Free/Trader plans. ACTIONS & PARAMETER INTERACTIONS: - 'create': Deploys a new trigger. Requires 'command'. Returns the assigned alert_id and expiration time. - 'list': Returns an array of currently active triggers, their IDs, and remaining TTLs. Ignores 'command' and 'alert_id'. - 'cancel': Removes a specific trigger. Requires 'alert_id'. Ignores 'command'. - 'clear_all': Purges all active triggers for the account. Ignores 'command' and 'alert_id'. USAGE GUIDELINES: Use this tool to establish asynchronous monitoring instead of polling `market_data`. Requires an authenticated API key; anonymous guests will receive an authorization error. Enforces plan capacity limits. ERRORS: Authentication failures, capacity limit breaches, or syntax errors return an explicit 'isError: true' payload detailing the rejection reason.

输入参数action必填commandalert_idttl_minutesdestinations

user_account

BEHAVIOR: Read-only configuration query. Inspects user ledger states, subscription tiers, and verified notification endpoints. PRICING: Free ($0.000). Does not consume daily quotas or balance. ACTIONS: - 'get_billing': Returns subscription tier, available daily USD API quota, remaining USD balance, active alert count, and per-key daily spending safety limits. - 'list_destinations': Returns verified external dispatch targets (Telegram chat IDs, Discord Webhooks) that can be supplied to the `alert_manager`. USAGE GUIDELINES: Use this tool at the beginning of a workflow to understand available budget and determine valid delivery destinations. Do NOT use this tool to manage triggers (use `alert_manager`) or query market data (use `market_data`). ERRORS: Unauthenticated requests lacking a valid API key return an HTTP 401 equivalent error with a registration portal link.

输入参数action必填

send_notification

BEHAVIOR: Outbound messaging operation. Routes proactive notifications to the human trader's verified Telegram chat, channel, or Discord webhook. Dispatches discretionary trade ideas, market condition updates, or risk reports to keep the user informed without waiting for prompts. PRICING: $0.001 USD per dispatch. Deducted from daily tariff quota or USD balance. PARAMETER INTERACTIONS: - 'target': Destination identifier string obtained from `user_account.list_destinations`. Prefixes determine transport: 'tg_user:' / 'tg_channel:' for Telegram, 'out_wh:' for Discord webhooks. Must belong to the authenticated account. - 'message': Main message body. For Telegram, supports HTML tags. For Discord, maps to the embed description. - 'title': Optional subject line. For Discord, renders as the embed headline. For Telegram, prepends as a bold header if provided. RETURNS: Structured JSON confirming transmission: 'status' ('dispatched'), 'target', 'message_length', 'timestamp_utc', and '_usage' (cost_usd and remaining quota/balance). USAGE GUIDELINES: Call `user_account` with action='list_destinations' prior to sending to retrieve valid target strings. Use this tool exclusively for informative messaging and human-in-the-loop updates. Do NOT use this tool to monitor market prices or set execution triggers (use `alert_manager` instead). ERRORS: Unauthenticated calls, unverified/foreign destinations, empty messages, or exhausted quotas return an explicit 'isError: true' payload.

输入参数titletarget必填message必填

版本历史

1
  1. v1.0.0最新Oct 30, 2026

评分

已满足适用检查项的 100%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通必需25 分
  • 已声明认证方式必需10 分
  • 已列出工具必需15 分
  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分