yfinance-ta-patterns
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
yfinance-ta-patterns MCP server for multi-asset candlestick pattern scanning, deterministic AI Confluence Scoring (EMA 20/50/200 + RVOL + Wilder RSI-14 + Wilder ATR-14), ATR-based Trade Setups (Entry, Stop-Loss, TP1, TP2), unbiased next-open backtesting, macroeconomic calendar events, and real-time market news. Optimized for tool-calling and reasoning workflows by frontier AI models (Claude 3.7 Sonnet, OpenAI o3-mini/o1, DeepSeek-R1, Gemini 2.5). Supported tickers: Stocks ('AAPL', 'NVDA'), Crypto ('BTC-USD'), Forex ('EURUSD=X'), Indices ('^GSPC'), Commodities ('GC=F'). Yahoo Finance lookback limits apply to intraday intervals ('1m' <= '7d', '5m'/'15m'/'30m' <= '60d', '1h'/'4h' <= '730d') and are automatically clamped when omitted or exceeded.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {} |
| prompts | {} |
| resources | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| ta_scan_symbolA | Scan a market symbol (Stocks, Crypto, Forex, Indices, Commodities, e.g. 'BTC-USD', 'NVDA', 'AAPL', 'EURUSD=X') for candlestick patterns, compute AI Confluence Scores (Trend + RSI + Volume + ATR), and generate actionable Trade Setups (Entry, Stop-Loss, TP1, TP2). |
| ta_scan_watchlistA | Scan multiple ticker symbols in batch (up to 60 symbols) or institutional presets (e.g. 'all_forex', 'euro_pairs', 'majors', 'crypto') and rank all detected candlestick pattern setups across the watchlist by AI Confluence Score descending. |
| ta_backtest_patternsA | Run quantitative historical backtesting of all candlestick patterns on a symbol (next-open execution) and return the top-performing patterns ranked by composite score or win rate. |
| ta_list_patternsA | List all supported candlestick patterns, TA-Lib binary status, and Python No-GIL runtime status. |
| ta_get_economic_calendarA | Get macroeconomic calendar events (live verified feed) automatically filtered by the currencies impacting a selected asset symbol (e.g. 'EURUSD=X' -> EUR, USD; 'AAPL' -> USD; 'GBPJPY' -> GBP, JPY; 'BTC-USD' -> USD). Returns an empty list with source='unavailable' if the live feed is unreachable. |
| ta_get_newsB | Fetch recent market news headlines, publishers, and publication timestamps for a given ticker symbol (e.g. 'AAPL', 'NVDA', 'BTC-USD'). |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
| ta_market_analyst_prompt | Generate an institutional Quantitative Portfolio Manager reasoning prompt (optimized for Claude 3.7 Sonnet, OpenAI o3-mini, DeepSeek-R1, Gemini 2.5) with live pattern setups for a symbol. |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
| TA-Lib 61 Candlestick Patterns Catalog | Complete list of all 61 canonical TA-Lib candlestick patterns with candle lookback lengths and runtime status. |
| 56 Major & Cross Forex Currency Pairs | Canonical list of 56 major and cross Forex ticker symbols supported by yfinance-ta-patterns. |
TDQS
Scored across 6 tools
Each tool targets a distinct operation: single-symbol scanning, batch watchlist scanning, historical backtesting, economic calendar, news, and pattern listing. The only near-overlap is scan_symbol vs scan_watchlist, but the single-vs-batch distinction is explicit and clear in the descriptions.
All tools use a uniform snake_case ta_ prefix with a consistent verb_noun structure (scan_symbol, scan_watchlist, backtest_patterns, get_economic_calendar, get_news, list_patterns). No mixed conventions.
Six tools is well-scoped for a candlestick-pattern/TA server; each tool covers a distinct slice of the workflow (discover, scan, batch, validate, contextualize) without redundancy.
The core lifecycle is covered: list supported patterns, scan one symbol, scan a watchlist, backtest, plus news and macro context. Minor gaps exist, such as no tool for raw OHLC/indicator data retrieval or a per-pattern detail/confluence breakdown, but agents can work around these via the scan outputs.