Unofficial MCP server exposing Fakturownia (InvoiceOcean) invoices, clients and products as tools
Project description
fakturownia-mcp
Unofficial MCP (Model Context Protocol) server exposing a Fakturownia (InvoiceOcean) account as tools for Claude and other MCP clients: invoices (list/search, create, update, status changes, PDF download), clients and products.
This is a community-maintained project. It is not affiliated with, endorsed by, or sponsored by Fakturownia sp. z o.o. or InvoiceOcean. "Fakturownia" and "InvoiceOcean" are trademarks of their respective owner, used here only to indicate compatibility. InvoiceOcean users: pass your full
*.invoiceocean.comdomain asFAKTUROWNIA_DOMAIN, or install theinvoiceocean-mcpalias.
Built on fakturownia-client —
the API token is sent only in the Authorization: Bearer header, never in URLs.
All tools are async, and every write goes through an approval gate.
There is deliberately no invoice-delete tool (destructive on financial records);
use change_invoice_status instead.
Compatible platforms
Fakturownia runs the same API under several regional brands — this server works with all of them; just pass your full account domain:
| Platform | Region | Example FAKTUROWNIA_DOMAIN |
|---|---|---|
| fakturownia.pl | Poland | mycompany or mycompany.fakturownia.pl |
| invoiceocean.com | Global / USA | mycompany.invoiceocean.com |
| invoiceocean.de | Germany | mycompany.invoiceocean.de |
| vosfactures.fr | France | mycompany.vosfactures.fr |
| bitfactura.es | Spain | mycompany.bitfactura.es |
A bare account name defaults to .fakturownia.pl; any value containing a
dot is used as-is.
Configuration
Two required environment variables (from your account settings, Integration
section — in Fakturownia: Ustawienia → Ustawienia konta → Integracja).
Every variable also accepts the INVOICEOCEAN_ prefix (e.g.
INVOICEOCEAN_DOMAIN); the FAKTUROWNIA_ form wins when both are set:
| Variable | Required | Meaning |
|---|---|---|
FAKTUROWNIA_DOMAIN |
yes | Account subdomain: mycompany, mycompany.fakturownia.pl and the full URL all work |
FAKTUROWNIA_API_TOKEN |
yes | API authorization code (kept out of URLs and logs) |
FAKTUROWNIA_SKIP_CONFIRM |
no | 1 disables the write-approval dialog (for automation or clients without elicitation) |
FAKTUROWNIA_TIMEOUT |
no | HTTP timeout in seconds (default 30) |
FAKTUROWNIA_DOWNLOAD_DIR |
no | Directory PDF downloads are confined to (default ~/Downloads); paths outside it are rejected and existing files are never overwritten |
Setup
Claude Code
claude mcp add fakturownia \
-e FAKTUROWNIA_DOMAIN=mycompany \
-e FAKTUROWNIA_API_TOKEN=... \
-- uvx fakturownia-mcp
Claude Desktop (claude_desktop_config.json)
{
"mcpServers": {
"fakturownia": {
"command": "/Users/you/.local/bin/uvx",
"args": ["fakturownia-mcp"],
"env": {
"FAKTUROWNIA_DOMAIN": "mycompany",
"FAKTUROWNIA_API_TOKEN": "..."
}
}
}
}
Any other MCP client / no uv
The server speaks MCP over stdio. Any of these commands starts it:
uvx fakturownia-mcp # zero-install, recommended
pip install fakturownia-mcp && fakturownia-mcp
python -m fakturownia_mcp # after pip install
MCP Inspector (interactive testing)
npx @modelcontextprotocol/inspector \
-e FAKTUROWNIA_DOMAIN=... -e FAKTUROWNIA_API_TOKEN=... \
uvx fakturownia-mcp
Tools
| Tool | Description |
|---|---|
list_invoices |
Search by period, date range, client, number, kind; income=false lists cost/expense invoices; paginated summaries + has_more |
get_invoice |
Full invoice with positions |
create_invoice 🔒 |
Issue an invoice: buyer by client_id or buyer_* fields, typed positions, any document kind (vat, proforma, …) |
update_invoice 🔒 |
Partial update, e.g. {"buyer_email": "x@y.pl"} or {"approval_status": "verified"} |
change_invoice_status 🔒 |
issued / sent / paid / partial / rejected |
download_invoice_pdf |
Saves the PDF to disk (default ~/Downloads/faktura-<number>.pdf) |
list_clients / get_client |
Search contractors by name, tax id (NIP), e-mail |
create_client 🔒 / update_client 🔒 / delete_client 🔒 |
Contractor management |
list_products / get_product / create_product 🔒 / update_product 🔒 |
Product management |
Parameters are fully typed (Pydantic) — date patterns, pagination limits and status enums are enforced in the tool JSON Schema before any API call.
Example prompts once connected:
- "List my unpaid invoices from this month"
- "Show my expenses from June" →
list_invoices(income=false, ...) - "Issue a VAT invoice for ACME for 'Consulting', 1000 zł net" → approval dialog → created
- "Mark invoice 52572/07/2026 as paid"
- "Download the PDF of my latest invoice"
Approval gate for writes (🔒)
Every mutating tool asks for confirmation via MCP elicitation before touching the API — clients with elicitation support (Claude Code, Claude Desktop, MCP Inspector) show a native approval dialog describing the exact operation (e.g. "create vat invoice for ACME with positions: Consulting"). Declining aborts the call before any request is sent.
Clients without elicitation support get a clear error instead; set
FAKTUROWNIA_SKIP_CONFIRM=1 to run without the gate.
Troubleshooting
- "command not found" in Claude Desktop — GUI apps don't inherit your
shell's
PATH; use the full path touvx(which uvx). - "Missing environment variables" tool error — the server starts without credentials and validates them on first use; check both env vars in your client config.
- HTTP 401 on every call — wrong
FAKTUROWNIA_API_TOKENor wrong account subdomain inFAKTUROWNIA_DOMAIN. - A new release doesn't show up —
uvxcaches installs; runuvx fakturownia-mcp@latestonce (or pinfakturownia-mcp==X.Y.Z). - Product price update seems ignored — Fakturownia quirk: send
price_netandprice_grosstogether; a loneprice_netis ignored by the API.
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file fakturownia_mcp-0.1.2.tar.gz.
File metadata
- Download URL: fakturownia_mcp-0.1.2.tar.gz
- Upload date:
- Size: 22.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1247485c4988a41b37156d5bdd11d21583b53478d58f39b4dda54db9b4251e0f
|
|
| MD5 |
29848d07cb8be99765f3244fbcf11fd3
|
|
| BLAKE2b-256 |
bd6d33055d97083a33d312efaf1e90a46645e2cf2d7632dfecdf8b9c5ccaadee
|
File details
Details for the file fakturownia_mcp-0.1.2-py3-none-any.whl.
File metadata
- Download URL: fakturownia_mcp-0.1.2-py3-none-any.whl
- Upload date:
- Size: 21.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
79f87cb978e023044b54c07d5a5734c1ef08974e9869cfe99ed82e048cc7b1cd
|
|
| MD5 |
df583f451dae0060073bf05bbcc82731
|
|
| BLAKE2b-256 |
e13b40a9103e7016f8918d0777d0263f8efae1e574f8091e0cd61b22bf67c59c
|