Skip to main content
Glama
tradingview-finance MCP Server

tradingview-finance MCP Server

by henrikxyz

tradingview-finance MCP Server

An MCP (Model Context Protocol) server providing Model-usable tools to fetch real-time quotes, historical price charts, fundamental datasets, SEC filings, economic/earnings calendars, option chains, and corporate bond data from TradingView.

CAUTION

CRITICAL LEGAL NOTICE & DISCLAIMER: READ BEFORE USE

BEFORE ACCESSING OR USING THIS REPOSITORY, YOU MUST READ AND AGREE TO THE FULL LEGAL DISCLAIMER & TERMS OF USE.

  1. STRICTLY FOR EDUCATIONAL & PERSONAL RESEARCH ONLY: This project is an open-source educational research tool designed to analyze web protocols. It is NOT a commercial product, NOT a financial service, and MUST NOT be used for production or commercial purposes.

  2. NO AFFILIATION WITH TRADINGVIEW: This server is NOT affiliated with, sponsored by, endorsed by, or associated with TradingView, Inc. or any of its partners or affiliates. "TradingView" is a registered trademark of TradingView, Inc.

  3. USE AT YOUR OWN RISK (NO WARRANTY): This software is provided "AS IS", without warranty of any kind, express or implied. The author, contributors, and maintainers ACCEPT ZERO LIABILITY for any damages, losses, server bans, IP blocks, or account suspensions that may result from using this software.

  4. COMPLIANCE & TERMS OF SERVICE: Users are solely and fully responsible for ensuring compliance with TradingView's Terms of Use, policies, and local laws. The author does not encourage, condone, or facilitate automated scraping, commercial exploitation, or any access patterns that violate TradingView's policies.

  5. NO FINANCIAL OR INVESTMENT ADVICE: Any data retrieved by this tool is strictly informational. It does not constitute financial, trading, or investment advice. The author is not a financial advisor and shall not be held liable for any trading decisions or investment losses.


Features & Tools

This MCP server exposes the following tools to Claude or any other compatible MCP host:

  • search_symbols(query): Search for tickers, economic indexes, or FRED data.

  • get_symbol_profile(symbol): Retrieve company overview metadata.

  • get_quote(symbol): Fetch real-time price quote and official logo URL.

  • get_history(symbol, ...): Fetch historical daily/intraday OHLCV price bars.

  • get_news(symbol, ...): Get headlines and full text articles in Markdown.

  • get_options_chain(symbol, ...): Fetch strike price groupings and paired call/put contracts.

  • get_bonds(symbol): Get bonds issued by a corporate entity.

  • get_etfs(symbol): Find ETFs holding the specified stock symbol.

  • get_holdings(symbol): Get ETF constituent weight breakdowns.

  • get_documents(symbol): List SEC filings, reports, and transcript docs.

  • get_ideas(symbol): Get community technical analysis and outlook ideas.

  • get_financials_overview(symbol): Get segments, income statements, balance sheets, and key statistics.

  • get_forecast(symbol): Retrieve analyst target prices and consensus recommendations.

  • get_technicals(symbol): Get technical indicators and oscillator consensual ratings.

  • get_economic_calendar(...): Retrieve macro economic calendar events.

  • get_earnings_calendar(...): Retrieve global corporate earnings reports.

  • get_dividends_calendar(...): Fetch dividend ex-date events.

  • get_ipo_calendar(...): Query Initial Public Offering listings.

  • get_revenue_calendar(...): Fetch revenue surprise datasets.

Related MCP server: mcp-financex

Development & Usage

Ensure dependencies are installed using uv:

uv sync

Running Server Directly

To run the MCP server:

uv run python server.py

Desktop App Integration (Claude Desktop App Config)

Add this configuration to your claude_desktop_config.json:

{
  "mcpServers": {
    "tradingview-finance": {
      "command": "uv",
      "args": [
        "--directory",
        "/path/to/tvfinance-mcp",
        "run",
        "python",
        "server.py"
      ]
    }
  }
}

Available Tools

21 tools
get_bondsA

Get the list of bonds issued by a public corporate company.

Only works for stocks that have issued debt/bonds (e.g. "NASDAQ:AAPL", "NYSE:MSFT").

Inputs: symbol (required). Returns: result

get_dividends_calendarB

Get global stock dividend ex-dates, payout payment dates, and dividend amounts.

Inputs: from_date, to_date. Returns: result

get_documentsA

Get public corporate report documents, SEC filings (10-K, 10-Q, 8-K), and earnings call transcripts.

Inputs: symbol (required). Returns: result

get_earnings_calendarB

Get global corporate earnings release events, actual/estimate EPS, and revenue surprises.

Inputs: from_date, to_date. Returns: result

get_economic_calendarB

Get global macro economic calendar events from TradingView.

Inputs: from_date, to_date, countries, importance. Returns: result

get_etfsA

Get the list of Exchange-Traded Funds (ETFs) that hold the specified stock.

Inputs: symbol (required). Returns: result

get_financials_overviewA

Get the financial statement overview and business/regional segment revenue breakdown for a stock.

Returns a unified summary of the Income Statement, Balance Sheet, Cash Flow, statistical ratios, historical dividend records, EPS/revenue earnings estimates, and revenue broken down by business line and geographic region.

Inputs: symbol (required). Returns: object

get_forecastA

Get analyst target prices (low, high, average) and recommendation counts (buy, hold, sell) for a stock.

Inputs: symbol (required). Returns: object

get_historyA

Get historical candlestick/OHLCV (Open, High, Low, Close, Volume) chart data for a TradingView symbol.

Resolution Options:

  • "1", "5", "15", "30" (Minutes)

  • "60", "240" (Hours)

  • "1D" (Daily - Default)

  • "1W", "1M" (Weekly, Monthly)

Adjustment Options:

  • "splits" (default - splits adjusted)

  • "dividends" (splits + dividends adjusted)

  • "none" (raw unadjusted)

Inputs: symbol (required), timeframe, resolution, count, +1 more. Returns: result

get_holdingsA

Get the list of constituent assets, weight percentages, and values held inside an ETF.

Inputs: symbol (required). Returns: result

get_ideasB

Get TradingView community ideas, social market analyses, and directional outlooks for a symbol.

Inputs: symbol (required). Returns: result

get_ipo_calendarA

Get upcoming global stock Initial Public Offering (IPO) dates, prices, and status.

Inputs: from_date, to_date. Returns: result

get_newsA

Get recent news articles and optional full text markdown for a TradingView symbol.

Context Window Safety (Lazy Loading):

  • By default, fetch_body=False is used to return only headlines, source, and short summaries.

  • If you need the full text of an article for deep analysis or summarization, call this tool again with fetch_body=True and a small limit (e.g. 1 or 2) to avoid overloading the context window.

Inputs: symbol (required), limit, lang, fetch_body. Returns: result

get_options_chainA

Get grouped call and put options contract chain for a stock or index underlying symbol.

Returns a list of paired call/put contracts grouped by strike price, sorted from lowest to highest strike.

Expiration and Root Defaults:

  • If expiration is omitted, automatically finds and uses the nearest future expiration date.

  • If root is omitted, automatically resolves to the default options root (e.g. "AAPL" for Apple stock).

Inputs: symbol (required), expiration, root. Returns: result

get_quoteA

Get the real-time quote, price details, and official logo URL for a TradingView symbol.

Use this tool to fetch the current market price, daily change, volume, bid/ask, and the logo path of any asset (stocks, index, crypto, forex, bonds, futures).

Inputs: symbol (required). Returns: object

get_revenue_calendarB

Get global corporate revenue release events, estimate revenue, and surprise statistics.

Inputs: from_date, to_date. Returns: result

get_symbol_profileA

