MCP Servers

A collection of Model Context Protocol servers, templates, tools and more.

MCP server by Knnivedh

Created 6/15/2026
Updated 2 days ago
Repository documentation and setup instructions

TradingView Live Data - MCP Server

An MCP (Model Context Protocol) server that provides real-time TradingView market data to AI assistants like Claude, Cursor, and other MCP-compatible clients.

Features

  • Live Prices - Real-time stock/crypto/forex prices from TradingView
  • Watchlist - Fetch prices for multiple symbols at once
  • Historical Data - OHLCV candlestick data with multiple timeframes
  • Symbol Search - Search TradingView for any symbol
  • Market Resources - List supported exchanges and intervals

Supported Exchanges

| Exchange | Market | |----------|--------| | NSE | India (National Stock Exchange) | | BSE | India (Bombay Stock Exchange) | | NYSE | US (New York Stock Exchange) | | NASDAQ | US | | AMEX | US | | LSE | UK (London Stock Exchange) | | TSE | Japan (Tokyo Stock Exchange) | | HKEX | Hong Kong | | SSE | China (Shanghai) | | CRYPTO | Binance (Crypto) |

Installation

1. Clone the repository

git clone https://github.com/Knnivedh/MY_MCP.git
cd MY_MCP

2. Install dependencies

# Using pip
pip install -r requirements.txt

# Using uv (recommended)
uv venv
uv pip install -r requirements.txt

3. Configure environment (optional)

Copy .env.example to .env and add your TradingView credentials for premium data:

cp .env.example .env

Note: The server works without credentials but with limited data access.

Usage

Run the MCP server directly

python main.py

Using MCP Inspector (for testing)

mcp dev main.py

Configure with Claude Desktop

Add to your Claude Desktop config file:

Windows: %APPDATA%\Claude\claude_desktop_config.json macOS: ~/Library/Application Support/Claude/claude_desktop_config.json

{
  "mcpServers": {
    "tradingview": {
      "command": "python",
      "args": ["C:\\Users\\LOQ\\MY_MCP\\main.py"],
      "env": {
        "TV_USERNAME": "your_email",
        "TV_PASSWORD": "your_password"
      }
    }
  }
}

Configure with Cursor

Add to your Cursor MCP settings (.cursor/mcp.json or global settings):

{
  "mcpServers": {
    "tradingview": {
      "command": "python",
      "args": ["C:\\Users\\LOQ\\MY_MCP\\main.py"]
    }
  }
}

Configure with uv (recommended for isolation)

{
  "mcpServers": {
    "tradingview": {
      "command": "uv",
      "args": [
        "--directory", "C:\\Users\\LOQ\\MY_MCP",
        "run", "python", "main.py"
      ]
    }
  }
}

Available Tools

get_live_price

Get real-time price for a single symbol.

symbol: "RELIANCE", exchange: "NSE"
symbol: "AAPL", exchange: "NASDAQ"
symbol: "BTCUSDT", exchange: "CRYPTO"

get_watchlist

Get prices for multiple symbols at once.

[
  {"symbol": "RELIANCE", "exchange": "NSE"},
  {"symbol": "TCS", "exchange": "NSE"},
  {"symbol": "AAPL", "exchange": "NASDAQ"}
]

get_history

Get historical OHLCV data.

symbol: "RELIANCE", exchange: "NSE", interval: "1d", n_bars: 100

Intervals: 1m, 3m, 5m, 15m, 30m, 45m, 1h, 2h, 3h, 4h, 1d, 1w, 1M

search_symbol

Search for symbols on TradingView.

query: "reliance", exchange: "NSE"
query: "bitcoin", symbol_type: "crypto"

Project Structure

MY_MCP/
├── main.py                  # Entry point
├── tradingview_mcp/
│   ├── __init__.py
│   ├── server.py            # MCP server with tools/resources/prompts
│   └── tv_client.py         # TradingView data client
├── requirements.txt
├── pyproject.toml
├── .env.example
├── .gitignore
└── README.md

License

MIT

Quick Setup
Installation guide for this server

Install Package (if required)

uvx my_mcp

Cursor configuration (mcp.json)

{ "mcpServers": { "knnivedh-my-mcp": { "command": "uvx", "args": [ "my_mcp" ] } } }