Q

Quant Swarm

by blink1217 · io.github.blink1217/quant-swarm

Enables local auditing of trading strategies through MCP checkers for point-in-time data provenance, pre-trade order validation, and regime-fragility testing, while deferring promotion verdicts to a hosted service.

pypi Remote GlamaOfficial MCP Registry High confidence

Install

Add to ~/Library/Application Support/Claude/claude_desktop_config.json

Windows / Linux path
Windows: %APPDATA%\Claude\claude_desktop_config.json
Linux: ~/.config/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "io-github-blink1217-quant-swarm": {
      "command": "uvx",
      "args": [
        "quant-swarm"
      ],
      "env": {
        "SWARM_MCP_ACCESS_TOKEN": "<YOUR_VALUE>",
        "ALPACA_SECRET": "<VALUE>",
        "ALPACA_API_KEY": "<VALUE>",
        "SWARM_MCP_BYOK": "0",
        "FINNHUB_API_KEY": "<VALUE>",
        "SWARM_MCP_LOCAL_TOKEN": "<VALUE>",
        "SWARM_MCP_TELEMETRY_OPT_IN": "0",
        "SWARM_MCP_TOKEN_VERIFY_URL": "https://1.21initiative.com/api/mcp/verify"
      }
    }
  }
}

Restart Claude Desktop to activate the new server.

Add to .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)

Windows / Linux path
Windows: .cursor\mcp.json (project) or %USERPROFILE%\.cursor\mcp.json (global)
Linux: .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)
{
  "mcpServers": {
    "io-github-blink1217-quant-swarm": {
      "command": "uvx",
      "args": [
        "quant-swarm"
      ],
      "env": {
        "SWARM_MCP_ACCESS_TOKEN": "<YOUR_VALUE>",
        "ALPACA_SECRET": "<VALUE>",
        "ALPACA_API_KEY": "<VALUE>",
        "SWARM_MCP_BYOK": "0",
        "FINNHUB_API_KEY": "<VALUE>",
        "SWARM_MCP_LOCAL_TOKEN": "<VALUE>",
        "SWARM_MCP_TELEMETRY_OPT_IN": "0",
        "SWARM_MCP_TOKEN_VERIFY_URL": "https://1.21initiative.com/api/mcp/verify"
      }
    }
  }
}

Cursor usually picks up config changes automatically; if the server does not appear, reload the window.

Add to .mcp.json (project) or ~/.claude.json (global)

Windows / Linux path
Windows: .mcp.json (project) or %USERPROFILE%\.claude.json (global)
Linux: .mcp.json (project) or ~/.claude.json (global)
{
  "mcpServers": {
    "io-github-blink1217-quant-swarm": {
      "command": "uvx",
      "args": [
        "quant-swarm"
      ],
      "env": {
        "SWARM_MCP_ACCESS_TOKEN": "<YOUR_VALUE>",
        "ALPACA_SECRET": "<VALUE>",
        "ALPACA_API_KEY": "<VALUE>",
        "SWARM_MCP_BYOK": "0",
        "FINNHUB_API_KEY": "<VALUE>",
        "SWARM_MCP_LOCAL_TOKEN": "<VALUE>",
        "SWARM_MCP_TELEMETRY_OPT_IN": "0",
        "SWARM_MCP_TOKEN_VERIFY_URL": "https://1.21initiative.com/api/mcp/verify"
      }
    }
  }
}

The server will be available in the next Claude Code session.

Add to .vscode/mcp.json

Windows / Linux path
Windows: .vscode\mcp.json
Linux: .vscode/mcp.json
{
  "servers": {
    "io-github-blink1217-quant-swarm": {
      "command": "uvx",
      "args": [
        "quant-swarm"
      ],
      "env": {
        "SWARM_MCP_ACCESS_TOKEN": "<YOUR_VALUE>",
        "ALPACA_SECRET": "<VALUE>",
        "ALPACA_API_KEY": "<VALUE>",
        "SWARM_MCP_BYOK": "0",
        "FINNHUB_API_KEY": "<VALUE>",
        "SWARM_MCP_LOCAL_TOKEN": "<VALUE>",
        "SWARM_MCP_TELEMETRY_OPT_IN": "0",
        "SWARM_MCP_TOKEN_VERIFY_URL": "https://1.21initiative.com/api/mcp/verify"
      }
    }
  }
}

