invoice-check
A local MCP server for checking contractor invoices against Article 4, generating review materials and draft letters, and recording Sanne’s decisions.
List invoices by month, optionally scoped to a folder.
Read a specific invoice’s parsed lines and original text.
Look up work orders, indexed prices by execution date, and contract rules/readings.
Check one invoice in its batch context, or check all invoices and write
review.html,review-list.md, and Dutch draft dispute letters.Record Sanne’s decisions in
decisions.csv, including pay, dispute, hold, sent, resolved, undo, and related details.Open the local dashboard for Sanne to approve, dispute, or hold invoices; chat and dashboard decisions share the same log.
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., "@invoice-check check the January invoices"
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.
Woonkring Oostervelde invoice check
A local MCP server and a Claude skill that check contractor invoices against Article 4 of the framework contract and prepare everything Sanne needs to decide.
Project context
Woonkring Oostervelde is a housing association. Sanne in accounts payable checks the contractors' invoices by hand every month, and this project covers the 40 invoices of January. The tool applies Article 4 of the framework contract (prices, indexation, call-out fees, hours, extra work, VAT) with exact decimals, and the Claude skill drives it. Sanne decides everything in a local dashboard in the browser. Nothing is sent or paid automatically: the tool only proposes verdicts and drafts Dutch letters.
Related MCP server: mcp-ledger-server
Getting started
a) Claude Desktop (Cowork)
Install uv once. Windows PowerShell:
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex". macOS or Linux:curl -LsSf https://astral.sh/uv/install.sh | sh(see docs.astral.sh/uv).In Claude Desktop open Cowork, then Customize, then Plugins, and add the marketplace
laughable-9/oostervelde-invoice-check.Install the plugin
invoice-check.Start a Cowork task and say "check the January invoices". On first run a window opens to pick a folder; it is set up for you.
Requirements: a paid plan with code execution turned on. Local MCP servers work only in Cowork or Claude Code, not in normal chat.
b) Claude Code
claude plugin marketplace add laughable-9/oostervelde-invoice-check
claude plugin install invoice-check@oosterveldeOr, from a clone of this repo: claude --plugin-dir .. Then ask it to check the January invoices; on first run pick a folder and it is set up for you.
c) Tests only
uv run --extra dev pytestWhat you get
A review list,
output/<run>/review-list.md, with every invoice, its proposed verdict and the evidence.Draft letters in Dutch for the disputed invoices, in the same run folder.
A dashboard (
review.html) that opens in the browser, where Sanne approves, disputes or holds each invoice.decisions.csv, an append-only log of her decisions.
Project structure
server.py MCP server: tools, review list, letters, decisions log
dashboard.py local dashboard server that Sanne uses
report.py builds the review.html page
rules.py the Article 4 checks, all amounts in exact decimals
parsers.py reads the invoice, work order and price files
skills/invoice-check/SKILL.md the Claude skill: how to run the check
.claude-plugin/ plugin.json and marketplace.json
.mcp.json starts the MCP server through uv
pyproject.toml dependencies (mcp; dev extra: pytest), uv.lock pins them
tests/ pytest suite and expected.json (our verdicts and amounts)
invoices/ the 40 January invoices (text)
work-orders-export.csv, price-agreement-2025.csv, contract-excerpt.md input data
reference/ Sanne's verdicts on the first 10 invoices
output/ generated runs and comparison.md
NOTES.md how I read the contract, decisions and open pointsResults
Over all 40 invoices: 17 approve, 22 dispute, 1 hold. To dispute: EUR 2,649.85 excl. VAT and EUR 3,412.47 incl. VAT. On the 10 invoices Sanne checked, we agree on 8 verdicts. See output/comparison.md for the differences and NOTES.md for the decisions.
Available Tools
9 toolscheck_allB
Check the batch, write output//review.html (Sanne's one-stop page), review-list.md and one Dutch letter per disputed invoice (letters/.CONCEPT.txt until she decides).
Inputs: month, folder.
check_invoiceC
Check one invoice. It runs in its batch so duplicates and credit notes are seen.
Inputs: invoice (required), folder.
get_priceB
List price for a code on an execution date (YYYY-MM-DD or DD-MM-YYYY), indexed per Art. 4.2.
Inputs: code (required), execution_date (required), folder.
get_ruleC
Contract text (Dutch and English) and our reading for a rule (R0-R20), decision (Q1-Q21) or article (4.1-4.10).
Inputs: rule_id (required), folder.
get_work_orderC
One row of the work order export (type, max hours, MU and GA approvals, build year).
Inputs: wo (required), folder.
list_invoicesC
List invoices (contractor, number, date, work order, total). month: 'YYYY-MM', optional.
Inputs: month, folder.
open_dashboardB
Start the local dashboard (127.0.0.1 only) and return its URL. Sanne decides there or in the chat; both land in the same decisions.csv. month: 'YYYY-MM' or 'all'.
Inputs: month, folder.
read_invoiceC
Parsed lines plus the original text of one invoice (id such as 'h-2026-0031').
Inputs: invoice (required), folder.
record_decisionA
Record Sanne's call in decisions.csv. decision: pay (pay in full), letter_ok (agree with the dispute: letter ready), sent (she sent the letter; sent_date YYYY-MM-DD, default today), hold (optional note), confirmed (unknown work order confirmed), not_ours (whole invoice disputed; reason required), disagree (verdict approve|dispute|hold, optional amount, reason required), resolved (closes a waiting dispute; kind credit_note|corrected_invoice|contractor_right|withdrawn and a reason), let_go (pay in full, all findings small; a repeat needs a reason), undo (back to the previous state). Old names approve, dispute, change still work. An overrule needs a reason. amount_excl_vat: amount disputed (letter_ok, disagree to dispute); defaults to the proposal.
Inputs: invoice (required), decision (required), kind, folder, +5 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 9 tools
The data-lookup tools (get_work_order, get_price, get_rule) and the action tools (check_invoice, check_all, open_dashboard, record_decision) are clearly distinct. The main friction is between list_invoices, read_invoice and check_invoice, which all operate on a single invoice but differ only subtly (browse vs. extract text vs. validate); descriptions do help, though an agent could still reach for read when check was meant.
All names are snake_case verb-first (list_, read_, get_, check_, open_, record_), which gives a strong, readable pattern. Minor deviations: check_all drops the object noun and uses the same verb as check_invoice for a batch-wide action, which slightly blurs the verb semantics.
Nine tools is well within the sweet spot and each maps to a distinct step in the invoice-review workflow: enumerate, inspect, fetch reference data, validate, surface UI, and record the outcome. Nothing appears redundant or bolted on.
The lifecycle is essentially end-to-end: list/read invoices, pull work-order, price and rule context, run single or batch checks, open a review dashboard, and persist decisions with a rich state machine. The notable gap is read-back: there is no tool to list prior decisions.csv entries or pending 'waiting disputes' other than via the dashboard, so an agent cannot inspect history in-band.
Maintenance
Related MCP Connectors
Evidence-backed UBL, PDF, and image invoice checks before approval or payment.
Create, send and track invoices from a conversation in Claude, ChatGPT or any MCP client that supports OAuth. Draft an invoice from one sentence or from last month's invoice for the same client, finalize it, email it to your client and send payment reminders for overdue ones. See revenue by month and by client, download PDFs and e-invoices (ZUGFeRD, XRechnung), and export DATEV packages for your tax advisor. Invoices follow the tax rules of 25 countries, including reverse charge and the small-business VAT exemption. New invoices are drafts, and nothing is emailed until you ask. Pay per invoice with no subscription: the first invoice is free.
Invoice & receipt OCR to JSON with deterministic Python Decimal math verification.
Quotes, contracts and invoices per client. Your AI drafts, sends and follows up.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables AI-powered invoice analysis and reasoning: given invoice fields, it detects missing data, inconsistencies, duplicates, and proposes actions (register, request data, mark duplicate, review) using deterministic rules.-
- AlicenseAqualityDmaintenanceExposes a ledger system (invoice queue, duplicate control, VAT register, contractor history, decision journal) as MCP tools for AI agents, enabling accurate invoice processing with deterministic validation.7MIT
- AlicenseNot gradedqualityCmaintenanceEnables accounts-payable teams to turn emailed or uploaded invoice PDFs into structured, source-cited fields via Claude, run deterministic arithmetic, date, PO and duplicate checks, and route each invoice to a named human for approval or rejection through scoped bearer tokens. Also supports listing pending approvals and forecasting what falls due in the coming weeks, with per-extraction cost tracking.MIT
- AlicenseNot gradedqualityBmaintenanceEnables AI agents and finance teams to extract structured fields from messy invoices and audit them before payment, applying seven evidence-backed risk rules that catch total/tax mismatches, duplicate invoices, missing fields, future dates, and round amounts, then returning a 0–100 score with a payment link. Exposes four MCP tools over stdio and Streamable HTTP (spec 2025-11-25) plus a web UI, backed by an optional AWS Bedrock or OpenAI-compatible extraction brain that degrades gracefully to a zero-dependency offline engine.MIT