Skip to main content
Glama
financial-modeling-harness

financial-modeling-harness

Financial Modeling Harness

A runnable financial modeling specialization of Vertical Harness, combining the startup-planning concepts in wshobson's startup-financial-modeling and the integrated-statement concepts in Claude Office Skills financial-modeling.

Hermes supplies the reasoning and conversation. This repository supplies a deterministic financial engine, validated inputs, scoped tools, domain rules, private run evidence and a reusable specialist skill. It runs locally without model API credentials and connects to Hermes through its native skills and stdio MCP support.

Synthetic SaaS forecast with scenario comparison and cash curves

Original synthetic example, inspected on desktop and mobile. No company financials are included.

Start with a working model

Python 3.10+ is the only core dependency. No package installation or cloud account is required.

git clone https://github.com/harshith-vaddiparthy/Financial-Modeling-Harness.git
cd Financial-Modeling-Harness
python3 -m harness doctor
python3 -m harness run examples/saas.json

The command returns a run ID, report path and summaries. Open the returned report.html in your browser. The report works offline and shows all three cash curves, a scenario selector, annual results, monthly statements, active drivers and input provenance. On macOS, double-click Open Financial Model.command to generate, verify and open the synthetic demonstration.

python3 -m harness verify RUN_ID
python3 -m harness init --model corporate --output workspace/my-company.json
python3 -m harness validate workspace/my-company.json
python3 -m harness run workspace/my-company.json --scenario all
python3 -m harness sensitivity examples/saas.json \
  --driver monthly_churn --values '[0.01, 0.02, 0.03]'

init creates a synthetic starter and refuses to overwrite existing files. Replace its inputs and sources for a real company. Read the input contract before converting company data. Choose saas, corporate, marketplace, ecommerce or services; all five original examples are included.

Related MCP server: ideaudit-tools

What the engine implements

  • Up to 60 monthly periods, with calendar-year summaries that sum flows and retain ending balances.

  • SaaS cohort retention, expansion, MRR/ARR, fully loaded CAC, simple LTV, payback, NRR and burn multiple.

  • Corporate revenue growth, marketplace GMV/take rate, ecommerce traffic/conversion/AOV, and services capacity/utilization.

  • Hiring by role, department and employment dates, salary growth, and loaded compensation.

  • Linked income statement, balance sheet and cash flow, with receivables, inventory, payables, PP&E and average-debt interest.

  • Explicit equity raises, simple priced-round dilution, debt issuance/repayment and dividends.

  • Conservative/base/optimistic scenarios and full-model sensitivity recalculation.

  • Strict missing-input and provenance validation. An unbalanced opening balance sheet fails the run.

  • Seven independently reviewed accounting identities each month. Negative cash remains visible and creates a funding-gap warning.

  • JSON, monthly/annual/cohort CSV, Markdown and a portable interactive HTML report. CSVs are spreadsheet-compatible snapshots; this version does not author an editable Excel workbook.

The core has no external finance accounts, bank connections, market-data API, automatic funding plug, or money-transfer tool. General tax, annual-contract deferred revenue, SAFEs, options, complex capital structures, multicurrency, and inventory purchasing schedules require domain extensions. The accounting rules define the simplifications.

Connect your Hermes agent

Read Hermes integration. The repository includes a discoverable skill and six MCP tools:

finance_doctor, finance_validate, finance_run, finance_verify, finance_get_summary, finance_sensitivity.

python3 scripts/install_skill.py --target hermes
hermes mcp add financial-modeling-harness \
  --command /absolute/path/Financial-Modeling-Harness/scripts/mcp-server.sh
hermes mcp test financial-modeling-harness

Check hermes mcp add --help for the flags supported by your Hermes version. The helper launcher changes into this checkout, so MCP works regardless of the agent's current directory. Set FINANCIAL_HARNESS_WORKSPACE to a private workspace path for that server. Registration adds this server only; it does not select a provider or change model credentials.

Use this request in a new Hermes session:

Use financial-modeling-harness to build a 36-month SaaS plan for my company. First identify the missing opening balances and forecast drivers. Separate actuals from assumptions. Run conservative, base and optimistic scenarios, verify the run, and show cash-breach timing, funding need, hiring costs, unit economics and the report path. Use the saved model for a churn sensitivity analysis.

For a quick demonstration, replace “my company” with “the repository's synthetic SaaS example.” Shell access also works through python3 -m harness; MCP is optional for standalone use.

