invoiceflow-mcp
InvoiceFlow MCP is an AI-powered invoice automation server that handles the full invoicing lifecycle — from client management and PDF creation to risk prediction, payment reconciliation, and cash flow reporting.
client_manage: Create or update clients with name, email, phone, address, tax ID, and company info. Required before creating invoices.invoice_create: Generate invoices with line items (description, quantity, unit price, tax rate, discount), auto-calculated totals, sequential invoice numbers (INV-YYYY-NNNN), and multi-currency support (USD, EUR, GBP, CAD, AUD, JPY, CHF, TRY, BRL, INR).invoice_list: Filter invoices by status (draft, sent, viewed, paid, overdue, cancelled, refunded), client, amount range, date range, or overdue status, with pagination.invoice_send: Generate a PDF and deliver it via SendGrid email (requiresSENDGRID_API_KEY); updates status to "sent".invoice_mark_paid: Record full or partial payments with a specified method (Stripe, PayPal, bank transfer, cash, check, crypto, etc.) and auto-update client payment history.invoice_remind: Send payment reminders with optional custom messages; tracks reminder count and timestamp.invoice_risk: Score late-payment risk (0–100) using four factors — invoice amount (20%), client history (35%), due date proximity (30%), reminder history (15%) — with recommended actions.cashflow_report: Portfolio-wide summary including total invoiced, collected, outstanding, overdue, collection rate, average days to payment, 30-day projection, and per-client breakdown.payment_reconcile: Match incoming payments to invoices by amount and payer email; auto-marks matched invoices as paid.
Predefined resources are also available: invoices://pending (unpaid invoices), invoices://overdue (overdue invoices), invoices://stats (monthly cash flow summary), and clients://list (all clients with payment history).
Provides automated payment reconciliation by matching incoming PayPal transactions to invoices using amount and payer email, marking matched invoices as paid.
Enables email delivery of professional PDF invoices and automated payment reminders through SendGrid's email service.
Provides automated payment reconciliation by matching incoming Stripe transactions to invoices using amount and payer email, marking matched invoices as paid.
InvoiceFlow MCP
AI-powered invoice automation for the Model Context Protocol
InvoiceFlow creates professional PDF invoices, predicts late payment risk using AI, auto-sends reminders, matches incoming payments to invoices, and tracks your cash flow -- all through the MCP protocol.
Features
Professional PDF invoices with line items, tax, discounts, multi-currency (10 currencies)
AI risk prediction (0-100) based on invoice amount, client history, due date, reminder history
Smart reminders with escalation based on risk level
Payment reconciliation matching incoming payments to invoices by amount + payer email (platform-agnostic — works with manually-entered or webhook-provided payment data)
Cash flow reporting with collection rate, projected income, client breakdown
Client management with automatic payment history tracking
Sequential invoice numbers (INV-2026-0001, INV-2026-0002, ...)
10 MCP tools + 4 MCP resources covering the full invoicing lifecycle
Quick Start
Install from MCPize Marketplace
Search for InvoiceFlow MCP on mcpize.com
Click Install and select your subscription tier
Tools and resources are automatically available in any MCP-compatible client
Build from Source
git clone https://github.com/enzoemir1/invoiceflow-mcp.git
cd invoiceflow-mcp
npm ci
npm run buildAdd to your MCP client config:
{
"mcpServers": {
"invoiceflow": {
"command": "node",
"args": ["path/to/invoiceflow-mcp/dist/index.js"]
}
}
}Tools
client_manage
Create a new client. Required before creating invoices.
invoice_create
Create an invoice with line items. Auto-calculates subtotal, tax, discounts, and total. Generates sequential invoice numbers (INV-YYYY-NNNN).
invoice_send
Send an invoice PDF via email (requires SENDGRID_API_KEY). Updates status to "sent".
invoice_list
Filter invoices by status, client, amount range, date range, or overdue status. Supports pagination.
invoice_mark_paid
Mark an invoice as paid (full or partial). Updates client payment history automatically.
invoice_remind
Send a payment reminder. Increments reminder count. Supports custom messages.
invoice_risk
AI-powered late payment risk prediction (0-100). Returns risk level, factor breakdown, recommended action, next reminder date.
cashflow_report
Generate cash flow summary: total invoiced, collected, outstanding, overdue, collection rate, 30-day projection.
payment_reconcile
Match incoming payment to invoice by amount and payer email. Auto-marks as paid.
Resources
Resource | Description |
| All unpaid invoices |
| Invoices past due date |
| Monthly cash flow summary |
| All clients with payment history |
Risk Prediction Engine
Scores invoices 0-100 using 4 weighted factors:
Factor | Weight | What It Measures |
Invoice Amount | 20% | Higher amounts = higher risk |
Client History | 35% | Pay rate, late payments, avg days |
Due Date | 30% | Days until/past due |
Reminders | 15% | Reminders already sent |
Risk Levels: Low (0-30), Medium (31-60), High (61-100)
Configuration
Copy .env.example to .env and set the variables you need:
cp .env.example .envVariable | Required | Description |
| For email sending | Send invoices and reminders via SendGrid |
SendGrid is optional. InvoiceFlow works fully offline for invoice creation, risk scoring, cash flow reporting, and reconciliation. Add SendGrid when you want outbound email delivery.
Roadmap: Stripe & PayPal live sync
The payment_reconcile tool currently matches amounts you provide (from a CSV, a webhook, or manual entry) against stored invoices. Direct Stripe and PayPal API integration with webhook listeners is planned for v2.0 — see issues for progress.
Usage Examples
Create a client and invoice
> 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.00Assess payment risk
> 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.Generate cash flow report
> 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.00Supported Currencies
USD, EUR, GBP, CAD, AUD, JPY, CHF, TRY, BRL, INR
Pricing
Tier | Price | Invoices/month | Features |
Free | $0 | 5 | Basic PDF invoices |
Pro | $12/mo | 100 | AI risk scoring, smart reminders, reconciliation |
Business | $29/mo | 500 | Multi-currency, cash flow reporting, priority support |
Available on MCPize Marketplace.
Development
npm run dev # Hot reload
npm run build # Production build
npm test # Run tests
npm run inspect # MCP InspectorTesting
Tests cover the core business logic:
Storage — CRUD operations, filtering, sequential invoice numbers
Risk Model — AI scoring engine with 4 weighted factors, risk classification
Cash Flow — Report generation, collection rates, projections, client breakdown
npm test # Run all tests
npx vitest --watch # Watch modePro License
InvoiceFlow ships in Free mode — invoice_demo_seed, client_manage, invoice_create, invoice_list, invoice_mark_paid, and invoice_remind are open. The following tools require a Pro license:
invoice_send— generate PDF + SendGrid email deliveryinvoice_risk— late-payment risk predictionpayment_reconcile— match Stripe/PayPal/bank payments to invoicescashflow_report— portfolio-wide cash flow + 30-day projection
Buy a Pro License (€12, lifetime, 3 machines): https://automatiabcn.lemonsqueezy.com/buy/2d439c05-f463-4137-8883-950e8ee1112d
Or get the Indie MCP Stack Bundle (€69, all 4 servers).
export LEMONSQUEEZY_LICENSE_KEY=YOUR-KEY-HEREOr in your MCP client config:
{
"mcpServers": {
"invoiceflow-mcp": {
"command": "npx",
"args": ["-y", "invoiceflow-mcp-server"],
"env": { "LEMONSQUEEZY_LICENSE_KEY": "YOUR-KEY-HERE" }
}
}
}Validation is cached locally for 24 h — fully offline-capable after first run.
License
MIT License. See LICENSE for details.
Built by Automatia BCN.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/enzoemir1/invoiceflow-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server