MCP-Quant Financial Research
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
MCP-Quant Financial Research
An MCP server that gives LLM clients (Claude Desktop, VS Code, etc.) three deterministic financial tools. The LLM decides which tool to call; the server fetches daily prices from Yahoo Finance and computes the numbers with pandas/numpy, so no figure in the output is generated by a language model.
Every response includes where the data came from, when it was retrieved, and basic data-quality counts.
Tools
Tool | Input | Returns |
|
|
|
|
|
|
|
| A report with the parsed plan, metrics, provenance and a one-paragraph summary |
There is also one resource, research://capabilities, which returns a short text description of the server.
Inputs are validated with Pydantic before any data is fetched: 1–10 symbols (upper-cased), and end_date must be after start_date.
Metrics
Computed per symbol from adjusted daily closes in analytics.py:
Metric | Definition |
Cumulative return | last price / first price − 1 |
Annualized return | (1 + cumulative)^(252 / trading days) − 1 |
Annualized volatility | sample std of daily returns × √252 |
Sharpe ratio | mean / std of daily returns × √252, risk-free rate 0; |
Maximum drawdown | worst fall from a running peak |
Beta | cov(symbol, SPY) / var(SPY) on date-aligned daily returns |
Provenance
source, retrieved_at (UTC), symbols, start_date, end_date, and quality: rows, missing_rows, duplicate_rows, first_date, last_date, adjusted_prices.
Related MCP server: MCP Financial Analyst
Setup
Requires Python 3.12+.
python -m venv venv
source venv/bin/activate
pip install -e ".[dev]"
cp .env.example .env # no keys are required todayRun
Smoke test (one live query, prints the report):
python main.pyStart the MCP server over stdio:
python -m financial_mcp.serverVS Code picks it up from .vscode/mcp.json.
Test and lint
pytest -q
ruff check src tests main.pyThe tests replace Yahoo Finance with fixed prices, so they run offline. They cover the metric calculations and each tool's output.
Roadmap
Next: LLM-based query planner with an evaluation against the current rule-based parser.
For research and education only. Not investment advice.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
AI research on U.S. stocks, ETFs and crypto. Read your research reports and the method behind each analysis, ask SAGE about them, and price and start new research. Figures are computed in code on licensed market data, with sources listed. Research, not investment advice.
Backtest and analyze any portfolio, incl. nested multi-strategy ones: returns, risk, factors, guides
Finance research agent for thesis, trade note, and market-state review.
Related MCP Servers
- FlicenseBqualityNot gradedmaintenanceEnables 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-
- FlicenseNot gradedqualityDmaintenanceEnables financial analysis by fetching real market data from Yahoo Finance, computing moving averages, returns, and volatility, and generating price charts.-
- AlicenseNot gradedqualityCmaintenanceProvides 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.2Apache 2.0
- AlicenseAqualityCmaintenanceEnables querying stock quotes and computing portfolio risk/return metrics such as Sharpe ratio, drawdown, volatility, and correlations, as well as historical summaries and asset comparisons.4MIT