fakturownia-mcp
MCP server for managing Fakturownia (InvoiceOcean) invoices, clients, and products, with write-confirmation gates for safety.
README
fakturownia-mcp
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.
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.
Configuration
Two required environment variables (values from Fakturownia: Ustawienia → Ustawienia konta → Integracja):
| 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
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.