1. Conduid
  2. Finance
  3. Tradingview MCP
MCP server · Finance

Tradingview MCP

AI-assisted TradingView chart analysis — connect Claude Code to your TradingView Desktop for personal workflow automation

Unclaimed finance
68Good

Scored 20 hours ago · breakdown

About Tradingview MCP

Tradingview MCP is an MCP server published by tradesdontlie in the Finance category: aI-assisted TradingView chart analysis — connect Claude Code to your TradingView Desktop for personal workflow automation. Conduid read 84 tools from its source: alert_create, alert_delete, alert_list, batch_run, capture_screenshot, chart_get_state and 78 more. No package is published for it, so it installs from a source checkout.

The repository has 7.4K stars and 2.9K forks, and its last commit was on 21 Oct 2026. Conduid has no tagged release on record for it. It passes 4 of the 5 static checks Conduid ran on the repository; it does not pass No dynamic code execution. Its topics include finance.

Install

From source
git clone https://github.com/tradesdontlie/tradingview-mcp

Tools (84)

alert_createManage price alerts
ParameterTypeDescription
condition *stringAlert condition: "crossing", "greater_than", or "less_than"
messagestringAlert message
price *numberPrice level for the alert
alert_deleteManage price alerts
ParameterTypeDescription
alert_idnumberAlert id to delete (from alert_list)
delete_allbooleanDelete all active alerts
alert_listManage price alerts
batch_runRun action across multiple symbols/timeframes
ParameterTypeDescription
action *stringAction to run: screenshot, get_ohlcv, get_strategy_results
delay_msnumberDelay between iterations in ms (default 2000)
ohlcv_countnumberBar count for get_ohlcv action (default 100)
symbols *arrayArray of symbols to iterate (e.g., ["BTCUSD", "ETHUSD", "AAPL"])
timeframesarrayArray of timeframes (e.g., ["D", "60", "15"])
capture_screenshotScreenshot (regions: full, chart, strategy_tester)
ParameterTypeDescription
filenamestringCustom filename (without extension)
methodstringCapture method: cdp (Page.captureScreenshot) or api (chartWidgetCollection.takeScreenshot) (default cdp)
regionstringRegion to capture: full, chart, strategy_tester (default full)
wait_for_renderbooleanWait for the chart canvas to stabilize before capturing. Use after chart_set_symbol or chart_set_timeframe to avoid stale frames.
chart_get_stateFirst call — get symbol, timeframe, all indicator names + IDs
chart_get_visible_rangeGet the visible date range (unix timestamps) and bars range on the chart
chart_manage_indicatorAdd/remove indicators. Use full names: "Relative Strength Index" not "RSI"
ParameterTypeDescription
action *stringAction: add or remove
entity_idstringEntity ID (from chart_get_state). Required for remove.
indicatorstringFull indicator name (required for add): "Relative Strength Index", "MACD", "Volume", "Moving Average", "Bollinger Bands", "Moving Average Exponential". Short names like RSI/EMA do NOT work. Not needed for remove.
inputsstringJSON string of input overrides for the indicator (e.g., '{"length": 20}')
chart_scroll_to_dateJump to a date (ISO: "2025-01-15")
ParameterTypeDescription
date *stringISO date string (e.g., "2024-01-15") or unix timestamp as a string
chart_set_symbolChange ticker (BTCUSD, AAPL, ES1!, NYMEX:CL1!)
ParameterTypeDescription
symbol *stringSymbol to set (e.g., BTCUSD, AAPL, ES1!, NYMEX:CL1!)
chart_set_timeframeChange resolution (1, 5, 15, 60, D, W, M)
ParameterTypeDescription
timeframe *stringTimeframe (e.g., 1, 5, 15, 60, D, W, M)
chart_set_typeChange style (Candles, HeikinAshi, Line, Area, Renko)
ParameterTypeDescription
chart_type *stringChart type: Bars(0), Candles(1), Line(2), Area(3), Renko(4), Kagi(5), PointAndFigure(6), LineBreak(7), HeikinAshi(8), HollowCandles(9) — pass name or number
chart_set_visible_rangeZoom to exact range (unix timestamps)
ParameterTypeDescription
from *numberStart of range (unix timestamp in seconds)
to *numberEnd of range (unix timestamp in seconds)
data_get_equityGet equity curve data from Strategy Tester
data_get_indicatorGet indicator/study info and input values
ParameterTypeDescription
entity_id *stringStudy entity ID (from chart_get_state)
data_get_ohlcvGet price bars. Use `summary: true` for compact stats
ParameterTypeDescription
countnumberNumber of bars to retrieve (max 500, default 100)
summarybooleanReturn summary stats (high, low, open, close, avg volume, range) instead of all bars — much smaller output
data_get_pine_boxesRead box/zone boundaries drawn by Pine Script indicators (box.new). Returns deduplicated {high, low} price zones. Use study_filter to target a specific indicator.
ParameterTypeDescription
study_filterstringSubstring to match study name. Omit for all.
verbosebooleanReturn all boxes with IDs and coordinates (default false — returns unique price zones)
data_get_pine_labelsRead text labels drawn by Pine Script indicators (label.new). Returns text and price pairs. Use study_filter to target a specific indicator.
ParameterTypeDescription
max_labelsnumberMax labels per study (default 50). Set higher if you need all.
study_filterstringSubstring to match study name. Omit for all.
verbosebooleanReturn raw label data with IDs, colors, positions (default false — returns only text + price)
data_get_pine_linesRead horizontal price levels drawn by Pine Script indicators (line.new). Returns deduplicated price levels per study. Use study_filter to target a specific indicator.
ParameterTypeDescription
study_filterstringSubstring to match study name (e.g., "Profiler", "NY Levels"). Omit for all.
verbosebooleanReturn raw line data with IDs, coordinates, colors (default false — returns only unique price levels)
data_get_pine_tablesRead table data drawn by Pine Script indicators (table.new). Returns formatted text rows per table. Use study_filter to target a specific indicator.
ParameterTypeDescription
study_filterstringSubstring to match study name. Omit for all.
data_get_strategy_resultsGet strategy performance metrics from Strategy Tester. Auto-opens the panel and auto-unhides a hidden strategy (TradingView never computes reports for hidden strategies); result includes unhidden_strategies when that happened.
data_get_study_valuesRead current RSI, MACD, BB, EMA values from all indicators
data_get_tradesGet trade list from Strategy Tester. Auto-opens the panel and auto-unhides a hidden strategy.
ParameterTypeDescription
max_tradesnumberMaximum trades to return
depth_getGet order book / DOM (Depth of Market) data from the chart
draw_clearManage drawings
draw_get_propertiesGet properties and points of a specific drawing
ParameterTypeDescription
entity_id *stringEntity ID of the drawing (from draw_list)
draw_listManage drawings
draw_remove_oneManage drawings
ParameterTypeDescription
entity_id *stringEntity ID of the drawing to remove (from draw_list)
draw_shapeDraw horizontal_line, trend_line, rectangle, text
ParameterTypeDescription
overridesstringJSON string of style overrides (e.g., '{"linecolor": "#ff0000", "linewidth": 2}')
point *object{ time: unix_timestamp, price: number }
point2objectSecond point for two-point shapes (trend_line, rectangle)
shape *stringShape type: horizontal_line, vertical_line, trend_line, rectangle, text
textstringText content for text shapes
indicator_addSearch the Indicators dialog and add a result to the chart by name. Works for strategies and community scripts, not just built-ins. Returns the new study entity_id.
ParameterTypeDescription
matchstringExact title to add (default: the query). Case-insensitive; falls back to first title containing it.
query *stringSearch keyword to find the indicator/strategy
sectionstringRestrict to a section: "Technicals", "Community", "My scripts", etc.
indicator_searchSearch TradingView's Indicators dialog for indicators, strategies, and community/public scripts by keyword. Returns matching titles grouped by section (Technicals, Community, My scripts, etc.).
ParameterTypeDescription
limitnumberMax results to return (default 25)
query *stringSearch keyword, e.g. "RSI", "supertrend", "order block"
indicator_set_inputsChange indicator settings, show/hide
ParameterTypeDescription
entity_id *stringEntity ID of the study (from chart_get_state)
inputs *stringJSON string of input overrides, e.g. '{"length": 50, "source": "close"}'. Keys are input IDs, values are the new values.
indicator_toggle_visibilityChange indicator settings, show/hide
ParameterTypeDescription
entity_id *stringEntity ID of the study (from chart_get_state)
visible *booleantrue to show, false to hide
layout_listManage saved layouts
layout_newCreate a new named blank chart layout (opens in a new tab)
ParameterTypeDescription
namestringLayout name (default "New layout")
layout_switchManage saved layouts
ParameterTypeDescription
name *stringName or ID of the layout to switch to
pane_focusFocus a specific pane by index
ParameterTypeDescription
index *numberPane index (0-based, from pane_list)
pane_listList all panes with symbols and active state
pane_set_layoutChange grid: `s`, `2h`, `2v`, `2x2`, `4`, `6`, `8`
ParameterTypeDescription
layout *stringLayout code: s (single), 2h, 2v, 2-1, 1-2, 3h, 3v, 4 (2x2), 6, 8. Also accepts: single, 2x1, 1x2, 2x2, quad
pane_set_symbolSet symbol on any pane
ParameterTypeDescription
index *numberPane index (0-based)
symbol *stringSymbol to set (e.g., NQ1!, ES1!, AAPL)
pine_analyzeRun static analysis on Pine Script code WITHOUT compiling — catches array out-of-bounds, unguarded array.first()/last(), bad loop bounds, and implicit bool casts. Works offline, no TradingView connection needed.
ParameterTypeDescription
source *stringPine Script source code to analyze
pine_checkCompile Pine Script via TradingView's server API without needing the chart open. Returns compilation errors/warnings. Useful for validating code before injecting into the chart.
ParameterTypeDescription
source *stringPine Script source code to compile/validate
pine_compileCompile / add the current Pine Script to the chart
pine_get_consoleRead Pine Script console/log output (compile messages, log.info(), errors)
pine_get_errorsGet Pine Script compilation errors from Monaco markers
pine_get_sourceGet current Pine Script source code from the editor
pine_list_scriptsList saved Pine Scripts
pine_newCreate a new blank Pine Script
ParameterTypeDescription
type *stringType of script to create
pine_openOpen a saved Pine Script by name
ParameterTypeDescription
name *stringName of the saved script to open (case-insensitive match)
pine_saveSave the current Pine Script (Ctrl+S)
pine_set_sourceSet Pine Script source code in the editor
ParameterTypeDescription
source *stringPine Script source code to inject
pine_smart_compileIntelligent compile: detects button, compiles, checks errors, reports study changes
quote_getGet latest price, OHLC, volume
ParameterTypeDescription
symbolstringSymbol to quote (blank = current chart symbol). Non-blank values cause a chart switch + restore.
replay_autoplayToggle autoplay in replay mode, optionally set speed
ParameterTypeDescription
speednumberAutoplay delay in ms (lower = faster). Valid values: 100, 143, 200, 300, 1000, 2000, 3000, 5000, 10000. Leave empty to just toggle.
replay_startStart bar replay mode, optionally at a specific date
ParameterTypeDescription
datestringDate to start replay from (YYYY-MM-DD format). If omitted, selects first available date.
replay_statusGet current replay mode status
replay_stepAdvance one bar in replay mode
replay_stopStop replay and return to realtime
replay_tradeExecute a trade action in replay mode (buy, sell, or close position)
ParameterTypeDescription
action *stringTrade action: buy, sell, or close
symbol_infoSymbol metadata and search
symbol_searchSymbol metadata and search
ParameterTypeDescription
query *stringSearch query (e.g., "AAPL", "crude oil", "ES")
typestringFilter by type (e.g., "stock", "futures", "crypto", "forex")
tab_closeOpen/close tabs
tab_listList open chart tabs
tab_newOpen/close tabs
ParameterTypeDescription
layoutstring"new" for a blank new layout, or a saved layout name (substring match). Omit to leave the tab on the layout picker.
namestringName for the new layout (used with layout: "new"; default "New layout")
tab_switchSwitch to a tab by index
ParameterTypeDescription
index *numberTab index (0-based, from tab_list)
tv_discoverConnection management
tv_health_checkConnection management
tv_launchConnection management
ParameterTypeDescription
kill_existingbooleanKill existing TradingView instances first (default true)
portnumberCDP port (default 9222)
tv_ui_stateGet current UI state: which panels are open, what buttons are visible/enabled/disabled
tv_updateUpdate this MCP server to the latest version: git fast-forward of origin/main + npm ci when dependencies changed. Safe by design — refuses on non-git installs, dirty working trees, non-main branches, or diverged history. After a successful update the MCP server must be restarted to load the new code.
ui_clickUI automation
ParameterTypeDescription
by *stringSelector strategy
value *stringValue to match against the chosen selector strategy
ui_evaluateUI automation
ParameterTypeDescription
expression *stringJavaScript expression to evaluate in the page context. Wrap in IIFE for complex logic.
ui_find_elementFind UI elements by text, aria-label, or CSS selector and return their positions
ParameterTypeDescription
query *stringText content, aria-label value, or CSS selector to search for
strategystringSearch strategy (default: text)
ui_fullscreenToggle TradingView fullscreen mode
ui_hoverHover over a UI element by aria-label, data-name, or text content
ParameterTypeDescription
by *stringSelector strategy
value *stringValue to match
ui_keyboardPress keyboard keys or shortcuts (e.g., Enter, Escape, Alt+S, Ctrl+Z)
ParameterTypeDescription
key *stringKey to press (e.g., "Enter", "Escape", "Tab", "a", "ArrowUp")
modifiersarrayModifier keys to hold (e.g., ["ctrl", "shift"])
ui_mouse_clickClick at specific x,y coordinates on the TradingView window
ParameterTypeDescription
buttonstringMouse button (default left)
double_clickbooleanDouble click (default false)
x *numberX coordinate (pixels from left)
y *numberY coordinate (pixels from top)
ui_open_panelUI automation
ParameterTypeDescription
action *stringAction to perform
panel *stringPanel name
ui_scrollScroll the chart or page up/down/left/right
ParameterTypeDescription
amountnumberScroll amount in pixels (default 300)
direction *stringScroll direction
ui_type_textType text into the currently focused input/textarea element
ParameterTypeDescription
text *stringText to type into the focused element
watchlist_addRead/modify watchlist
ParameterTypeDescription
symbol *stringSymbol to add (e.g., AAPL, BTCUSD, ES1!, NYMEX:CL1!)
watchlist_add_bulkAdd multiple symbols to the TradingView watchlist
ParameterTypeDescription
symbols *arraySymbols to add (e.g., ["AAPL", "ES1!", "NYMEX:CL1!"])
watchlist_getRead/modify watchlist
watchlist_removeRemove one or more symbols from the active TradingView watchlist
ParameterTypeDescription
symbols *arraySymbols to remove — bare (AAPL) or full (NASDAQ:AAPL)

