mcp-invoice
Say "make an invoice for Acme, 12 hours at 90 EUR, due in 14 days" and get a real PDF you can send. This MCP server stores your business profile and your clients, allocates a sequential invoice number that is never reused, computes the subtotal, any discount, one tax line per VAT rate and the total in integer minor units, and renders an A4 PDF with your issuer and payment details, a wrapping item table and a proper totals block. It also tracks payments and, on Pro, reports what is overdue and by how many days. Everything is stored in plain JSON files on your own machine; nothing is uploaded anywhere.

Create numbered invoices with tax lines and a real PDF from chat -- no invoicing SaaS required.
60-second install
npm publish for @theluckystrike/mcp-invoice is pending. Until then, the .mcpb one-click bundle or a clone+buildis the working path -- both are verified below.
One-click (.mcpb): download invoice.mcpb from the latest release and double-click it in Claude Desktop:https://github.com/theluckystrike/mcp-servers/releases/latest
Claude Desktop (claude_desktop_config.json):
{
"mcpServers": {
"invoice": {
"command": "npx",
"args": ["-y", "@theluckystrike/mcp-invoice"]
}
}
}
Claude Code:
claude mcp add invoice -- npx -y @theluckystrike/mcp-invoice
Cursor (.cursor/mcp.json):
{
"mcpServers": {
"invoice": {
"command": "npx",
"args": ["-y", "@theluckystrike/mcp-invoice"]
}
}
}
The npx form above starts working the moment the package is published. Until then, use the .mcpb bundle above, orbuild from source with exactly these three commands:
git clone https://github.com/theluckystrike/mcp-servers.git && cd mcp-servers
npm install
npm run build -w packages/mcp-license -w servers/invoice
Then point your client's command at node with one arg: the absolute path to servers/invoice/dist/index.js.
To run in Pro mode set MCP_LICENSE_KEY in the same config block, or call license_activate once with your key.
Tools
| Tool | What it does |
|---|---|
business_set |
Store the issuer profile: name, address, email, VAT id, IBAN, bank, logo, default currency, default tax rate, payment terms, invoice prefix |
client_add |
Add or update a client (name, address, email, VAT id) |
client_list |
List stored clients with their ids |
invoice_create |
Create an invoice from line items; allocates the next number, computes discount, tax per rate and total. If the client is created from a bare name the response says the BILL TO block has no address and how to add one |
invoice_from_hours |
Shortcut: bill one client for N hours at an hourly rate |
invoice_list |
List invoices, filtered by status, client and issue-date range |
invoice_get |
Full stored record for one invoice number |
invoice_mark_paid |
Record a payment in full or in part; reports the balance due |
invoice_pdf |
Render the A4 PDF and return the file path |
overdue_report |
Unpaid invoices past due, days overdue, outstanding totals per currency. Free |
license_status |
Show free or Pro mode |
license_activate |
Activate a Pro key (verified offline) |
Resource: invoices://open returns every unpaid or partly paid invoice as JSON.
What you can say
| You say | Tool |
|---|---|
| "Set up my business: Acme Consulting, EUR, 23% VAT, 14 day terms." | business_set |
| "Add a client: Beta Corp, their VAT id is..., email [email protected]." | client_add |
| "List my clients." | client_list |
| "Invoice Acme for 12 hours at 90 EUR plus 300 EUR setup, 23% VAT, PDF." | invoice_create + invoice_pdf |
| "Bill Beta Corp for 5 hours at 120 EUR." | invoice_from_hours |
| "Show me every unpaid invoice from August." | invoice_list |
| "Pull up invoice INV-2026-0007." | invoice_get |
| "Mark INV-2026-0007 as paid in full." | invoice_mark_paid |
| "Which invoices are unpaid and overdue?" | overdue_report |
| "Am I on the free plan or Pro?" | license_status |
Worked example
From docs/USER_VALUE_R2.md, the exact request tested end to end and independently checked against thearithmetic.
You: Invoice Acme for 12 hours of API work at 90 EUR plus a 300 EUR setup fee,
23% VAT, due in 14 days, and give me the PDF.
invoice_create {
client: "Acme", currency: "EUR", due_days: 14,
items: [
{ description: "API work", quantity: 12, unit_price: 90, tax_rate: 23 },
{ description: "Setup fee", quantity: 1, unit_price: 300, tax_rate: 23 }
]
}
-> INV-2026-0001, client "Acme" created with no address on file
invoice_pdf { number: "INV-2026-0001" }
-> /Users/you/.../invoice/pdf/INV-2026-0001.pdf
Assistant: Created INV-2026-0001 for Acme.
API work 12 h x EUR 90.00 = EUR 1080.00
Setup fee 1 x EUR 300.00 = EUR 300.00
Subtotal EUR 1380.00
Tax 23% on EUR 1380.00 EUR 317.40
Total EUR 1697.40
Note: Acme was created from a bare name with no address. Add one with
client_add before you send this. PDF: INV-2026-0001.pdf
The arithmetic: 12 x 90 = 1080.00, plus 300.00 = 1380.00 subtotal; 23% of 1380.00 = 317.40; total1697.40 EUR. Every amount on the PDF and in the text response carries its currency code -- nothing isever shown as a bare number.
Free vs Pro
| Free | Pro | |
|---|---|---|
| Invoices | 3 per calendar month | Unlimited |
overdue_report |
Yes, unlimited | Yes, unlimited |
| Carries the line "Generated with mcp-invoice by theluckystrike" | No branding | |
| Logo on the PDF | No | Yes |
| Custom invoice prefix | No, fixed INV |
Yes |
| Clients, tax lines, discounts, payments, multi-currency | Yes | Yes |
Pro is a one-time $19, or $39 for every server in the collection, lifetime.
Get Pro: https://mcp.zovo.one/buy/invoice
Numbers and money
Invoice numbers are PREFIX-YYYY-NNNN. The counter is persisted per prefix and year and is written before the invoice is stored, so a crash burns a number rather than reusing one; existing numbers are also scanned so a restored data file can never hand back a number that is already on a sent document.
Every money value printed anywhere - line unit prices, line amounts, subtotal, discount, each tax line, the total and the balance due, in the text response and on the PDF - carries its currency code, for example EUR 1080.00. No amount is ever shown as a bare number.
All amounts are held as integer minor units (cents, or whole yen for zero-decimal currencies such as JPY). Rounding is per line, then summed: each line's gross is rounded first, an invoice-level discount_percent is applied and rounded per line, tax is computed and rounded per line and then grouped into one line per rate, and the totals are plain integer sums of those already-rounded values. A printed total can therefore never disagree with the printed lines. Dates are ISO YYYY-MM-DD.
How it stores data
Business profile, clients, invoices and the number counter live under${XDG_DATA_HOME:-~/.local/share}/mcp-servers/invoice/ as separate JSON files, plus a pdf/ subfolderholding the rendered PDFs. Every mutating call (business_set, client_add, invoice_create,invoice_from_hours, invoice_mark_paid) runs inside locked(), which takes an advisory lock file at.../invoice/.lock for the duration of the call -- this is what makes number allocation safe when twoinvoices are created in the same second, since the counter read, increment and invoice write all happenunder one lock. Saves go to a temporary file and are renamed into place. To back up your invoicing data,copy the whole invoice/ data directory, including pdf/ if you want the rendered files too -- they canalways be regenerated from the stored records with invoice_pdf.
Limits and honest caveats
- Free tier allows 3 invoices per calendar month; the counter resets on the 1st.
overdue_reportandeverything else (clients, tax lines, discounts, payments, multi-currency) is unrestricted on free. - Free PDFs carry a small "Generated with mcp-invoice" footer line; Pro removes it and adds a logo.
- Creating an invoice for a client name the server has never seen creates that client with no address --the response says so and names
client_addas the fix, but nothing blocks you from sending a PDF witha bare-name BILL TO block if you ignore the note. - There is no email-sending, payment-link or accounting-software sync in this server: it produces the PDFand the record; getting it to the client is up to you.
- Currency conversion is not performed anywhere -- an invoice's currency is fixed at creation and everyline must use amounts already in that currency.
Troubleshooting
npxhangs or fails to find the package: npm publish for this package is pending. Use the.mcpbbundle or the clone-and-build path above until it lands.- Using the
.mcpbbundle: it installs into Claude Desktop directly; there is no separate configstep. - Using the clone path: the server binary is
servers/invoice/dist/index.jsafternpm run build.Point your client'scommandatnodewith that absolute path as the only argument. - Node version: requires Node >= 18. Check with
node -v. - PDF render fails or looks wrong:
invoice_pdfusespdfkit, a pure-JS renderer with no nativedependency, so failures are almost always a missing or malformedbusiness_setfield (checkinvoice_getfirst) rather than an environment issue. - "3 invoices this month" hit unexpectedly: the free cap is per calendar month across all clients,not per client.
invoice_listshows what already counted against it. - Nothing shows up / silent failures: logs go to stderr only, never stdout. In Claude Desktop checkSettings -> Developer -> the server's log file; in Claude Code check the terminal or
--mcp-debug.
Privacy
All data stays local, in ${XDG_DATA_HOME:-~/.local/share}/mcp-servers/invoice/. There are no network calls: license keys are verified offline with a public key compiled into the package, and PDFs are rendered on your machine.
Pairs with
- mcp-time-tracker --
invoice_summaryoutput there maps directly ontoinvoice_createline items here. - mcp-spreadsheet -- pull line items or client lists out of a sheet before invoicing.
- mcp-price-tracker -- invoice a client for something you tracked the price of.
- office-suite -- all four servers behind one install, one config entry.
- Guide: Create an invoice PDF from a chat message with an MCP server
FAQ
Can I put several VAT rates on one invoice?Yes. Tax rate is per line item. The totals block prints one tax line per distinct rate, so a 23% lineand a 0% reverse-charge line appear separately and the total adds up.
Is the PDF good enough to send to a client's accounts department?It is a single page A4 with issuer and client blocks, dates, a line table with per-line tax, subtotal,tax lines, total, and payment details with IBAN and reference. Add the client's address with client_addfirst, otherwise BILL TO shows only the name.
What is the invoice number format and can I change it?INV-YYYY-NNNN, allocated in sequence and never reused. The prefix is configurable with business_set;a prefix other than INV is a Pro feature.
Does anything get uploaded when the PDF is rendered?No. Rendering is local with pdfkit, and the invoice records live in~/.local/share/mcp-servers/invoice/. The server makes no network calls at all.
How exact is the money arithmetic?Amounts are integer minor units. Each line is rounded once, then lines are summed, so 12 h at 90 EURplus 300 EUR with 23% VAT gives 1380.00 plus 317.40 = 1697.40 with no floating point residue.
Built by theluckystrike.