Integrations
Supports fetching chart images for Coinbase-listed cryptocurrency pairs using the TradingView interface.
Fetches TradingView chart images based on ticker symbols and time intervals, allowing users to retrieve visual market data for various financial instruments.
MCP Server - TradingView Chart Image Scraper
This MCP server provides tools to fetch TradingView chart images based on ticker and interval.
Setup
- Create Virtual Environment:Copy
- Activate Virtual Environment:
- macOS/Linux:Copy
- Windows (Git Bash/WSL):Copy
- Windows (Command Prompt):Copy
- Windows (PowerShell):(Note: You might need to adjust PowerShell execution policy:Copy
Set-ExecutionPolicy RemoteSigned -Scope CurrentUser
)
Your terminal prompt should now indicate you are in the
(.venv)
. - macOS/Linux:
- Install Dependencies (inside venv):Copy
- Configure Environment (for Local Testing):
- Copy
.env.example
to.env
. - Fill in your
TRADINGVIEW_SESSION_ID
andTRADINGVIEW_SESSION_ID_SIGN
in the.env
file. You can obtain these from your browser's cookies after logging into TradingView. - This
.env
file is used when running the server directly (e.g.,python main.py
) for local testing. - Adjust optional scraper settings (
MCP_SCRAPER_HEADLESS
, etc.) in.env
if needed for local runs.
- Copy
- Ensure ChromeDriver: Make sure
chromedriver
is installed and accessible in your system's PATH, or configure thetview-scraper.py
accordingly if it allows specifying a path.
Running the Server
Ensure your virtual environment is activated (source .venv/bin/activate
or equivalent).
Deactivating the Virtual Environment
When you are finished, you can deactivate the environment:
Usage
Once the server is running (within the activated venv), you can interact with it using an MCP client, targeting the TradingView Chart Image
server name.
Available Tools:
get_tradingview_chart_image(ticker: str, interval: str)
: Fetches the direct image URL for a TradingView chart.
Example Prompts:
- "Get the 15 minute chart for NASDAQ:AAPL"
- "Show me the daily chart for BYBIT:BTCUSDT.P"
- "Fetch TradingView chart image for COINBASE:ETHUSD on the 60 timeframe"
🔌 Using with MCP Clients (Claude Desktop / Cursor)
This server supports two ways of providing configuration:
- Via
.env
file (for local testing): When runningpython main.py
directly, the server will load credentials and settings from a.env
file in the project directory. - Via Client Environment Variables (Recommended for Integration): When run by an MCP client (like Claude/Cursor), you should configure the client to inject the required environment variables directly. These will override any values found in a
.env
file.
Claude Desktop
- Open your Claude Desktop configuration file:
- Windows:
%APPDATA%\\Claude\\claude_desktop_config.json
- macOS:
~/Library/Application\ Support/Claude/claude_desktop_config.json
- Windows:
- Add or merge the following within the
mcpServers
object. Provide your credentials in theenv
block:Copy - Replace the placeholder paths (
command
,args
) with your actual absolute paths. - Replace
YOUR_SESSION_ID_HERE
andYOUR_SESSION_ID_SIGN_HERE
with your actual TradingView credentials. - Restart Claude Desktop.
Cursor
- Go to:
Settings -> Cursor Settings -> MCP -> Edit User MCP Config (~/.cursor/mcp.json)
. - Add or merge the following within the
mcpServers
object. Provide your credentials in theenv
block:Copy - Replace the placeholder paths (
command
,args
) with your actual absolute paths. - Replace
YOUR_SESSION_ID_HERE
andYOUR_SESSION_ID_SIGN_HERE
with your actual TradingView credentials. - Restart Cursor.
This server cannot be installed
local-only server
The server can only run on the client's local machine because it depends on local resources.
Tradingview Chart MCP
Related MCP Servers
- -securityFlicense-qualityThe MCP Trader Server conducts comprehensive technical analysis on stocks, offering insights into trends, momentum indicators, volatility metrics, and volume analysis to support stock trading decisions.Last updated -29Python
- AsecurityAlicenseAqualityAn MCP server that integrates the XTQuant quantitative trading platform with AI assistants, allowing AI to directly access and operate on trading data and functionality.Last updated -830PythonMIT License
- -securityAlicense-qualityAn MCP server that provides current and historical gold/precious metal prices (gold, silver, platinum, and palladium) via the GoldAPI.io service with support for multiple currencies.Last updated -PythonMIT License
- AsecurityFlicenseAqualityAn MCP server that analyzes stock trading volume to identify significant price levels (volume walls), supporting features like order book data fetching, trade analysis, and volume distribution tracking.Last updated -3512Python