Context7
Up-to-date docs for AI agents
作者提供的说明(英文原文)
Paper-backed quant trading methods and a deterministic, no-LLM decision helper for serious traders.
这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。
我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。
选择你使用的 AI 应用,然后复制设置。
你需要
你用的是哪个应用?
在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。
打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json
{
"mcpServers": {
"quant-research": {
"command": "uvx",
"args": [
"quant-research-mcp"
]
}
}
}在终端中运行这条命令
claude mcp add quant-research -- uvx quant-research-mcp粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json
{
"mcpServers": {
"quant-research": {
"command": "uvx",
"args": [
"quant-research-mcp"
]
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
粘贴到项目中的 .vscode/mcp.json
{
"servers": {
"quant-research": {
"type": "stdio",
"command": "uvx",
"args": [
"quant-research-mcp"
]
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。
你的选择通过 Cookie 保存在这台设备上,无需账户。
这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月7日
注册名称已通过 GitHub 账户 FlawlessByte 验证,该账户拥有此仓库
我们还没有从 GitHub 读取这个仓库
我们还没有从 GitHub 读取这个仓库
它在你的电脑上运行,没有互联网端点
在你的电脑上运行,改用本地设置
它在你的电脑上运行;我们只能读取互联网端点的工具列表
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
注册中心没有列出必需的密钥,不过有些服务器会在首次使用时要求你登录。
它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。
GitHub 仓库最后更新于–,最新版本(0.1.0)于5个月前进入注册中心。
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Python (uv)。
同一分类中有:Context7, Codebase Memory, Exa
同一分类中其他作者的服务器,按星标数排序。
如何看卡片:★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i
Up-to-date docs for AI agents
Codebase knowledge graph for AI agents — 162 languages, sub-ms queries, 99% fewer tokens.
Connect AI agents to Exa for web search, content fetching, and multi-step research.
按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。
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.
Repackages a working day-trading pipeline as composable MCP tools, with two goals:
TradingMethod registered in a registry. Adding a new paper = drop one module, call register(...), import it. Nothing else changes.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.| Tool | Network | Purpose |
|---|---|---|
quant_list_methods | no | List registered methods (key, paper, timeframe, regimes). |
quant_describe_method | no | Full detail + citation for one method. |
quant_screen_universe | yes | Rank tickers by gap / rel-volume / ATR%. |
quant_compute_indicators | yes | EMA9/20, RSI, ATR, VWAP, Hurst for a ticker. |
quant_detect_regime | yes | Hurst → TRENDING / MEAN_REVERTING / RANDOM_WALK. |
quant_analyze_setup | yes | Run a per-ticker method → signal + entry/stop/target (+ HTF context). |
quant_analyze_universe | yes | Run a universe method: momentum ranking, pairs spread. |
quant_backtest_method | yes | Validate a method: replay its own analyze() over history → win rate, expectancy, drawdown, IS/OOS halves. |
quant_check_events | yes | Next earnings (+days), ex-dividend — binary-event risk. |
quant_portfolio_risk | yes | Stateless heat / correlation / concentration check + candidate verdict. |
quant_market_context | yes | SPY/QQQ/IWM, VIX, 11 sectors ranked, risk-on/off breadth. |
quant_score_decision | no | Decision helper: setup (+ sentiment, earnings, heat) → score, verdict, size, timeframe-aware execution plan. Deterministic. |
quant_fetch_news | yes | Recent headlines (data only; agent forms sentiment). |
All tools are read-only and support response_format: markdown | json.
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.
quant_score_decision)Pure function. Composite score (weights in config.DECISION_WEIGHTS):
|Hurst − 0.5| scaled (distance from random walk).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).
| Key | Timeframe | Paper |
|---|---|---|
hurst_regime_orb | intraday | arXiv:2205.11122 — Hurst regime → ORB / VWAP fade |
rsi2_reversion | swing | Connors & Alvarez 2009 — RSI(2) pullback above the 200d SMA |
pairs_cointegration | swing | Gatev et al. 2006 — Engle-Granger spread z-score |
donchian_trend | position | Faith, Turtle Rules; Moskowitz et al. 2012 — 55d breakout, 20d/ATR trail |
xs_momentum | position | Jegadeesh & Titman 1993 — 12-1 cross-sectional momentum, top-N book |
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= . All calls are TTL-cached in-process (daily 15 min, intraday 60 s, news 5 min, events/sector 1 h).
# 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=...).
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 target
make install-cli # installs `quant-research-mcp` onto your PATH (uv tool)
quant-research-mcp # runs the server over stdio from anywhere
If 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 |
|---|---|
make install | uv sync — venv + dependencies |
make install-cli | install the quant-research-mcp binary onto your PATH |
make uninstall-cli | remove the binary |
make dev | install + ruff for linting |
make run | run the MCP server (stdio) |
make smoke | import + list tools, no network |
make test | run the pytest suite (no network) |
make inspect | launch the MCP Inspector |
make check | tests + lint + assert no LLM/subprocess calls |
make register | print the stdio client-config JSON |
make claude-add | register the local clone with Claude Code (user scope) |
make claude-remove | remove from Claude Code |
make build | build sdist + wheel into dist/ |
make docker-build | build the Docker image locally |
make mcpb | pack a Claude Desktop .mcpb bundle |
make clean | drop caches, venv and build artifacts |
Every method runs the same stdio server — pick whichever fits your setup.
| Method | Command | Needs |
|---|---|---|
| uvx from GitHub (no clone) | uvx --from git+https://github.com/FlawlessByte/quant-research-mcp quant-research-mcp | uv |
| PyPI | uvx quant-research-mcp · pipx install quant-research-mcp | uv / pipx |
| Docker | docker run -i --rm ghcr.io/flawlessbyte/quant-research-mcp | Docker |
| From source | git clone … && cd quant-research-mcp && make install | git + uv |
| Claude Desktop | install the .mcpb from the latest release | Claude Desktop |
PyPI and Docker images are published on tagged releases; until the first
release, use the uvx from GitHub or from source rows.
Fastest — runs straight from GitHub, no clone:
claude mcp add quant_research -- \
uvx --from git+https://github.com/FlawlessByte/quant-research-mcp quant-research-mcp
After a PyPI release this shortens to:
claude mcp add quant_research -- uvx quant-research-mcp
Containerised:
claude mcp add quant_research -- docker run -i --rm ghcr.io/flawlessbyte/quant-research-mcp
From 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 connected
Then 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.
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 tests
Optional: 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.
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.0
That fires two workflows:
uv build, publish to PyPI via Trusted Publishing (OIDC, no stored token), and attach the wheel/sdist + a .mcpb bundle to the GitHub Release.ghcr.io/flawlessbyte/quant-research-mcp.One-time setup:
FlawlessByte, repo quant-research-mcp, workflow release.yml, environment pypi).mcp-publisher CLI — mcp-publisher login github then mcp-publisher publish (uses server.json; GitHub login proves ownership of只显示了开头部分;其余内容请在仓库中阅读