Epsom700/quant_framework
A quant automation using MCP Framework
Platform-specific configuration:
{
"mcpServers": {
"quant_framework": {
"command": "npx",
"args": [
"-y",
"quant_framework"
]
}
}
}Add the config above to .claude/settings.json under the mcpServers key.
> An open, pluggable framework for composable quantitative workflows. Start with FRED. Expand to anything.
Inspired by Karpathy's autoresearch — the same three-layer contract (immutable evaluator, agent sandbox, human direction), applied to quantitative finance as an extensible framework.
This is a framework — not a product. FRED is the hello-world connector. Everything else is an extension of the same pattern.
---
---
# Clone the repository
git clone <repo-url>
cd quant_framework
# Install all dependencies
uv sync---
Create a .env file in the project root (or export directly):
# .env
FRED_API_KEY=your_api_key_hereEdit configs/persona.yaml to control which functions and connectors your MCP server exposes:
name: "Quant Research Agent"
description: "MCP server exposing quantitative research functions"
host: "127.0.0.1"
port: 8000
functions:
- run_linear
- run_random_forest
- run_svr
- run_xgboost
- run_bayesian_ridge
- run_hmm
connectors:
- fredEdit configs/guardrails.yaml to define validation rules for function outputs:
defaults:
max_records: 10000
rules:
run_linear:
max_records: 5000
required_fields: [model, r_squared, coefficients]
roles:
analyst:
redacted_fields: [model]---
# Show available commands
uv run quant --help
# Start the MCP server with SSE transport
uv run quant serve --persona configs/persona.yaml
# Use stdio transport instead
uv run quant serve --persona configs/persona.yaml --transport stdioThis will:
Loading reviews...