Get the FREE Ultimate OpenClaw Setup Guide →

tradingview

📈 Fetch TradingView chart snapshots effortlessly with this lightweight MCP server, leveraging Playwright for fast and secure browser automation.

Installation
Run this command in your terminal to add the MCP server to Claude Code.
Run in terminal:
Command
claude mcp add --transport stdio viney-123-tradingview-mcp python -m tradingview_mcp

How to use

This MCP server provides a lightweight Python-based service to fetch TradingView chart snapshots. It runs as a local server that interfaces with TradingView to render and return chart images, enabling you to capture visual representations of specific assets, timeframes, or indicators for research, monitoring, or automation workflows. Once running, you can send requests via your browser or HTTP client to the local server endpoint to generate snapshots for the TradingView charts you specify, and then integrate those images into reports or dashboards as needed.

The toolset centers on snapshot generation: you provide a TradingView chart URL or parameters (asset, timeframe, and optional indicators), and the MCP server processes the request to return a crisp image of the chart. It’s designed to be lightweight and easy to deploy on common operating systems, with cross-platform Python support. The server accepts standard HTTP requests and serves the resulting images or data back to your application, enabling automation pipelines for market monitoring, backtesting visuals, or alerting dashboards.

How to install

Prerequisites

  • Python 3.7 or higher installed on your system
  • Internet connection for initial setup and fetching snapshots
  • Basic familiarity with running Python modules

Step-by-step installation

  1. Prepare your environment
  • Install Python 3.7+ from the official source for your OS.
  • Optional: create a virtual environment
    • python -m venv venv
    • On Windows: venv\Scripts\activate
    • On macOS/Linux: source venv/bin/activate
  1. Download the MCP package
  • The README references a ZIP release. Save the package locally or clone the repository if available.
  1. Install dependencies
  • If a requirements.txt is provided with the package, install them:
    • pip install -r requirements.txt
  1. Run the MCP server
  • Use the following command structure to start the server in module mode (as described in the README):
    • python -m tradingview_mcp
  1. Verify the server is running
  • Open a browser and navigate to http://localhost:8000 or the appropriate port configured by the package to ensure the server responds.

Note: If the distribution provides a custom launcher script, you may instead execute that script directly as documented in the release notes.

Additional notes

  • The server is Python-based; ensure Python 3.7+ is installed.
  • Default port is typically 8000 unless overridden by configuration.
  • If you encounter SSL or network-related issues when fetching TradingView snapshots, ensure outbound access is allowed and that any required API or URL endpoints are reachable.
  • Check the releases or repository for updates to the tradingview_mcp module to benefit from improvements and new features.
  • If you need different runtime environments (e.g., virtual environments or containerized deployment), adapt the commands accordingly and ensure the tradingview_mcp module is importable in those environments.

Related MCP Servers

Sponsor this space

Reach thousands of developers ↗