Freelance Invoice

io.github.theluckystrike由 GitHub 帳號 theluckystrike 發布v0.21.1更新於 Oct 25, 2026

Create PDF invoices from your AI chat: clients, numbering, VAT, overdue reports. All data is local.

發布方自己的服務:freelance.link

已驗證Streamable HTTP可網頁執行效率與工作流金融

概覽

AI 產生的概覽

面向自由工作者的開票伺服器,讓助理儲存業務資料與客戶、建立含營業稅的編號發票、登記收款並產生 A4 PDF。

可以做什麼
設定並讀取一份共用的業務資料(開立者資訊、幣別、稅率、付款條件、編號前綴)。新增、列出與刪除客戶,拒絕重複記錄以及仍被單據引用的客戶。依明細項目或依小時費率建立發票,支援逐行稅率、折扣與依序且不重複使用的編號。列出並查詢發票,登記全額或部分收款並顯示剩餘餘額。將已儲存的發票輸出為 A4 PDF 並回傳檔案路徑。報告已逾期未付的發票,並查看或啟用 Pro 授權。
適用情境
適合想在聊天用戶端中直接草擬、編號並匯出發票,並查看哪些發票已逾期的自由工作者與小型業務,不必另外使用開票 SaaS。它只產生 PDF 與記錄,寄送與會計同步需自行處理。
執行需求
可使用託管的遠端端點,並在 Authorization 標頭提供 bearer 權杖;或本機安裝:Claude Desktop 使用 .mcpb 安裝包,或以 Node.js 18 以上執行複製建置方式(說明稱 npm 套件尚未發布)。Pro 授權金鑰可透過 MCP_LICENSE_KEY 設定,或以 license_activate 啟用。
安裝前請注意
發票、客戶與收款會寫入使用者資料目錄下的本機 JSON 檔案,需自行備份。免費版每個日曆月限 3 張發票,免費版 PDF 帶有品牌頁尾。Pro 為一次性付費購買。伺服器不負責寄送發票,也不同步會計軟體;僅以名稱建立的客戶在 PDF 上沒有地址。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Freelance Invoice,將其新增到工作區。
  2. 連接 Authorization token 憑證。它們會被私密儲存,絕不會在公開頁面上展示。
  3. 為需要使用其工具的對話啟用該服務。

Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。

交給代理程式安裝

把這段提示詞貼上到 Claude Code、Codex、Cursor 等代理程式,或 SourceWeft 對話中。代理程式會讀取該伺服器的安裝指南,先向你展示發布者、端點和登入方式,經你同意後再把它新增到你的客戶端。金鑰不會寫進任何命令。

閱讀 https://sourceweft.com/mcp/io.github.theluckystrike%2Ffreelance-invoice/install.md,並按其中說明把這個 MCP 伺服器接入我的客戶端。修改任何設定之前,先告訴我它的發布者、端點和登入方式,等我確認。不要把 API 金鑰寫進命令或我會提交的檔案;問我金鑰應從哪裡取得。

檢視代理程式所依據的安裝指南

其他 MCP 客戶端

把它新增到你客戶端的 mcpServers 設定中。

{
  "mcpServers": {
    "freelance-invoice": {
      "type": "http",
      "url": "https://mcp.zovo.one/mcp/freelance-invoice",
      "headers": {
        "Authorization": "Bearer <YOUR_TOKEN>"
      }
    }
  }
}

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

[invoice demo]

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):

json
{  "mcpServers": {    "invoice": {      "command": "npx",      "args": ["-y", "@theluckystrike/mcp-invoice"]    }  }}

Claude Code:

sh
claude mcp add invoice -- npx -y @theluckystrike/mcp-invoice

(.cursor/mcp.json):

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, or build from source with exactly these three commands:

sh
git clone https://github.com/theluckystrike/mcp-servers.git && cd mcp-serversnpm installnpm 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

ToolWhat it does
business_setStore the issuer profile: name, address, email, VAT id, IBAN, bank, logo, default currency, default tax rate, payment terms, invoice prefix. tax_rate, vat_rate and vat are accepted as aliases for default_tax_rate, and any unrecognised field is reported back rather than dropped
client_addAdd or update a client (name, address, email, VAT id). A record identical to one already stored is refused, naming the id that holds it, so the same client cannot be stored twice
client_deleteDelete a stored client nothing uses. Refused, with the document named, while an invoice, quote, credit note, purchase order, deposit, statement or recurring schedule still references it
client_listList stored clients with their ids
invoice_createCreate an invoice from line items; allocates the next number, computes discount, tax per rate and total. Items may carry a per-line currency, and a mix is refused rather than billed as one currency. 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_hoursShortcut: bill one client for N hours at an hourly rate. target_currency + fx_rates issue the invoice in another currency (you supply the rate); entry_ids come back with the new invoice number so the tracked hours can be closed with the time tracker's entry_mark_billed
invoice_listList invoices, filtered by status, client and issue-date range
invoice_getFull stored record for one invoice number
invoice_mark_paidRecord a payment in full or in part; reports the balance due
invoice_pdfRender the A4 PDF and return the file path. The response calls the file a PDF only when it is one
overdue_reportUnpaid invoices past due, days overdue, outstanding totals per currency. Free
license_statusShow free or Pro mode
license_activateActivate a Pro key (verified offline)

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

