io.github.paarths-collab/quant-brain-mcp

Official registry Finance and payments

Stock analysis MCP: 38 indicators, 7 optimizers, 8 backtests, US + India sectors.

Install

Add this to your client's MCP configuration (Claude Desktop: claude_desktop_config.json; Cursor: .cursor/mcp.json; VS Code and others use the same "mcpServers" shape).

Remote (streamable-http)
Claude Code
claude mcp add --transport http quant-brain-mcp 'https://mcp-quant-brain.onrender.com/mcp'
JSON configuration (Claude Desktop, Cursor, VS Code)
{
    "mcpServers": {
        "quant-brain-mcp": {
            "type": "http",
            "url": "https://mcp-quant-brain.onrender.com/mcp"
        }
    }
}

Documentation

From the project's README on GitHub, refreshed weekly. Links open on GitHub.

Contents
  1. Quant Brain MCP
  2. Current capabilities and target design
  3. How the current version works
  4. Start here
  5. The six research roles
  6. Target global research workflow
  7. What you can use it for
  8. Tools
  9. Validation and limits
  10. Documentation
  11. License

Quant Brain MCP

Market calculations and multi-agent research for Claude and other MCP clients.

Quant Brain combines 25 market tools with four research-job tools. Ask for a quote, run a backtest, size a hypothetical trade, or start an Indian-equity research job that coordinates Codex specialists and returns evidence, disagreements, and an execution trace. Claude reviews the report and explains its judgment to you.

Current capabilities and target design

The current release provides market calculations and NSE research. The next architecture extends that foundation into a global research desk with browser investigation, traceable evidence, and thesis monitoring. Those extensions are planned; they are not activated by installing the current release.

AreaCurrent implementationPlanned extension
MarketsNSE research jobs; broader provider-supported symbols in individual toolsExchange-aware research across India, the US, and other markets
DataYahoo Finance history and quotes with freshness limitationsProvider adapters, broker feeds, minute candles, and freshness checks
ResearchSix Codex roles; company and quant analysis in parallelTask-selected filing, valuation, macro, forensic, and portfolio specialists
Web accessLive web search; bounded official HTML/PDF retrieval; browser control disabledIsolated browser worker, OCR and broader sources
VerificationSchema checks, model audit, SDK tool traces, retrieved source excerpts/hashes and explicit quality gapsPer-claim evidence matching and independently reproducible calculations
MemorySaved jobs and reportsThesis history, material-change monitoring, and historical replay
OperationSingle-host Python services; deployment configured by operatorPackaged installation, resumable jobs, provider plugins, and optional dashboard

See the target architecture and delivery roadmap.

Recent reliability improvements include separate internal stream/calculation limits, explicit financial units, reproducibility metadata for all indicators, and report downgrades for failed calls or unavailable source documents. See validation results and the VPS update procedure.

How the current version works

flowchart TB
    User["You"] --> Claude["Claude / MCP client"]
    Claude -->|"Bearer-authenticated HTTP"| Outer["Quant Brain MCP<br/>25 market + 4 research tools"]
    Outer -->|"Direct market requests"| Engines["Calculation engines"]
    Outer -->|"Background research job"| Worker["Codex research roles"]
    Worker --> Search["Live web search"]
    Worker -->|"Separate internal token"| Inner["Private MCP<br/>21 read-only tools"]
    Inner --> Engines
    Engines --> Data["Yahoo Finance / yfinance"]
    Worker --> Report["Evidence + review + execution trace"]
    Report -->|"Poll and retrieve"| Claude
    Claude --> Answer["Answer with sources and limitations"]

The optional research runtime runs on the same host as the MCP servers, either a personal computer or a VPS. It uses Codex's supported sign-in flow; credentials stay with the runtime. Claude receives a separate MCP bearer token. No Google login is required. There is no order execution.

Start here

What you wantGuide
Run research locally and connect Claude CodePersonal research setup
Connect Claude Desktop/web or another clientGetting started
Deploy authenticated market toolsDeployment
Host personal research continuously on a VPSVPS deployment design
Understand the system and its boundariesArchitecture and diagrams

For the local research setup, install Python 3.12 dependencies with python -m pip install -r requirements_research.txt, then follow the research setup guide to generate private tokens, start both servers, and connect Claude. The base market server only needs requirements.txt.

Claude Code can reach your local HTTP endpoint. Claude Desktop/web remote connectors connect from Anthropic's cloud and need a reachable HTTPS endpoint; they cannot reach your computer's localhost. Local Desktop stdio integrations are a separate connection method and are not configured by this research setup.

The existing hosted endpoint is https://mcp-quant-brain.onrender.com/mcp. It requires an operator-issued bearer token. Its deployed version, research configuration, and Codex sign-in must be checked separately; a GitHub push or successful CI run does not verify that hosted deployment.

The six research roles

See the agent and tool map for inputs, outputs, exact tool names, current shared permissions, and proposed specialist permissions.

RoleResponsibility
LeadBreak the question into a research plan.
Company analystInvestigate the business, filings, and news.
Quant analystUse calculation tools and identify data limitations.
SkepticChallenge assumptions and conflicting evidence.
AuditorReview existing claims, request corrections, and retain uncertainty.
SynthesizerAssemble the audited conclusions and unresolved points.

