fpa-variance
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@fpa-variance Write the October variance commentary for the Southeast region"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
fpa-variance-mcp
An MCP server that lets an AI assistant pull actuals and budget from a multi-ERP finance database and draft the first pass of monthly variance analysis at the division, region or consolidated level. It also runs the data checks first and won't call anything final without a human sign-off.
This is a clean-room rebuild of a tool I built in my FP&A role against our planning system (OneStream), where actuals from several ERPs are consolidated and divisions roll up into regions. That version saved me 5–10 hours a week on monthly reporting. Everything here (code, data, chart of accounts) is new and synthetic. No employer code or data is included.
The problem
Month-end variance work is mostly mechanical: pull actuals, line them up against budget, find what moved, and write it up for each division, each region and the consolidated view. The slow part isn't the math. It's the pulls and the first draft of the commentary, repeated across every entity.
There's also a trust problem. If one ERP books to a new account that hasn't been mapped, the dashboard, the management package and the board deck stop tying out, and you find out when someone asks why two numbers don't match.
Related MCP server: fincon
What it does
Pulls on a standard P&L. Each division books in its own ERP with its own account names. A mapping table translates them to one management P&L (revenue, direct labor, subs, indirect labor, other opex, gross margin, EBITDA).
Variance by line, month or YTD, at any level, with the right sign convention (lower cost = favorable).
Revenue bridge. Splits the revenue variance into volume (hours at budget rate) and rate. Above division level the rate piece includes mix.
Flags what needs a look. A line is flagged when the variance clears both a % and a $ threshold, so small divisions don't flag on noise and big ones can't hide a real miss.
Drafts commentary. Plain first-pass bullets with the numbers, the biggest movers, and whether a cost variance just tracks volume or is something else. Anything it can't know (the "why") is left as a placeholder for the business to fill in.
Checks before anything goes out. Every report runs a checks page: all GL accounts mapped, mapped actuals tie to the raw GL, divisions and regions roll up to consolidated. If a check fails, the report status is
BLOCKED.Review gate. Reports are always
DRAFTuntil a reviewer signs off withlog_review, which records who approved what against a report ID.
The AI client does the writing on top of the tool output. The tools do the numbers, so the numbers come from the data and not from the model.
Tools
Tool | What it does |
| Regions, divisions, source ERP, periods with actuals |
| Standard P&L for a division, region or consolidated, month or YTD |
| Variances, revenue bridge, flags, draft commentary, checks, status |
| The checks page on its own |
| Record an approval or a request for changes against a report |
There's also a monthly_variance_commentary prompt that tells the client how to write the commentary from the report.
Sample data
sample_data.py builds a SQLite database for a made-up ~$100M services business: six divisions in two regions, on three ERPs with different charts of accounts, a full-year 2026 budget, and actuals through October. October has a few planted stories so there's something to find:
Houston: a project start slipped, so hours and revenue came in short (volume miss)
Atlanta: a new rate card, so bill rate is up (rate upside)
Tampa: subcontractor spend well over budget
Dallas: indirect labor under budget from open reqs
Charlotte: a new GL account in one ERP with no mapping yet, which blocks the consolidated report
See examples/sample_output.md for what the reports look like.
Setup
Requires Python 3.10+.
git clone https://github.com/<your-username>/fpa-variance-mcp.git
cd fpa-variance-mcp
python -m venv .venv
source .venv/bin/activate # Windows: .venv\Scripts\activate
pip install -e ".[dev]"
python scripts/generate_data.py # builds data/fpa.db (the server also does this on first run)
python scripts/demo.py division 2026-10 Tampa
pytestConnect it to Claude Desktop
Add this to claude_desktop_config.json (Settings → Developer → Edit Config), using the full path to the Python in your virtual environment:
{
"mcpServers": {
"fpa-variance": {
"command": "/full/path/to/fpa-variance-mcp/.venv/bin/python",
"args": ["-m", "fpa_variance_mcp.server"]
}
}
}Restart Claude Desktop, then ask something like "Write the October variance commentary for the Southeast region" or "Why is consolidated EBITDA flat when Houston missed?"
With Claude Code: claude mcp add fpa-variance -- /full/path/to/.venv/bin/python -m fpa_variance_mcp.server
Project layout
src/fpa_variance_mcp/
variance.py # the engine: pulls, variances, bridge, flags, commentary, checks, review log
server.py # MCP tools over the engine
sample_data.py # synthetic multi-ERP dataset
scripts/ # generate_data.py, demo.py
tests/ # pytest
examples/ # sample outputWhat I'd add next
A forecast scenario next to budget (latest estimate vs budget vs prior year)
Pulling the "why" from project-level data (which projects drove the hours miss)
Writing the approved commentary straight into the management package template
Available Tools
6 toolsget_actualsB
Actuals on the standard management P&L.
level: division, region or consolidated. name: the division or region (omit for consolidated). period: YYYY-MM. ytd: true for year-to-date through that month.
Inputs: level (required), period (required), ytd, name.
get_budgetC
Budget on the standard management P&L. Same arguments as get_actuals.
Inputs: level (required), period (required), ytd, name.
list_entitiesB
List regions, divisions (with source ERP) and periods that have actuals.
Inputs: no named parameters.
log_reviewA
Record a human sign-off (or a request for changes) against a report_id. Only call this when the reviewer has explicitly said so.
Inputs: decision (required), reviewer (required), report_id (required), notes.
run_checksC
Pre-distribution checks: unmapped GL accounts, mapped actuals tie to raw GL, and divisions/regions roll up to consolidated.
Inputs: period (required).
variance_reportC
Budget vs actual by line with a volume/rate revenue bridge, lines flagged for review, first-pass commentary, and the data checks for the period.
A line is flagged when |variance| is at least threshold_pct of budget AND at least threshold_abs dollars. The report's status tells you whether it can go out.
Inputs: level (required), period (required), ytd, name, +2 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 6 tools
Each tool targets a distinct step of the FP&A workflow, and get_actuals vs get_budget are clearly separated by data source despite sharing arguments. The only real overlap is that variance_report embeds 'data checks' while run_checks performs a broader standalone check suite, which descriptions mostly clarify but could still confuse an agent deciding which to call.
Names are consistently snake_case and mostly follow verb_noun (list_entities, get_actuals, get_budget, run_checks, log_review). variance_report is a noun phrase rather than an action verb, a minor deviation in an otherwise predictable pattern.
Six tools is well-scoped for a variance reporting server: discover entities, pull actuals and budget, generate the variance report, run checks, log review. Every tool maps to a distinct stage with no filler.
The core lifecycle (entities → actuals/budget → variance report → checks → human sign-off) is covered with no obvious dead ends. Minor gaps: no way to list or retrieve previously generated reports (report_id provenance is implicit), and no drill-down to GL/account detail behind a flagged line.
Maintenance
Related MCP Connectors
Claude, connected to your own Oracle EPM. Each person as themselves, every call checked and logged.
Query financial statements, KPIs, ratios, cash forecasts and budgets from your general ledger
Read-only finance and operations controls for AI agents with evidence and safe next actions.
AI bookkeeping for one or many companies: your agent books, reports and closes, with approvals.
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables AI assistants to perform financial analysis, budget forecasting, compliance checks, expense categorization, and risk assessment, returning structured JSON with audit-ready governance receipts.5100 npm1Business Source 1.1
- FlicenseBqualityDmaintenanceEnables AI assistants to perform financial reconciliation with a deterministic proof engine: intake files, match transactions, verify proofs, resolve exceptions, and sign off on balanced journals under the user's authority.21-

OpenVariance MCP Serverofficial
AlicenseNot gradedqualityCmaintenanceEnables AI agents to perform variance analysis, generate reconciling driver bridges and three-statement forecasts, export Excel workbooks, and analyze SEC or private-company financial data locally with engine-verified calculations.MIT- AlicenseNot gradedqualityCmaintenanceEnables an AI assistant to query existing business systems through narrow typed tools, stage and confirm gated writes, and verify stated figures against source data with freshness checks.MIT