You sayTool
"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
"Remove that duplicate Beta Corp client."client_delete
"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 the arithmetic.

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.40Note: Acme was created from a bare name with no address. Add one withclient_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; 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

FreePro
Invoices3 per calendar monthUnlimited
overdue_reportYes, unlimitedYes, unlimited
PDFCarries the line "Generated with mcp-invoice by theluckystrike"No branding
Logo on the PDFNoYes
Custom invoice prefixNo, fixed INVYes
Clients, tax lines, discounts, payments, multi-currencyYesYes

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_report and 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_add still refuses a record identical to a stored one, and client_delete removes 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_add as 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

  • npx hangs or fails to find the package: npm publish for this package is pending. Use the .mcpb bundle or the clone-and-build path above until it lands.
  • Using the .mcpb bundle: it installs into Claude Desktop directly; there is no separate config step.
  • Using the clone path: the server binary is servers/invoice/dist/index.js after npm run build. Point your client's command at node with 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_invoice with target_currency and fx_rates) rather than silently billing a EUR line under a USD heading. With no currency on the invoice, a single agreed item currency becomes the invoice's.
  • No business profile yet: invoicing is never blocked by it. invoice_create and invoice_from_hours issue the document with the placeholder issuer "Your business" and say so in one line; run business_set {name, address, vat_id, iban} and render the PDF again to replace it.
  • PDF render fails or looks wrong: invoice_pdf uses pdfkit, a pure-JS renderer with no native dependency, so failures are almost always a missing or malformed business_set field (check invoice_get first) 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_list shows 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

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:

來源:servers/invoice/README.md,提交 6535b33

工具

13

business_set

Set your business details

The ONE business profile for the whole suite: name, address, VAT id, bank details and defaults (currency, tax rate, terms, prefix, timezone). Saved to the shared profile every other server reads. Call it once, first.

輸入參數vatbankibanname必填emailphonevat_idaddresstax_ratetimezonevat_ratelogo_path另有 4 個

client_add

Add a client

Store a client so invoice_create can refer to them by name. Re-adding the same name updates the stored address, email and VAT id; a record identical to a stored one is refused, naming the id that already holds it.

輸入參數name必填emailvat_idaddress

client_delete

Delete a client

Delete one stored client that nothing refers to. A client named on any invoice, quote, credit note, purchase order, deposit, statement or schedule is refused with those documents listed.

輸入參數client必填

client_list

List clients

List every stored client with id, address, email and VAT id. No arguments, and it writes nothing. With none stored it says so: invoice_create also creates a client from the name you pass.

無需輸入參數。

invoice_create

Create an invoice

Create an invoice from line items and return the record with its next, never-reused number. unit_price is in MAJOR units; lines are rounded then summed. One currency per invoice. Free: 3 a month.

輸入參數items必填notesclient必填currencydue_daysissue_datediscount_percent

invoice_from_hours

Invoice from hours

Shortcut for the common case: bill one client for N hours at an hourly rate. Creates and returns a single-line invoice, converting the rate into target_currency when you supply fx_rates, and echoing back any entry_ids.

輸入參數rate必填hours必填notesclient必填currencydue_daysfx_ratestax_rateentry_idsissue_datedescriptionround_total另有 2 個

invoice_list

List invoices

List invoices by number: client, dates, currency, subtotal, discount, tax lines, total, status, paid, credited and the balance still due after any credit note. Filter by status, client and date range.

輸入參數tofromclientstatus

invoice_get

Get one invoice

Return the full stored record for one invoice number, including every line, tax breakdown, and the balance still open after any credit note issued against it (see credited_minor).

輸入參數number必填

invoice_mark_paid

Mark an invoice paid

Record a payment on one invoice. amount is in MAJOR units and ADDS to what is paid, never replaces it; omit it to settle the rest. An overpayment is refused, naming the open balance.

輸入參數amountmethodnumber必填paid_datereference

invoice_pdf

Render invoice PDF

Call this tool to write one stored invoice as an A4 PDF and return the path: issuer, BILL TO, dates, items, taxes and totals. Free stamps a credit line and no logo; Pro renders it unbranded with your logo.

輸入參數number必填out_path

overdue_report

Overdue report

List every invoice not paid in full whose due date has passed, worst first, with days overdue and the amount, then a total per currency. Free. Use invoice_list for everything still open.

輸入參數as_of

license_status

License status

Report this endpoint's licence state for your token as JSON: the product, the tier free or pro, why it is not Pro, and the checkout URL. Call it to explain a free-tier refusal. No arguments, nothing changes.

無需輸入參數。

license_activate

Activate license

Turn Pro on for this connection with key, an MCPL1.<payload>.<signature> issued at checkout for this server or the bundle. Data under your token stays; a wrong or expired key changes nothing. license_status confirms it.

輸入參數key必填

版本歷史

2
  1. v0.21.1最新Sep 23, 2026
  2. v0.21.0Sep 16, 2026

評分

已滿足適用檢查項的 100%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通必需25 分
  • 已宣告認證方式必需10 分
  • 已列出工具必需15 分
  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分

其他 Freelance 整合