# quant-swarm [Health: Active]

**Category:** 💰 Finance & Fintech  
**Repository:** https://github.com/blink1217/trading-swarm-mcp  
**GitHub Stars:** 0  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/quant-swarm

## Description
Risk-first pre-trade checks, PIT data, leakage audits, and a Shadow Tournament vs a live champion.

## Tools
Capabilities this server exposes over MCP:

- **features.build** — Exact FEATURE_ORDER feature vector for symbol at session as_of, with provenance per field.

Runs the no-lookahead guard (every feature must equal a fresh causal recomputation at as_of)
and the point-in-time provenance guards. Tier-B/C fields without recorded point-in-time
evidence are returned as UNSCORABLE — never neutral-filled with 0.0.
- **market.pulse** — Derived-only technical snapshot: trend, volatility, oscillator, volume, and regime signals.

Never returns raw open/high/low/close/volume or provider quote values — only ratios,
percentile ranks (trailing 1y), and causal regime labels. Pass `symbols` to use the shared
cache/relay, or pass your own `bars` rows (same shape as get_bars) for symbols we don't carry.
This is the recommended tool for general market analysis; not investment advice.
- **market.sentiment** — Derived-only sentiment/news snapshot for one symbol: headline count, earnings flag,
and day-change bucket. Never returns raw quote values or headline text — quantized signals
only. Not investment advice.
- **market.climate** — Area-specific weather research for each symbol's operating footprint.

Fetches the keyless Open-Meteo 14-day forecast AND the same 14 calendar days one
year prior per operating area (where the product is made and/or sold), then
exposure-weights into symbol aggregates. Returns derived sums/means/ratios/
counts/buckets per area and per symbol — never raw per-day series. A London
forecast is never substituted for a product made and sold in New York. Free tool;
no provider credentials needed. Not investment advice.
- **pit.analysis** — Is this alternative-data signal real for these tickers - or noise?

