quant-swarm — Zero-Trust Backtest Forensics & Point-in-Time Market Data (MCP)
Audit trading backtests locally for lookahead bias, Newey-West + Benjamini-Hochberg overlap-adjusted significance, outlier concentration, and realistic transaction-cost decay—100% offline and free—and query as-filed Point-in-Time SEC EDGAR & macro signals with zero restatement leakage.
30-Second Quickstart (No Account or API Key Required Locally)
Claude Code
claude mcp add quant-swarm -- uvx quant-swarm
Cursor / Claude Desktop / Windsurf (mcp.json)
{
"mcpServers": {
"quant-swarm": {
"command": "uvx",
"args": ["quant-swarm"]
}
}
}
Remote Streamable-HTTP (claude.ai, ChatGPT, Web MCP Connectors)
https://mcp.1.21initiative.com/mcp
(Metadata & tools/list require no auth; tool execution uses OAuth 2.1 PKCE or Authorization: Bearer <SWARM_MCP_ACCESS_TOKEN> from 1.21initiative.com/mcp/. Specialist HTTP endpoints: /mcp [12 core tools], /mcp/data [16 tools], /mcp/warden [12 tools], /mcp/gym [11 tools] — local-disk cache.* and local-filesystem audit.* path tools are intentionally omitted on HTTP.)
First Prompt to Try
"Run
audit.backteston./returns.csvand./trades.csvassuming 3 bps spread and 5 bps slippage across 25 parameter trials. Check whether net Sharpe survives 2x cost stress and Newey-West + Benjamini-Hochberg adjustment."
Sample Verdict Returned (0 credits, 0 bytes sent off your machine):
{
"tool": "audit.backtest",
"overall_assessment": "PROBLEMS_OBSERVED",
"metrics": {
"sharpe_gross_annualized": 2.14,
"sharpe_net_annualized": 0.31,
"newey_west_t_stat": 1.18,
"bh_q_value": 0.42,
"breakeven_cost_multiplier": 1.12,
"top5_pnl_share_pct": 68.4
}
}
Default core Profile (12 High-Signal Tools, ~2.4k Schema Tokens)
uvx quant-swarm loads a lean 12-tool core profile so your coding agent never suffers tool-catalog context bloat:
| Surface | Tools Included in Default core Profile |
Auth / Metering |
|---|---|---|
| Free Offline Backtest & Risk Forensics | audit.backtest (or audit.backtest_inline on HTTP), warden.audit_features, warden.cost_check, warden.validate_order, warden.prop_challenge_check, warden.defensive_posture, warden.explain_sizing, gym.probe_fragility |
Free & 100% Offline (stdio needs zero token and makes zero network calls) |
Hosted Point-in-Time (pit.*) Data |
pit.analysis, market.fundamentals_pit, market.insider_institutional_pit, market.regime |
SWARM_MCP_ACCESS_TOKEN (free 250 calls/mo + 100 bonus Pro trial credits; one-time £19 / 10k or £149 / 100k credit packs, no subscription) |
Specialist Profiles (--profile)
Need the full 48-tool local stdio specialist suites (step-by-step audit.preflight/quote/run/compare, local SQLite cache management, portfolio optimization, symbolic alpha formula evaluation, or optional experimental Shadow Tournament benchmarking)?
uvx quant-swarm --profile full # All 48 local stdio tools across Warden, Data & Gym (39 on remote HTTP)
uvx quant-swarm --profile warden # Equivalent to swarm-warden-mcp (18 stdio tools; 12 on /mcp/warden HTTP)
uvx quant-swarm --profile data # Equivalent to swarm-data-mcp (19 stdio tools; 16 on /mcp/data HTTP)
uvx quant-swarm --profile gym # Equivalent to swarm-gym-mcp (11 tools on both stdio and /mcp/gym HTTP)
Point-in-time data, for real
Every hosted dataset (market.fundamentals_pit, market.insider_institutional_pit, market.supply_chain_pit, market.macro_nowcast) is indexed strictly by its public filing or release timestamp (available_at <= as_of)—never restated fiscal-period archive dates—and returns derived ratios, z-scores, and percentiles rather than raw vendor series.
PIT significance, explained (pit.analysis)
pit.analysis evaluates cross-sectional Spearman rank IC per (dataset | metric | horizon) family with size/sector neutralization, Newey-West (Bartlett) overlap-adjusted t-statistics, Benjamini-Hochberg q <= 0.05 multiple-testing control, staleness caps, and a shuffled-date placebo gate (SIGNIFICANT, NOT_SIGNIFICANT, NOT_JUDGED, or UNVERIFIED).
Plans
- Free Offline (
stdio, no token): Unlimited localaudit.backtest,warden.*,cache.*, and inline-barsgym.*runs (0 credits). - Free Hosted Token (
SWARM_MCP_ACCESS_TOKEN): 250 relay calls/month (10 symbols/call) + 100 bonus Pro trial credits on signup at 1.21initiative.com/mcp/. - One-Time Credit Packs (No Subscription):
10,000credits (£19 / ~$24) or100,000credits (£149 / ~$189), valid 90 days (1 credit per relay call, single-shot Pro tool, or hosted gym episode).
Security, Privacy & Agent Honesty Rules
- Strict Transport Isolation: Local file-path auditing (
audit.backtest,audit.preflight,audit.quote,audit.run,audit.report,audit.compare) and local SQLite cache controls (cache.warm,cache.stats,cache.offline) exist only onstdioand are jailed to your active workspace (SWARM_ALLOWED_WORKSPACEorcwd). Remote HTTP (https://mcp.1.21initiative.com/mcp) accepts only bounded inline CSV/row payloads (<= 250 KB) with zero server disk I/O and enforces per-token burst rate limits. - Zero Order Execution: Read-only diagnostic and research tools only—never places, modifies, or routes live orders. Diagnostic evidence only, not investment advice.
- Recommended Agent Rule: When calling any
quant-swarmtool, instruct your agent to quote its verdict verbatim and never upgrade a raw p-value into a significance claim whenbh_q_value > 0.05orINSUFFICIENT_EVIDENCEis returned.
Documentation & Links
- Product & API Keys: https://1.21initiative.com/mcp/
- Source & Issues: https://github.com/blink1217/trading-swarm-mcp
- License: MIT (
swarm_mcpwrapper/tools) AND Source-Available (swarm_mcp/vendored/guardrails/LICENSE.md).
Metadata
Release files for quant-swarm 1.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| quant_swarm-1.2.1.tar.gz | 285.1 kB | With provenance | Details for quant_swarm-1.2.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| quant_swarm-1.2.1-py3-none-any.whl | Python 3 | none | any | Details for quant_swarm-1.2.1-py3-none-any.whl |
Total release size: 538.1 kB
Release files / quant_swarm-1.2.1.tar.gz
| Download URL | quant_swarm-1.2.1.tar.gz |
|---|---|
| Size | 285.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e24d419908ae2199e15acd278a1ee87eac95eccc1d48b0642967a2447a914e22
|
|
BLAKE2b-256 checksum How to use checksums |
cc012c55c23403485c6561c3247d0efdd168d44f6d924307ec46a24d4ef9b6ac
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 18, 2026.
Transparency logRelease files / quant_swarm-1.2.1-py3-none-any.whl
| Download URL | quant_swarm-1.2.1-py3-none-any.whl |
|---|---|
| Size | 253.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b1bf17a87cccc4e75b81dc351125e351a939e21a120a000d0d96121a45111c63
|
|
BLAKE2b-256 checksum How to use checksums |
e2518c572567d8911d2cee7ff41cccafcba526b03095f4eb2a70c2799052f852
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 18, 2026.
Transparency logSecurity for quant-swarm 1.2.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for quant_swarm-1.2.1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 18, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.