Security checks

Static checks derived from the repository 7 days ago. Heuristics on the source, not an audit.

  • ✓README presentThe repository's README runs to about 2.6K words.
  • ✓License declaredUsable under a stated license.
  • ✓Tests presentA test suite exists in the repository.
  • ✓Dependencies pinnedDependency versions are pinned by package-lock.json.
  • !No dynamic code executionScanned 53 source files and found 4 calls to eval or shell execution, in src/core/health.js:17, src/core/health.js:18 and src/core/update.js:26 among others. Review how tool inputs reach them before granting credentials.

1 check has not been run yet.

What the source scan found

Transport
stdiosrc/server.js:2
Starts other programs
4 callssrc/core/health.js:17, src/core/health.js:18, src/core/update.js:26
Outbound network calls
16 callssrc/connection.js:111, src/connection.js:120, src/core/alerts.js:69
Writes or deletes files
No file writes or deletes
Lockfile
package-lock.json

Pattern matches on the source text of 53 files: places to read, not proof of what the code does at run time.

README

The repository's README runs to about 2.6K words, fetched 7 days ago. The original in the repository is authoritative.

Read full README
Questions

About Tradingview MCP

How do I install Tradingview MCP?

No package has been published for this server, so install it from source: clone the repository and follow its README.

Is Tradingview MCP safe to use with an AI agent?

Its trust score is 68 out of 100 (good). It passes 4 of the 5 static checks Conduid ran on the repository; it does not pass No dynamic code execution. Conduid's scan of 53 source files found that it serves MCP over stdio, starts other programs (4 calls) and makes outbound network calls (16 calls). Its dependencies are pinned by package-lock.json. It has no ConduID identity yet, so agent calls to it are not receipted.

Is Tradingview MCP still maintained?

Yes — the last commit was a month ago. The repository has 7.4K stars and 2.9K forks and 272 open issues.

What tools does Tradingview MCP provide?

Conduid read 84 tools from the source: alert_create, alert_delete, alert_list, batch_run, capture_screenshot, chart_get_state, chart_get_visible_range, chart_manage_indicator and 76 more. 54 of them publish their parameters, listed under Tools above.