TradingMCP
TradingMCP is an MCP server that gives AI assistants market data, technical analysis, backtesting, options flow, news sentiment, and exchange-wide scanners across crypto, stocks, indices, ETFs, FX, futures and metals.
Backtesting:
backtest_strategy(9 strategies: rsi, bollinger, macd, ema_cross, supertrend, donchian, rsi_pullback, keltner_breakout, triple_ema) with Sharpe/Calmar/expectancy/drawdown, commission + slippage, optional trade log and equity curve;compare_strategiesleaderboard;walk_forward_backtest_strategyoverfitting check.Quotes & market overview:
yahoo_price,market_snapshot(indices, VIX, BTC, ETH, FX, ETFs),bitcoin_market_pulse(BTC dominance, total mcap, risk read),stock_extended_hours(pre/after-market).US options:
stock_options_chain(calls + puts per expiry) andstock_options_unusual_activity(volume/open-interest screener plus put/call volume bias).News & sentiment (Marketaux):
financial_newsandmarket_sentimentfor per-ticker bullish/bearish scores and source articles.Exchange scanners:
top_gainers,top_losers,bollinger_scan(squeeze detection),rating_filter(BB −3…+3),volume_breakout_scanner,smart_volume_scanner(volume + RSI),consecutive_candles_scan,advanced_candle_pattern.Single-symbol analysis:
coin_analysis(full indicator readout),volume_confirmation_analysis,multi_timeframe_analysis(W→D→4H→1H→15m alignment),combined_analysis(TA + sentiment + news),multi_agent_analysis(technical/sentiment/risk debate → decision).EGX (Egypt) suite:
egx_market_overview,egx_sector_scan,egx_sector_scanner(rotation),egx_index_analysis,egx_stock_screener,egx_trade_plan,egx_fibonacci_retracement.Futures:
futures_market_overview,futures_top_movers,futures_category_snapshot,futures_watchlist(equity index, energy, metals, ags, rates, FX, crypto futures).Multi-market stock screening:
stock_screener(by country/share type, up to 2000 rows) andstock_prices(bulk EXCHANGE:SYMBOL quotes).Robustness: structured error envelopes (
{"error": {code, message, retryable}}) on several tools to distinguish "no matches" from upstream failures.Disclaimer: informational/educational only — no trade execution, not financial advice.
Enables querying market data, running backtests, and getting sentiment through Discord messages via the OpenClaw gateway.
Provides live market sentiment analysis from Reddit news and posts.
Provides live market sentiment analysis from RSS news feeds.
Enables querying market data, running backtests, and getting sentiment through Telegram messages via the OpenClaw gateway.
Enables querying market data, running backtests, and getting sentiment through WhatsApp messages via the OpenClaw gateway.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@TradingMCP get RSI and MACD for AAPL"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
TradingMCP: Market Data & Technical Analysis for AI Assistants
TradingMCP is an open-source MCP server: market data, backtesting, options, smart-money analysis and news sentiment for Claude, ChatGPT, Cursor, Copilot, and any MCP client. Stocks, ETFs, indices, crypto, FX and metals.
Don't want to install anything? TradingMCP, the hosted version of this server, gives you these tools in your AI app, plus charts and a markets panel drawn in the chat. In Claude, Cursor or Grok, add https://mcp.tradingmcp.ai/mcp as a connector and sign in: no key to paste. ChatGPT, Copilot and other MCP clients connect with a private link. From $9/mo with a 14-day money-back guarantee; self-hosting stays free.
Sponsor: Whop: sell your courses, software and communities online.
Morning market brief in one prompt: ask "give me this morning's market brief" and get global indices, the Bitcoin pulse and the hosted Markets panel in one answer. Charts are drawn right in the chat. In Grok Bot, add the Market Brief bot to get one on weekday mornings.
The hosted version (TradingMCP) draws charts. Ask for a chart and an interactive candlestick view (1d / 1h / 15m, optional Bollinger overlay) renders live inside the conversation via MCP Apps — and the AI reads the band values back to you.
Add one URL and sign in (or pip install), then just ask.
Try these first — they work in Claude, ChatGPT, Cursor, or any MCP client:
What did the market do today?
What is NVDA doing in after-hours trading?
Any unusual options activity on TSLA?
Backtest an RSI strategy on BTC on the daily timeframeMarket data comes from Yahoo Finance and CoinGecko, and news from Marketaux. You are responsible for ensuring your own use complies with the terms of any data source you use.
Not financial advice. Nothing produced by this software is investment, financial, legal, tax, or accounting advice. TradingMCP is an informational and educational analysis tool. Its outputs, including indicators, scores, signals, "trade setups", entries, stop losses, and targets, are computed from third party market data and are not recommendations to buy, sell, or hold any asset. It does not execute trades, manage money, or guarantee any result. Trading and investing carry a substantial risk of loss, and you can lose some or all of your capital. Always do your own research and consult a licensed professional before making any financial decision. You are solely responsible for your own decisions and for complying with the laws and regulations that apply to you. Market data may be delayed, inaccurate, or incomplete, and is provided without warranty.
Prefer zero setup? Use the hosted version. TradingMCP serves these tools, with charts drawn in the chat, in Claude, ChatGPT, Cursor, Grok and Copilot — no uv or Python to wrangle, and in Claude, Cursor and Grok you just sign in instead of pasting a key. From $9/mo (Pro) or $29.99/mo (Pro+ — higher limits), with a 14-day money-back guarantee. Self-hosting stays free forever; hosted is just for folks who'd rather skip the ops. (Full self-host vs hosted comparison in Quick Start below.)
⭐ If this tool improves your workflow, please star the repo and consider sponsoring — it keeps the project alive and growing!
✨ Why TradingMCP?
Feature | TradingMCP | Traditional Setups | Bloomberg Terminal |
Setup Time | 5 minutes | Hours (Docker, Conda...) | Weeks (Contracts) |
Cost | Free & Open Source | Variable | $30k+/year |
Backtesting | ✅ 9 strategies + Walk-forward + Sharpe | ❌ Manual scripting | ✅ Proprietary |
News & Sentiment | ✅ Licensed news + per-ticker sentiment (Marketaux) | ❌ Separate setup | ✅ Terminal |
Market Data | ✅ Live / Real-Time | Historical / Delayed | Live |
API Keys | None for market data (free Marketaux key for news) | Multiple (OpenAI, etc.) | N/A |
Security notice: impersonating copies of this repository. This project is Python-only and has no official npm / Node.js package. The only official sources are this repository (atilaahmettaner/tradingmcp) and the hosted version, TradingMCP, at tradingmcp.ai (formerly pro.cryptosieve.com).
Copies of this repository published under other accounts add a package.json whose dependencies install malware through npm (for example oracle-redis, MAL-2026-16390). If you cloned a copy of this repository from another account and ran npm install, treat that machine as compromised. Thanks to @roberttidball for the report (#101).
Related MCP server: FinClaw
🚀 Quick Start (5 Minutes)
Two ways to run it:
🧑💻 Self-host (this repo) | ☁️ Hosted — TradingMCP | |
Price | Free forever (MIT) | $9/mo Pro · $29.99/mo Pro+ · 14-day money-back guarantee |
Time to first call | ~5 minutes (Python + | ~60 seconds (add one URL, sign in) |
Updates & ops | You run and update it | Managed — always on the latest |
Runs on | Your machine or VPS | Hosted, streamed from the edge |
Limits | Your hardware | 2,500/mo · 60/min (Pro) → 10,000/mo · 150/min (Pro+) |
Best for | Tinkerers, forkers, full control | Folks who'd rather skip the ops |
☁️ Zero setup: add
https://mcp.tradingmcp.ai/mcpas a connector in Claude, Cursor or Grok and sign in; ChatGPT, Copilot and other clients use your private link → get started with TradingMCP from $9/mo (14-day money-back guarantee) · setup guide. Everything below is for self-hosting.
Install
pip install "git+https://github.com/atilaahmettaner/tradingmcp"These commands install the current code from this GitHub repository.
Optional: news & sentiment (free Marketaux key)
financial_news and market_sentiment are powered by Marketaux —
licensed market news with per-entity sentiment. Grab a free API key
(100 requests/day; the server caches for 4h and shares one fetch between news
and sentiment, so the free tier goes a long way) and set:
export MARKETAUX_API_TOKEN=your_token_here # optionalWithout a token those two tools return a friendly "not configured" note — all other tools work normally.
Claude Desktop Config (claude_desktop_config.json)
Note: On macOS, GUI apps like Claude Desktop may not have
~/.local/binin their PATH. Use the full path touvxto avoid "command not found" errors.
{
"mcpServers": {
"tradingmcp": {
"command": "/Users/YOUR_USERNAME/.local/bin/uvx",
"args": ["--from", "git+https://github.com/atilaahmettaner/tradingmcp", "tradingmcp"]
}
}
}On Linux, replace /Users/YOUR_USERNAME with /home/YOUR_USERNAME. On Windows, use %USERPROFILE%\.local\bin\uvx.exe.
Codex
This repository ships Codex plugin metadata (.codex-plugin/plugin.json, .codex-mcp.json) that runs the server from this repository. Setup: INSTALLATION.md → Codex Plugin.
Or run from source
git clone https://github.com/atilaahmettaner/tradingmcp
cd tradingmcp
uv run tradingmcp🛠️ Troubleshooting
An executable named … is not provided by package tradingmcp
The command was renamed in 1.0.0. In your client config, change the command name (the argument after the repository URL) to tradingmcp; the config above is complete. The changelog lists what each other way of running the server has to change.
🪟 Windows: MCP error -32001: Request timed out on first launch
Python 3.14 is not supported yet: add "--python", "3.13" to the uvx args.
Symptom — you see this in the Claude Desktop logs shortly after adding the config:
[tradingmcp] Server started and connected successfully
[tradingmcp] Message from client: initialize ...
[60 seconds later]
[tradingmcp] notifications/cancelled — reason: "MCP error -32001: Request timed out"Why it happens: Python 3.14 is not supported yet. uvx downloads the server, creates a fresh virtualenv, and installs dependencies the first time it runs. Some native dependencies in the MCP stack do not currently publish compatible Python 3.14 wheels, so installation can fall back to source builds or fail before Claude Desktop finishes initializing the server.
Fix — pin to Python 3.13:
{
"mcpServers": {
"tradingmcp": {
"command": "uvx",
"args": ["--python", "3.13", "--from", "git+https://github.com/atilaahmettaner/tradingmcp", "tradingmcp"]
}
}
}On macOS use the full path to uvx (see the note in Quick Start). On Windows uvx is typically %USERPROFILE%\.local\bin\uvx.exe.
Alternative — pre-install once, then let Claude Desktop reuse the cache:
# Run in a terminal before launching Claude Desktop
uv tool install --python 3.13 "git+https://github.com/atilaahmettaner/tradingmcp"After the install finishes, start Claude Desktop with the normal config and the server will come up instantly (cache is already warm).
⚠️ Error Envelope Format
Tools that have adopted the structured error format return either their normal payload or an error envelope, so a caller can tell "no matches today" from an upstream outage.
{"error": {"code": "UPSTREAM_ERROR", "message": "Failed to fetch history for 'AAPL': ...", "yahoo_symbol": "AAPL", "retryable": true}}Why: the previous [] / {"error": "Analysis failed: ..."} strings made it impossible to distinguish "no matches today" from "upstream rate-limit cliff." The new envelope is programmatically branchable by code, and retryable tells the caller whether waiting and retrying can help (upstream storms pass; a missing dependency won't fix itself).
Coverage: smart_money_analysis and egx_smart_money_scanner build their errors with the envelope helpers; the two options tools use them only for unexpected errors. Not migrated yet: market_sentiment, financial_news, the three backtest tools, yahoo_price, market_snapshot, bitcoin_market_pulse and stock_extended_hours; tracked in #76.
Detecting an error:
result = smart_money_analysis(symbol="AAPL", exchange="NASDAQ")
if isinstance(result.get("error"), dict):
code = result["error"]["code"]
if result["error"].get("retryable"):
# Wait and retry, raise an alert, etc.
...
else:
...Stable codes are defined in core/errors.py.
📱 Use via Telegram, WhatsApp & More (OpenClaw)
Connect this server to Telegram, WhatsApp, Discord and 20+ messaging platforms using OpenClaw — a self-hosted AI gateway. Tested & verified on Hetzner VPS (Ubuntu 24.04).
How It Works
OpenClaw routes Telegram messages to an AI agent. The agent uses
trading.py— a thin Python wrapper — to call TradingMCP functions and return formatted results. No MCP protocol needed between OpenClaw and the server; it's a direct Python import.
Telegram → OpenClaw agent (AI model) → trading.py (bash) → TradingMCP → Yahoo FinanceQuick Setup
# 1. Install UV and the server
curl -LsSf https://astral.sh/uv/install.sh | sh && source ~/.bashrc
uv tool install "git+https://github.com/atilaahmettaner/tradingmcp"
# 2. Configure OpenClaw channels
cat > ~/.openclaw/openclaw.json << 'EOF'
{
channels: {
telegram: {
botToken: "YOUR_BOT_TOKEN_HERE",
},
},
}
EOF
# 3. Configure gateway + agent
openclaw config set gateway.mode local
openclaw config set acp.defaultAgent main
# 4. Set your AI model (choose ONE option below)
openclaw configure --section model
# 5. Install the skill + tool wrapper
mkdir -p ~/.agents/skills/tradingmcp ~/.openclaw/tools
curl -fsSL https://raw.githubusercontent.com/atilaahmettaner/tradingmcp/main/openclaw/SKILL.md \
-o ~/.agents/skills/tradingmcp/SKILL.md
curl -fsSL https://raw.githubusercontent.com/atilaahmettaner/tradingmcp/main/openclaw/trading.py \
-o ~/.openclaw/tools/trading.py && chmod +x ~/.openclaw/tools/trading.py
# 6. Start the gateway
openclaw gateway install
systemctl --user start openclaw-gateway.serviceChoose Your AI Model
OpenRouter is not required — use whichever provider you have a key for:
Provider | Model ID for OpenClaw | Get Key |
OpenRouter (aggregator — access to all models) |
| |
Anthropic (Claude direct) |
| |
Google (Gemini direct) |
| |
OpenAI (GPT direct) |
|
# Examples — set your chosen model:
openclaw config set agents.defaults.model "openrouter/google/gemini-3-flash-preview" # via OpenRouter
openclaw config set agents.defaults.model "anthropic/claude-sonnet-4-5" # Anthropic direct
openclaw config set agents.defaults.model "google/gemini-2.5-flash" # Google direct⚠️ Important: Prefix must match your provider.
google/...needs a Google API key.openrouter/...needs an OpenRouter key.
⚠️ Common Mistakes
Symptom | Cause | Fix |
|
| Remove from config, use bash wrapper |
| Used | Use |
|
|
|
Gateway won't start |
|
|
Test Your Bot
Once running, send your Telegram bot:
market snapshot
backtest RSI strategy for AAPL, 1 year
compare all strategies for BTC-USD🔧 All 13 MCP Tools
The technical-analysis, scanner, futures and EGX market tools of earlier versions are not in this version. They are being rebuilt on a different data source.
📊 Backtesting Engine
Tool | Description |
| Backtest 1 of 9 strategies with institutional metrics (Sharpe, Calmar, Expectancy). Supports |
| Run all 9 strategies on the same symbol and rank by performance. |
| Train/test split walk-forward validation with overfitting verdict (ROBUST / MODERATE / WEAK / OVERFITTED). |
9 Strategies to Test:
rsi— RSI oversold/overbought mean reversionbollinger— Bollinger Band mean reversionmacd— MACD golden/death crossema_cross— EMA 20/50 Golden/Death Crosssupertrend— ATR-based Supertrend trend followingdonchian— Donchian Channel breakout (Turtle Trader style)rsi_pullback— Dip-buy in confirmed uptrend (SMA50>SMA200 + RSI<40 entry)keltner_breakout— ATR-normalized breakout (EMA20 + 2·ATR upper band)triple_ema— EMA 20/50 cross gated by SMA200 trend filter
rsi_pullback,keltner_breakoutandtriple_emaneedperiod='1y'or'2y'so the SMA200 trend filter can complete its warmup.
Metrics you get: Win Rate, Total Return, Sharpe Ratio, Calmar Ratio, Max Drawdown, Profit Factor, Expectancy, Best/Worst Trade, vs Buy-and-Hold, with realistic commission + slippage simulation.
Example prompt: "Compare all 9 strategies on MSFT for 2 years"
→ #1 triple_ema: +15.1% | Sharpe: 0.0 | WR: 100%
→ #2 keltner_breakout: +14.3% | Sharpe: 4.7 | WR: 40%
→ #3 bollinger: +12.2% | Sharpe: 4.1 | WR: 64%
→ Buy & Hold: -2.1%💰 Prices & Market Overview
Tool | Description |
| Quote from Yahoo Finance: price, change %, 52w high/low, market state |
| Global overview: S&P500, NASDAQ, VIX, BTC, ETH, EUR/USD, SPY, GLD |
| BTC price, dominance, total crypto market cap and a risk read (CoinGecko). |
| US pre-market and after-hours prices. |
yahoo_price supports: Stocks (AAPL, TSLA, NVDA), Crypto (BTC-USD, ETH-USD, SOL-USD), ETFs (SPY, QQQ, GLD), Indices (^GSPC, ^DJI, ^IXIC, ^VIX), FX (EURUSD=X), Turkish (THYAO.IS, SASA.IS)
🕵️ Smart Money
Tool | Description |
| Banker / hot-money accumulation read from price and volume history. |
| Ranks EGX index constituents by smart-money accumulation. |
🧠 News & Sentiment (Marketaux)
Tool | Description |
| Latest financial headlines from Marketaux (licensed), optionally for one symbol. |
| News sentiment for a stock or coin: bullish/bearish score and the articles behind it. |
Self-hosting? These two need a free MARKETAUX_API_TOKEN (see Quick Start).
🧾 US Options
Tool | Description |
| Full options chain (calls + puts) for a US stock and one expiry. |
| Strikes with unusual volume vs open interest, plus call vs put volume. |
💬 Example AI Conversations
You: "Give me a full market snapshot right now"
AI: [market_snapshot] → S&P500 -3.4%, BTC +0.1%, VIX 31 (+13%), EUR/USD 1.15
You: "What's the news sentiment on NVDA?"
AI: [market_sentiment] → Strongly Bullish (0.41) | 3 articles | 2 bullish
You: "Backtest RSI strategy on BTC-USD for 2 years"
AI: [backtest_strategy] → +31.5% return | 100% win rate | 2 trades | B&H: -5%
You: "Which of the 9 strategies worked best on MSFT in the last 2 years?"
AI: [compare_strategies] → triple_ema #1 (+15.1%, WR 100%), keltner_breakout #2 (+14.3%), macd last (-23.4%)
You: "Run walk-forward backtest on supertrend for SPY"
AI: [walk_forward_backtest_strategy] → Verdict: ROBUST (avg robustness 0.92) | OOS return +8.5%💖 Support the Project
This framework is free and open source, built in spare time. If it saves you hours of research or helps you make better decisions, please consider sponsoring:
Tier | Monthly | What You Get |
☕ Coffee | $5 | Heartfelt gratitude + name in README |
🚀 Supporter | $15 | Above + priority bug fixes |
💎 Pro | $30 | Above + priority feature requests |
📄 License
MIT License — see LICENSE for details.
Disclaimer: This tool is for educational and research purposes only. It does not constitute financial advice. Always do your own research before making investment decisions.
Available Tools
37 toolsadvanced_candle_patternCInspect
Advanced candle pattern analysis using multi-timeframe data.
Args: exchange: Exchange name (BINANCE, KUCOIN, etc.) base_timeframe: Base timeframe for analysis (5m, 15m, 1h, 4h) pattern_length: Number of consecutive periods to analyse (2-4) min_size_increase: Minimum percentage increase in candle size limit: Maximum number of results to return
Inputs: limit, exchange, base_timeframe, pattern_length, +1 more.
backtest_strategyAInspect
Backtest a trading strategy on historical data with institutional-grade metrics.
Args: symbol: Yahoo Finance symbol (AAPL, BTC-USD, THYAO.IS, ^GSPC) strategy: rsi | bollinger | macd | ema_cross | supertrend | donchian | rsi_pullback | keltner_breakout | triple_ema (rsi_pullback and triple_ema need period >= '1y' for SMA200 warmup) period: '1mo', '3mo', '6mo', '1y', '2y' initial_capital: Starting capital in USD (default $10,000) commission_pct: Per-trade commission % (default 0.1%) slippage_pct: Per-trade slippage % (default 0.05%) interval: '1d' (daily) or '1h' (hourly) include_trade_log: Include full per-trade log (default False) include_equity_curve: Include equity curve data points (default False)
Inputs: symbol (required), strategy (required), period, interval, +5 more.
bitcoin_market_pulseAInspect
Single-call BTC macro context: price, dominance, total market cap + risk assessment.
Use this WHENEVER analyzing any cryptocurrency (altcoin or BTC itself) to get the broader market frame in one shot. A SOL/ETH/whatever setup looks very different when BTC is dumping with rising dominance vs. when alts are leading. Calling this once gives Claude the macro context to provide Bitcoin-aware commentary alongside the per-coin analysis - without chaining 2-3 separate yahoo_price + manual reasoning calls.
Returns:
bitcoin: price, 24h change %, volume, market cap
dominance: BTC and ETH market-cap share of total crypto
total_market: total crypto mcap + 24h change + active coin count
assessment: label (HIGH_RISK / ALT_RISK / ALT_FAVORABLE / OPPORTUNITY_WITH_CAUTION / NEUTRAL) + 1-paragraph reasoning
Inputs: no named parameters.
bollinger_scanAInspect
Scan for assets with low Bollinger Band Width (squeeze detection). Works with crypto and stocks.
This scans a whole EXCHANGE for squeezes (canonical name is exactly
bollinger_scan; there is no "get_bollinger_band_analysis" tool). For
the Bollinger read of ONE symbol, call coin_analysis instead.
Example: bollinger_scan(exchange="BINANCE", timeframe="15m", bbw_threshold=0.008)
Args: exchange: Exchange — crypto: KUCOIN, BINANCE, BYBIT, MEXC; stocks: EGX, BIST, NASDAQ, NYSE, BURSA, HKEX, SSE, SZSE, TWSE, TPEX timeframe: One of 5m, 15m, 1h, 4h, 1D, 1W, 1M. Typical squeeze thresholds: 15m→0.008, 1h→0.02, 4h→0.04, 1D→0.12 bbw_threshold: Maximum BBW value to filter (default 0.04) limit: Number of rows to return (max 100)
Inputs: limit, exchange, timeframe, bbw_threshold. Returns: result
coin_analysisAInspect
Get detailed analysis for a specific asset (coin or stock) on specified exchange and timeframe.
This is the canonical single-symbol technical readout (there is no
"get_technical_analysis" or "get_technical_summary" tool — use THIS one).
Use multi_timeframe_analysis instead when you need trend alignment
across several timeframes, and combined_analysis when you also want
news sentiment + headlines in the same call.
Example: coin_analysis(symbol="BTCUSDT", exchange="BINANCE", timeframe="1h")
Args:
symbol: Bare ticker, no exchange prefix — crypto: "BTCUSDT", "ETHUSDT"; stocks: "COMI" (EGX), "THYAO" (BIST), "600519" (SSE), "300251" (SZSE), "2330" (TWSE), "3105" (TPEX)
exchange: Exchange — crypto: KUCOIN, BINANCE, MEXC; stocks: EGX, BIST, NASDAQ, NYSE, BURSA, HKEX, SSE, SZSE, TWSE, TPEX. If the symbol isn't listed there, the error's listed_on field names exchanges that do list it.
timeframe: Time interval (5m, 15m, 1h, 4h, 1D, 1W, 1M)
Returns: Detailed analysis with all indicators and metrics
Inputs: symbol (required), exchange, timeframe.
combined_analysisAInspect
POWER TOOL: TradingView technical analysis + news sentiment + financial news.
Use this when you want TA AND sentiment AND news for one symbol in a
single call. For indicators only, coin_analysis is faster; for
cross-timeframe trend alignment use multi_timeframe_analysis.
Example: combined_analysis(symbol="NVDA", exchange="NASDAQ", timeframe="1D")
Args: symbol: Bare ticker, no exchange prefix ("AAPL", "BTCUSDT", "THYAO", "GDX") exchange: Exchange (NASDAQ, NYSE, AMEX, NYSEARCA, PCX, BINANCE, KUCOIN, MEXC, BIST, EGX, TWSE, TPEX) timeframe: Analysis timeframe (5m, 15m, 1h, 4h, 1D, 1W)
Inputs: symbol (required), exchange, timeframe.
compare_strategiesAInspect
Run all 9 strategies (RSI, Bollinger, MACD, EMA Cross, Supertrend, Donchian, RSI Pullback, Keltner Breakout, Triple EMA) and return a ranked leaderboard.
Args: symbol: Yahoo Finance symbol (AAPL, BTC-USD, SPY…) period: '1mo', '3mo', '6mo', '1y', '2y' (period >= '1y' recommended so rsi_pullback and triple_ema can complete SMA200 warmup; otherwise they contribute zero trades) initial_capital: Starting capital in USD (default $10,000) interval: '1d' (daily) or '1h' (hourly)
Inputs: symbol (required), period, interval, initial_capital.
consecutive_candles_scanAInspect
Scan for coins with consecutive growing/shrinking candles pattern.
Args: exchange: Exchange name (BINANCE, KUCOIN, etc.) timeframe: Time interval (5m, 15m, 1h, 4h) pattern_type: "bullish" (growing candles) or "bearish" (shrinking candles) candle_count: Number of consecutive candles to check (2-5) min_growth: Minimum growth percentage for each candle limit: Maximum number of results to return
Inputs: limit, exchange, timeframe, min_growth, +2 more.
egx_fibonacci_retracementAInspect
Fibonacci retracement analysis for EGX stocks.
Args: symbol: EGX stock symbol (e.g., "COMI", "TMGH", "FWRY") lookback: Period for swing high/low — "1M", "3M", "6M", "52W", "ALL" (default 52W) timeframe: Analysis timeframe (5m, 15m, 1h, 4h, 1D, 1W, 1M — default 1D)
Inputs: symbol (required), lookback, timeframe.
egx_index_analysisCInspect
Analyse an EGX index showing constituent performance with full indicators.
Args: index: EGX30, EGX70, EGX100, SHARIAH33, EGX35LV, TAMAYUZ timeframe: One of 5m, 15m, 1h, 4h, 1D, 1W, 1M (default 1D) limit: Number of stocks to show in detail (max 100)
Inputs: index, limit, timeframe.
egx_market_overviewBInspect
Get a comprehensive overview of the Egyptian Exchange (EGX) market.
Args: timeframe: One of 5m, 15m, 1h, 4h, 1D, 1W, 1M (default 1D for stocks) limit: Number of stocks per category (max 20)
Inputs: limit, timeframe.
egx_sector_scanBInspect
Scan EGX stocks by sector. Shows available sectors if none specified.
Args: sector: Sector name (banks, healthcare_and_pharma, real_estate, etc.) Leave empty to list all sectors. timeframe: One of 5m, 15m, 1h, 4h, 1D, 1W, 1M limit: Max results per sector (max 50)
Inputs: limit, sector, timeframe.
egx_sector_scannerBInspect
Sector rotation scanner for EGX — identifies hot/cold sectors and top picks.
Args: timeframe: One of 5m, 15m, 1h, 4h, 1D, 1W, 1M (default 1D) top_n_sectors: Number of top sectors to show stock picks for (1-18, default 5) top_n_stocks: Number of top stocks per highlighted sector (1-10, default 3) min_stock_score: Minimum stock score for picks (0-100, default 60)
Inputs: timeframe, top_n_stocks, top_n_sectors, min_stock_score.
egx_stock_screenerAInspect
Production stock ranking engine for EGX — finds strong stocks with actionable setups.
Args: timeframe: One of 5m, 15m, 1h, 4h, 1D, 1W, 1M (default 1D) min_score: Minimum stock score to include (0-100, default 55) index_filter: Filter by index — EGX30, EGX70, EGX100, SHARIAH33, EGX35LV, TAMAYUZ limit: Number of results (max 50)
Inputs: limit, min_score, timeframe, index_filter.
egx_trade_planBInspect
Generate a full trade plan for a specific EGX stock.
Args: symbol: EGX stock symbol (e.g., "COMI", "TMGH", "FWRY") timeframe: One of 5m, 15m, 1h, 4h, 1D, 1W, 1M (default 1D)
Inputs: symbol (required), timeframe.
financial_newsAInspect
Real-time financial news via Marketaux (licensed).
Args: symbol: Optional symbol filter ("AAPL", "BTC"). None = all news. category: News category ("crypto", "stocks", "all") limit: Max number of news items
Inputs: limit, symbol, category.
futures_category_snapshotAInspect
Quote all major front-month contracts in a specific futures category.
Args: category: equity_index | energy | metals | agriculture | rates | forex | crypto_futures
Returns: OHLCV quotes for the standard watchlist of contracts in that category. Example symbols: ES1! NQ1! (equity_index), CL1! NG1! (energy), GC1! SI1! (metals).
Inputs: category.
futures_market_overviewAInspect
Top futures contracts sorted by trading volume.
Args: category: all | equity_index | energy | metals | agriculture | rates | forex | crypto_futures exchanges: us (CME, COMEX, NYMEX, CBOT) | global (adds ICE, EUREX) limit: max contracts to return (default 30) volume_min: minimum volume filter (0 = no filter)
Returns: Dict with total_available count and list of contracts with OHLCV + % change.
Inputs: limit, category, exchanges, volume_min.
futures_top_moversAInspect
Futures contracts with the biggest percentage moves today.
Args: direction: gainers | losers exchanges: us | global limit: max results volume_min: minimum volume filter (default 10, filters illiquid contracts)
Returns: List of futures ranked by % change with OHLCV data.
Inputs: limit, direction, exchanges, volume_min.
futures_watchlistAInspect
Return the full categorized list of well-known front-month futures symbols.
Categories: equity_index, energy, metals, agriculture, rates, forex, crypto_futures. Use these symbols with futures_category_snapshot or coin_analysis for deeper analysis.
Inputs: no named parameters.
market_sentimentCInspect
News sentiment for stocks and crypto (licensed Marketaux entity sentiment).
Args: symbol: Asset symbol ("AAPL", "BTC", "ETH", "TSLA") category: News group to search ("crypto", "stocks", "all") limit: Max articles to analyse
Inputs: symbol (required), limit, category.
market_snapshotAInspect
Global market overview: major indices, top crypto, FX rates, and key ETFs. Powered by Yahoo Finance.
Inputs: no named parameters.
multi_agent_analysisAInspect
Run a multi-agent debate (Technical, Sentiment, Risk) for a specific symbol.
Args: symbol: Symbol — crypto: "BTCUSDT"; stocks: "COMI" (EGX), "THYAO" (BIST), "600519" (SSE), "300251" (SZSE), "2330" (TWSE), "3105" (TPEX), "GDX" (AMEX) exchange: Exchange — crypto: KUCOIN, BINANCE, MEXC; stocks: EGX, BIST, NASDAQ, NYSE, AMEX, NYSEARCA, PCX, SSE, SZSE, TWSE, TPEX timeframe: Time interval (5m, 15m, 1h, 4h, 1D, 1W)
Returns: A structured debate between 3 AI agents culminating in a final trading decision.
Inputs: symbol (required), exchange, timeframe.
multi_timeframe_analysisAInspect
Multi-timeframe alignment analysis (Weekly → Daily → 4H → 1H → 15m).
Canonical name is exactly multi_timeframe_analysis (there is no
"get_multi_timeframe_analysis" tool). Use this for cross-timeframe trend
alignment on ONE symbol; for a single-timeframe deep dive use
coin_analysis; for TA + sentiment + news use combined_analysis.
Example: multi_timeframe_analysis(symbol="SOLUSDT", exchange="BINANCE")
Args: symbol: Bare ticker, no exchange prefix — crypto: "BTCUSDT"; stocks: "COMI" (EGX), "THYAO" (BIST), "600519" (SSE), "300251" (SZSE), "2330" (TWSE), "3105" (TPEX), "GDX" (AMEX) exchange: Exchange — crypto: KUCOIN, BINANCE, MEXC; stocks: EGX, BIST, NASDAQ, NYSE, AMEX, NYSEARCA, PCX, SSE, SZSE, TWSE, TPEX
Inputs: symbol (required), exchange.
rating_filterAInspect
Filter coins by Bollinger Band rating.
Args: exchange: Exchange name like KUCOIN, BINANCE, BYBIT, MEXC, etc. timeframe: One of 5m, 15m, 1h, 4h, 1D, 1W, 1M rating: BB rating (-3 to +3): -3=Strong Sell, -2=Sell, -1=Weak Sell, 1=Weak Buy, 2=Buy, 3=Strong Buy limit: Number of rows to return (max 50)
Returns list[dict] on success, or an error envelope on total upstream
failure ({"error": {"code": "ALL_BATCHES_FAILED", ...}}).
Inputs: limit, rating, exchange, timeframe. Returns: result
smart_volume_scannerAInspect
Smart volume + technical analysis combination scanner.
Args: exchange: Exchange name min_volume_ratio: Minimum volume multiplier (default 2.0) min_price_change: Minimum price change percentage (default 2.0) rsi_range: "oversold" (<30), "overbought" (>70), "neutral" (30-70), "any" limit: Number of results (max 30)
Returns list[dict] on success, or an error envelope on total upstream
failure ({"error": {"code": "ALL_BATCHES_FAILED", ...}}) — inherited
from the inner volume_breakout_scan call.
Inputs: limit, exchange, rsi_range, min_price_change, +1 more. Returns: result
stock_extended_hoursAInspect
Real-time pre-market and after-hours prices for a US stock symbol.
Use this when the user asks about a stock outside the regular 9:30am-4pm ET session — earnings reactions, overnight news, "what is X doing in after-hours?", "how did Y open in pre-market?". Returns the most recent valid print from each session window (pre-market, regular, post-market) along with computed % changes vs. the previous close and the regular close, respectively.
During the regular session, post_market will be null (no data yet). On weekends/holidays, returns whatever's most recent in each window.
Args: symbol: US stock symbol — AAPL, NVDA, TSLA, SPY, ^GSPC, etc.
Returns: - pre_market: {price, as_of_utc, change_vs_previous_close_pct} or null - regular: {price, as_of_utc, change_pct} (consolidated tape close) - post_market: {price, as_of_utc, change_vs_regular_close_pct} or null - previous_close, currency, exchange, market_state for context
Inputs: symbol (required).
stock_options_chainAInspect
Full options chain (calls + puts) for a US stock symbol and one expiry.
Use this when the user asks "what's the options chain for X?", "show me AAPL puts expiring next Friday", or wants to inspect bid/ask/IV/volume on a specific strike. If no expiry is provided, returns the nearest expiry so Claude can quote it back and ask "want a different one?".
Args:
symbol: US stock symbol — AAPL, NVDA, TSLA, SPY, etc.
expiry: Optional ISO date (YYYY-MM-DD). Must match one of the
available_expiries Yahoo returns; otherwise returns an error
with the list of valid dates.
Returns: - underlying_price, underlying_change_pct - requested_expiry, available_expiries (list of YYYY-MM-DD) - call_count, put_count - calls: list of {strike, last_price, bid, ask, volume, open_interest, implied_volatility, in_the_money, expiration} - puts: same shape as calls
Inputs: symbol (required), expiry.
stock_options_unusual_activityAInspect
Top strikes by volume / open-interest ratio — institutional positioning signal.
Use this when the user asks "any unusual options activity on X?", "where is the smart money positioned on NVDA before earnings?", or wants a V/OI screener for a ticker. A V/OI ratio > 1 means today's volume already exceeds standing open interest, which classically flags fresh institutional positioning on a specific strike in a specific direction (call vs put).
Scans the soonest few expirations, filters out illiquid strikes (under
min_volume), and returns the top-N sorted by V/OI descending. Also
returns aggregate call vs put volume so Claude can comment on the
overall directional bias.
Args: symbol: US stock symbol — AAPL, NVDA, TSLA, SPY, META, etc. top_n: How many strikes to return. Default 10. min_volume: Filter floor for today's volume — prevents noise from illiquid strikes with high V/OI ratios. Default 100. expiries: Number of soonest expirations to scan. Default 4 (typically covers ~1 month of weeklies + monthlies).
Returns: - underlying_price - expiries_scanned (list of YYYY-MM-DD) - total_call_volume, total_put_volume, put_call_volume_ratio - unusual: list of top-N contracts sorted by V/OI desc, each with {strike, side (call|put), expiration, volume, open_interest, v_oi_ratio, last_price, implied_volatility, in_the_money, strike_vs_spot_pct (moneyness)}
Inputs: symbol (required), top_n, expiries, min_volume.
stock_pricesAInspect
Current price + daily % change for specific stock symbols.
Args: tickers: comma-separated EXCHANGE:SYMBOL list (max 2000 — one upstream request even at full size), e.g. "NASDAQ:NVDA, NASDAQ:TSLA, KRX:005930". The exchange prefix is required — the scanner's direct-ticker lookup is exchange-scoped.
Returns: Envelope dict: rows of {ticker, symbol, description, exchange, price, currency, change_percent} plus a not_found list naming any requested ticker the scanner didn't recognize.
Inputs: tickers (required).
stock_screenerAInspect
Screen stocks by share type — the API twin of TradingView's "Common stock" / "Preferred stock" symbol-search filter.
Args: country: TradingView market name — e.g. america, korea, germany, brazil, japan, uk, india, turkey, canada, australia, france, hongkong stock_type: common | preferred limit: rows to return (max 2000, single upstream request), ranked by market cap descending exclude_otc: default True — drop OTC listings (foreign companies traded over-the-counter); "america" otherwise means "US venue", not "US company" compact: default False — True returns only ticker/symbol/price/currency/ change_percent per row (light payload for bulk price feeds)
Returns: Envelope dict: total_matches (market-wide count), returned, and rows of {ticker, symbol, description, exchange, price, currency, change_percent, dividend_yield, market_cap}. Prices are in the market's local currency (e.g. KRW for korea).
Inputs: limit, compact, country, stock_type, +1 more.
top_gainersAInspect
Return top gainers for an exchange and timeframe using Bollinger Band analysis.
Args: exchange: Exchange name — crypto: KUCOIN, BINANCE, BYBIT, MEXC; stocks: EGX, BIST, NASDAQ, NYSE, BURSA, HKEX, SSE, SZSE, TWSE, TPEX timeframe: One of 5m, 15m, 1h, 4h, 1D, 1W, 1M limit: Number of rows to return (max 50)
Returns:
list[dict] on success. On total upstream failure returns a structured
error envelope: {"error": {"code": "ALL_BATCHES_FAILED", ...}}.
Inputs: limit, exchange, timeframe. Returns: result
top_losersAInspect
Return top losers for an exchange and timeframe. Supports crypto (KUCOIN, BINANCE, MEXC) and stocks (EGX, BIST, NASDAQ).
Returns list[dict] on success, or an error envelope on total upstream
failure ({"error": {"code": "ALL_BATCHES_FAILED", ...}}).
Inputs: limit, exchange, timeframe. Returns: result
volume_breakout_scannerAInspect
Detect coins with volume breakout + price breakout.
Args: exchange: Exchange name like KUCOIN, BINANCE, BYBIT, MEXC, etc. timeframe: One of 5m, 15m, 1h, 4h, 1D, 1W, 1M volume_multiplier: How many times the volume should be above normal level (default 2.0) price_change_min: Minimum price change percentage (default 3.0) limit: Number of rows to return (max 50)
Returns list[dict] on success, or an error envelope on total upstream
failure ({"error": {"code": "ALL_BATCHES_FAILED", ...}}). The empty
list now strictly means "no matches today"; rate-limit cliffs surface
explicitly.
Inputs: limit, exchange, timeframe, price_change_min, +1 more. Returns: result
volume_confirmation_analysisCInspect
Detailed volume confirmation analysis for a specific coin.
Args: symbol: Coin symbol (e.g., BTCUSDT) exchange: Exchange name timeframe: Time frame for analysis
Inputs: symbol (required), exchange, timeframe.
walk_forward_backtest_strategyAInspect
Walk-forward backtest to detect overfitting — validates strategy on unseen data.
Args: symbol: Yahoo Finance symbol (AAPL, BTC-USD, SPY…) strategy: rsi | bollinger | macd | ema_cross | supertrend | donchian | keltner_breakout (rsi_pullback and triple_ema not supported here — SMA200 warmup exceeds typical fold size; use run_backtest with period='2y') period: '1mo', '3mo', '6mo', '1y', '2y' (recommend '2y') initial_capital: Starting capital per fold in USD (default $10,000) commission_pct: Per-trade commission % (default 0.1%) slippage_pct: Per-trade slippage % (default 0.05%) n_splits: Number of walk-forward folds (default 3, max 10) train_ratio: Fraction of each fold used for training (default 0.7) interval: '1d' (daily) or '1h' (hourly)
Inputs: symbol (required), strategy (required), period, interval, +5 more.
yahoo_priceBInspect
Real-time price quote from Yahoo Finance for any stock, crypto, ETF or index.
Args: symbol: Yahoo Finance symbol — e.g. AAPL, BTC-USD, SPY, ^GSPC, EURUSD=X, THYAO.IS
Inputs: symbol (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 37 tools
Many tools have overlapping purposes (multiple scanners, multiple analysis tools), but detailed descriptions help differentiate them. Some tools like 'bollinger_scan' and 'rating_filter' serve distinct niches, but the high count makes it easy for an agent to pick the wrong one.
Naming conventions are inconsistent: some use verb_noun (e.g., 'bollinger_scan'), others use noun_verb (e.g., 'volume_breakout_scanner'), and some are descriptive phrases (e.g., 'stock_options_unusual_activity'). No uniform pattern is followed.
With 37 tools, the server feels overloaded. Many tools serve similar purposes (e.g., multiple scanners, multiple backtest variants), and the scope could be consolidated into a more focused set.
The tool set covers a wide range: scanning, detailed analysis, backtesting, market overview, news sentiment, and options. Missing areas like trade execution or portfolio management are likely out of scope, so the coverage is strong for its domain.
Maintenance
Related MCP Connectors
Trading MCP server for AI agents, with live market data, account reads and controlled execution.
MCP server exposing the Backtest360 engine API as tools for AI agents.
Financial data MCP server for Claude, ChatGPT, Cursor and Codex. Real-time stock quotes, financial statements, options flow, SEC filings, insider trades, 13F holdings, macro data and market news from gloom.sh, the open-source Bloomberg Terminal alternative.
Research-only MCP server: your AI as a quant research desk. 90 tools, no trades, no brokers.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceThe most complete AI-powered trading toolkit for Claude and MCP clients, offering backtesting, live sentiment, Yahoo Finance, and 30+ technical analysis tools in one MCP server.MIT
- AlicenseNot gradedqualityDmaintenanceMCP server that provides AI agents with financial tools including real-time quotes, backtesting, technical analysis, and multi-exchange data via a simple CLI interface.2MIT
- FlicenseNot gradedqualityDmaintenanceEnables quant research, strategy generation, backtesting, and paper trading from natural language prompts, integrating with AI agents via an MCP server.24-
- FlicenseNot gradedqualityBmaintenanceA comprehensive MCP server that integrates TradingView Desktop automation, screener API, Yahoo Finance, IDX/BEI tools, backtesting, news sentiment, trade math, and market sessions. It enables traders to perform technical analysis, backtest strategies, manage positions, and automate TradingView tasks through natural language.-