Skip to main content
Glama

TradingView MCP on Botkeep (Full 84 Tools + Headless Chromium + HTTP/SSE)

Bản triển khai đầy đủ 84 công cụ của tradesdontlie/tradingview-mcp được tích hợp sẵn:

  1. Headless Chromium tự chứa (@sparticuz/chromium): Tự giải nén và khởi chạy biểu đồ https://www.tradingview.com/chart/ ngay trong container Linux của Botkeep (2GB RAM / 1.5 CPU) mà không cần quyền root, không cần apt/snap, không cần Xvfb.

  2. Remote MCP Server (Streamable HTTP & SSE): Mở sẵn cổng HTTP để bạn chỉ việc dán URL MCP vào Claude / Cursor / Bot / Agent và gọi toàn bộ 84 tool từ xa.


1. Triển khai trên Botkeep (botkeep.cloud)

  1. Tạo server Node.js (khuyến nghị cấu hình 2GB RAM / 1.5 vCPU).

  2. Chọn Import from GitHub → chọn repo:

    • Repository: vantuanhappy04-web/botkeep-tradingview-mcp

    • Branch: main

    • Start command: npm start

  3. (Tùy chọn) Cài đặt biến môi trường (Environment) trên Botkeep:

    • MCP_API_KEY: Mật khẩu bảo vệ endpoint MCP (nếu để trống thì mở tự do không cần token).

    • TV_SESSIONID và TV_SESSIONID_SIGN: Cookie đăng nhập tài khoản TradingView của bạn (lấy trong DevTools → Application → Cookies → https://www.tradingview.com) nếu bạn muốn dùng tài khoản trả phí, lưu layout hoặc Pine Script cá nhân. Không điền vẫn dùng được bình thường ở chế độ khách (xem giá, nến OHLCV, thêm/bớt chỉ báo RSI/MACD/EMA, vẽ chart, chụp ảnh chart...).

  4. Bấm Start và đợi khoảng 15–20 giây để Chromium khởi động biểu đồ TradingView.


Related MCP server: tradingview-mcp

2. Các đường dẫn (Endpoints) sau khi chạy

Giả sử URL Botkeep cấp cho bạn là https://your-app.botkeep.cloud:

Endpoint

Mục đích

GET https://your-app.botkeep.cloud/health

Kiểm tra trạng thái Chromium + biểu đồ TradingView (cdp_connected: true, api_available: true, mã đang mở)

https://your-app.botkeep.cloud/mcp

Streamable HTTP MCP (chuẩn MCP mới nhất — hỗ trợ cả có session và stateless)

https://your-app.botkeep.cloud/sse

SSE MCP (cho các client MCP dùng giao thức SSE)

POST https://your-app.botkeep.cloud/login

Truyền JSON {"sessionid":"...", "sessionid_sign":"..."} để đăng nhập TradingView lúc đang chạy

POST https://your-app.botkeep.cloud/restart-browser

Khởi động lại Headless Chromium


3. Cách kết nối từ MCP Client (Claude, Cursor, Bot...)

Cách A — Kết nối trực tiếp qua Streamable HTTP / SSE

Nếu client hỗ trợ URL MCP trực tiếp:

{
  "mcpServers": {
    "tradingview": {
      "url": "https://your-app.botkeep.cloud/mcp"
    }
  }
}

(Hoặc đổi /mcp thành /sse nếu client dùng SSE).

Cách B — Kết nối từ Claude Desktop / Claude Code qua mcp-remote

{
  "mcpServers": {
    "tradingview": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-remote",
        "https://your-app.botkeep.cloud/mcp"
      ]
    }
  }
}

Nếu bạn có đặt MCP_API_KEY=mat-khau-cua-ban, thêm ?apiKey=mat-khau-cua-ban vào cuối URL hoặc truyền header Authorization: Bearer mat-khau-cua-ban.


4. Danh sách 14 nhóm công cụ (84 Tools)

  • Health & Launch: tv_health_check, tv_discover, tv_ui_state, tv_launch, tv_update

  • Chart Navigation: chart_get_state, chart_set_symbol, chart_set_timeframe, chart_set_type, chart_manage_indicator, chart_scroll_to_date, chart_zoom, chart_reset_view, ...

  • Market Data & Indicators: quote_get, data_get_ohlcv, data_get_study_values, data_get_pine_lines, data_get_pine_labels, data_get_pine_tables, data_get_pine_boxes, data_get_strategy_results, ...

  • Indicators Config: indicator_list, indicator_add, indicator_remove, indicator_toggle, indicator_get_inputs, indicator_set_inputs

  • Pine Script: pine_get_source, pine_set_source, pine_smart_compile, pine_get_errors, pine_get_console, pine_analyze, ...

  • Drawing: draw_shape, draw_list, draw_get, draw_remove, draw_clear

  • Screenshots: capture_screenshot

  • Alerts, Watchlist, Replay, Batch, Panes, Tabs, UI: Đầy đủ từ tradesdontlie/tradingview-mcp.

Related MCP Connectors

  • Live LinReg fan charts, 64-setup playbook, 11-section MTF TA. Remote MCP, no API key.

  • > TradingMCP puts a market analyst inside your AI assistant. Paste one URL into Claude, ChatGPT, Cursor, VS Code or any MCP client and ask in plain language: screen for breakouts, run a multi-timeframe analysis, backtest a strategy with walk-forward validation, scan for smart-money and volume signals, or get a one-prompt morning market brief. In clients that support MCP Apps, price charts and the Markets panel are drawn right in the chat. > 40+ tools covering crypto (real-time), stocks, ETFs, FX, futures and commodities across major global exchanges. > Hosted, nothing to install: Pro $9/month (2,500 tool calls) or Pro+ $29/month (10,000). Paid upfront with a 14-day money-back guarantee; your API key arrives right after checkout. > Built on the open-source tradingview-mcp core (MIT, ~5k GitHub stars): self-host it free, or use the hosted version with zero ops. > For research and education, not financial advice. Not affiliated with TradingView

  • Trading MCP server for AI agents, with live market data, account reads and controlled execution.

  • Official Browserless MCP server: browser automation, scraping, screenshots and PDFs for AI agents.

Related MCP Servers

  • A
    license
    B
    quality
    A
    maintenance
    MCP server that lets AI agents directly control and interact with the TradingView desktop app via 88 chart-control tools, enabling automated chart reading, Pine Script compilation, strategy optimization, and replay control.
    4
    113
    49 npm
    47
    MIT
  • A
    license
    A
    quality
    C
    maintenance
    A type-safe MCP server that enables AI agents to control TradingView Desktop via Chrome DevTools Protocol, allowing chart state reading, symbol/timeframe changes, and OHLCV data fetching.
    11
    47 npm
    1
    MIT
  • F
    license
    Not graded
    quality
    C
    maintenance
    MCP server for controlling TradingView Desktop via CDP, enabling chart navigation, Pine Script development, replay trading, and a morning brief workflow with customizable rules.
    47 npm
    -