Purpose signal-scanner is a rule-based stock/cryptocurrency screener that defines watchlists and rule sets through readable YAML files; the scanner pulls market data, calculates technical indicators, and reports which symbols meet the conditions. It is aimed at scenarios that require repeated demos and delivery to different clients—each time the client changes, only watchlist.txt and rules.yaml need to be replaced, with no code changes.
Main capabilities
- Key-free by default: market data is obtained through yfinance, no API key is required, and it is suitable for stocks, ETFs, forex (such as EURUSD=X), and cryptocurrencies (such as BTC-USD).
- No-code rules: clients directly edit rules.yaml, with conditions based on combinations of indicators; a rule triggers when all of its conditions are true at the same time.
- Honest signals: indicators are calculated from closed candles (no look-ahead); symbols without data are reported truthfully and never faked.
- Degradable notifications: when a Telegram bot token is set, Telegram alerts are sent; otherwise they are printed to the console, and the scanner always runs.
- Three entry points, the same engine: CLI (one-off execution or --watch continuous monitoring), Telegram push, and an MCP scanning tool.
Indicators and rules Each symbol can calculate the following indicators: price, pct_change, rsi, sma_fast, sma_slow, sma_cross (golden / death, i.e. golden cross/death cross), vol_ratio (relative to the 20-day average volume), pct_from_52w_high, pct_from_52w_low. A rule triggers when all of its conditions hold.
How to use
- Telegram (optional): create a bot via @BotFather to get a token, get your own chat id from @userinfobot, then configure it in .env.
- As an MCP server (Claude Desktop): if python is not in PATH, fill in the full path to Python (for example, the interpreter used to run pip install -r requirements.txt). After that, you can ask Claude "Run my scanner" or "Any signals on NVDA and BTC-USD?", and it will call the scan tool.
- All adjustable parameters are centralized in config.py / .env (see .env.example): RSI period, SMA fast/slow lines, volume window, lookback range, polling interval, data backend, Telegram. Client skin changes usually only require modifying watchlist.txt + rules.yaml.
Applicable scenarios
- Situations that require quickly demoing stock picking/crypto signal scanning and do not want to deal with API keys.
- Handing the rules file (YAML) to non-technical clients to maintain themselves without changing code.
- Connecting scanning capabilities to MCP hosts such as Claude Desktop / Claude Code, and triggering scans through conversation.
- Monitoring tasks that require both Telegram real-time push or console output notification methods.
Limitations and notes
- The market data source is yfinance, and its availability and rate limits depend on that data source.
- Details such as specific installation commands, extension capabilities beyond the available indicators, pricing and billing models, and platform support scope are not currently provided in the available materials.
- This project reuses the mcp-factory contract (Result, formatting, caching) so that it can be combined with the remaining directory components.
URL:https://github.com/cstamigo-droid/signal-scanner