Skip to main content
Glama
art3mis-xo

MCP-Quant Financial Research

by art3mis-xo

MCP-Quant Financial Research

A provenance-aware MCP server for deterministic financial research. The LLM boundary is intentionally narrow: planning is optional, while data retrieval, validation, metrics, and risk calculations are deterministic Python operations.

Architecture

MCP client
   |
   +--> research(query)
   |       |
   |       +--> typed analysis plan
   |       +--> Yahoo Finance data + quality metadata
   |       +--> deterministic metrics
   |       +--> cited/provenance-aware report
   |
   +--> get_price_history(...)
   +--> calculate_risk_metrics(...)
   +--> research://capabilities

Related MCP server: MCP Financial Analyst

Run locally

source venv/bin/activate
export PYTHONPATH="$PWD/src"
python main.py

The local smoke test does not require a Groq key. Start the MCP server over stdio with:

PYTHONPATH=src python -m financial_mcp.server

The VS Code MCP configuration is in .vscode/mcp.json.

Test

PYTHONPATH=src pytest -q

MCP surface

  • research(query): runs the full typed research workflow.

  • get_price_history(symbols, start_date, end_date): retrieves adjusted prices and data-quality metadata.

  • calculate_risk_metrics(symbols, start_date, end_date): computes cumulative and annualized returns, volatility, Sharpe ratio, drawdown, and beta.

  • research://capabilities: describes the server guarantees.

Design decisions

  • No arbitrary LLM-generated code is executed.

  • LLM planning is disabled by default to avoid unnecessary quota usage and preserve reproducibility.

  • External data is returned with source, retrieval time, requested range, and quality checks.

  • Quantitative calculations are performed by pandas/numpy, not generated by the model.

  • Tool arguments are validated with Pydantic before execution.

Next research extensions

The natural next modules are a news/filings adapter, transaction-cost-aware backtesting, SQLite caching, OpenTelemetry traces, and an evaluation set measuring extraction accuracy, numerical correctness, citation completeness, latency, and token usage.

This project is for research and education, not investment advice.

Related MCP Connectors

Related MCP Servers

  • F
    license
    B
    quality
    Not graded
    maintenance
    Enables LLMs to retrieve, analyze, and visualize stock prices and financial report data for quantitative trading research and investment analysis. Provides real-time and historical stock data, financial statement analysis, key metric calculations, and trading signal visualization.
    13
    -
  • F
    license
    Not graded
    quality
    C
    maintenance
    Enables financial analysis by fetching real market data from Yahoo Finance, computing moving averages, returns, and volatility, and generating price charts.
    -
  • F
    license
    A
    quality
    B
    maintenance
    Provides multi-agent equity research for US markets with provenance-backed financial data from SEC EDGAR, technicals, macro, and Alpaca paper trading, enforcing risk limits and journaling theses.
    27
    -
  • A
    license
    Not graded
    quality
    B
    maintenance
    Provides tools to research crypto trading strategies via backtesting, walk-forward validation, and paper trading, with a deflated-Sharpe overfitting check. Enables natural-language-driven analysis and interpretation of strategy performance.
    3
    Apache 2.0