Skip to main content
Glama
invoiceflow-mcp

invoiceflow-mcp

by automatiabcn

InvoiceFlow MCP

KI-gestützte Rechnungsautomatisierung für das Model Context Protocol

License: MIT TypeScript MCP

InvoiceFlow erstellt professionelle PDF-Rechnungen, prognostiziert das Risiko verspäteter Zahlungen mittels KI, versendet automatisch Mahnungen, gleicht eingehende Zahlungen mit Rechnungen ab und verfolgt Ihren Cashflow – alles über das MCP-Protokoll.


Funktionen

  • Professionelle PDF-Rechnungen mit Positionen, Steuern, Rabatten und mehreren Währungen (10 Währungen)

  • KI-Risikoprognose (0-100) basierend auf Rechnungsbetrag, Kundenhistorie, Fälligkeitsdatum und Mahnhistorie

  • Intelligente Mahnungen mit Eskalation basierend auf dem Risikoniveau

  • Zahlungsabgleich, der eingehende Zahlungen anhand von Betrag + E-Mail-Adresse des Zahlers mit Rechnungen abgleicht (plattformunabhängig – funktioniert mit manuell eingegebenen oder per Webhook bereitgestellten Zahlungsdaten)

  • Cashflow-Berichte mit Einzugsquote, prognostiziertem Einkommen und Kundenaufschlüsselung

  • Kundenverwaltung mit automatischer Nachverfolgung der Zahlungshistorie

  • Fortlaufende Rechnungsnummern (INV-2026-0001, INV-2026-0002, ...)

  • 10 MCP-Tools + 4 MCP-Ressourcen, die den gesamten Rechnungslebenszyklus abdecken


Related MCP server: Invoice Generator AI MCP

Schnellstart

Installation über den MCPize Marketplace

  1. Suchen Sie auf mcpize.com nach InvoiceFlow MCP

  2. Klicken Sie auf Installieren und wählen Sie Ihr Abonnement

  3. Tools und Ressourcen sind automatisch in jedem MCP-kompatiblen Client verfügbar

Aus dem Quellcode erstellen

git clone https://github.com/enzoemir1/invoiceflow-mcp.git
cd invoiceflow-mcp
npm ci
npm run build

Fügen Sie dies zu Ihrer MCP-Client-Konfiguration hinzu:

{
  "mcpServers": {
    "invoiceflow": {
      "command": "node",
      "args": ["path/to/invoiceflow-mcp/dist/index.js"]
    }
  }
}

Tools

client_manage

Einen neuen Kunden anlegen. Erforderlich vor der Erstellung von Rechnungen.

invoice_create

Eine Rechnung mit Positionen erstellen. Berechnet automatisch Zwischensumme, Steuern, Rabatte und Gesamtbetrag. Generiert fortlaufende Rechnungsnummern (INV-JJJJ-NNNN).

invoice_send

Eine Rechnung als PDF per E-Mail versenden (erfordert SENDGRID_API_KEY). Aktualisiert den Status auf "gesendet".

invoice_list

Rechnungen nach Status, Kunde, Betragsbereich, Datumsbereich oder überfälligem Status filtern. Unterstützt Paginierung.

invoice_mark_paid

Eine Rechnung als bezahlt markieren (vollständig oder teilweise). Aktualisiert automatisch die Zahlungshistorie des Kunden.

invoice_remind

Eine Zahlungserinnerung senden. Erhöht die Mahnanzahl. Unterstützt benutzerdefinierte Nachrichten.

invoice_risk

KI-gestützte Prognose des Risikos verspäteter Zahlungen (0-100). Gibt das Risikoniveau, die Aufschlüsselung der Faktoren, empfohlene Maßnahmen und das Datum der nächsten Mahnung zurück.

cashflow_report

Zusammenfassung des Cashflows generieren: Gesamtsumme in Rechnung gestellt, eingezogen, ausstehend, überfällig, Einzugsquote, 30-Tage-Prognose.

payment_reconcile

Eingehende Zahlung anhand von Betrag und E-Mail-Adresse des Zahlers mit einer Rechnung abgleichen. Markiert die Rechnung automatisch als bezahlt.


Ressourcen

Ressource

Beschreibung

invoices://pending