Reload the VS Code window to activate.

Add to ~/.codeium/windsurf/mcp_config.json

Windows / Linux path
Windows: %USERPROFILE%\.codeium\windsurf\mcp_config.json
Linux: ~/.codeium/windsurf/mcp_config.json
{
  "mcpServers": {
    "io-github-blink1217-quant-swarm": {
      "command": "uvx",
      "args": [
        "quant-swarm"
      ],
      "env": {
        "SWARM_MCP_ACCESS_TOKEN": "<YOUR_VALUE>",
        "ALPACA_SECRET": "<VALUE>",
        "ALPACA_API_KEY": "<VALUE>",
        "SWARM_MCP_BYOK": "0",
        "FINNHUB_API_KEY": "<VALUE>",
        "SWARM_MCP_LOCAL_TOKEN": "<VALUE>",
        "SWARM_MCP_TELEMETRY_OPT_IN": "0",
        "SWARM_MCP_TOKEN_VERIFY_URL": "https://1.21initiative.com/api/mcp/verify"
      }
    }
  }
}

Restart Windsurf (or refresh its MCP servers panel) to activate the new server.

Windsurf Next uses ~/.codeium/windsurf-next/mcp_config.json. Devin Desktop (the Windsurf rebrand) uses ~/.config/devin/mcp_config.json and imports the Windsurf file.

Add to ~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json

Windows / Linux path
Windows: %APPDATA%\Code\User\globalStorage\saoudrizwan.claude-dev\settings\cline_mcp_settings.json
Linux: ~/.config/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
{
  "mcpServers": {
    "io-github-blink1217-quant-swarm": {
      "command": "uvx",
      "args": [
        "quant-swarm"
      ],
      "env": {
        "SWARM_MCP_ACCESS_TOKEN": "<YOUR_VALUE>",
        "ALPACA_SECRET": "<VALUE>",
        "ALPACA_API_KEY": "<VALUE>",
        "SWARM_MCP_BYOK": "0",
        "FINNHUB_API_KEY": "<VALUE>",
        "SWARM_MCP_LOCAL_TOKEN": "<VALUE>",
        "SWARM_MCP_TELEMETRY_OPT_IN": "0",
        "SWARM_MCP_TOKEN_VERIFY_URL": "https://1.21initiative.com/api/mcp/verify"
      }
    }
  }
}

Cline reloads cline_mcp_settings.json automatically; if the server does not appear, reload the VS Code window.

Open it from Cline's MCP Servers panel → Configure. Roo Code uses a different file and format.

Configuration

Environment variables this server reads. Secrets stay on your machine.

NameRequiredDescription
SWARM_MCP_ACCESS_TOKEN secret Yes Access token issued by https://1.21initiative.com/. Required for all three servers. Every tool call is gated on this token; clients can list tools without it, but calls return ACCESS_REQUIRED.
ALPACA_SECRET No Alpaca API secret. Required only if SWARM_MCP_BYOK=1 on swarm-data-mcp.
ALPACA_API_KEY No Alpaca API key. Required only if SWARM_MCP_BYOK=1 on swarm-data-mcp.
SWARM_MCP_BYOK No Set to '1' to fetch directly from Alpaca/Finnhub instead of the hosted relay (swarm-data-mcp only). Public users should leave unset. Default: 0
FINNHUB_API_KEY No Finnhub API key. Required only if SWARM_MCP_BYOK=1 on swarm-data-mcp.
SWARM_MCP_LOCAL_TOKEN No Local development bootstrap token. For operators of this repo, set to the same value as SWARM_MCP_ACCESS_TOKEN to skip token verification against the site.
SWARM_MCP_TELEMETRY_OPT_IN No Set to 'opt-in' to enable telemetry. Counters only; no symbols, genomes, prices, or credentials. Default: 0
SWARM_MCP_TOKEN_VERIFY_URL No URL used for access-token verification. Only the token is sent. Default: https://1.21initiative.com/api/mcp/verify

Remote headers

HTTP headers the remote endpoint expects.

NameRequiredDescription
Authorization secret No Bearer <token from https://1.21initiative.com/mcp/> (metadata discovery is public; token required on tools/call).

Similar servers