About Tradingview MCP
Tradingview MCP is an MCP server published by atilaahmettaner in the Finance category: mCP server for market analysis in AI assistants: screeners, multi-timeframe technical analysis, backtests and sentiment for crypto, stocks, forex and futures. 39 tools. Self-host free, or use the hosted version, TradingMCP. Conduid read 39 tools from its source: advanced_candle_pattern, backtest_strategy, bitcoin_market_pulse, bollinger_scan, coin_analysis, combined_analysis and 33 more. It is published to PyPI as tradingview-mcp-server and runs with uvx.
The repository has 5.4K stars and 1.0K forks, is licensed MIT, and its last commit was on 1 Dec 2026. The latest release is v0.8.0. The release before it was v0.4.0. It passes 5 of the 6 static checks Conduid ran on the repository; it does not pass Scoped permissions. Its topics include finance.
Install
claude mcp add tradingview-mcp -- uvx --from tradingview-mcp-server tradingview-mcpuvx --from tradingview-mcp-server tradingview-mcpuvx tradingview-mcp-serverpip install tradingview-mcp-servergit clone https://github.com/atilaahmettaner/tradingmcpTools (39)
advanced_candle_patternCandle pattern analysis across timeframes.| Parameter | Type | Description |
|---|---|---|
| base_timeframe | string | Base timeframe for analysis (5m, 15m, 1h, 4h) |
| exchange | string | Exchange name (BINANCE, KUCOIN, etc.) |
| limit | integer | Maximum number of results to return |
| min_size_increase | number | Minimum percentage increase in candle size |
| pattern_length | integer | Number of consecutive periods to analyse (2-4) |
backtest_strategyBacktest 1 of 9 strategies with institutional metrics (Sharpe, Calmar, Expectancy). Supports `1d` and `1h` timeframes; optional full trade log + equity curve.| Parameter | Type | Description |
|---|---|---|
| commission_pct | number | Per-trade commission % (default 0.1%) |
| include_equity_curve | boolean | Include equity curve data points (default False) |
| include_trade_log | boolean | Include full per-trade log (default False) |
| initial_capital | number | Starting capital in USD (default $10,000) |
| interval | string | '1d' (daily) or '1h' (hourly) |
| period | string | '1mo', '3mo', '6mo', '1y', '2y' |
| slippage_pct | number | Per-trade slippage % (default 0.05%) |
| strategy * | string | rsi | bollinger | macd | ema_cross | supertrend | donchian | rsi_pullback | keltner_breakout | triple_ema (rsi_pullback and triple_ema need period >= '1y' for SMA200 warmup) |
| symbol * | string | Yahoo Finance symbol (AAPL, BTC-USD, THYAO.IS, ^GSPC) |
bitcoin_market_pulseBTC price, dominance, total crypto market cap and a risk read (CoinGecko).bollinger_scanBollinger squeeze detection (low band width).| Parameter | Type | Description |
|---|---|---|
| bbw_threshold | number | Maximum BBW value to filter (default 0.04) |
| exchange | string | Exchange — crypto: KUCOIN, BINANCE, BYBIT, MEXC; stocks: EGX, BIST, NASDAQ, NYSE, BURSA, HKEX, SSE, SZSE, TWSE, TPEX, EPA (Euronext Paris), AMS, BRU, LIS, MIL, LSE, SIX, BME, XETRA, FWB, TSX, TSXV, NSE, BSE (India), IDX (Indonesia) |
| limit | integer | Number of rows to return (max 100) |
| timeframe | string | One of 5m, 15m, 1h, 4h, 1D, 1W, 1M. Typical squeeze thresholds: 15m→0.008, 1h→0.02, 4h→0.04, 1D→0.12 |
coin_analysisFull technical readout for one coin or stock on any supported exchange and timeframe.| Parameter | Type | Description |
|---|---|---|
| exchange | string | Exchange — crypto: KUCOIN, BINANCE, MEXC; stocks: EGX, BIST, NASDAQ, NYSE, BURSA, HKEX, SSE, SZSE, TWSE, TPEX, EPA (Euronext Paris), AMS, BRU, LIS, MIL, LSE, SIX, BME, XETRA, FWB, TSX, TSXV, NSE, BSE (India), IDX (Indonesia). If the symbol isn't listed there, the error's `listed_on` field names exchanges that do list it. |
| symbol * | string | Bare ticker, no exchange prefix — crypto: "BTCUSDT", "ETHUSDT"; stocks: "COMI" (EGX), "THYAO" (BIST), "600519" (SSE), "300251" (SZSE), "2330" (TWSE), "3105" (TPEX) |
| timeframe | string | Time interval (5m, 15m, 1h, 4h, 1D, 1W, 1M) |
combined_analysisPower Tool: technicals + news sentiment + headlines for one symbol, and whether they agree.| Parameter | Type | Description |
|---|---|---|
| exchange | string | Exchange (NASDAQ, NYSE, AMEX, NYSEARCA, PCX, BINANCE, KUCOIN, MEXC, BIST, EGX, TWSE, TPEX) |
| symbol * | string | Bare ticker, no exchange prefix ("AAPL", "BTCUSDT", "THYAO", "GDX") |
| timeframe | string | Analysis timeframe (5m, 15m, 1h, 4h, 1D, 1W) |
compare_strategiesRun all 9 strategies on the same symbol and rank by performance.| Parameter | Type | Description |
|---|---|---|
| initial_capital | number | Starting capital in USD (default $10,000) |
| interval | string | '1d' (daily) or '1h' (hourly) |
| period | string | '1mo', '3mo', '6mo', '1y', '2y' (period >= '1y' recommended so rsi_pullback and triple_ema can complete SMA200 warmup; otherwise they contribute zero trades) |
| symbol * | string | Yahoo Finance symbol (AAPL, BTC-USD, SPY…) |
consecutive_candles_scanRuns of consecutive growing or shrinking candles.| Parameter | Type | Description |
|---|---|---|
| candle_count | integer | Number of consecutive candles to check (2-5) |
| exchange | string | Exchange name (BINANCE, KUCOIN, etc.) |
| limit | integer | Maximum number of results to return |
| min_growth | number | Minimum growth percentage for each candle |
| pattern_type | string | "bullish" (growing candles) or "bearish" (shrinking candles) |
| timeframe | string | Time interval (5m, 15m, 1h, 4h) |
egx_fibonacci_retracementFibonacci retracement levels for one EGX stock.| Parameter | Type | Description |
|---|---|---|
| lookback | string | Period for swing high/low — "1M", "3M", "6M", "52W", "ALL" (default 52W) |
| symbol * | string | EGX stock symbol (e.g., "COMI", "TMGH", "FWRY") |
| timeframe | string | Analysis timeframe (5m, 15m, 1h, 4h, 1D, 1W, 1M — default 1D) |
egx_index_analysisOne EGX index with constituent performance and indicators.| Parameter | Type | Description |
|---|---|---|
| index | string | EGX30, EGX70, EGX100, SHARIAH33, EGX35LV, TAMAYUZ |
| limit | integer | Number of stocks to show in detail (max 100) |
| timeframe | string | One of 5m, 15m, 1h, 4h, 1D, 1W, 1M (default 1D) |
egx_market_overviewOverview of the EGX market.| Parameter | Type | Description |
|---|---|---|
| limit | integer | Number of stocks per category (max 20) |
| timeframe | string | One of 5m, 15m, 1h, 4h, 1D, 1W, 1M (default 1D for stocks) |
egx_sector_scanEGX stocks by sector.| Parameter | Type | Description |
|---|---|---|
| limit | integer | Max results per sector (max 50) |
| sector | string | Sector name (banks, healthcare_and_pharma, real_estate, etc.) Leave empty to list all sectors. |
| timeframe | string | One of 5m, 15m, 1h, 4h, 1D, 1W, 1M |
egx_sector_scannerSector rotation: hot and cold sectors with top picks.| Parameter | Type | Description |
|---|---|---|
| min_stock_score | integer | Minimum stock score for picks (0-100, default 60) |
| timeframe | string | One of 5m, 15m, 1h, 4h, 1D, 1W, 1M (default 1D) |
| top_n_sectors | integer | Number of top sectors to show stock picks for (1-18, default 5) |
| top_n_stocks | integer | Number of top stocks per highlighted sector (1-10, default 3) |
egx_smart_money_scannerRanks index constituents by smart-money accumulation.| Parameter | Type | Description |
|---|---|---|
| index | string | EGX30 | EGX70 | EGX100 | SHARIAH33 | EGX35LV | TAMAYUZ |
| limit | integer | Max ranked rows to return (default 10, max 50) |
| min_score | number | Only include rows with composite score >= this (0-100) |
| period | string | History window — 1mo | 3mo | 6mo | 1y | 2y (default 6mo) |
egx_stock_screenerRanks EGX stocks and finds actionable setups.| Parameter | Type | Description |
|---|---|---|
| index_filter | string | Filter by index — EGX30, EGX70, EGX100, SHARIAH33, EGX35LV, TAMAYUZ |
| limit | integer | Number of results (max 50) |
| min_score | integer | Minimum stock score to include (0-100, default 55) |
| timeframe | string | One of 5m, 15m, 1h, 4h, 1D, 1W, 1M (default 1D) |
egx_trade_planFull trade plan for one EGX stock.| Parameter | Type | Description |
|---|---|---|
| symbol * | string | EGX stock symbol (e.g., "COMI", "TMGH", "FWRY") |
| timeframe | string | One of 5m, 15m, 1h, 4h, 1D, 1W, 1M (default 1D) |
financial_newsLatest financial headlines from Marketaux (licensed), optionally for one symbol.| Parameter | Type | Description |
|---|---|---|
| category | string | News category ("crypto", "stocks", "all") |
| limit | integer | Max number of news items |
| symbol | string | Optional symbol filter ("AAPL", "BTC"). None = all news. |
futures_category_snapshotQuotes for the major front-month contracts in one category (e.g. ES1!, CL1!, GC1!).| Parameter | Type | Description |
|---|---|---|
| category | string | equity_index | energy | metals | agriculture | rates | forex | crypto_futures |
futures_market_overviewMost-traded futures contracts by volume (equity index, energy, metals, agriculture, rates, FX, crypto).| Parameter | Type | Description |
|---|---|---|
| category | string | all | equity_index | energy | metals | agriculture | rates | forex | crypto_futures |
| exchanges | string | us (CME, COMEX, NYMEX, CBOT) | global (adds ICE, EUREX) |
| limit | integer | max contracts to return (default 30) |
| volume_min | integer | minimum volume filter (0 = no filter) |
futures_top_moversFutures contracts with the biggest moves today.| Parameter | Type | Description |
|---|---|---|
| direction | string | gainers | losers |
| exchanges | string | us | global |
| limit | integer | max results |
| volume_min | integer | minimum volume filter (default 10, filters illiquid contracts) |
futures_watchlistThe full categorized list of well-known front-month futures symbols.market_sentimentNews sentiment for a stock or coin: bullish/bearish score and the articles behind it.| Parameter | Type | Description |
|---|---|---|
| category | string | News group to search ("crypto", "stocks", "all") |
| limit | integer | Max articles to analyse |
| symbol * | string | Asset symbol ("AAPL", "BTC", "ETH", "TSLA") |
market_snapshotGlobal overview: S&P500, NASDAQ, VIX, BTC, ETH, EUR/USD, SPY, GLDmulti_agent_analysisThree rule sets (trend & bands, momentum, volatility & structure) weigh one symbol and return BUY, SELL or HOLD with how strongly they agree.| Parameter | Type | Description |
|---|---|---|
| exchange | string | Exchange — crypto: KUCOIN, BINANCE, MEXC; stocks: EGX, BIST, NASDAQ, NYSE, AMEX, NYSEARCA, PCX, SSE, SZSE, TWSE, TPEX, EPA (Euronext Paris), AMS, BRU, LIS, MIL, LSE, SIX, BME, XETRA, FWB, TSX, TSXV, NSE, BSE (India), IDX (Indonesia) |
| symbol * | string | Symbol — crypto: "BTCUSDT"; stocks: "COMI" (EGX), "THYAO" (BIST), "600519" (SSE), "300251" (SZSE), "2330" (TWSE), "3105" (TPEX), "GDX" (AMEX) |
| timeframe | string | Time interval (5m, 15m, 1h, 4h, 1D, 1W) |
multi_timeframe_analysisWeekly → Daily → 4H → 1H → 15m trend alignment with one verdict.| Parameter | Type | Description |
|---|---|---|
| exchange | string | Exchange — crypto: KUCOIN, BINANCE, MEXC; stocks: EGX, BIST, NASDAQ, NYSE, AMEX, NYSEARCA, PCX, SSE, SZSE, TWSE, TPEX, EPA (Euronext Paris), AMS, BRU, LIS, MIL, LSE, SIX, BME, XETRA, FWB, TSX, TSXV, NSE, BSE (India), IDX (Indonesia) |
| symbol * | string | Bare ticker, no exchange prefix — crypto: "BTCUSDT"; stocks: "COMI" (EGX), "THYAO" (BIST), "600519" (SSE), "300251" (SZSE), "2330" (TWSE), "3105" (TPEX), "GDX" (AMEX) |
rating_filterFilter by Bollinger Band rating, from −3 (strong sell) to +3 (strong buy).| Parameter | Type | Description |
|---|---|---|
| exchange | string | Exchange name like KUCOIN, BINANCE, BYBIT, MEXC, etc. |
| limit | integer | Number of rows to return (max 50) |
| rating | integer | BB rating (-3 to +3): -3=Strong Sell, -2=Sell, -1=Weak Sell, 1=Weak Buy, 2=Buy, 3=Strong Buy |
| timeframe | string | One of 5m, 15m, 1h, 4h, 1D, 1W, 1M |
smart_money_analysisBanker / hot-money accumulation read from price and volume history.| Parameter | Type | Description |
|---|---|---|
| exchange | string | EGX (maps to Yahoo .CA), BIST (.IS), TADAWUL (.SR); anything else passes the symbol to Yahoo unchanged, except spot metals (XAUUSD on OANDA → gold futures GC=F; the result's `note` says so). |
| interval | string | 1d (default) or 1h |
| period | string | 1mo | 3mo | 6mo | 1y | 2y (default 6mo) |
| symbol * | string | Bare ticker — EGX: "COMI", "TMGH"; US: "AAPL"; crypto pairs work via Yahoo notation ("BTC-USD"). |
smart_volume_scannerVolume, RSI and price change combined.| Parameter | Type | Description |
|---|---|---|
| exchange | string | Exchange name |
| limit | integer | Number of results (max 30) |
| min_price_change | number | Minimum price change percentage (default 2.0) |
| min_volume_ratio | number | Minimum volume multiplier (default 2.0) |
| rsi_range | string | "oversold" (<30), "overbought" (>70), "neutral" (30-70), "any" |
stock_extended_hoursUS pre-market and after-hours prices.| Parameter | Type | Description |
|---|---|---|
| symbol * | string | US stock symbol — AAPL, NVDA, TSLA, SPY, ^GSPC, etc. |
stock_options_chainFull options chain (calls + puts) for a US stock and one expiry.| Parameter | Type | Description |
|---|---|---|
| expiry | string | 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. |
| symbol * | string | US stock symbol — AAPL, NVDA, TSLA, SPY, etc. |
stock_options_unusual_activityStrikes with unusual volume vs open interest, plus call vs put volume.| Parameter | Type | Description |
|---|---|---|
| expiries | integer | Number of soonest expirations to scan. Default 4 (typically covers ~1 month of weeklies + monthlies). |
| min_volume | integer | Filter floor for today's volume — prevents noise from illiquid strikes with high V/OI ratios. Default 100. |
| symbol * | string | US stock symbol — AAPL, NVDA, TSLA, SPY, META, etc. |
| top_n | integer | How many strikes to return. Default 10. |
stock_pricesDirect price lookup for specific symbols (comma-separated `EXCHANGE:SYMBOL`, e.g. `NASDAQ:NVDA, KRX:005930`) — price, currency, daily % change, with unrecognized tickers named in `not_found`.| Parameter | Type | Description |
|---|---|---|
| tickers * | string | comma-separated list (max 2000 — one upstream request even at full size), e.g. "NASDAQ:NVDA, NASDAQ:TSLA, KRX:005930". EXCHANGE:SYMBOL is asked for as is; a bare US ticker ("NVDA", "VOO") is looked up on NASDAQ, NYSE and AMEX, and a Yahoo symbol with an exchange suffix ("0700.HK", "THYAO.IS") is converted. Indices, futures and FX ("^VIX", "GC=F") are yahoo_price's. |
stock_screenerList common or preferred stocks for any TradingView country market (america, korea, germany, brazil, …) with price, currency, % change, dividend yield — ranked by market cap. The API twin of TradingView's "Common stock" / "Preferred stock" symbol-search filter.| Parameter | Type | Description |
|---|---|---|
| compact | boolean | default False — True returns only ticker/symbol/price/currency/ change_percent per row (light payload for bulk price feeds) |
| country | string | TradingView market name — e.g. america, korea, germany, brazil, japan, uk, india, turkey, canada, australia, france, hongkong |
| exclude_otc | boolean | default True — drop OTC listings (foreign companies traded over-the-counter); "america" otherwise means "US venue", not "US company" |
| limit | integer | rows to return (max 2000, single upstream request), ranked by market cap descending |
| sort_by | string | market_cap (default) | dividend_yield | change | price — server-side descending sort over the WHOLE market, so e.g. sort_by=dividend_yield with limit=20 is the market's true top-20 dividend payers, not just the biggest companies re-sorted |
| stock_type | string | common | preferred |
top_gainersTop gainers for an exchange and timeframe, with Bollinger Band context.| Parameter | Type | Description |
|---|---|---|
| exchange | string | Exchange name — crypto: KUCOIN, BINANCE, BYBIT, MEXC; stocks: EGX, BIST, NASDAQ, NYSE, BURSA, HKEX, SSE, SZSE, TWSE, TPEX, EPA (Euronext Paris), AMS, BRU, LIS, MIL, LSE, SIX, BME, XETRA, FWB, TSX, TSXV, NSE, BSE (India), IDX (Indonesia) |
| limit | integer | Number of rows to return (max 50) |
| timeframe | string | One of 5m, 15m, 1h, 4h, 1D, 1W, 1M ("24h" reads as 1D, the daily candle) |
top_losersTop losers for an exchange and timeframe.| Parameter | Type | Description |
|---|---|---|
| exchange | string | |
| limit | integer | |
| timeframe | string |
volume_breakout_scannerVolume spike together with a price breakout.| Parameter | Type | Description |
|---|---|---|
| exchange | string | Exchange name like KUCOIN, BINANCE, BYBIT, MEXC, etc. |
| limit | integer | Number of rows to return (max 50) |
| price_change_min | number | Minimum price change percentage (default 3.0) |
| timeframe | string | One of 5m, 15m, 1h, 4h, 1D, 1W, 1M |
| volume_multiplier | number | How many times the volume should be above normal level (default 2.0) |
volume_confirmation_analysisWhether volume confirms the price move, for one symbol.| Parameter | Type | Description |
|---|---|---|
| exchange | string | Exchange name |
| symbol * | string | Coin symbol (e.g., BTCUSDT) |
| timeframe | string | Time frame for analysis |
walk_forward_backtest_strategyTrain/test split walk-forward validation with overfitting verdict (ROBUST / MODERATE / WEAK / OVERFITTED).| Parameter | Type | Description |
|---|---|---|
| commission_pct | number | Per-trade commission % (default 0.1%) |
| initial_capital | number | Starting capital per fold in USD (default $10,000) |
| interval | string | '1d' (daily) or '1h' (hourly) |
| n_splits | integer | Number of walk-forward folds (default 3, max 10) |
| period | string | '1mo', '3mo', '6mo', '1y', '2y' (recommend '2y') |
| slippage_pct | number | Per-trade slippage % (default 0.05%) |
| strategy * | string | 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') |
| symbol * | string | Yahoo Finance symbol (AAPL, BTC-USD, SPY…) |
| train_ratio | number | Fraction of each fold used for training (default 0.7) |
yahoo_priceQuote from Yahoo Finance: price, change %, 52w high/low, market state| Parameter | Type | Description |
|---|---|---|
| symbol * | string | Yahoo Finance symbol — e.g. AAPL, BTC-USD, SPY, ^GSPC, EURUSD=X, THYAO.IS |
Security checks
Static checks derived from the repository 6 days ago. Heuristics on the source, not an audit.
- ✓README presentThe repository's README runs to about 4.3K words.
- ✓License declaredThe repository declares the MIT license.
- ✓Tests presentA test suite exists in the repository.
- ✓Dependencies pinnedDependency versions are pinned by uv.lock.
- ✓No dynamic code executionScanned 28 source files and found no eval, dynamic Function or shell execution.
- !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.
What the source scan found
- Transport
- stdio and Streamable HTTPsrc/tradingview_mcp/server.py:1299, src/tradingview_mcp/server.py:1320
- Starts other programs
- No calls that start other programs
- Outbound network calls
- 12 callssrc/tradingview_mcp/core/services/backtest_service.py:68, src/tradingview_mcp/core/services/bitcoin_market_service.py:36, src/tradingview_mcp/core/services/extended_hours_service.py:153
- Writes or deletes files
- No file writes or deletes
- Lockfile
- uv.lock
Pattern matches on the source text of 28 files: places to read, not proof of what the code does at run time.
Releases
README
The repository's README runs to about 4.3K words, fetched 6 days ago. The original in the repository is authoritative.
Read full README