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
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。