About U.S. Market Regime
U.S. Market Regime is an open-source MCP server that provides published end-of-day U.S. market context for Claude, Cursor and other MCP clients. It reports a GREEN, YELLOW or RED regime with underlying metrics and freshness information, for educational use rather than investment advice.
Key features
- 01Reports GREEN, YELLOW or RED regime
- 02Shows QQQ and VIX metrics
- 03Lists triggered rules and risk score
- 04Includes data age and stale-data warning
- 05Explains model states and limitations
Use cases
- 01Review end-of-day market context
- 02Check the rules behind a regime
- 03Verify feed freshness before analysis
MCP support
The MCP server exposes tools to retrieve the published market regime and explain its metrics and limitations. It reads a public feed and returns an error if the feed is unavailable rather than serving an old cached value.
Configuration
Local server config is the same for every client. Copy it into your client’s MCP config file.
docker run -i --rm ghcr.io/alicexixi85/us-market-regime-mcp:0.1.0Local servers need a runtime on your machine (e.g. Node.js 18+). Config file locations differ by client; see your client’s docs.
ghcr.io/alicexixi85/us-market-regime-mcp:0.1.0stdioTools
Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.
Details
From the project READMEU.S. Market Regime MCP
An open-source Model Context Protocol server that lets Claude, Cursor or any MCP client read the published end-of-day U.S. market regime (GREEN / YELLOW / RED) and the metrics behind it: QQQ vs. its 200-day average, drawdown from the high, VIX vs. its 20-day average, and distribution days over the last 25 sessions.
Zero dependencies, Python 3.10+. It is a read-only client for the public feed behind signal.usethelever.com.
Educational market context only. The server returns a description of the broad index environment. It does not recommend securities, give position sizes, or predict prices. Every response includes the
as_ofdate and a disclaimer.
Tools
| Tool | Returns |
|---|---|
get_market_regime | Regime, risk score (0-100), confidence, triggered rules, metrics, as_of / published_at, data age in days and a stale-data warning. If the feed cannot be reached the tool returns an error instead of an old cached value. |
explain_regime_model | What each state and metric means, update cadence and the model's limits. |
Install
git clone https://github.com/alicexixi85/us-market-regime-mcp.git
{
"mcpServers": {
"us-market-regime": {
"command": "python3",
"args": ["/absolute/path/to/us-market-regime-mcp/server.py"]
}
}
}
Docker: docker build -t us-market-regime-mcp . && docker run -i --rm us-market-regime-mcp
Terminal: python3 server.py --print
Example prompt: "What is today's market regime, how fresh is the data, and which rule triggered it?"
TradingView HUD
qqq_traffic_light_hud.pine is a separate, chart-only Pine Script v6 indicator that labels QQQ's trend context (supportive / choppy / downtrend) from EMAs, ATR and range efficiency. It is a simplified approximation and will not always match the published regime.
Related
- Daily dashboard: signal.usethelever.com (paid access via Gumroad)
- Bar-by-bar replay practice for U.S. stocks: replay.usethelever.com
License
MIT
Comments
New to MCP?
From what the protocol is to installing your first server, these answers cover most first questions.
An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.