quant-research-mcp
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@quant-research-mcpanalyze setup for AAPL using hurst_regime_orb"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
quant_research_mcp
An MCP server exposing a registry of paper-backed quantitative trading methods
plus a deterministic, no-LLM decision helper. The server supplies reproducible
math (screening, indicators, regime detection, method signals, scored entry
decisions); the calling agent supplies judgement (e.g. reading headlines into a
sentiment signal). No claude -p, no subprocess, no LLM inside the server.
⚠️ Not financial advice. This is read-only research and educational tooling. It performs quantitative computation only and places no orders. Nothing it outputs is investment advice or a recommendation. Market data may be delayed or wrong, backtests are not forecasts, and trading carries substantial risk of loss. You alone are responsible for any capital you risk. Provided "as is" without warranty — see
LICENSE.
Why this exists
Repackages a working day-trading pipeline as composable MCP tools, with two goals:
Extensible to future papers. Each strategy is a
TradingMethodregistered in a registry. Adding a new paper = drop one module, callregister(...), import it. Nothing else changes.Decision-making is scientific, not generative. The old pipeline gated entries with an LLM call. Here that is replaced by
quant_score_decision— a pure function combining reward:risk, regime strength, volume, RSI positioning and ATR-normalised stop quality into an auditable score. Same inputs → same output.
Related MCP server: BotSpot
Tools (13)
Tool | Network | Purpose |
| no | List registered methods (key, paper, timeframe, regimes). |
| no | Full detail + citation for one method. |
| yes | Rank tickers by gap / rel-volume / ATR%. |
| yes | EMA9/20, RSI, ATR, VWAP, Hurst for a ticker. |
| yes | Hurst → TRENDING / MEAN_REVERTING / RANDOM_WALK. |
| yes | Run a per-ticker method → signal + entry/stop/target (+ HTF context). |
| yes | Run a universe method: momentum ranking, pairs spread. |
| yes | Validate a method: replay its own analyze() over history → win rate, expectancy, drawdown, IS/OOS halves. |
| yes | Next earnings (+days), ex-dividend — binary-event risk. |
| yes | Stateless heat / correlation / concentration check + candidate verdict. |
| yes | SPY/QQQ/IWM, VIX, 11 sectors ranked, risk-on/off breadth. |
| no | Decision helper: setup (+ sentiment, earnings, heat) → score, verdict, size, timeframe-aware execution plan. Deterministic. |
| yes | Recent headlines (data only; agent forms sentiment). |
All tools are read-only and support response_format: markdown | json.
Workflows
Day trade
quant_market_context # tape read: risk-on/off, sectors
→ quant_screen_universe # find movers
→ quant_analyze_setup # hurst_regime_orb on the top name
→ quant_check_events + quant_fetch_news # binary risk + agent sentiment
→ quant_portfolio_risk # heat/correlation vs your open book
→ quant_score_decision(setup, news_sentiment, days_to_earnings,
portfolio_heat_pct)Swing (days) — rsi2_reversion, pairs_cointegration via
quant_analyze_setup / quant_analyze_universe; earnings veto matters most
here (quant_check_events → days_to_earnings).
Position (weeks+) — donchian_trend per ticker, xs_momentum over the
universe; re-rank monthly, weekly stop review per the execution plan.
Before trusting any method: quant_backtest_method on your tickers and
period — it replays the method's own signal logic with costs, and reports
in-sample vs out-of-sample halves so you can see decay.
The agent writes any narrative; the server guarantees the numbers.
The decision helper (quant_score_decision)
Pure function. Composite score (weights in config.DECISION_WEIGHTS):
reward_risk — realised R:R vs the target multiple.
regime_strength —
|Hurst − 0.5|scaled (distance from random walk).volume_confirmation — relative volume vs the floor.
momentum_position — RSI in a healthy band for the direction (not exhausted).
stop_quality — stop distance normalised by daily ATR (noise-tight stops penalised).
Optional news_sentiment (the agent derives this) boosts an aligned score or
vetoes a contradicted one at confidence ≥ 0.5. Output includes the per-factor
breakdown, fixed-fractional position_size (with a haircut for noise-tight stops),
and a mechanically derived execution_plan (entry trigger, order type, stop ladder,
profit taking, time stop, abort conditions).
Bundled methods (5)
Key | Timeframe | Paper |
| intraday | arXiv:2205.11122 — Hurst regime → ORB / VWAP fade |
| swing | Connors & Alvarez 2009 — RSI(2) pullback above the 200d SMA |
| swing | Gatev et al. 2006 — Engle-Granger spread z-score |
| position | Faith, Turtle Rules; Moskowitz et al. 2012 — 55d breakout, 20d/ATR trail |
| position | Jegadeesh & Titman 1993 — 12-1 cross-sectional momentum, top-N book |
Data providers
Default is yfinance (free, ~15-min delayed). The data layer sits behind a
provider interface (quant_research_mcp/providers/): implement the
DataProvider protocol for Alpaca/Polygon/IBKR, register the factory, then run
with QUANT_DATA_PROVIDER=<name>. All calls are TTL-cached in-process (daily
15 min, intraday 60 s, news 5 min, events/sector 1 h).
Adding a future paper
# quant_research_mcp/methods/my_paper.py
from . import register
from .base import TradingMethod, TradeSetup
def analyze(daily, session, context) -> TradeSetup:
... # compute signal, entry, stop, target
register(TradingMethod(
key="my_paper_method",
name="My Method",
paper="Author et al., Title",
paper_url="https://arxiv.org/abs/...",
regime_applicability="TRENDING",
description="One paragraph on the mechanics.",
analyze=analyze,
))Then add from . import my_paper to methods/__init__.py. It now appears in
quant_list_methods and is runnable via quant_analyze_setup(method_key=...).
Quick start (Makefile)
make install # create venv + install deps (uv sync)
make smoke # import server, list the 13 tools (no network)
make run # run the server over stdio
make help # list every targetInstall as a shell binary
make install-cli # installs `quant-research-mcp` onto your PATH (uv tool)
quant-research-mcp # runs the server over stdio from anywhereIf the command isn't found after install, run uv tool update-shell and restart
your shell (uv's tool bin dir, usually ~/.local/bin, must be on PATH).
Target | What it does |
|
|
| install the |
| remove the binary |
| install + ruff for linting |
| run the MCP server (stdio) |
| import + list tools, no network |
| run the pytest suite (no network) |
| launch the MCP Inspector |
| tests + lint + assert no LLM/subprocess calls |
| print the stdio client-config JSON |
| register the local clone with Claude Code (user scope) |
| remove from Claude Code |
| build sdist + wheel into |
| build the Docker image locally |
| pack a Claude Desktop |
| drop caches, venv and build artifacts |
Install
Every method runs the same stdio server — pick whichever fits your setup.
Method | Command | Needs |
uvx from GitHub (no clone) |
| |
PyPI |
| uv / pipx |
Docker |
| Docker |
From source |
| git + uv |
Claude Desktop | install the | Claude Desktop |
PyPI and Docker images are published on tagged releases; until the first release, use the uvx from GitHub or from source rows.
Use with Claude Code
Fastest — runs straight from GitHub, no clone:
claude mcp add quant_research -- \
uvx --from git+https://github.com/FlawlessByte/quant-research-mcp quant-research-mcpAfter a PyPI release this shortens to:
claude mcp add quant_research -- uvx quant-research-mcpContainerised:
claude mcp add quant_research -- docker run -i --rm ghcr.io/flawlessbyte/quant-research-mcpFrom a local clone (development): make claude-add registers this checkout at
user scope; make register prints a paste-ready .mcp.json block.
Verify inside Claude Code:
/mcp # should list 'quant_research' as connectedThen ask e.g. "screen the universe and analyze the top name with the hurst
method, then score the entry decision." It will call quant_screen_universe
→ quant_analyze_setup → quant_score_decision.
From source (development)
git clone https://github.com/FlawlessByte/quant-research-mcp
cd quant-research-mcp
make install # uv sync — venv + dependencies
make smoke # list the 13 tools (no network)
make test # 40 offline testsOptional: make install-cli puts a quant-research-mcp binary on your PATH
(via uv tool). If it isn't found afterwards, run uv tool update-shell and
restart your shell. Inspect tool schemas with make inspect.
Releasing (maintainers)
CI runs ruff + the 40 offline tests on every push/PR (Python 3.12 & 3.13). Cutting a release is tag-driven:
# bump version in pyproject.toml + server.json + manifest.json, commit, then:
git tag v0.1.0 && git push origin v0.1.0That fires two workflows:
release.yml→uv build, publish to PyPI via Trusted Publishing (OIDC, no stored token), and attach the wheel/sdist + a.mcpbbundle to the GitHub Release.docker.yml→ build and pushghcr.io/flawlessbyte/quant-research-mcp.
One-time setup:
PyPI: create the project and add a Trusted Publisher (owner
FlawlessByte, repoquant-research-mcp, workflowrelease.yml, environmentpypi).GHCR: after the first push, set the package visibility to public.
MCP registry: after the first PyPI release, list it with the
mcp-publisherCLI —mcp-publisher login githubthenmcp-publisher publish(usesserver.json; GitHub login proves ownership of theio.github.FlawlessByte/…namespace).
The Claude Desktop
.mcpbinvokesuvxunder the hood, so a one-click install still requires uv on the machine — bundling pandas/scipy/statsmodels wheels directly would be large and platform-specific.
Limitations (what a serious trader still needs elsewhere)
Delayed data until you wire a real-time provider key (interface is ready; yfinance is ~15-min delayed and its news feed is thin).
No macro calendar (FOMC/CPI/NFP) — no reliable free feed; pass your own judgement through
news_sentiment/news_confidence.No options data (IV, term structure, gamma levels), no short interest/float, no Level 2 — next frontier.
Backtests are parameter validation, not forecasts: yfinance history has survivorship bias, costs are estimates, intraday replay is capped at ~60 days of 5m bars by the provider.
No persistence by design — the server stores nothing; supply open positions per call (
quant_portfolio_risk). A trade journal is a planned opt-in module.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/FlawlessByte/quant-research-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server