TradingViewSAFE
Professional multi-asset trading & Pine Script development MCP server for Claude. Features: 20+ indicators, Pine Script tools (validator, autocomplete, docs, testing), Forex/Stocks/Crypto support
Overview
From the repository's own README, as read at the audited commit. Badges and raw HTML are left out.
Production-ready multi-asset trading assistant and Pine Script development server for Claude Desktop
[](https://github.com/lev-corrupted/TradingViewMCPServer/actions) [](https://www.python.org/downloads/) [](https://opensource.org/licenses/MIT) [](https://hub.docker.com) [](https://github.com/lev-corrupted/TradingViewMCPServer/releases)
Professional trading assistant supporting Forex, Stocks, and Crypto with 25+ technical indicators, Pine Script v6 development tools, and production-grade reliability.
✨ Features
🎯 Production-Ready (NEW in v3.4.0!)
- 🏥 Health Monitoring: Built-in health check tool with cache statistics and API status
- 🔄 Auto-Retry Logic: Exponential backoff for network failures (3 retries: 2s, 4s, 8s)
- ⚡ LRU Cache: Memory-bounded cache (1000 entries) with automatic eviction
- 🐳 Docker Support: Production-ready containerization with Docker Compose
- 🚀 CI/CD Pipeline: Automated testing across Python 3.10-3.12
- ✅ 100% Test Coverage: 44/44 tests passing
📊 Trading & Market Analysis
- Multi-Asset Support: Forex (22+ pairs), US Stocks, Cryptocurrencies
- 25+ Technical Indicators: Volume Profile, Market Profile, VWAP, Fibonacci, Bollinger Bands, MACD, Moving Averages, ATR, Support/Resistance, Pivot Points, Stochastic, RSI, CCI, Williams %R, ADX, Ichimoku Cloud, and more
- Full Historical Data: Live quotes and historical data for all asset types (Forex, Stocks, Crypto) via Alpha Vantage API
- Smart Caching: 70% reduction in API calls with intelligent caching
- **Claude Desktop Integ
442b8bf2846aOBSERVED · 2026-10-08Connect
Built from this server's own package name, version and transport as found in its source — not copied from anyone's documentation, so it cannot drift against a page we do not control. Replace the environment placeholders with a token scoped to the least it needs.
claude mcp add tradingview-mcp --env ALPHA_VANTAGE_API_KEY=${ALPHA_VANTAGE_API_KEY} -- uvx tradingview-mcp{
"mcpServers": {
"tradingview-mcp": {
"command": "uvx",
"args": [
"tradingview-mcp"
],
"env": {
"ALPHA_VANTAGE_API_KEY": "${ALPHA_VANTAGE_API_KEY}"
}
}
}
}Exposed tools (33)
33 read · 0 write · 0 destructive.
| Tool | Risk | Description |
|---|---|---|
analyze_pair | read | |
autocomplete_pine | read | |
calculate_correlation | read | |
convert_pine_version | read | |
detect_pine_version | read | |
detect_unfilled_gaps | read | |
explain_pine_error | read | |
get_adx | read | |
get_atr | read | |
get_bollinger_bands | read | |
get_cci | read | |
get_fibonacci_retracement | read | |
get_ichimoku_cloud | read | |
get_macd | read | |
get_market_profile | read | |
get_moving_averages | read | |
get_multiple_prices | read | |
get_pine_documentation | read | |
get_pine_template | read | |
get_pivot_points | read | |
get_price | read | |
get_rsi | read | |
get_server_stats | read | |
get_stochastic | read | |
get_support_resistance | read | |
get_volume_profile | read | |
get_vwap | read | |
get_williams_r | read | |
health_check | read | |
list_available_pairs | read | |
list_supported_assets | read | |
test_pine_script | read | |
validate_pine_script | read |
Trust audit
SAFEgrade B · trust 89/100 Nothing in the source contradicts what it says it does. Grade A is reserved for packages that have also passed the behavioural sandbox.
| Layer | What it checks | Result |
|---|---|---|
| L0 | Provenance & inventory | PASS |
| L1 | Static analysis of the code | PASS |
| L2 | Instruction surface (what it tells the agent) | PASS |
| L3 | Class-specific surface | PASS |
| L4 | Behavioural (sandbox) | SKIPPED |
What the source does
- Filesystem
- none-observed
- Network
- declared (1 observation(s))
- Shell
- none-observed
- Dependencies
- not all pinned
- Secrets in source
- none-found
Findings (3)
.pre-commit-config.yaml
pytest, pytest-asyncio, pytest-cov, pytest-mock, black, flake8, mypy, isort
mcp, python-dotenv, requests
Gates applied: no_behavioural_pass.
442b8bf2846afull audit observations/trust-audit/mcp-server/lev-corrupted__tradingview-2.json · Report an issue / request a re-scanAudit history
Every audit this server has had. A grade with a past is a grade somebody is still checking.
| Date | Source | Verdict | Grade | Score | Change |
|---|---|---|---|---|---|
| 2026-10-08 | 442b8bf2846a | SAFE | B | 89 | first audit |
Questions
What is the TradingView MCP server?
Professional multi-asset trading & Pine Script development MCP server for Claude. Features: 20+ indicators, Pine Script tools (validator, autocomplete, docs, testing), Forex/Stocks/Crypto support
What tools does TradingView expose?
33 in total: 33 read-only, 0 that write, and 0 that can delete or overwrite. Every one is listed on this page with its risk.
Is TradingView safe to connect to an agent?
The audit found nothing in the source that contradicts what it says it does, and graded it B (89/100). Grade A is held back for packages that have also passed a sandboxed behavioural run, which is why a clean server reads B.
What credentials does TradingView need?
It reads ALPHA_VANTAGE_API_KEY from the environment. Give it a token scoped to the least it needs — an agent that can be talked into calling a tool can be talked into calling it with your credentials.
How does TradingView run?
It speaks streamable-http, so it runs as a service you connect to over the network. It is published on PyPI as tradingview-mcp.
How current is this page?
The grade is for one exact copy of the source (442b8bf2846a), read on 2026-10-08. The repository is watched and re-audited when it changes.