Company and quant work run in parallel. Quick uses four roles/calls; standard adds the lead and skeptic with up to one correction round (6–8 calls); deep permits two correction rounds (6–10 calls). Calls and jobs have timeouts. Reports persist in owner-scoped SQLite storage; clients poll rather than hold a single HTTP request open. LangGraph orchestrates the research roles: company and quant run in parallel, then review and bounded correction precede synthesis. It runs locally inside the backend; no LangGraph cloud account is needed. SQLite stores jobs and reports; automatic graph crash-resume is not enabled. See the workflow and lifecycle diagrams. Separate jobs execute one at a time; parallel role execution does not mean unlimited simultaneous research jobs.

Target global research workflow

This diagram describes proposed components, not the current tool catalog.

flowchart TD
    Q["Question or monitored event"] --> Plan["Plan tasks and budget"]
    Plan --> F["Filing and browser research"]
    Plan --> A["Quant, valuation, macro and portfolio analysis"]
    Providers["Market and disclosure adapters"] --> Gate["Instrument, time, currency and freshness checks"]
    Gate --> F
    Gate --> A
    F --> E["Captured evidence and calculation records"]
    A --> E
    E --> Review["Deterministic validation, skeptic and auditor"]
    Review --> Report["Cited report with unresolved disagreements"]
    Report --> Client["Claude or another MCP client"]
    Report --> Memory["Thesis history and change monitoring"]
    Memory --> Q

Independent investigations run in parallel; review follows their results. Simple requests go directly to calculation tools. The planned browser worker investigates documents and websites; a market-data adapter supplies quotes and candles.

Example request supported by the current version:

Use Quant Brain to run quick research on TCS.NS. Check the latest available quote and company disclosures. Poll until finished, retrieve the report, and give your judgment with source dates, uncertainties, and disagreements.

What you can use it for

Ask ClaudeWhat Quant Brain does
“Research TCS.NS and explain the strongest counterargument.”Collects evidence, runs quant tools, challenges claims, and returns an audited report.
“Compare RELIANCE.NS and INFY.NS over two years.”Retrieves historical data and computes requested indicators or backtests.
“Size a hypothetical long trade with ₹100,000 equity and 1% risk.”Calculates entry, stop, shares, targets, and modeled loss with assumptions.
“Review this portfolio's historical risk.”Fits allocation on training history and evaluates frozen weights on held-out observations.
“Watch these prices.”Stores owner-scoped alerts; an external scheduler/client must poll and deliver notifications.
From a question to an answer
  1. Claude calls start_research with your question, 1–5 NSE symbols, and a depth.
  2. Quant Brain returns a job ID and runs the specialists in the background.
  3. Claude polls get_research_status, then fetches get_research_report.
  4. Claude uses the evidence, audit warnings, and execution trace to explain its judgment.

Use cancel_research to stop an owned job. A completed job can still report insufficient_evidence; successful execution does not imply a confident answer. For direct calculations, Claude calls the market tools without starting agents.

Tools

AreaTools and capabilities
Research jobsstart_research, get_research_status, get_research_report, cancel_research
Trading researchQuotes, news, trade sizing, watchlist scans, persistent price alerts
IndicatorsSix grouped tools exposing 38 curated indicators
PortfolioSeven optimization methods with chronological holdout evaluation
BacktestsSeven rule-based strategy tools
IntelligenceCompany profiles, sector ranking, sector-to-stock pipeline
ChartsChart packs returned as rendered images

All 29 tool names, parameters, and response conventions are documented in the tool reference. The internal research MCP exposes only 21 read-only tools; alerts, charts, and research orchestration are excluded.

Validation and limits

The latest local reliability suite passed 379 tests, including PostgreSQL and VPS updater rollback checks, plus HTTP and real PNG export smoke tests. A quick Codex research job completed with six successful MCP calls and five web-search events. Blocked source retrieval remained visible and the final report stayed insufficient-evidence/low-confidence. See the validation report for exact scope, historical results and limitations; consult CI for the published revision's Linux checks.

  • Data freshness: free data can be delayed or unavailable. as_of and fetched_at are retrieval times, not verified trade timestamps. A recent fetch does not establish a fresh market price.
  • Evidence: SDK traces show that tools ran. They do not independently prove every claim, citation, or model-written excerpt. verification_basis is model_review.
  • Backtests: holdout performance is historical. Costs vary by tool; portfolio holdout results omit fees, slippage, taxes, and currency conversion.
  • Trade plans: sizing limits modeled loss at the displayed stop; gaps, slippage, and execution conditions can produce larger actual losses.
  • Scope: research jobs currently accept NSE symbols. The broader market tools also support US and BSE symbols where their providers do. No automatic trading.

Documentation

License

MIT.

Frequently asked questions

What is io.github.paarths-collab/quant-brain-mcp?

Stock analysis MCP: 38 indicators, 7 optimizers, 8 backtests, US + India sectors.

How do I install io.github.paarths-collab/quant-brain-mcp?

It runs as a remote server. In Claude Code: claude mcp add --transport http quant-brain-mcp 'https://mcp-quant-brain.onrender.com/mcp'. For other clients, paste the JSON configuration from this page into their MCP settings.

Does io.github.paarths-collab/quant-brain-mcp need an API key?

Its registry entry lists no required key or secret. Some features may still need an account with the service it connects to.

Is io.github.paarths-collab/quant-brain-mcp open source?

Yes. Its code is on GitHub under the MIT license.

Who maintains io.github.paarths-collab/quant-brain-mcp?

It is published by paarths-collab. AI.tn lists it but does not maintain or endorse it.

From the official MCP Registry. Listing is not an endorsement: review a server's code and permissions before giving it access to your data.