Alle unbezahlten Rechnungen

invoices://overdue

Rechnungen nach Fälligkeitsdatum

invoices://stats

Monatliche Cashflow-Zusammenfassung

clients://list

Alle Kunden mit Zahlungshistorie


Risikoprognose-Engine

Bewertet Rechnungen von 0-100 unter Verwendung von 4 gewichteten Faktoren:

Faktor

Gewichtung

Was wird gemessen

Rechnungsbetrag

20%

Höhere Beträge = höheres Risiko

Kundenhistorie

35%

Zahlungsrate, verspätete Zahlungen, durchschnittliche Tage

Fälligkeitsdatum

30%

Tage bis zur/nach der Fälligkeit

Mahnungen

15%

Bereits versendete Mahnungen

Risikoniveaus: Niedrig (0-30), Mittel (31-60), Hoch (61-100)


Konfiguration

Kopieren Sie .env.example nach .env und setzen Sie die benötigten Variablen:

cp .env.example .env

Variable

Erforderlich

Beschreibung

SENDGRID_API_KEY

Für E-Mail-Versand

Rechnungen und Mahnungen via SendGrid versenden

SendGrid ist optional. InvoiceFlow funktioniert vollständig offline für Rechnungserstellung, Risikobewertung, Cashflow-Berichte und Abgleich. Fügen Sie SendGrid hinzu, wenn Sie ausgehende E-Mails versenden möchten.

Roadmap: Stripe & PayPal Live-Synchronisierung

Das Tool payment_reconcile gleicht derzeit Beträge ab, die Sie bereitstellen (aus einer CSV, einem Webhook oder manueller Eingabe), mit gespeicherten Rechnungen. Eine direkte Stripe- und PayPal-API-Integration mit Webhook-Listenern ist für v2.0 geplant – siehe Issues für den Fortschritt.

Anwendungsbeispiele

Einen Kunden und eine Rechnung erstellen

> Create a client "Acme Corp" with email billing@acme.com

✓ Client created: Acme Corp (id: 3f2a...)

> Create an invoice for Acme Corp: 10 hours consulting at $150/hr, 20% tax

✓ Invoice INV-2026-0001 created
  Subtotal: $1,500.00 | Tax: $300.00 | Total: $1,800.00

Zahlungsrisiko bewerten

> What's the risk score for invoice INV-2026-0001?

Risk Score: 42/100 (Medium)
  - Invoice Amount: 25 (moderate amount)
  - Client History: 50 (new client)
  - Due Date: 15 (due in 28 days)
  - Reminders: 10 (none sent)
Recommended: Send an early reminder with a polite tone.

Cashflow-Bericht generieren

> Show me the cash flow report

April 2026:
  Total Invoiced: $12,400.00
  Collected: $8,200.00 (66.1%)
  Outstanding: $4,200.00
  Overdue: $1,800.00
  Projected (30d): $2,400.00

Unterstützte Währungen

USD, EUR, GBP, CAD, AUD, JPY, CHF, TRY, BRL, INR


Preise

Stufe

Preis

Rechnungen/Monat

Funktionen

Kostenlos

0 $

5

Einfache PDF-Rechnungen

Pro

12 $/Monat

100

KI-Risikobewertung, intelligente Mahnungen, Abgleich

Business

29 $/Monat

500

Mehrwährungsfähigkeit, Cashflow-Berichte, bevorzugter Support

Verfügbar auf dem MCPize Marketplace.


Entwicklung

npm run dev        # Hot reload
npm run build      # Production build
npm test           # Run tests
npm run inspect    # MCP Inspector

Tests

Tests decken die Kern-Geschäftslogik ab:

  • Speicherung — CRUD-Operationen, Filtern, fortlaufende Rechnungsnummern

  • Risikomodell — KI-Bewertungs-Engine mit 4 gewichteten Faktoren, Risikoklassifizierung

  • Cashflow — Berichterstellung, Einzugsquoten, Prognosen, Kundenaufschlüsselung

npm test           # Run all tests
npx vitest --watch # Watch mode

Pro-Lizenz