Explained PIT significance per underlying from the release-gated
pit_analysis/v2 run: each (dataset|metric|horizon) family reports rolling
52-week IR, Newey-West two-sided p, observation count, research-only and
staleness flags, and an explicit verdict - SIGNIFICANT (survives the run's
IR > 0 and BH q <= 0.05 gate), NOT_SIGNIFICANT, below the observation floor,
or UNVERIFIED. Point-in-time, derived-only, no raw values; free lite answers,
Pro gives every family. Not investment advice.
- **cache.warm** — Backfill history for a universe (default: the swarm's 13-symbol universe).

After warming, every finalized session is immutable in cache — replays cost zero API calls.
Requires network and a valid SWARM_MCP_ACCESS_TOKEN; refused in cache.offline mode.
- **cache.stats** — Cache inventory: rows per symbol, session bounds, depth in weeks, API-call accounting.
- **cache.offline** — Toggle cache-only mode: no network access; reads served from cache, fetches refused.
- **market.regime** — Free tool — causal regime label per symbol (high_vol / drawdown / chop /
melt_up / gap_heavy) from point-in-time bars with no lookahead. Includes
forward-filtered latent state posteriors and regime entropy.
- **market.microstructure** — Derived-only microstructure snapshot: order-flow imbalance, VPIN toxicity
bucket, and effective half-spread — percentile-ranked within the series.
Pro tool.
- **volume.forecast** — Derived-only volume forecast expressed as a ratio to the trailing 20-session
average, with a 10th-90th percentile interval. Includes Hurst persistence and
nonlinear phase-space Lyapunov diagnostics. Never returns raw share counts. Pro tool.
- **market.screen** — Ranked, derived-only screen over the symbol list — cross-sectional
percentile ranks, never raw prices or volumes. Pro tool.
- **market.rank** — Cross-sectional percentile rank of one derived metric across the symbol
list — no raw metric values returned. Pro tool.
- **market.flow** — Returns derived off-exchange absorption percentiles, short-pressure z-scores,
realized tail-skew percentiles, and institutional flow regimes per symbol.
Never returns raw share counts or prices. Pro tool.
- **market.fundamentals_pit** — Returns bitemporal scale-free profitability efficiency, balance-sheet resilience,
and growth acceleration percentiles strictly dated on or before as_of. Includes
filing/insider tone buckets and never echoes raw accounting dollar figures. Pro tool.
- **market.macro_nowcast** — Returns the point-in-time macroeconomic quadrant, volatility term-structure state,
cross-sectional dispersion, risk-appetite index, and latent crisis probability.
Derived ratios only; never echoes raw prices. Pro tool.
- **market.transfer_entropy** — Detects directed cross-asset information flow (Shannon Transfer Entropy in bits)
across symbol pairs against a 95th-percentile permutation noise floor.
Returns leader/follower rankings without raw prices. Pro tool.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `uvx` (confidence: high):

```json
"mcpServers": {
  "quant-swarm": {
    "command": "uvx",
    "args": ["quant-swarm"]
  }
}
```

## Documentation

## What quant-swarm does

quant-swarm combines local backtest forensics with derived market and point-in-time research signals. Its audit surfaces can inspect local returns and trades, test realistic spread and slippage assumptions, check feature construction, validate orders, and examine fragility across parameter trials. Results include diagnostics such as net and gross Sharpe, Newey-West statistics, Benjamini-Hochberg-adjusted q-values, breakeven cost multipliers, and concentration measures.

The data surfaces are designed to avoid exposing raw vendor series. Market tools return ratios, percentile ranks, buckets, labels, and other derived values. Point-in-time datasets are restricted by public filing or release availability relative to the requested `as_of` timestamp, reducing restatement and lookahead leakage in research workflows.

## How it works

The local server runs through MCP over stdio and defaults to a lean core profile. Specialist profiles can expose broader Warden, Data, and Gym tool sets. Local audit and cache operations work without an account or network access. Hosted data calls are available through the Streamable HTTP endpoint and use OAuth 2.1 PKCE or a bearer access token.

Feature construction applies no-lookahead and point-in-time provenance checks. Fields without sufficient historical evidence are marked unscorable rather than filled with neutral values. Cache warming backfills a symbol universe; finalized sessions are then immutable, allowing later replays without additional API calls. Offline mode prevents network fetches and serves only cached data.

## Setup and configuration

For Claude Code, register the local command with:

```bash
claude mcp add quant-swarm -- uvx quant-swarm
```

For Cursor, Claude Desktop, or Windsurf, add a server entry using `uvx` as the command and `quant-swarm` as its argument. The default profile is `core`; `--profile full`, `--profile warden`, `--profile data`, and `--profile gym` select broader or specialized local tool groups.

Hosted access uses `https://mcp.1.21initiative.com/mcp`. A `SWARM_MCP_ACCESS_TOKEN` is needed for authenticated hosted execution and token-gated operations such as cache warming. `SWARM_ALLOWED_WORKSPACE` can restrict local filesystem operations to a chosen workspace.

## Tools and capabilities

- Audit backtests locally, including cost stress, overlapping-return significance, feature leakage, order validity, sizing rationale, and fragility.
- Build exact feature-order vectors with field-level provenance and causal recomputation checks.
- Inspect derived technical, sentiment, regime, microstructure, volume, flow, fundamentals, macro, and cross-asset transfer-entropy signals.
- Evaluate alternative-data families with rolling information ratios, Newey-West tests, multiple-testing adjustment, observation floors, staleness flags, and explicit verdicts.
- Compare operating-area weather forecasts with the same period one year earlier, then aggregate exposure-weighted climate indicators by symbol.
- Warm and inspect a local cache, switch to cache-only operation, and review session coverage and API-call accounting.

## Limitations and notes

The tools are read-only research and diagnostic surfaces; they do not place, modify, or route live orders and their outputs are not investment advice. Several market, flow, fundamentals, macro, and forecasting tools require Pro access or hosted credits. Remote HTTP omits local-disk cache and local-filesystem audit path tools and accepts bounded inline payloads instead.

Derived-only tools intentionally avoid raw prices, volumes, quotes, headline text, daily weather series, and accounting dollar figures. Hosted calls are subject to token metering and rate limits. Agents should preserve returned verdicts verbatim and should not treat an unadjusted p-value as evidence of significance when the adjusted result fails its threshold or evidence is insufficient.

_Full upstream README: https://allmcps.com/mcp/quant-swarm/readme_

