# billing docs [Health: Active]

**Category:** 💰 Finance & Fintech  
**Repository:** https://github.com/theluckystrike/mcp-billing-docs  
**GitHub Stars:** 0  
**npm Downloads (last month):** 352  
**Views:** 1  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/billing-docs

## Description
Credit notes against your invoices and purchase orders to your suppliers, on the invoice engine.

## Tools
Capabilities this server exposes over MCP:

- **credit_note_create** — Credit one invoice: the whole invoice, a GROSS amount_minor split over its VAT rates, or named lines. Amounts store negative, reusing the invoice's own rates. Free: 5 a month. Send it with credit_note_text.
- **credit_note_list** — List credit notes newest first: id, invoice, client, basis, reason, currency and the NEGATIVE total, with the amount credited per currency. Filter by invoice, client or issue date range.
- **credit_note_get** — Return one credit note in full by id or exact client name: every negated line, VAT lines, totals, the reason, and the invoice number and date it reverses. Reads only. Use credit_note_list for the ids.
- **credit_note_pdf** — Call this tool to write one credit note as an A4 PDF and return the path: the invoice layout titled CREDIT NOTE, with the invoice it reverses and the reason at the foot. Pro; credit_note_text is free.
- **credit_note_text** — Turn a credit note into a plain-text summary to paste into an email: the negated line table, VAT lines, total, reason, and what now comes off the invoice. Free; credit_note_pdf writes the A4 document.
- **credit_note_delete** — Remove one credit note never posted to its invoice and never rendered, freeing that month's slot; the invoice becomes creditable again. One with a dependent is refused: issue a fresh note to reverse a sent one.
- **purchase_order_create** — Raise a purchase order to a supplier from items and return its PO number and totals. unit_price is in MAJOR units; currency, VAT and the buyer block come from the shared profile. Free: 5 documents a calendar month.
- **purchase_order_list** — List purchase orders newest first: id, supplier, order and expected delivery dates, status open, partially_received or received, currency, total and received date. Filter by status, supplier or date range.
- **purchase_order_get** — Return one purchase order in full by id or exact supplier name: buyer and supplier blocks, every line with unit price and VAT, totals, the delivery date, status and every receipt with its date and note.
- **purchase_order_pdf** — Call this tool to write one purchase order as an A4 PDF and return the path: the invoice layout titled PURCHASE ORDER, with the buyer, supplier and delivery date. Pro; purchase_order_text is free.
- **purchase_order_text** — Turn a purchase order into a plain-text order to paste into an email: the line table, VAT lines, total, and a line asking the supplier to deliver by the date and quote the PO number. Free on every tier.
- **purchase_order_receive** — Record that an order arrived. partial keeps it open and can be repeated, each receipt kept with its date and note; a full receipt closes it. An order already received, or a date before the order date, is refused.
- **purchase_order_delete** — Remove one purchase order with nothing received and never rendered, freeing that month's slot. One with a receipt is refused, naming it. The PO number is never reissued. purchase_order_receive logs arrivals.
- **billing_docs_report** — Over a date range: what was credited back per currency and against how many invoices, what is still on order per currency, and every open order past its delivery date with days late. Pro; the list tools are free.
- **license_status** — Report this server's licence state: product, tier free or pro, licence id, expiry, the key source and the upgrade URL. No arguments, no network. Explains a free-tier refusal; license_activate installs a key.
- **license_activate** — Activate a Pro key (MCPL1.xxx.yyy) from checkout: verified offline against a built-in public key, saved to your config file. A wrong, malformed or expired key is refused, unsaved. license_status reads it back.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

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

## Documentation

## What billing docs does

billing docs handles two related document workflows: credit notes for invoices and purchase orders for suppliers. Credit notes can reverse a complete invoice, a gross amount, or selected lines and quantities. Purchase orders contain line items, VAT, currency, and an expected delivery date. The server also tracks receipts against orders and exposes their status as open, partially received, or received.

Credit notes and invoices use the same money, VAT, currency, and formatting implementation through `@theluckystrike/mcp-invoice/lib`. When a credit is calculated by amount, the server distributes it across the VAT rates used on the invoice rather than applying one blended rate. It also prevents a credit note from exceeding the amount charged by the invoice.

## How it works

Run the server as a local stdio process or use the hosted streamable-HTTP endpoint at `https://mcp.zovo.one/mcp/billing-docs`. Hosted connections require a token supplied as a Bearer authorization header, or included in the `/t/<token>` URL form when the client cannot set headers. A token can be obtained from the connect or token endpoint.

The local server stores data under `${XDG_DATA_HOME:-~/.local/share}/mcp-servers/billing-docs/`. It does not require an account, API key, or network connection for local operation; license keys are checked offline. When used with `mcp-invoice`, it reads that server's invoices and clients, while both servers share the business profile's name, address, VAT ID, and default currency.

## Setup and configuration

For a hosted setup, point an MCP client at the streamable-HTTP URL and provide the token. Claude Desktop users can install the `billing-docs.mcpb` bundle from the latest release and open it directly.

To build from source, clone the repository, run `npm install && npm run build`, and configure the client to launch `node` with the absolute path to `dist/index.js`. The package is not available through npm yet, so an `npx -y @theluckystrike/mcp-billing-docs` installation is not a working setup path. Run `mcp-invoice` alongside this server when credit notes need access to its invoice and client records.

## Tools and capabilities

- Create, list, inspect, render, export, and delete credit notes.
- Credit an entire invoice, a gross amount, or named invoice lines with quantities.
- Filter credit-note listings by invoice, client, or date.
- Create, list, inspect, render, export, receive, and delete purchase orders.
- Record full or partial order receipts and inspect receipt details.
- Produce plain-text credit notes and purchase orders for email or supplier communication.
- Generate A4 credit-note and purchase-order PDFs with Pro access.
- Produce a Pro report covering credited totals, ordered totals, and overdue deliveries.
- Read the `billing-docs://open-orders` resource and use the `chase_deliveries` prompt.
- Check or activate a license with the license tools.

## Limitations and notes

The free tier allows five stored documents per calendar month across credit notes and purchase orders. Deleting an eligible document returns that slot. The text tools remain available without a paid license, while PDF generation and `billing_docs_report` require Pro. A credit note can be deleted only before it is posted to its invoice or rendered; a purchase order can be deleted only when it has no receipts and has not been rendered. Duplicate sends are rejected using the existing document ID.

The local mirror is self-contained and vendors its `@theluckystrike/*` dependencies, but npm publication is pending. PDF tools are not part of the free tier.

_Full upstream README: https://allmcps.com/mcp/billing-docs/readme_

