Tutorial

How to Add Trading Context to Claude via MCP

An r/ClaudeCode post wired Claude to TradingView via MCP. Walk-through: TradingView MCP + Scavio MCP for news/sentiment.

An r/ClaudeCode post added TradingView via an MCP server so Claude could read live charts. The full trading-agent stack pairs that with Scavio MCP for news + Reddit sentiment + filings.

Prerequisites

  • Claude Code CLI
  • TradingView account
  • Scavio API key
  • (Optional) Polygon for tick prices

Walkthrough

Step 1: Attach Scavio MCP for news + Reddit + filings SERP

One config line.

Bash
claude mcp add scavio https://mcp.scavio.dev/mcp --header 'x-api-key: $SCAVIO_API_KEY'

Step 2: Attach TradingView MCP (community)

Run a community TradingView MCP server (e.g., from GitHub).

Bash
# Example (verify against the specific repo):
claude mcp add tradingview <github-mcp-server-url>

Step 3: Ask Claude for cross-source context per ticker

Inside Claude Code: stack the MCPs.

Text
// 'For NVDA: pull the last 7 days of headlines via scavio search. Pull top 5 r/wallstreetbets threads via scavio reddit_search. Read the daily chart via tradingview. Summarize the bull and bear case.'

Step 4: Add filings via dorked search

site:sec.gov filings as a Scavio dork.

Text
// 'scavio search: site:sec.gov NVDA 10-Q 2026 — extract the top result and pull risk factors.'

Step 5: Optional: paper-trade via Alpaca MCP

Add Alpaca MCP for execution if your agent should also act.

Bash
claude mcp add alpaca <alpaca-mcp-url>
// Then: 'place a paper trade BUY 10 NVDA market'

Python Example

Python
# Most of this is Claude Code interactions; per-ticker context cost is ~$0.05-0.20 search + LLM tokens.

JavaScript Example

JavaScript
// Same — MCP setup is via CLI, agent loop is in Claude.

Expected Output

JSON
Claude Code with 2-3 MCP servers attached, each with semantically-named tools. Bull/bear case generated per ticker from news + sentiment + chart context. Honest constraint: this is research help, not trading advice; do your own DD.

Related Tutorials

Frequently Asked Questions

Most developers complete this tutorial in 15 to 30 minutes. You will need a Scavio API key (free tier works) and a working Python or JavaScript environment.

Claude Code CLI. TradingView account. Scavio API key. (Optional) Polygon for tick prices. A Scavio API key gives you 500 free credits per month.

Yes. The free tier includes 500 credits per month, which is more than enough to complete this tutorial and prototype a working solution.

Scavio has a native LangChain package (langchain-scavio), an MCP server, and a plain REST API that works with any HTTP client. This tutorial uses the raw REST API, but you can adapt to your framework of choice.

Start Building

An r/ClaudeCode post wired Claude to TradingView via MCP. Walk-through: TradingView MCP + Scavio MCP for news/sentiment.