Get rich metadata and company profile details for a TradingView symbol.

Returns details like Sector, Industry, CEO name, CUSIP, ISIN, website URL, founded year, location, employee count, market cap, P/E ratio, dividend yield, EPS, all-time high/low, and whether it has corporate bonds.

Inputs: symbol (required). Returns: object

get_technicalsB

Get technical analysis indicators, moving averages, oscillators, and pivot point values for a symbol.

Inputs: symbol (required). Returns: object

query_screenerA

Query the TradingView Stock, Crypto, or Forex Screener.

This tool allows scanning across markets or fetching technical analysis indicators (like RSI, MACD, Moving Averages) and recommendations for specific symbols.

Inputs: market, columns, sort_by, sort_order, +3 more. Returns: result

search_screener_columnsA

Search for available TradingView screener indicator or metric column IDs by keyword.

Use this tool to dynamically discover the exact case-sensitive column IDs (like 'dividends_yield', 'total_revenue_fy', 'RSI') before passing them to query_screener.

Inputs: query (required). Returns: result

search_symbolsA

Search for symbols, indicators, assets, or indices on TradingView.

Use this tool to find tickers, symbols, or economic/FRED data when you don't know the exact prefix or symbol name (e.g., when searching for "US GDP", "US CPI", "interest rate").

Returned Fields:

Each result contains:

  • symbol: The symbol code (e.g. "USGDP", "AAPL", "EURUSD").

  • exchange: The exchange or prefix name (e.g. "ECONOMICS", "FRED", "NASDAQ", "OANDA").

  • ticker: The fully qualified ticker in the format 'EXCHANGE:SYMBOL' (e.g. 'ECONOMICS:USGDP', 'FRED:GDPC1', 'NASDAQ:AAPL'). This ticker should be used for other tool calls.

  • description: A description of what the symbol represents (e.g. "United States GDP").

  • type: Asset type (e.g. "economic", "stock", "forex").

  • provider_id: Data source provider.

  • currency_code: Currency used for prices (e.g. "USD").

Inputs: query (required). Returns: result

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.7/5.0

    Scored across 21 tools

    Disambiguation4/5

    Most tools have distinct purposes, like get_bonds vs get_etfs vs get_options_chain. However, get_financials_overview overlaps with get_dividends_calendar and get_forecast on some data, which could cause minor confusion. Overall, descriptions help differentiate.

    Naming Consistency3/5

    The majority use 'get_<noun>' pattern, but query_screener, search_screener_columns, and search_symbols break this pattern with different verbs. The inconsistency makes it harder for an agent to predict tool names.

    Tool Count4/5

    21 tools is somewhat high for a finance data server, but each covers a specific aspect (bonds, dividends, earnings, etc.), making the set comprehensive. A few tools could be merged (e.g., revenue and earnings calendars), but overall it's reasonable.

    Completeness4/5

    The server covers a wide range of financial data: quotes, history, fundamentals, calendars, options, news, and screener. Missing some advanced features like insider trading or SEC filings details, but for a general finance API, it's quite complete.

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      B
      quality
      D
      maintenance
      An MCP server that provides comprehensive access to real-time stock quotes, financial statements, analyst estimates, and technical indicators via the Financial Modeling Prep API. It enables users to conduct in-depth financial analysis and track market performance through specialized tools, resources, and prompt templates.
      26
      30 npm
      1
      MIT
    • A
      license
      A
      quality
      C
      maintenance
      Comprehensive MCP server for real-time stock, cryptocurrency, options, and fundamental analysis, including SEC filings and insider trading data.
      26
      9 npm
      MIT
    • A
      license
      A
      quality
      C
      maintenance
      MCP server that provides access to SiftingIO market data, including live prices, SEC filings, OHLCV bars, 13F holdings, market status, and economic calendar tools for AI assistants.
      36
      46 npm
      1
      MIT
    • F
      license
      Not graded
      quality
      B
      maintenance
      A 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.
      -