InvoiceFlow wird im Kostenlos-Modus ausgeliefert — invoice_demo_seed, client_manage, invoice_create, invoice_list, invoice_mark_paid und invoice_remind sind offen. Die folgenden Tools erfordern eine Pro-Lizenz:

  • invoice_send — PDF-Generierung + SendGrid E-Mail-Versand

  • invoice_risk — Prognose des Risikos verspäteter Zahlungen

  • payment_reconcile — Abgleich von Stripe/PayPal/Bank-Zahlungen mit Rechnungen

  • cashflow_report — Portfolio-weiter Cashflow + 30-Tage-Prognose

Kaufen Sie eine Pro-Lizenz (12 €, lebenslang, 3 Rechner): https://automatiabcn.lemonsqueezy.com/buy/2d439c05-f463-4137-8883-950e8ee1112d

Oder holen Sie sich das Indie MCP Stack Bundle (69 €, alle 4 Server).

export LEMONSQUEEZY_LICENSE_KEY=YOUR-KEY-HERE

Oder in Ihrer MCP-Client-Konfiguration:

{
  "mcpServers": {
    "invoiceflow-mcp": {
      "command": "npx",
      "args": ["-y", "invoiceflow-mcp-server"],
      "env": { "LEMONSQUEEZY_LICENSE_KEY": "YOUR-KEY-HERE" }
    }
  }
}

Die Validierung wird lokal für 24 Stunden zwischengespeichert – nach dem ersten Ausführen vollständig offline-fähig.


Lizenz

MIT-Lizenz. Siehe LICENSE für Details.

Entwickelt von Automatia BCN.

Available Tools

10 tools
cashflow_reportCash Flow ReportA
Read-onlyIdempotent

Generate a portfolio-wide cash flow summary across all invoices. Returns {period, total_invoiced, total_collected, total_outstanding, total_overdue, collection_rate (percent), avg_days_to_payment (or null if no paid history), projected_income_30d (forecast based on due dates and historical pay rate), breakdown_by_status, breakdown_by_client}. Takes no input — always reports on the current full dataset. Ideal for dashboards and monthly close.

Inputs: no named parameters.

client_manageManage ClientA
Idempotent

Create or upsert a client record used by invoice_create. Accepts name, email, company, address, city, country, tax_id, phone, default_currency ("USD"|"EUR"|"GBP"|...) and notes. Returns the stored client object including the generated id (UUID), an empty payment_history (populated as invoices are paid), and timestamps. Safe to call repeatedly: if a client with the same email already exists, the existing record is returned unchanged.

Inputs: name (required), email (required), city, notes, +6 more.

invoice_createCreate InvoiceA
Idempotent

