Skip to main content
Glama
TradeBeast

TradeBeast

README.md
# ๐Ÿฆ TradeBeast

> **The Ultimate Crypto Trading Beast โ€” every crypto MCP fused into one unstoppable trading machine.**
>
> **One MCP server. 295 tools. 13 sources. Zero API keys to start.**
> Plug it into Claude and your AI sees the whole crypto market at once.

[![GitHub stars](https://img.shields.io/github/stars/muslim-ahmad-wagay/TradeBeast?style=social)](https://github.com/muslim-ahmad-wagay/TradeBeast)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](LICENSE)
[![Python 3.12](https://img.shields.io/badge/Python-3.12-blue.svg)](https://www.python.org/)
[![MCP](https://img.shields.io/badge/MCP-stdio-green.svg)](https://modelcontextprotocol.io/)
[![Tools](https://img.shields.io/badge/Tools-295-orange.svg)](docs/TOOLS.md)
[![Bitget](https://img.shields.io/badge/Bitget-official-00D1C1.svg)](https://www.bitget.com/)

**โญ If this helps you trade smarter, star the repo โ€” it takes 2 seconds and helps more traders find the beast.**

No more juggling a dozen MCP servers. Tickers and order books from 100+ exchanges, Binance technicals, Smart Money Concepts, Hyperliquid flow, derivatives intel, funding rates, TradingView screeners, a local ML forecast, and your own Bitget account โ€” all behind **one connection**.

**Feed the beast once, and it hunts everywhere.**

---

## โšก 60-Second Setup

No API keys needed. No account signup. Four commands and you're hunting:

```bash
git clone https://github.com/muslim-ahmad-wagay/TradeBeast.git
cd TradeBeast
python3.12 -m venv .venv
.venv/bin/pip install -r requirements.txt
```

Then tell Claude about the beast. Paste this into your Claude Desktop config (`claude_desktop_config.json`), fixing the two paths:

```json
{
  "mcpServers": {
    "tradebeast": {
      "command": "/absolute/path/to/TradeBeast/.venv/bin/python",
      "args": ["/absolute/path/to/TradeBeast/tradebeast.py"]
    }
  }
}
```

Restart Claude Desktop. **Done.** You now have **254 tools** with zero credentials.

That's it โ€” the beast works out of the box. Bitget and Kronos are optional extras (below).

---

## ๐ŸŽฏ Easy Usage โ€” just ask your AI

No commands to memorize. Talk to Claude like a trader:

| What you want | Copy-paste this prompt |
|---|---|
| Find a trade | `Scan BTC/USDT, ETH/USDT and SOL/USDT โ€” give me the best setup with entry, stop-loss and take-profit` |
| Hunt a scalp | `Find me a scalp setup on Bitget: high momentum, clean structure, low funding` |
| Check the crowd | `Is IDOL/USDT crowded? Compare funding rates across exchanges` |
| See the future | `Give me the 4h Kronos forecast for BTC/USDT` |
| Check my money | `Show my Bitget futures positions and unrealized P&L` |
| The full beast scan | `Run the full multi-source scan: TradingView + Kronos + funding + RSI divergence, then give me ONE verdict` |
| Learn a coin | `Explain OGN/USDT: trend, key levels, RSI, MACD, funding and forecast โ€” in plain English` |

**First 3 prompts to try:** the "Find a trade" one, then "Check the crowd", then "The full beast scan". That's the whole workflow.

---

## ๐Ÿ† Why traders love it

- **One server instead of thirteen** โ€” a single stdio connection, no port juggling, no config hell.
- **Works with zero keys** โ€” 254 tools live before you ever touch an API key.
- **Self-healing** โ€” a sub-server crashes mid-call? The beast reconnects and retries automatically.
- **Safe by default** โ€” read-only out of the box. Withdrawals, transfers and leverage changes are blocked at the aggregator, not just hidden.
- **Free forever** โ€” MIT licensed. No subscription, no paywall, no "pro tier".

---

## โšก What the beast can do

| Power | Source | Tools |
|---|---|---|
| Public market data โ€” tickers, OHLCV, order books, trades on 100+ exchanges | CCXT (official) | 12 |
| Binance technical signals โ€” swings, slopes, volume, multi-timeframe | Trading Signals | 11 |
| Derivatives intel โ€” OI, liquidations, whales, CVD, positioning regimes | LiquidVision (hosted) | 41 |
| Smart Money Concepts โ€” market structure, order blocks, FVGs, sweeps | SMC | 5 |
| Hyperliquid candles + structure | TradeFloor | 3 |
| Market microstructure โ€” FVGs, liquidity zones, order blocks | Microstructure | 5 |
| RSI divergence detection + scanning | RSI Divergence | 2 |
| Full technical analysis โ€” 54 indicators, patterns, regime, sentiment | Technical Analysis | 54 |
| 78 indicators + strategies โ€” MACD, Ichimoku, Bollinger, ATR, VWAPโ€ฆ | Crypto Indicators | 78 |
| Your Bitget account โ€” positions, orders, fills, funding, order place/cancel | Bitget (official) | 41 |
| Cross-exchange funding-rate comparison | Funding Rates | 1 |
| TradingView screeners, technicals, multi-timeframe, backtests | TradingView | 39 |
| Local 4h ML price forecast | Kronos | 2 |
| Beast health check | TradeBeast | 1 |
| **Total** | | **295** |

Every tool is namespaced by source, so there are no collisions and no guessing: `ccxt_get_tickers`, `bitget_futures_get_positions`, `tv_get_technical_analysis`, `funding_compare_funding_rates`, `kronos_forecast`, `lv_get_liquidation_cascades`, `ind_calculate_macd_strategy`โ€ฆ

Full catalog: **[docs/TOOLS.md](docs/TOOLS.md)** (generated from the live server).

---

## ๐Ÿš€ Quickstart

```bash
git clone https://github.com/muslim-ahmad-wagay/TradeBeast.git
cd TradeBeast

python3.12 -m venv .venv
.venv/bin/pip install -r requirements.txt

# Run it (stdio MCP server โ€” plug it into any MCP client)
.venv/bin/python tradebeast.py
```

Check what the beast sees:

```bash
.venv/bin/python tradebeast.py --dump-tools   # prints the full tool catalog as JSON
```

### First run, no keys needed

TradeBeast starts cleanly with **zero credentials**. Bitget and Kronos are optional sub-servers:

- **Bitget** stays off unless `BITGET_API_KEY`, `BITGET_SECRET_KEY` and `BITGET_PASSPHRASE` are in the environment. No keys are ever read from a file, written to disk, or logged by TradeBeast.
- **Kronos** stays off unless a local Kronos forecast server answers `http://127.0.0.1:8901/health`. The model (~200MB) is never bundled in this repo.

With neither, you still get **254 tools** out of the box.

### Enable Bitget (optional)

```bash
export BITGET_API_KEY="..."
export BITGET_SECRET_KEY="..."
export BITGET_PASSPHRASE="..."
.venv/bin/python tradebeast.py
```

Use a **trade-only** API key (no withdraw permission). TradeBeast never exposes withdraw, transfer, margin trading, copy-follow, convert execution, broker writes, leverage changes, or earn actions โ€” those tools are blocked at the aggregator and never appear in the tool list.

### Enable Kronos (optional)

Run your local Kronos forecast server, then start TradeBeast. Override the URL with `TRADEBEAST_KRONOS_URL=http://127.0.0.1:8901`.

---

## ๐Ÿ”Œ Connect it

### Claude Desktop (`claude_desktop_config.json`)

```json
{
  "mcpServers": {
    "tradebeast": {
      "command": "/absolute/path/to/TradeBeast/.venv/bin/python",
      "args": ["/absolute/path/to/TradeBeast/tradebeast.py"]
    }
  }
}
```

### Muse / any MCP client

Point it at the same command as a stdio server. Example `mcp.json`:

```json
{
  "mcpServers": {
    "tradebeast": {
      "command": "python",
      "args": ["tradebeast.py"],
      "cwd": "/absolute/path/to/TradeBeast"
    }
  }
}
```

With Bitget enabled, add the three `BITGET_*` variables to `env` (never commit them).

> Behind a corporate proxy? Add `"HTTPS_PROXY": "http://your-proxy:3128"` and `"NODE_EXTRA_CA_CERTS": "/path/to/ca-bundle.pem"` to `env`.

---

## ๐Ÿง  How it works

```
                        โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
                        โ”‚   Your MCP client   โ”‚
                        โ”‚ Claude / Muse / โ€ฆ   โ”‚
                        โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
                                   โ”‚ stdio (one connection)
                        โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
                        โ”‚     TRADEBEAST      โ”‚
                        โ”‚  aggregate + route  โ”‚
                        โ”‚  295 tools, 1 wire  โ”‚
                        โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
           โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
           โ–ผ          โ–ผ           โ–ผ           โ–ผ           โ–ผ
        ccxt ยทยทยท   signals    liquidvision   smc ยทยทยท   tradefloor
        micro ยทยทยท    rsi      technical-     crypto-    bitget
                              analysis      indicators  (opt-in)
        funding ยทยทยท tradingview ยทยทยท kronos (opt-in, local)
```

- **Aggregate at startup** โ€” TradeBeast spawns every enabled sub-server, lists its tools (with a per-server timeout), and re-exposes them under a source prefix. A dead sub-server is logged and skipped; the beast keeps serving the rest.
- **Route calls unchanged** โ€” a tool call goes to its owning sub-server and the result comes back verbatim.
- **Self-healing** โ€” if a sub-server connection drops mid-call (egress hiccups, the trading-signals server crashing on a bad Binance response), TradeBeast reconnects it once and retries the call once.
- **No blind retries on orders** โ€” order place/cancel tools are never auto-retried: a lost response might mean the order already executed. On failure the beast reconnects and tells you to check positions/orders before retrying.

---

## ๐Ÿ›ก๏ธ Safety

- **Read-only by default.** 12 of 13 sources are pure market data and analysis. The only tools that can move money are Bitget spot/futures order place/cancel โ€” and only when you opt in with your own keys.
- **Blocked, not just undocumented:** withdraw, transfer, margin borrow/repay/trade, copy-follow, convert execution, broker API-key/sub-account tools, leverage changes, and earn actions are filtered out of the tool list entirely.
- **No credentials in this repo.** No keys, secrets, passwords, or tokens anywhere โ€” grep it yourself. Bitget credentials come from environment variables only.
- **No trading without you.** TradeBeast places no order on its own. Every order tool is an explicit tool call your agent makes โ€” keep your own rules (leverage caps, stop-losses, daily limits) on top.
- **This is not financial advice.** The beast shows you the market; it does not tell you what to buy.

---

## โš™๏ธ Configuration

Copy `config.example.json` to `config.json` to pick which sub-servers run and override their launch commands:

```json
{
  "kronos_url": "http://127.0.0.1:8901",
  "servers": {
    "bitget": { "enabled": true },
    "kronos": { "enabled": true },
    "technical_analysis": { "enabled": false }
  }
}
```

Environment toggles also work: `TRADEBEAST_DISABLE_<name>=1` (e.g. `TRADEBEAST_DISABLE_TA=1`), `TRADEBEAST_KRONOS_URL=โ€ฆ`, `TRADEBEAST_CONFIG=/path/to/config.json`.

Sub-server paths in the defaults assume the standard layout (`~/workspace/custom-connectors/...` and `~/workspace/tradingview-mcp/`). If your installs live elsewhere, point `config.json` at them โ€” see `config.example.json` for every command.

---

## ๐Ÿงช Tests

```bash
# Full smoke test: lists tools, then calls ccxt_get_tickers + funding_compare_funding_rates end to end
~/workspace/custom-connectors/_shared-venv/bin/python tests/smoke_test.py

# Also exercise the Bitget read path (needs BITGET_* env vars)
BITGET_API_KEY=... BITGET_SECRET_KEY=... BITGET_PASSPHRASE=... \
  ~/workspace/custom-connectors/_shared-venv/bin/python tests/smoke_test.py --with-bitget
```

---

## ๐Ÿ“ฃ Share the beast

Help it go viral โ€” copy, paste, post:

**X / Twitter:**

> I plugged ONE MCP server into Claude and it sees 295 crypto tools โ€” tickers from 100+ exchanges, funding rates, TradingView, SMC, a local ML forecast and my Bitget account. All in 60 seconds, zero API keys.
>
> ๐Ÿฆ TradeBeast: https://github.com/muslim-ahmad-wagay/TradeBeast

**Reddit (r/CryptoCurrency, r/algotrading, r/ClaudeAI):**

> Title: TradeBeast โ€” one MCP server, 295 crypto tools, 60-second setup
>
> Body: I fused 13 crypto MCP servers into one. Claude can now scan the whole market, compare funding, run TradingView + a local ML forecast, and check my Bitget positions โ€” from a single connection. Free, MIT, no keys needed to start: https://github.com/muslim-ahmad-wagay/TradeBeast

**Discord / Telegram:**

> ๐Ÿฆ TradeBeast โ€” 295 crypto tools in ONE MCP server. 60-second setup, no API keys needed. https://github.com/muslim-ahmad-wagay/TradeBeast

---

## ๐Ÿค Contributing

PRs welcome โ€” new sub-servers, better routing, more tests. To add a source:

1. Add its spec to `_default_specs()` in `tradebeast.py` (command, prefix, allowlist).
2. Add it to `config.example.json` and the README table.
3. Run `tradebeast.py --dump-tools` and regenerate `docs/TOOLS.md`.
4. Never add a tool that moves funds without an allowlist entry and a note in the Safety section.

---

## ๐Ÿ’› Support

TradeBeast is free and open source (MIT). If it helps you trade smarter, tips keep the beast fed:

**USDT (TRC20):** `TPWtGkxHsrNtUY7cAuPtZzSX7otzE44zyo`

Donations are voluntary and non-refundable. Never send funds to any other address claiming to be TradeBeast.

---

## ๐Ÿ“œ License

MIT โ€” see [LICENSE](LICENSE).