Skip to main content
Glama
stockscreen-mcp

stockscreen-mcp

Stock Screener 🇺🇸 🇨🇳 🇭🇰 🇯🇵 🇰🇷 🇹🇼 🇮🇳 🇩🇪 🇨🇦 🇸🇬 🇲🇾 🇦🇺

Technical and fundamental scans, market breadth, group rankings, theme discovery and AI-assisted research

Scan and track US, Hong Kong, India, Japan, Korea, Taiwan, mainland China A-shares, Germany, Canada, Singapore, Malaysia, and Australia markets.

Live app: Daily → Scan → stock detail → Groups → RRG → Stock Matrix · Static site on a phone: Daily → Scan cards → Breadth → RRG

Use it without installing

Read-only daily snapshot running on GitHub Pages: xang1234.github.io/stock-screener

Updated daily after market close.

Plain-HTML pages for every scannable stock, the main screens, group rankings and breadth, in all 12 markets: browse by market.

The forward-return scoreboard shows what happened after stocks newly entered each preset screen, 5, 20 and 60 sessions later, including how often they beat the market's benchmark. Returns are price only, before costs. The record began in October 2026, and thin samples are labeled.

See the Static Site Guide for exactly what works in static mode.

Related MCP server: TickerDB

Use it from your terminal

With uv installed, uvx fetches the rest:

uvx stockscreen-mcp screen minervini --market US

Add --tradingview to save every match as a comma-separated file for TradingView's watchlist import, which requires that format. Malaysia and Beijing listings are skipped. See stockscreen-mcp for the other commands.

Ask your AI assistant

The same daily data is available to Claude, Cursor, VS Code or any MCP client through stockscreen-mcp. It needs no API keys and no server:

claude mcp add stockscreen -- uvx stockscreen-mcp

Then ask, for example: "Which US stocks pass the Minervini trend template today, and which are in top-20 industry groups?" It covers screens, RS ratings, market health and breadth, and group rankings for all 12 markets.

Features

  • 12-market coverage - exchange calendars, independent data and scans.

  • Multiple screening methodologies - Minervini, CANSLIM, IPO, Volume Breakthrough, etc. with composite scoring.

  • Market Health and Exposure - Market-regime overlay for position sizing and risk posture.

  • Market Breadth - StockBee-style daily movers and trend windows, advance/decline and new-high/new-low health bars, T2108, a benchmark overlay, and a significance heatmap built from one shared calculation layer.

  • Industry groups with Relative Rotation Graph - groups ranked by relative strength with movers (1W/1M/3M/6M) and constituent analysis, plus RRG charts plotting RS-Ratio vs RS-Momentum through (Leading → Weakening → Lagging → Improving). The Matrix tab adds Grid and Clusters layouts colored by 1-day, 1-week, 1-month change, or Stock RS.

  • Watchlists and Themes - RS and price sparklines, multi-period change bars, drag-and-drop folders, and full-screen chart navigation.

  • Theme discovery - AI theme identification from RSS, Twitter/X, and news feeds; tracks trending vs. emerging themes and alerts on momentum shifts.

  • AI research chatbot - LLM powered chatbot with optional web search and persistent conversation history.

  • Operations - startup data bootstrap, runtime status, and Operations console for queues/jobs/telemetry.

  • Options Command Center - opt-in US-only options context for the current top Candidates and Leaders, with focused gamma, volatility, skew, and activity views plus ticker history.

  • Backtest - Backtest page that validates published scan picks and theme alerts against price history.

Market Health and Exposure Market Health and Exposure

Scan results with composite scores, RS sparklines, multi-screener ratings, and classification columns Scan results table

Group relative-strength rankings with movers and the rankings table Group RS: industry rankings, relative-strength statistics, and changes in group rank

Relative Rotation Graph — sector rotation with direction-arrowed weekly tails RRG: sector rotation with direction-arrowed weekly tails; full 197-group scope available from the same view

Stock Matrix Grid colored by one-week change Matrix Grid: sector and IBD industry rows, market-cap columns, and individual stock tiles

