MCP Chart Server

MCP Chart Server

A Model Context Protocol server that generates TradingView chart visualizations with real-time updates, enabling AI assistants to create and display financial charts through an integration with Chart-IMG API.

Category
Visit Server

Tools

generate_chart

Generate TradingView charts using Chart-IMG API with real-time progress updates

get_chart_status

Check the status of a chart generation request

get_available_symbols

Get list of available trading symbols from Chart-IMG API

get_recent_requests

Get recent chart generation requests with their status

health_check

Check the health and configuration status of the chart service

README

MCP Chart Server

A Model Context Protocol (MCP) server that integrates with Chart-IMG API to generate TradingView chart visualizations using Server-Sent Events (SSE) for real-time updates.

Features

  • Real-time Chart Generation: Generate TradingView charts with live progress updates
  • MCP Protocol Support: Works with Claude Desktop, Cline, and other MCP clients
  • SSE Integration: Real-time event streaming for chart generation progress
  • Professional Web Interface: Built-in API testing interface with live preview
  • Comprehensive API: Full REST API with status tracking and event history

Quick Start

1. Get API Key

Register at chart-img.com to get your free API key.

2. Setup Environment

# Clone and setup
git clone <your-repo>
cd mcp-chart-server
npm install

# Set API key
echo "CHART_IMG_API_KEY=your_api_key_here" > .env

3. Run the Server

# Web interface (development)
npm run dev
# Access: http://localhost:5000

# MCP server (for clients)
npx tsx mcp-server.ts

MCP Client Configuration

Claude Desktop

Add to claude_desktop_config.json:

{
  "mcpServers": {
    "chart-server": {
      "command": "npx",
      "args": ["tsx", "mcp-server.ts"],
      "cwd": "/path/to/mcp-chart-server",
      "env": {
        "CHART_IMG_API_KEY": "your_api_key"
      }
    }
  }
}

Config File Locations:

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

Cline/Continue

Similar configuration in your MCP settings.

Available Tools

generate_chart

Generate TradingView charts with customizable parameters.

Example:

{
  "symbol": "NASDAQ:AAPL",
  "interval": "1D",
  "chartType": "candlestick",
  "width": 800,
  "height": 600,
  "indicators": [
    {"type": "sma", "period": 20},
    {"type": "rsi", "period": 14}
  ]
}

get_chart_status

Check generation progress and retrieve completed charts.

get_available_symbols

List available trading symbols from Chart-IMG API.

get_recent_requests

View recent chart generation history.

health_check

Verify API configuration and service status.

Supported Chart Types

  • Candlestick - Traditional OHLC candles
  • Line - Simple price line
  • Area - Filled area chart
  • Bar - OHLC bars
  • Heikin Ashi - Modified candlesticks

Technical Indicators

  • Moving Averages: SMA, EMA, WMA
  • Oscillators: RSI, MACD, Stochastic
  • Bollinger Bands
  • Volume indicators
  • And many more from TradingView

Symbol Format

Use TradingView symbol format: EXCHANGE:SYMBOL

Examples:

  • NASDAQ:AAPL - Apple Inc.
  • NYSE:TSLA - Tesla Inc.
  • BINANCE:BTCUSDT - Bitcoin/USDT
  • FOREX:EURUSD - EUR/USD pair

Rate Limits

Depends on your Chart-IMG subscription:

  • Basic: 1 req/sec, 50/day
  • Pro: 10 req/sec, 500/day
  • Mega: 15 req/sec, 1000/day
  • Ultra: 35 req/sec, 3000/day

Web Interface

Access the built-in interface at http://localhost:5000 for:

  • Interactive API testing
  • Real-time SSE event monitoring
  • Chart preview and download
  • Request/response inspection

API Endpoints

  • POST /api/v2/chart/generate - Generate chart
  • GET /api/v2/chart/status/:id - Check status
  • GET /api/v2/symbols - Available symbols
  • GET /api/v2/events - SSE connection
  • GET /api/health - Health check

Troubleshooting

Missing API Key

Error: CHART_IMG_API_KEY not found
Solution: Set environment variable or .env file

Invalid Symbol

Error: Symbol not found
Solution: Use EXCHANGE:SYMBOL format (e.g., NASDAQ:AAPL)

Rate Limited

Error: Too many requests
Solution: Check your Chart-IMG plan limits

Development

# Start web server
npm run dev

# Run MCP server
npx tsx mcp-server.ts

# Type checking
npm run check

License

MIT License - see LICENSE file for details.

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured