Professional quantitative investment analysis system based on TradingView data providing intelligent stock screening, technical pattern recognition, market review, risk management, and event-driven analysis.
npx skills add https://github.com/hypier/tradingview-quantitative-skills --skill tradingview-quantitativeInstall this skill with the CLI and start using the SKILL.md workflow in your workspace.
Professional quantitative investment analysis system based on TradingView data providing intelligent stock screening, technical pattern recognition, market review, risk management, and event-driven analysis.
Install this skill with one command:
npx skills add hypier/tradingview-quantitative-skills
Add TradingView MCP server to Cursor or Claude Desktop configuration file:
Configuration file paths:
~/Library/Application Support/Cursor/mcp_config.json%APPDATA%\Cursor\mcp_config.json📖 Security Notice: Please read SECURITY.md for important information about API key management and data privacy.
Visit https://rapidapi.com/hypier/api/tradingview-data1 to apply for a free API Key, then configure:
⚠️ SECURITY WARNING: Never commit your real API key to version control. Keep your API key secure and private. The example below uses a placeholder that you must replace with your actual key.
{
"mcpServers": {
"RapidAPI Hub - TradingView Data": {
"command": "npx",
"args": [
"mcp-remote",
"https://mcp.rapidapi.com",
"--header",
"x-api-host: tradingview-data1.p.rapidapi.com",
"--header",
"x-api-key: <YOUR_RAPIDAPI_KEY_HERE>"
]
}
}
}
Configuration Steps:
<YOUR_RAPIDAPI_KEY_HERE> in the configuration above with your actual API keyIf you already have a RapidAPI Key, you can use a self-built JWT Token service:
Step 1: Generate JWT Token
⚠️ SECURITY WARNING: Replace
<YOUR_RAPIDAPI_KEY_HERE>with your actual API key. Never share or commit your API key.
curl --request POST \
--url https://tradingview-data1.p.rapidapi.com/api/mcp/generate \
--header 'Content-Type: application/json' \
--header 'x-rapidapi-host: tradingview-data1.p.rapidapi.com' \
--header 'x-rapidapi-key: <YOUR_RAPIDAPI_KEY_HERE>' \
--data '{}'
Step 2: Configure the returned JWT Token to MCP
⚠️ SECURITY WARNING: Replace
<YOUR_JWT_TOKEN_HERE>with the actual JWT token from Step 1. Never commit tokens to version control.
{
"mcpServers": {
"tradingview": {
"type": "streamable-http",
"url": "https://mcp.example-mcp-server.com/mcp",
"headers": {
"Authorization": "Bearer <YOUR_JWT_TOKEN_HERE>",
"Accept": "application/json, text/event-stream"
}
}
}
}
For most users, Method 1 (RapidAPI) is recommended because:
After restart, enter in conversation:
Please call tradingview_get_metadata to get the list of supported markets
If it returns the market list (america, china, japan, etc.), the configuration is successful.
Just ask questions in natural language, for example:
Help me select stocks from China A-share technology sector that meet the following conditions:
- Technical: RSI 30-70, MACD golden cross
- Fundamental: PE < 30, ROE > 15%
- Market cap: above 5 billion
Deep analysis of Puyuan Information (688118), including:
- Multi-timeframe technical analysis
- Fundamental data
- Recent news
- Buy recommendations and risk warnings
How is the China A-share market today? Analyze hot sectors and investment opportunities
I have 100k capital, want to buy Puyuan Information, how much should I buy?
Give me position suggestions, stop-loss/take-profit levels and risk-reward ratio
For complete market list, see references/api-documentation.md.
A: Check the following points:
mcp_config.json path is correcttradingview-mcp-server is correctly built (run npm run build)A:
A:
# First get market codes
tradingview_get_metadata(type='markets')
# Use market_code='china' to get A-share data
tradingview_get_leaderboard(
asset_type='stocks',
tab='gainers',
market_code='china'
)
A: When calling tradingview_get_ta, set include_indicators=true to get:
A:
tradingview_get_price(
symbol='SSE:600519', # Exchange:Code
timeframe='D', # 1/5/15/30/60/240/D/W/M
range=120 # Max 500 K-lines
)
A: Supports 19 languages, commonly used are:
zh-Hans - Simplified Chineseen - Englishja - Japaneseko - KoreanComplete list: tradingview_get_metadata(type='languages')
tradingview-quantitative-skills/
├── README.md # This file - User guide
├── SKILL.md # AI skill description (for AI)
├── SECURITY.md # Security policy and best practices
├── .gitignore # Git ignore patterns for sensitive files
├── references/ # Reference materials
│ ├── api-documentation.md # Complete API documentation and metadata dictionary
│ ├── mcp-tools-guide.md # MCP tools usage guide
│ ├── technical-analysis.md # Technical analysis methodology
│ ├── pattern-library.md # Pattern recognition library
│ ├── risk-management.md # Risk management methods
│ └── china-a-stock-examples.md # China A-share practical cases
└── workflows/ # Workflows (15 total)
├── smart-screening.md # Smart stock screening
├── pattern-recognition.md # Pattern recognition
├── market-review.md # Market review
├── risk-assessment.md # Risk assessment
├── event-analysis.md # Event analysis
├── deep-stock-analysis.md # Deep individual stock analysis
├── fundamental-screening.md # Fundamental screening
├── sector-rotation.md # Sector rotation
└── ... # Other workflows
Refer to workflows/smart-screening.md and workflows/fundamental-screening.md, you can combine:
Compare today's financial news from China, US, and Japan, analyze market differences
Combining historical K-line data and technical indicators, simple strategy validation can be performed.
references/api-documentation.mdreferences/mcp-tools-guide.mdreferences/us-stock-examples.mdThis tool is for learning and research purposes only and does not constitute any investment advice. Investing involves risks; enter the market cautiously. Any investment decisions made using this tool are at your own risk.
MIT License