Stock Matrix Clusters colored by one-month change *Matrix Clusters: market-cap-sized bubbles with green centers and red perimeters. Both layouts support 1-day, 1-week, 1-month change, and Stock RS in the live app and static site. See the Group Matrix Guide.*

Market Breadth combines advance/decline and new-high/new-low health bars with an SPY overlay and a color-coded history table for primary, secondary, and context indicators.

Market Breadth overview with health bars and SPY overlay

Market Breadth recent-history heatmap

Options Command Center — current liquid Candidates and Leaders ranked by estimated gamma exposure *Options Command Center: switch between Gamma, Volatility, Skew, and Activity views without scanning an entire option universe. See the Options Command Center Guide.*

Typical flow: sign in → bootstrap markets → review the Daily dashboard → run a Scan → drill into a stock → monitor Operations → validate outcomes on Backtest. For the full page-by-page tour, see the Live App Guide.

Quickstart (Docker)

Needs Docker and Python 3.11+. One command pulls the published images that match your checkout, writes .env.docker with a generated login password, and waits until every service is healthy:

git clone https://github.com/xang1234/stock-screener.git
cd stock-screener
scripts/quickstart.sh
# Open the printed URL (http://localhost) and log in with the printed password

Add markets or change the port with ENABLED_MARKETS=US,HK FRONTEND_PORT=8080 scripts/quickstart.sh. Re-run it after git pull to upgrade. For the chatbot, add an LLM key such as GROQ_API_KEY to .env.docker and re-run. CI runs this same install against each published main build and release tag, and only creates a GitHub Release once it passes.

On first launch the app opens to a first-run bootstrap screen — no pre-seeded database needed. Pick one primary market for startup defaults and optionally enable more to hydrate in the background, then start. Enabling many markets at once noticeably slows the first run, so start with one and add the rest after the workspace is ready.

Configuration

Scanning and all core features work with no API keys. The AI chatbot requires at least one LLM provider key.

Provider

Env Var

Free Tier

Notes

Groq

GROQ_API_KEY

Yes

Default for chatbot and research

Gemini

GEMINI_API_KEY

Yes

Extraction fallback

Minimax

MINIMAX_API_KEY

No

Primary theme-extraction provider

Z.AI

ZAI_API_KEY

No

Optional alternate provider

Optional web-search keys (TAVILY_API_KEY, SERPER_API_KEY) are read by the Hermes assistant sidecar; the backend does not read them. Full reference: Environment Variables.

Application pages

Route

Page

Description

/

Daily

Dashboard: Daily Snapshot, Key Markets, Themes, Watchlists, Stockbee MM

/scan

Bulk Scanner

Multi-market scanning with 80+ filters, per-market badges, CSV export

/breadth

Market Breadth

StockBee-style breadth indicators and trends

/groups

Group Rankings

IBD industry group rankings, movers, RRG, and stock Matrix (Grid/Clusters)

/validation

Backtest

Deterministic validation of scan picks and theme alerts

/themes

Themes

Feature-gated AI theme discovery, review queues, pipeline controls

/chatbot

Assistant

Feature-gated AI research assistant with web search and watchlist actions

/stocks/:ticker

Stock Detail

Charts, fundamentals, themes, watchlist actions, validation history

/operations

Operations

Runtime activity, queue/job inventory, telemetry alerts, safe job controls

/options

Options Command Center

Feature-gated US Candidate/Leader options analytics; also available read-only when advertised by the static snapshot

/options/:symbol

Options Detail

Strike structure, model-estimate GEX, IV smile, and discontinuous observed history for one current symbol

Tech stack

Backend: FastAPI, SQLAlchemy, Alembic, Celery, Redis, PostgreSQL Frontend: React 18, Vite, Material-UI, TanStack Query / Table, Recharts Data: yfinance, Finviz, SEC EDGAR, official X API (optional)

Documentation

Guide

Audience

Live App Guide

Users of the server-backed live application

Group Matrix Guide

Grid/Clusters, return periods, stock RS, data coverage, and live/static delivery

Operations Guide

Live-app operators and maintainers

Static Site Guide

Static demo users and maintainers

Options Command Center

Understanding the options cohort, metrics, history, and limitations

Docker Deployment

Server, homelab, VPS users

Development Guide

Contributors, developers