Harness map

Layer

Implementation

Specialist skill

skills/financial-modeling-harness/SKILL.md

Domain

domain/brief.md, rules, output contract

Models

Reasoning stays in the caller's existing agent; calculations use harness/engine.py

Tools and access

CLI, stdio MCP, validated model objects, bounded horizon, private workspace

Context

Company inputs with per-input sources; upstream guidance pinned in vendor/

Workflow

workflows/primary.md

Evaluation

tests/, evals/cases.jsonl, rubric

Operations

runbook, verification evidence

This uses the same independent-repository pattern as 3D Printing Harness and Android TV Harness. The parent template links back to this specialization under its examples directory.

Evidence and integrity

Each workspace/runs/RUN_ID/ contains input.json, results.json, reports/CSVs and manifest.json. The manifest binds the input, engine source and output artifact hashes. verify checks file hashes, recalculates the financial model and reviews the statement identities. These are local integrity checks, not signatures or evidence of external approval. Workspace files are excluded from Git and created with restricted permissions. Abandoned incomplete directories have no completed manifest and cannot pass verification.

python3 -m unittest discover -s tests -v
python3 scripts/check_bundle.py

CI runs the same tests on Python 3.10, 3.12 and 3.13. Fresh integration results belong in operations/verification.md.

Source and license

Original harness code and examples: MIT. Upstream skills are retained unchanged at pinned commits, with their own MIT licenses and checksums. See THIRD_PARTY_NOTICES.md and vendor/sources.lock.json. Their suggested providers, tools, ratios and example numbers are reference material, not installed services, mandatory benchmarks or company actuals.

Available Tools

6 tools
finance_doctorA
Read-only

Check local readiness; no model API or external finance account is needed

Inputs: no named parameters.

finance_get_summaryB
Read-only

Read saved scenario summaries after verifying the run

Inputs: run_id (required).

finance_runA

Calculate linked monthly statements and named scenarios; save a private immutable run

Inputs: model (required), scenario.

finance_sensitivityC
Read-only

Recalculate the full model for up to 20 driver values

Inputs: model (required), driver (required), values (required), scenario.

finance_validateB
Read-only

Validate inputs, opening balance and provenance. Missing inputs remain errors

Inputs: model (required).

finance_verifyC
Read-only

Verify artifact hashes, seven accounting identities and deterministic replay

Inputs: run_id (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.4/5.0

    Scored across 6 tools

    Disambiguation4/5

    Each tool maps to a distinct stage of the modeling lifecycle (readiness, validation, run, verification, sensitivity sweep, summary read). The only mild overlaps are doctor vs. validate (both 'checks') and run vs. sensitivity (sensitivity recalculates the model), but the descriptions clearly separate environment readiness from input validation and single-run from driver sweeps.

    Naming Consistency4/5

    All tools share a `finance_` namespace prefix and use short, readable verb-style suffixes (doctor, validate, run, verify, sensitivity). The only deviation is `finance_get_summary`, which switches to a verb_noun form while others use a bare verb or noun.

    Tool Count5/5

    Six tools is well within the sweet spot and each one corresponds to a meaningful, non-redundant step in the workflow. There are no filler or trivially thin tools.

    Completeness4/5

    The surface covers the full lifecycle: readiness check, input validation, model execution, artifact verification, sensitivity analysis, and summary retrieval. Minor gaps exist around managing saved runs (listing or deleting prior immutable runs) and exporting results, but core workflows are covered.

    Maintenance

    ActivitySlowing
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Provides startup verification tools including domain/package/org availability checks, unit economics, runway, market size, and cap table calculations with transparent formulas and warnings to prevent common agent errors.
      MIT
    • A
      license
      B
      quality
      C
      maintenance
      Enables local deterministic scoring for startup audits with twenty pure-function tools, allowing GO/KILL verdicts, composite scores, market, money, and signal calculations without accounts, network, or model calls.
      20
      36 npm
      Apache 2.0
    • F
      license
      A
      quality
      C
      maintenance
      Provides AI agents with deterministic, offline finance tools for commodity margin analysis, loan covenant compliance, invoice auditing, AP exception classification, and five-day close readiness.
      14
      3 npm
      -
    • A
      license
      A
      quality
      C
      maintenance
      Enables agents to evaluate real financing decisions through deterministic tools for IRR, NPV, payback, working capital, break-even, and sensitivity analysis.
      8
      1
      MIT