stockscreen-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| STOCKSCREEN_DATA_URL | No | Optional override for the published data URL (defaults to the GitHub Pages site). |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
Daily stock-screening data from the open-source stock-screener project (https://github.com/xang1234/stock-screener), read from its published snapshot (https://xang1234.github.io/stock-screener/). It covers 12 markets: US, CA, DE, HK, CN, JP, KR, TW, IN, SG, MY, AU.
Data is an end-of-day snapshot published after each market's close; every result has an as_of_date. There is no intraday data.
rs_rating, rs_rating_1m/3m/12m are 1-99 relative-strength percentiles within the stock's own market (99 = strongest). Group ranks are IBD-style industry groups ranked by their stocks' RS (1 = strongest).
Start with list_screens / run_screen for candidates, get_stock for one ticker, audit_stocks to check a watchlist or holdings against the screens, market_overview for market health and breadth, group_rankings for leading groups.
screen_track_record reports how stocks did after newly entering a screen, one holding period per call. Follow its how_to_read note when quoting the numbers.
Call describe_fields before quoting or filtering on an unfamiliar field. Names mislead, and what rows hold varies by market.
The stockscreen://skill resource teaches the full workflow and reading rules.
This is educational screening data, not investment advice.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| list_marketsA | List the markets that have published data, so you know which market codes the other tools accept and how fresh each one is. Call this first when the user names a country or exchange, or asks how current the data is. For one market's health, breadth and leading groups, use market_overview instead. Each market returns its code (pass it as |
| list_screensA | Preset screens (Minervini, CANSLIM, VCP, chart patterns, momentum...) with their exact rules. Pass a screen's id to run_screen or audit_stocks. |
| describe_fieldsA | Define scan fields and count what a market's rows hold for them. Call it before quoting or filtering on a field you have not used, because names mislead: volume is traded value rather than shares, and pct_day is a percentile rank rather than a percent change. Each field returns its group, type, unit and meaning. note says what a reader would otherwise get wrong, range appears only where the code guarantees a hard bound, and alias_of names the row field this name reads. rows_with_value counts this market's rows with a non-null, non-empty value. At 0 the field supports no claim here. It is null for fields the tools drop, which exist only in the published JSON. true_rows appears on boolean fields and counts the rows that are true. values appears on text and list label fields as {label: rows}, most common first, unless the market has more than 15 distinct labels. Filters can test only the text ones. These counts say what this publish holds and not why. They cannot separate a field that cannot be computed from a result where nothing qualified. Internal fields, which are bookkeeping fields and rule names, appear only when named
in |
| run_screenA | Run a preset screen and/or custom filters over a market's full daily scan (every listed stock). A preset matches exactly the stocks the project's website shows for it. Filters are combined with AND, including with the preset. |
| get_stockA | Everything the daily scan knows about one stock: RS ratings, stage, scores, growth, group rank, setup/pattern fields, and which preset screens it currently passes. |
| audit_stocksA | Check a watchlist or holdings against the preset screens in one call: which screens each stock passes, and which it nearly passes. Use it to review a list of stocks, find near misses, or see what a position fails today. Use
get_stock for every field on one symbol, and run_screen to discover new candidates. A long list
over every screen returns a lot of text, so pass a Each stock returns a snapshot, detail=True adds failed_rules: every failed rule for each failing screen. Any response over 80,000
characters of JSON is refused with an error that says how many symbols fit, so for detail pass fewer
symbols or a shorter Symbols absent from the market's scan are listed in not_found rather than raising an error. |
| screen_track_recordA | What happened after stocks newly entered each preset screen, at one holding period. Use it to judge how much weight a screen's output deserves, or to see whether a screen has a record yet. Use run_screen for today's matches. Each call reports one horizon; call again with horizon=5 or horizon=60 for the others. Rows in Any response over 80,000 characters of JSON is refused with an error; pass A market with no published record returns an error naming the markets that have one. In list_markets those markets show the track_record feature. |
| market_overviewA | Market health in one call: exposure score and stance (distribution days, follow-through day, trend), StockBee-style breadth (4% movers, 5/10-day ratios, T2108, 52-week highs/lows), key index/asset moves, and the strongest industry groups. |
| group_rankingsA | Rank a market's IBD-style industry groups by their stocks' relative strength (1 = strongest), with 1W/1M/3M/6M rank changes and this week's biggest movers. Use it to find leading or improving industries. Pass |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
| review_watchlist | Review a watchlist or holdings against the market regime and the preset screens. |
| find_candidates | Find screening candidates in a market, from the regime down to individual names. |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
| fields | Meaning, unit and hard range of every scan field, as JSON. describe_fields adds per-market counts. |
| skill | Workflow and reading rules for answering stock questions with these tools. |
TDQS
Scored across 9 tools
Each tool has a clearly distinct role: discovery (list_markets, list_screens, describe_fields), retrieval (get_stock, market_overview, group_rankings), and execution (run_screen, audit_stocks, screen_track_record). The descriptions explicitly cross-reference the nearest alternative (e.g. run_screen vs audit_stocks, list_markets vs market_overview, group_rankings vs market_overview) so an agent can resolve overlaps. No two tools target the same action on the same resource.
Most tools follow a verb_noun pattern (list_markets, list_screens, describe_fields, run_screen, audit_stocks, get_stock). The exceptions are screen_track_record and the two bare noun phrases group_rankings and market_overview, which break the verb convention. The naming is still readable and predictable enough to infer intent.
Nine tools is well within the ideal 3-15 range and each one earns its place: discovery, field semantics, screening, watchlist auditing, track record, group rotation, single-stock detail and market breadth. Nothing looks like a redundant wrapper or an oversized menu.
The surface covers the full workflow from learning market/field semantics through screening, auditing positions and judging a screen's historical edge, with no dead ends for a daily-scan screener. Minor gaps remain, such as bulk multi-symbol detail or historical time-series beyond group rank changes and one-horizon track records, but agents can work around these via repeated calls.