Architecture

Understanding the system design

Environment Variables

Configuration reference

MCP Integration

AI copilot workflows (15 tools via stdio / Streamable HTTP)

Backend API & Architecture

Backend developers

Frontend Components

Frontend developers

Contributing

Getting started as a contributor

Disclaimer

This software is for educational and research purposes only. It is not financial advice. Always do your own research and consult a licensed financial advisor before making investment decisions.

License

Released under the Apache License 2.0.

Available Tools

9 tools
audit_stocksA
Read-only

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 screens list when you only need some.

Each stock returns a snapshot, passes (screen ids in list_screens order, matching the website and get_stock's passes_screens), near_misses, and notes when there are any. The top-level screens list minus passes gives the failing ids. near_misses maps each screen the stock fails on exactly one of at least two rules to "field short_by N", or to the field alone when short_by is absent. It ignores how far short the stock is, so check short_by before calling one close. short_by is the positive distance between a failed numeric rule's bound and the stock's value (rs_rating 60 against a min of 70 is short_by 10); on a max rule it is how far the value is above the bound (ibd_group_rank 154 against a max of 40 is short_by 114); it is absent when the value is missing and on non-numeric rules. notes maps a screen to the reason when its rules alone don't explain the result: a failing optional rule group, or a disabled required group.

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 screens list.

Symbols absent from the market's scan are listed in not_found rather than raising an error.

Inputs: symbols (required), detail, market, screens. Returns: object

describe_fieldsA
Read-only

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 fields. fields and group together keep the named fields that are in the group.

Inputs: group, fields, market. Returns: object

get_stockA
Read-only

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.

Inputs: symbol (required), market. Returns: object

group_rankingsA
Read-only

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 group (full name, or any part of it that matches only one group) for that group's rank history and its stocks, strongest RS first. For a quick top-5 alongside breadth, market_overview is enough; to filter stocks by group rank, use run_screen with ibd_group_rank. Rankings are end-of-day and update once a day.

Inputs: group, limit, market. Returns: object

list_marketsA
Read-only

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 market to the other tools), name, as_of_date (the trading day the data covers), status ("current"; "late" if it is behind its latest completed session or its next update is over a day overdue; or "unknown"), and features: which of "scan" (run_screen, get_stock, list_screens, audit_stocks), "breadth" (market_overview breadth), "groups" (group_rankings) and "track_record" (screen_track_record) are published for it. unavailable_markets lists markets that failed this publish. Takes no arguments. Results are cached for up to 10 minutes; markets are published after their close by two scheduled runs, one for Asia and one for US/Europe.

Inputs: no named parameters. Returns: object

list_screensA
Read-only

Preset screens (Minervini, CANSLIM, VCP, chart patterns, momentum...) with their exact rules.

Pass a screen's id to run_screen or audit_stocks.

Inputs: market. Returns: object

market_overviewA
Read-only

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.

Inputs: market. Returns: object

run_screenA
Read-only

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.

Inputs: limit, market, screen, filters, +2 more. Returns: object

screen_track_recordA
Read-only

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 cohorts keep the published order, which is not a ranking. how_to_read in each result defines the fields; read it before quoting a number.

Any response over 80,000 characters of JSON is refused with an error; pass screen for one screen's rows.

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.

Inputs: market, screen, horizon. Returns: object

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.1/5.0

    Scored across 9 tools

    Disambiguation5/5

    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.

    Naming Consistency4/5

    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.

    Tool Count5/5

    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.

    Completeness4/5

    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.

    Maintenance

    ActivityActive
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • -
      license
      Not graded
      quality
      Not graded
      maintenance
      Real-time financial market data MCP server. Stocks, crypto, technicals, sentiment, FDA calendar. No API keys required.
      -
    • F
      license
      Not graded
      quality
      D
      maintenance
      Exposes global market breadth, volume, RSI, volatility, and sentiment for 12 major equity indices (US + Asia) via 5 tools.
      -
    • A
      license
      A
      quality
      B
      maintenance
      Enables scanning and querying stock market data across thousands of US tickers and top cryptos, with tools for signal analysis, historical replay, and webhook subscriptions.
      35
      316 npm
      MIT