TradingView Chart

v1.0.0Finance & Fintechstable

MCP server that captures TradingView chart images via Selenium — supports any ticker/interval with browser pooling for concurrent performance

chart-scrapermcpmcp-servermodel-context-protocolpython
Share:
94
Stars
0
Downloads
0
Weekly
0/5

What is TradingView Chart?

TradingView Chart is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to mcp server that captures tradingview chart images via selenium — supports any ticker/interval with browser pooling for concurrent performance

MCP server that captures TradingView chart images via Selenium — supports any ticker/interval with browser pooling for concurrent performance

This server falls under the Finance & Fintech category on MCPgee, the world's largest MCP server directory with 33,000+ servers.

Features

  • MCP server that captures TradingView chart images via Seleni

Use Cases

Capture TradingView chart images for any ticker and interval with browser pooling. Perform technical analysis on live market charts.
ertugrul59

Maintainer

LicenseMIT License
Languagepython
Versionv1.0.0
UpdatedMay 19, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

Manual Installation

npx tradingview-chart-mcp

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

How to Set Up and Use TradingView Chart

The TradingView Chart MCP server captures live chart images from TradingView for any ticker symbol and time interval using Selenium browser automation, returning them as base64-encoded PNG images that AI assistants can analyze for technical analysis. It features a browser pooling architecture that pre-initializes up to 4 Chrome instances, delivering 70-80% better concurrent performance compared to a single-browser approach. The server requires a TradingView account session to authenticate and access charts, and supports both stdio and HTTP transports for flexible integration.

Prerequisites

  • Python 3.9 or later
  • Google Chrome and ChromeDriver installed and on the system PATH
  • A TradingView account with active session cookies (TRADINGVIEW_SESSION_ID and TRADINGVIEW_SESSION_ID_SIGN)
  • An MCP-compatible client such as Claude Desktop or Cursor
  • Git to clone the repository (no PyPI package — install from source)
1

Clone the repository

Clone the TradingView Chart MCP repository from GitHub. There is no PyPI package — the server must be run from source.

git clone https://github.com/ertugrul59/tradingview-chart-mcp.git
cd tradingview-chart-mcp
2

Create and activate a virtual environment

Create an isolated Python virtual environment to avoid dependency conflicts.

python3 -m venv .venv
# macOS/Linux:
source .venv/bin/activate
# Windows (PowerShell):
.venv\Scripts\Activate.ps1
3

Install dependencies

Install all required Python packages including Selenium, the MCP SDK, and other dependencies.

pip install -r requirements.txt
4

Configure TradingView authentication

Copy the example environment file and fill in your TradingView session cookies. Obtain these from your browser's developer tools after logging into TradingView — look for sessionid and sessionid_sign in the cookies for tradingview.com.

cp .env.example .env
# Edit .env and set:
# TRADINGVIEW_SESSION_ID=your_session_id
# TRADINGVIEW_SESSION_ID_SIGN=your_session_id_sign
5

Start the MCP server

Run the optimized production server with browser pooling for best concurrent performance.

python main_optimized.py
6

Configure your MCP client

Add the server to your MCP client configuration, pointing to the Python interpreter in the virtual environment and the main_optimized.py script.

TradingView Chart Examples

Client configuration

Claude Desktop configuration for the TradingView Chart MCP server running from a local clone. Replace /path/to/tradingview-chart-mcp with your actual clone path.

{
  "mcpServers": {
    "tradingview-chart": {
      "command": "/path/to/tradingview-chart-mcp/.venv/bin/python",
      "args": ["/path/to/tradingview-chart-mcp/main_optimized.py"],
      "env": {
        "TRADINGVIEW_SESSION_ID": "your_session_id",
        "TRADINGVIEW_SESSION_ID_SIGN": "your_session_id_sign"
      }
    }
  }
}

Prompts to try

Sample prompts for capturing and analyzing TradingView charts through the MCP server.

- "Get the daily chart for BYBIT:BTCUSDT.P and analyze the trend"
- "Show me the 1-hour TradingView chart for NASDAQ:AAPL"
- "Capture a 4-hour chart for BYBIT:ETHUSDT.P and identify key support and resistance levels"
- "Get the weekly chart for NASDAQ:TSLA and describe the current technical setup"
- "Show me performance stats for the TradingView chart server"

Troubleshooting TradingView Chart

Selenium fails with 'ChromeDriver not found' or version mismatch error

Install ChromeDriver that matches your installed version of Google Chrome. On macOS you can use brew install chromedriver. The ChromeDriver executable must be on your system PATH. Run chromedriver --version and compare with chrome --version to confirm they match.

Charts return empty or show a login page instead of the actual chart

Your TradingView session cookies have expired. Log into TradingView in your browser, open DevTools (F12), go to Application > Cookies > tradingview.com, and copy the fresh sessionid and sessionid_sign values into your .env file.

Concurrent chart requests time out or the browser pool is exhausted

The default pool size is 4 browsers. For higher concurrency, start the server with --max-concurrent 6 or higher. Ensure your system has enough memory — each Chrome instance uses ~200-400 MB. Reduce concurrency if you are hitting memory limits.

Frequently Asked Questions about TradingView Chart

What is TradingView Chart?

TradingView Chart is a Model Context Protocol (MCP) server that mcp server that captures tradingview chart images via selenium — supports any ticker/interval with browser pooling for concurrent performance It connects AI assistants to external tools and data sources through a standardized interface.

How do I install TradingView Chart?

Follow the installation instructions on the TradingView Chart GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.

Which AI clients work with TradingView Chart?

TradingView Chart works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.

Is TradingView Chart free to use?

Yes, TradingView Chart is open source and available under the MIT License license. You can use it freely in both personal and commercial projects.

Browse More Finance & Fintech MCP Servers

Explore all finance & fintech servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.

Quick Config Preview

{ "mcpServers": { "tradingview-chart-mcp": { "command": "npx", "args": ["-y", "tradingview-chart-mcp"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

Ready to use TradingView Chart?

Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.

33,000+ ServersFree & Open SourceStep-by-Step Guides