
Invoices Invoicing
io.github.theluckystrike由 GitHub 账号 theluckystrike 发布v0.22.5更新于 Nov 4, 2026
Invoices and invoicing from your AI chat: PDF generation, numbering, VAT, overdue reports.
概览
本地 MCP 服务器,让助手创建带税行的编号发票、生成 A4 PDF、记录收款并生成逾期报告。
- 可以做什么
- 设置开票方业务资料,并管理客户(新增、列出、删除未被引用的客户)
- 按明细行或按工时与小时费率创建发票,自动顺序编号,支持折扣和按税率分组的税行
- 列出、查询发票,并登记全额或部分收款
- 渲染 A4 PDF 并返回文件路径
- 生成未付与逾期发票报告,含逾期天数和各币种未结金额
- 以资源形式提供未结发票,并提供月度开票提示词
- 适用场景
- 适合希望直接在对话中起草、编号并导出 PDF 发票、又不想订阅开票 SaaS 的自由职业者和小型业务,也便于查看哪些发票未付或已逾期。数据保存在本机 JSON 文件中,适合希望把账务记录留在自己电脑上的人。
- 运行要求
- 以仅限桌面的本地进程运行;说明中称 npm 包尚未发布,需使用 .mcpb 安装包或克隆源码构建。源码构建需要 Node.js 18 或更高版本。可选环境变量 MCP_LICENSE_KEY 用于启用 Pro 功能;无需账号,也不需要联网。
安装
在 SourceWeft 中
- 打开 控制台中的 Invoices Invoicing,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
Generate & send invoices from Claude with a free MCP server
Listed on the AI Product Index - live remote endpoint at mcp.zovo.one/s/invoice, free tier, no signup.
Featured on Awesome MCP Servers - directory listing | live hosted endpoint, free tier, no signup.
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.
In the official MCP Registry (io.github.theluckystrike/invoice-pdf-billing-generator).
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+build
is 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_config.json):
Claude Code:
(.cursor/mcp.json):
The npx form above starts working the moment the package is published. Until then, use the .mcpb bundle above, or
build from source with exactly these three commands:
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
Resource: invoices://open returns every unpaid or partly paid invoice as JSON.
Prompt: monthly_invoicing reviews what is unpaid and what is overdue for a month, then drafts the next invoice.
What you can say
Worked example
From docs/USER_VALUE_R2.md, the exact request tested end to end and independently checked against the
arithmetic.
The arithmetic: 12 x 90 = 1080.00, plus 300.00 = 1380.00 subtotal; 23% of 1380.00 = 317.40; total 1697.40 EUR. Every amount on the PDF and in the text response carries its currency code, nothing is ever shown as a bare number.
Free vs Pro
Pro is a one-time $19, or $39 for every server in the collection, lifetime.
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. How many make one unit comes from an ISO 4217 table, not a guess: 2 for most currencies, 0 for JPY, KRW, VND, CLP, ISK and the rest of the zero-decimal list, 3 for BHD, IQD, JOD, KWD, LYD, OMR and TND, 4 for CLF and UYW. KWD 1.234 is 1234 minor units, not 123. The table is identical to the one in mcp-expense-tracker, because the two servers exchange amounts and a currency that is 3-decimal in one and 2-decimal in the other would rescale money by ten. HUF is 2 decimals: ISO 4217 gives it two minor digits even though it is usually quoted without them. 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/ subfolder
holding 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 two
invoices are created in the same second, since the counter read, increment and invoice write all happen
under 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 can
always be regenerated from the stored records with invoice_pdf.
If one of those JSON files is unreadable or not valid JSON, it is never treated as "empty". The file is
moved aside byte-for-byte as <name>.json.corrupt-<timestamp>, a <name>.json.corrupt marker is written,
and every tool returns data file is corrupt; moved to ...; nothing was written until you restore a good
copy and delete the marker. A truncated clients.json can no longer be silently replaced by an empty
client list.
Limits and honest caveats
- Free tier allows 3 invoices per calendar month; the counter resets on the 1st.
overdue_reportand everything else (clients, tax lines, discounts, payments, multi-currency) is unrestricted on free. - Clients are never metered: the client list is unlimited on free and on Pro.
client_addstill refuses a record identical to a stored one, andclient_deleteremoves an unused client, so a mistyped or duplicated record can always be undone without a licence key. A client any document references cannot be deleted. - 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 with a bare-name BILL TO block if you ignore the note. - This server skips email-sending, payment-link and accounting-software sync: it produces the PDF and 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 every line 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 config step. - 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. - Mixed currencies: an item may carry its own
currency. Every line on one invoice must agree with the invoice currency; a mix is refused and the message names the conversion call to make (expense_to_invoicewithtarget_currencyandfx_rates) rather than silently billing a EUR line under a USD heading. With nocurrencyon the invoice, a single agreed item currency becomes the invoice's. - No business profile yet: invoicing is never blocked by it.
invoice_createandinvoice_from_hoursissue the document with the placeholder issuer "Your business" and say so in one line; runbusiness_set {name, address, vat_id, iban}and render the PDF again to replace it. - PDF render fails or looks wrong:
invoice_pdfusespdfkit, a pure-JS renderer with no native dependency, 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 check
Settings -> 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, every sibling server behind one install, one config entry.
- Guide: Create an invoice PDF from a chat message with an MCP server
FAQ
Yes. Tax rate is per line item. The totals block prints one tax line per distinct rate, so a 23% line and a 0% reverse-charge line appear separately and the total adds up.
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_add
first, otherwise BILL TO shows only the name.
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.
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.
Amounts are integer minor units. Each line is rounded once, then lines are summed, so 12 h at 90 EUR plus 300 EUR with 23% VAT gives 1380.00 plus 317.40 = 1697.40 with no floating point residue.
Built by theluckystrike.
One business profile for the whole suite
Your identity is stored once, at ${XDG_DATA_HOME:-~/.local/share}/mcp-servers/profile/business.json,
and every server in the suite reads it: the invoice issuer, the docx letterhead, the recurring
issuer, expense-tracker's default VAT rate, time-tracker's and timezone's home zone, and the
resume and contract letterheads. Set it once with business_set (invoice or docx) - you never
repeat it anywhere else. An email address is only ever taken from that profile or from an explicit
argument; when none is stored, documents show [add: email] and the tool says so rather than
letting anyone improvise an address.
Frequently asked questions
Is there a free MCP server for invoices?
Yes. The invoice server at mcp.zovo.one is a free MCP server for invoices: create line-item invoices with tax and VAT lines from Claude or any MCP client, render a professional PDF, and track payment status. Three invoices per calendar month are free, no install required - you paste a hosted URL into your client.
How do I generate an invoice from Claude?
Connect the hosted endpoint https://mcp.zovo.one/mcp/invoice (copy the tokenized URL from mcp.zovo.one/mcp/connect), then say: 'Invoice Acme for 12 hours at 90 EUR with 23% VAT, due in 14 days.' Claude creates the numbered invoice and returns a PDF.
Use these docs as an MCP server
Any MCP client (Claude, Cursor, Windsurf, VS Code) can read this repository's documentation directly via GitMCP - no install:
- Docs MCP URL: https://gitmcp.io/theluckystrike/mcp-invoice
来源:servers/invoice/README.md,提交 f770e04
工具
0版本历史
2- v0.22.5最新Oct 14, 2026
- v0.21.0Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分