| title | VKKM Aegis |
|---|---|
| emoji | 🛡️ |
| colorFrom | blue |
| colorTo | indigo |
| sdk | docker |
| pinned | false |
A quantitative risk management plugin for Claude — built to protect you before things go wrong.
Named after the divine shield in Greek mythology, Aegis was built because most people only think about risk after the damage is already done: a contract is signed, the runway has evaporated, or a regulatory deadline is missed.
We wanted to change that. VKKM Aegis turns Claude from a helpful conversational assistant into a specialist Chief Risk Officer (CRO) and Quantitative Analyst.
With version 5.0, Aegis officially steps into the Enterprise tier, bringing real-time market data, direct enterprise SQL database integrations, historical model backtesting, machine learning, and board-ready Excel exports straight into your chat interface.
Why trust an AI with your company's risk? Because Aegis isn't just generating text — it is executing validated code with strict guardrails.
- 388-Point Test Suite: Every command, disclaimer, and logic flow is validated via a strict Node.js test engine.
- Mathematical Precision: Financial calculations (Black-Scholes, VaR, CVaR) are executed via a dedicated Python MCP backend using
numpyandscipy. - Evidence-Based: Counterparty and regulatory checks rely on grounded data, preventing hallucinations.
- Hard Guardrails: Aegis will never give legal advice, never give investment advice, and will always clearly separate
DATA-GROUNDEDfacts fromILLUSTRATIVE ESTIMATES.
We realized that "Advanced" wasn't enough for institutional users. The v4.0 release bridges the gap between conversational AI and enterprise financial systems:
-
Enterprise SQL Database Integration (New in v4.0 / v5.0) Aegis now securely connects to local or enterprise SQL databases (PostgreSQL, MySQL, Snowflake, SQLite) to pull your live, proprietary portfolio data automatically instead of relying on manual JSON uploads.
-
Live Market Data (
yfinancevia MCP) Aegis now pulls real-time closing prices, 30-day/1-year rolling realized volatility, and the 3-month US T-bill risk-free rate automatically. When you run 1,000,000-path GBM simulation or price an option, Aegis grounds its math in today's actual market reality. -
Machine Learning Probability of Default (ML-PD) We moved beyond the static 1968 Altman Z-Score. Aegis now features a
scikit-learnLogistic Regression engine trained on a calibrated corporate dataset. It predicts the true 1-year Probability of Default complete with 95% Confidence Intervals. -
Historical VaR Backtesting Regulators demand proof. Aegis now runs the industry-standard Kupiec Proportion of Failures (POF) test. Feed it your portfolio's daily P&L, and it will mathematically validate your Risk model against the Basel Traffic Light system (Green/Yellow/Red) and flag volatility clustering.
-
Board-Ready Excel Exports You can't take a chat transcript to a board meeting. Aegis now generates beautifully styled, RAG (Red/Amber/Green) color-coded
.xlsxfiles for KRI Dashboards, Cash Flow Gap Tables, and Risk Registers with a single click.
To make Aegis feel like a true Bloomberg Terminal alternative without any API costs, we have added four massive local-compute features:
A. In-Chat Visual Charts (matplotlib Base64)
Claude doesn't just return tables anymore. Aegis uses Python to draw 1,000-path Monte Carlo simulations directly in your chat interface using Base64 image encoding.
B. Local Financial Sentiment Analysis (FinBERT)
Aegis pulls live news headlines via Yahoo Finance and runs them locally through a tiny, specialized open-source transformers model to calculate quantitative Bullish/Bearish sentiment scores instantly.
C. Crypto "Wild West" Risk Modeling Tap into the massive retail crypto market. Run Value at Risk (VaR), volatility scoring, and market charting on Bitcoin, Ethereum, and Solana using free data from the CoinGecko public API.
D. Automated PDF Pitchbook Generation
Need a 1-page Executive Risk Summary for the Board? A single command dynamically generates a styled PDF using reportlab and silently drops it right onto your Desktop (~/Desktop/VKKM_Risk_Pitchbook.pdf).
VKKM Aegis requires a local Python FastAPI backend utilizing numpy, scipy, scikit-learn, yfinance, and SQLAlchemy.
While this requires a heavier installation footprint than standard Node.js plugins, it is an intentional architectural decision for enterprise security:
- Zero Data Egress: Quantitative models, Monte Carlo simulations, and database connections execute entirely locally on your trusted machine (or isolated private cloud).
- Proprietary Math Sandbox: Heavily regulated financial institutions cannot send raw proprietary P&L data or database connection strings (
postgresql://...) to third-party public LLM endpoints. - Deterministic Math Engine: LLMs struggle with rigorous floating-point mathematics. By delegating complex equations (Black-Scholes, Kupiec testing, GBM) to a hardened Python backend, we ensure institutional-grade deterministic precision while treating the LLM strictly as an analytical reasoning and abstraction layer.
| Command | Purpose | Reliability | Category |
|---|---|---|---|
/vkkm:scan-document |
Contract risk scanner | ✅ 8.5/10 | Contracts |
/vkkm:stress-test |
Financial shock simulation | ✅ 8/10 | Market Risk |
/vkkm:risk-register |
ISO 31000 risk register | ✅ 9.5/10 | Operational |
/vkkm:regulatory-check |
EU/global compliance screen | ✅ 8/10 | Regulatory |
/vkkm:escalation-report |
Risk escalation memos | ✅ 9.5/10 | Operational |
/vkkm:counterparty-profile |
Due diligence profiling | ✅ 7.5/10 | Credit |
/vkkm:zscore |
Altman Z-Score bankruptcy predictor | ✅ 9/10 | Credit |
/vkkm:greeks |
Black-Scholes options Greeks | ✅ 9/10 | Market Risk |
/vkkm:var-calc |
Monte Carlo VaR & CVaR | ✅ 8.5/10 | Market Risk |
/vkkm:credit-risk |
Basel PD, EAD, LGD, EL | ✅ 8.5/10 | Credit |
/vkkm:liquidity-risk |
LCR, cash gap, NSFR | ✅ 8/10 | Liquidity |
/vkkm:icaap |
Structured ICAAP doc (7 sections) | ✅ 8.5/10 | Regulatory |
/vkkm:rcsa |
Risk & Control Self-Assessment | ✅ 9/10 | Operational |
/vkkm:kri-dashboard |
KRI tracking & RAG thresholds | ✅ 8/10 | Operational |
/vkkm:reg-calendar |
Reg reporting deadlines (12m) | ✅ 7.5/10 | Regulatory |
/vkkm:backtest |
VaR Kupiec Test validation (New!) | ✅ 9.5/10 | Market Risk |
/vkkm:ml-pd |
ML-driven PD with 95% CI (New!) | ✅ 8.5/10 | Credit |
/vkkm:export-report |
Board-ready Excel report export (New!) | ✅ 9/10 | Technical |
/vkkm:plot-monte-carlo |
In-chat visual path generation (New!) | ✅ 9.5/10 | Market Risk |
/vkkm:sentiment-analysis |
Local FinBERT news sentiment (New!) | ✅ 8/10 | Market Risk |
/vkkm:crypto-risk |
CoinGecko Crypto VaR (New!) | ✅ 8.5/10 | Market Risk |
/vkkm:generate-pitchbook |
Drop PDF Summary to Desktop (New!) | ✅ 9/10 | Technical |
These run in the background on every response. You don't need to ask — Aegis is always watching.
| Skill | What it does |
|---|---|
| Risk Scoring | Adds a 📊 AEGIS RISK SNAPSHOT (5×5 matrix) to every risk-related response |
| EU Regulatory Awareness | Flags GDPR, PSD2, DORA, Basel, NIS2, and EMIR exposure automatically |
| Contract Pattern Scanning | Spots 11 high-risk clause patterns in any contract you share |
| Financial Risk Intelligence | Applies VaR, Monte Carlo simulation, stress testing, and concentration risk analysis |
| Plain-Language Explainer | Defines every technical term the first time it appears — perfect for learners |
VKKM Aegis is packaged as an official Model Context Protocol (MCP) server. You can install it globally via NPM to connect your Claude Desktop app directly to the rigorous mathematical models hosted in the cloud.
To install Aegis directly into your Claude Desktop application (macOS/Windows):
- Open your Claude Desktop app.
- Go to Settings > Developer > Edit Config.
- Add the following to your
claude_desktop_config.json:
{
"mcpServers": {
"vkkm-aegis": {
"command": "npx",
"args": ["-y", "vkkm-aegis"]
}
}
}- Restart Claude Desktop. Aegis will automatically proxy all math processing to the scalable Hugging Face cloud engine.
- In
claude.ai, create a new Project. - Paste the contents of
skills/risk-management/SKILL.mdinto the "Project Instructions" section. - Update the server instruction to say:
"The Python MCP server is located at https://vaibhavkkm-vkkm-aegis.hf.space"
We take reliability seriously. You can run the entire test apparatus yourself:
npm run test:all
npm run test:pythonThis executes almost 400 validations covering JSON schema structures, text assertions, Python unit tests for the ML models, and floating-point verifications for the Black-Scholes and Monte Carlo engines.
Aegis is highly opinionated about how a professional quant builds software:
- Never gives legal advice — always tells you to get a lawyer for the important stuff.
- Never gives investment advice — financial analysis is purely analytical.
- Never makes things up — regulatory citations are linked to official sources.
- Always adds a disclaimer — no command output leaves without the right warning label.
- Always adds a risk score — every response ends with the
📊 AEGIS RISK SNAPSHOT.
Built by VKKM — vaibhavkkm.com | Official Website
VKKM Aegis Enterprise Edition (v5.0)