Create a new invoice for an existing client. Required: client_id (UUID) and line_items (non-empty array of {description, quantity, unit_price, tax_rate?, discount_percent?} — tax and discount are per-line). Optional: currency (defaults to the client's default_currency then USD), issue_date (YYYY-MM-DD or full ISO, defaults to today), due_date (same format, defaults to issue_date + 30 days), notes, and terms. Auto-calculates subtotal, discount_total, tax_total, and total; generates a sequential invoice_number in format INV-YYYY-NNNN; sets status="draft". Returns the full invoice object ready for invoice_send.

Inputs: client_id (required), line_items (required), notes, terms, +3 more.

invoice_demo_seedSeed Demo DataA

Populate the store with a realistic demo dataset: 8 clients across 5 archetypes (on-time, late-payer, high-value, new, chronic-late) and 25-45 invoices spanning the last 6 months (paid, sent, and overdue). Every invoice has line items, tax, payment history, and reminder metadata. Use this to evaluate InvoiceFlow via MCP Inspector without real Stripe, SendGrid, or PayPal credentials — invoice_list, cashflow_report, invoice_risk, and payment_reconcile all return meaningful results against the returned ids. Safe to call multiple times; each call appends a fresh batch with unique UUIDs. Returns counts plus sample_invoice_ids you can feed straight into invoice_risk or invoice_mark_paid.

Inputs: no named parameters.

invoice_listList InvoicesA
Read-onlyIdempotent

Search and filter invoices. Optional filters: status ("draft"|"sent"|"viewed"|"paid"|"overdue"|"cancelled"|"refunded"), client_id, min_amount, max_amount, date_from/date_to (ISO dates), overdue_only (boolean). Pagination via limit (default 50, max 200) and offset. Returns {total, invoices[]} where each invoice includes full line_items and payment state. Use this to build dashboards or drive invoice_remind/invoice_risk workflows.

Inputs: limit, offset, status, to_date, +5 more.

invoice_mark_paidMark Invoice PaidA

Record a full or partial payment against an invoice. Updates amount_paid and amount_due; sets status="paid" only when the outstanding balance reaches zero. As a side effect, a fully-paid invoice updates the client payment_history (total_revenue, paid_invoices, avg_days_to_payment, late_payment_count) which invoice_risk then uses for future predictions. Returns a confirmation with the paid amount and remaining balance.

Inputs: invoice_id (required), amount, payment_method.

invoice_remindRecord Payment ReminderA

Record that a payment reminder has been issued for an unpaid invoice. Increments reminder_count, sets last_reminder_at, and advances draft → sent. Returns the generated reminder message (custom or default) so the caller can relay it through their preferred channel — this tool itself does not send email; use invoice_send for actual delivery. Safely refuses to remind on already-paid invoices.

Inputs: invoice_id (required), message.

invoice_riskAssess Payment RiskA
Read-onlyIdempotent

Predict late-payment risk for a specific invoice on a 0-100 scale. The model combines invoice amount (relative to client average), client payment history (avg_days_to_payment, late_payment_count), days remaining until due date, and prior reminder_count. Returns {risk_score (0-100), risk_level ("low"|"medium"|"high"|"critical"), factors (array of {factor, impact, detail}), recommended_action (string), next_reminder_date (ISO string or null)}. Use for prioritizing collection effort on high-value invoices.

Inputs: invoice_id (required).

invoice_sendSend InvoiceA

Generate the invoice PDF and deliver it to the client. Always generates the PDF and marks the invoice status="sent". Email delivery via SendGrid is attempted automatically when the SENDGRID_API_KEY environment variable is set; without it the PDF is still generated and the status still advances so the caller can handle delivery out-of-band. Returns a confirmation message with the PDF size.

Inputs: invoice_id (required), message.

payment_reconcileReconcile PaymentA

Match an incoming external payment (e.g. Stripe webhook, PayPal IPN, bank transfer) to an open invoice. Matching rule: the payer_email must equal the invoice client_email (case-insensitive) AND the payment_amount must equal the invoice amount_due within one cent. On match the invoice is marked paid, amount_paid/amount_due are updated, and client payment_history is recomputed exactly like invoice_mark_paid. Returns a reconciliation message on match or a "no match" message otherwise (no error). If multiple invoices match, the first one is reconciled.

Inputs: payer_email (required), payment_amount (required), reference, payment_method.

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    A4.1/5.0

    Scored across 10 tools

    Disambiguation5/5

    Each tool has a distinct purpose: portfolio summary, client management, invoice creation, demo seeding, invoice listing, payment recording, reminder tracking, risk prediction, PDF generation/delivery, and external payment reconciliation. No functional overlap exists.

    Naming Consistency3/5

    Most tools follow a noun_verb pattern (e.g., invoice_create, invoice_list), but invoice_risk and invoice_demo_seed deviate (noun_noun and noun_noun_verb), and cashflow_report could be interpreted as compound noun. Inconsistent imperative style.

    Tool Count5/5

    10 tools is well-scoped for an invoicing system, covering core workflows (client, invoice, payment, report, risk) without unnecessary bloat.

    Completeness3/5

    Missing client listing/deletion and invoice update/deletion; lacks refund handling. Demo seeding and risk tools add value, but CRUD gaps may cause agent failures in some workflows.

    Maintenance

    ActivityNo data
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      B
      quality
      B
      maintenance
      Turn Claude, Cursor, and your AI agents into an autonomous CFO. Manage invoicing, expenses, real-time bank reconciliation, cash flow, and tax compliance in plain language — backed by Frihet ERP.
      100
      505 npm
      13
      MIT
    • F
      license
      Not graded
      quality
      D
      maintenance
      Enables MCP clients to search and inspect an invoice ledger, generate VAT summaries, run OCR on local documents, and use reusable prompts for chasing overdue invoices and reconciling entries.
      2
      -
    • 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