Skip to main content
Glama
invoice-check

invoice-check

by laughable-9

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)

  1. 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).

  2. In Claude Desktop open Cowork, then Customize, then Plugins, and add the marketplace laughable-9/oostervelde-invoice-check.

  3. Install the plugin invoice-check.

  4. 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@oostervelde

Or, 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 pytest

What 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 points

Results

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 tools
check_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

    B3.2/5.0

    Scored across 9 tools

    Disambiguation4/5

    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.

    Naming Consistency4/5

    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.

    Tool Count5/5

    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.

    Completeness4/5

    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

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      D
      maintenance
      Enables 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.
      -
    • A
      license
      A
      quality
      D
      maintenance
      Exposes 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.
      7
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables 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
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables 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