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 分