BAMCP
Pulls multi-timeframe kline (OHLCV) data from Binance USDT-M Futures and optionally reads a real account with read-only API keys, exposing open positions, daily fills, and true PnL (realized P&L, fees, funding) via tools like get_positions, get_fills, and get_account_pnl.
Reads real account data from OKX V5 (default symbol BTC-USDT-SWAP) using read-only API keys plus passphrase, returning normalized open positions, daily fills, and true PnL (realized P&L, fees, funding) for journal reconciliation and pre-trade checks.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
BAMCP
MCP server giúp Claude phân tích thị trường crypto bằng số liệu thật, và giúp bạn giữ kỷ luật khi giao dịch.
BAMCP tự kéo nến từ Binance cho nhiều cặp giao dịch. Claude đọc dữ liệu đó để phân tích theo Wyckoff, VSA và GANN, chấm lệnh theo quy định bạn đặt và ghi nhật ký. Server tự canh giá theo kế hoạch và báo qua Discord hoặc Telegram.
BAMCP không đặt lệnh. Không có tool nào làm việc đó, và đây là chủ ý. Bạn luôn tự vào lệnh trên sàn.
Cách hoạt động
Binance (nến) ───────────┐
Sàn (tuỳ chọn, chỉ đọc) ─┤
▼
BAMCP ◀── Claude gọi tool qua /mcp
│
├── /admin ............ bạn cấu hình
├── /setup-dashboard .. xem biểu đồ, review
└── Discord/Telegram .. báo khi giá chạm kế hoạch
Binance (sổ lệnh, lệnh khớp) ─▶ bamcp-orderflow (process riêng) ─▶ orderflow.db ─▶ BAMCP đọcRelated MCP server: trading-platform-mcp-server
Có gì trong BAMCP
Tính năng | Làm gì | Chi tiết |
Dữ liệu | Tự kéo nến 6 khung (5m đến 1w) cho nhiều cặp, lưu JSON hoặc SQLite | |
Quy định | Chấm lệnh theo quota, SL/TP, R:R. Mỗi lần đổi quy định đều phải có lý do | |
Setup và cảnh báo | Lưu kế hoạch vào lệnh, server canh trên nến M5 đã đóng rồi báo tin | |
Dashboard | Vẽ bias, setup, kịch bản lên biểu đồ nến và review theo ngày | |
Order flow (Bookmap) | Heatmap thanh khoản, bong bóng lệnh lớn, CVD, volume profile, sổ lệnh trên chart. Collector chạy process riêng | |
Lệnh ngoài kế hoạch | Đối chiếu vị thế thật với setup trong ngày, báo lệnh lệch kế hoạch kèm mã OP để đánh giá cùng Claude | |
Kênh thông báo | Mỗi cặp một topic Telegram / channel Discord, lọc theo mức độ, chống trùng, gom tin, giờ yên lặng, fallback | |
ORB | Tín hiệu và backtest Opening Range Breakout theo phiên | |
GANN | Pivot, cửa sổ thời gian, mốc giá Square of 9 | |
Tài khoản thật (tuỳ chọn) | Đọc vị thế và PnL từ Binance, Bybit, OKX bằng key chỉ đọc |
Tra cứu: danh sách tool · trang admin và bảo mật · deploy
Chạy thử trên máy
Cần Python 3.12. Lệnh dưới đây dùng PowerShell. Trên macOS/Linux, đổi .venv\Scripts\ thành .venv/bin/ và copy thành cp.
git clone https://github.com/tan-mai/bamcp.git
cd bamcp
python -m venv .venv
.venv\Scripts\pip install -r requirements.txt
copy .env.example .envMở .env, điền BAMCP_PASSWORD (tối thiểu 8 ký tự), rồi chạy:
.venv\Scripts\python server.pyKiểm tra bằng một terminal khác:
Kiểm tra | Kết quả đúng |
Mở |
|
Mở | Trang cài đặt, đăng nhập bằng username và mật khẩu trong |
| Danh sách tool |
| Các cặp đang theo dõi và khung đã có dữ liệu |
Gắn vào Claude
Connector của Claude gọi server từ internet nên cần URL HTTPS công khai. Hãy deploy trước, rồi:
Sinh chuỗi base64 từ username và mật khẩu:
[Convert]::ToBase64String([Text.Encoding]::UTF8.GetBytes("<username>:<mật khẩu>"))Trong Claude, vào Customize → Connectors → Add custom connector:
Ô
Giá trị
URL
https://<domain>/mcpAuthentication
No sign-in
Request headers
Authorization=Basic <chuỗi base64>Bật connector trong chat qua nút +, rồi hỏi thử: "Đang theo dõi những cặp nào?"
Connector gắn theo tài khoản nên dùng được ngay trên web, desktop và mobile. Không thấy mục Request headers? Xem phương án tạm.
Một ngày dùng BAMCP
Lúc | Bạn nói với Claude | Chuyện xảy ra |
Đầu ngày | "Phân tích BTCUSDT từ khung tuần xuống H4, lưu bias và lập setup hôm nay." | Claude đọc |
Trong ngày | Không cần làm gì | Server canh setup và báo tin mỗi lần setup đổi trạng thái |
Trước khi vào lệnh | "Long BTC 67500, SL 67300, TP 68000, margin 20 USD được không?" |
|
Cuối ngày | "Đối chiếu nhật ký với sàn và review setup hôm nay." |
|
Xem thêm: VSA chỉ đọc trên nến đã đóng.
Cấu hình nằm ở đâu
Muốn đổi | Đổi ở đâu | Có hiệu lực |
Mật khẩu, key sàn, cặp theo dõi |
| Ngay |
Quy định giao dịch |
| Ngay |
Phiên ORB, GANN, lịch kéo nến, cảnh báo, tài khoản dashboard | Các trang con của | Ngay |
Tham số kỹ thuật, quy trình phân tích của Claude |
| Sau khi restart |
Thứ tự ưu tiên là settings.json > biến môi trường > config.yaml. Biến môi trường chỉ là giá trị khởi tạo cho lần chạy đầu, nên sau khi đã lưu trên /admin thì sửa .env không còn tác dụng.
Lỗi thường gặp
Triệu chứng | Nguyên nhân | Cách sửa |
Đúng mật khẩu vẫn bị 401, log có | Mật khẩu ngắn hơn 8 ký tự | Đổi mật khẩu dài hơn rồi khởi động lại |
|
| |
| Binance chặn IP của VPS | |
| Volume là bind mount | |
Sửa |
| Đổi trên |
Phát triển
.venv\Scripts\pip install pytest
.venv\Scripts\python -m pytest tests -qTest không gọi mạng và không đụng data/ thật. Chúng dùng thư mục tạm, sàn giả và đồng hồ giả.
File | Vai trò |
| Điểm vào: tool MCP, route HTTP, tác vụ nền |
|
|
| Lưu và kéo nến |
| Đọc tài khoản sàn, không có hàm đặt lệnh |
| ORB |
| GANN |
| Setup, watcher |
| Kênh thông báo: gửi, route, chống trùng, gom tin, trang admin |
| Setup dashboard |
| Order flow: collector, backfill, DB, logic, trang admin, lớp trên chart |
| Gọi thử tool và lệnh quản trị từ dòng lệnh |
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Connect Claude or Cursor to your LogToLast futures & forex trading journal and playbook rules.
21The full TraderMatrix market-data connector for Claude, Cursor and any MCP client. 51 tools: scored and tiered unusual options activity, dealer gamma (GEX), Apex levels and gamma pockets, IV rank, sector flow, dark-pool net-notional rollups, market health and macro regime, gap-continuation and breakout signals, wheel and CSP screeners, a one-call ticker snapshot, and your own watchlists. Needs a TraderMatrix API key (OAuth sign-in works for Claude web and mobile). A free, no-key connector with the gapper scanner and Market Health tools is listed separately as TraderMatrix Free.
Read-only access to your own crypto portfolio across 11+ exchanges and 20+ chains: holdings, full history, FIFO cost basis and P&L, fees and income. Ask Claude or ChatGPT about your portfolio; the connector can never trade, move funds or act as a login.
Trading journal in Obsidian. Ask Claude or ChatGPT about your trades; edits are previewed first.
Related MCP Servers
- AlicenseBqualityDmaintenanceProvides a comprehensive suite of 20 tools for cryptocurrency trading and technical analysis across 100+ exchanges like Binance and MEXC via CCXT. It enables users to execute orders, track positions, and scan for market opportunities through Claude Desktop using natural language.20MIT
- FlicenseNot gradedqualityDmaintenanceEnables Claude to monitor and execute Binance trading strategies through a bounded MCP tool interface, with risk controls and audit logging.-
- AlicenseAqualityCmaintenanceEnables Claude to query Binance Spot market data, account balances, and execute trades via natural language, with withdrawals disabled by default for security.11MIT
- AlicenseAqualityCmaintenanceLets Claude fetch futures OHLCV bars with relative volume, capture TradingView charts for exact trading-day windows, and detect range setups with drawn support and resistance levels.4MIT