Summary
Fakturownia.pl invoicing API for Polish businesses: invoices with PDF and KSeF status, proforma invoices, clients, products, recorded payments, warehouses and warehouse documents. Issuing, sending, cancelling and deleting invoices are switched off. API token and account prefix.
Guided setup
Connect Fakturownia to Microsoft Copilot in 2 minutes
Start a free trial on AnythingMCP Cloud, connect Fakturownia in the guided setup, then add your MCP URL to Microsoft Copilot. No code and no server to run.
No credit card · 7-day trial · Self-host alternative available
Try asking
Example prompts for Fakturownia
Click any prompt to copy it. Paste into Claude, ChatGPT, Cursor, Gemini, Copilot or OpenClaw to run it against this connector.
Claude is AI and can make mistakes. Please double-check responses.
💡 No install? Use cloud.anythingmcp.com directly. Sign in, click Connectors → Fakturownia, paste your credentials, mint an MCP API key and you're done. No Docker, no
git clone, no local server.
Fakturownia + Microsoft Copilot
Fakturownia.pl invoicing API for Polish businesses: invoices with PDF and KSeF status, proforma invoices, clients, products, recorded payments, warehouses and warehouse documents. Issuing, sending, cancelling and deleting invoices are switched off. API token and account prefix.
Prerequisites
See the full setup instructions baked into the connector (visible in the in-app store when you select the connector). The required environment variables for this connector are:
FAKTUROWNIA_DOMAIN, FAKTUROWNIA_API_TOKEN
Step 1 — Get credentials
Setting up takes about 2 minutes.
- Sign in to Fakturownia and open Ustawienia, Ustawienia konta, Integracja (Settings, Account settings, Integration).
- Under Kod autoryzacyjny API (API authorization code) copy the token, or generate one first. Paste it into
FAKTUROWNIA_API_TOKEN. - Enter the prefix of your account address into
FAKTUROWNIA_DOMAIN: forhttps://mojafirma.fakturownia.plit ismojafirma.
API access is part of the paid plans (and of the trial). The token acts as the user who created it and is sent as the api_token query parameter on every call.
Where to start: fakturownia_list_invoices (this month by default), then fakturownia_get_invoice for the lines and fakturownia_get_invoice_pdf for the document. fakturownia_list_clients and fakturownia_list_products find ids for new documents.
Invoices (read): fakturownia_list_invoices, fakturownia_get_invoice, fakturownia_get_invoice_pdf, fakturownia_get_invoice_ksef_status, fakturownia_list_recurring_invoices. Filter with period (this_month, last_month, last_12_months, all, or more with date_from and date_to); search_date_type picks issue, payment or sale date. Cost invoices: income no.
Proformas: fakturownia_create_proforma creates a proforma (not a tax document, never sent to KSeF, nothing e-mailed). Turning it into a VAT invoice is done in Fakturownia or with fakturownia_create_invoice.
Switched off at install (they issue, change or remove legal documents, or contact customers): fakturownia_create_invoice, fakturownia_update_invoice, fakturownia_change_invoice_status, fakturownia_send_invoice_by_email, fakturownia_cancel_invoice, fakturownia_delete_invoice, fakturownia_create_payment and fakturownia_delete_client. A VAT invoice is a tax document; in an account connected to KSeF it may be submitted to the national e-invoicing system, which cannot be undone (mistakes need a correction invoice). Turn these tools on only deliberately. No tool moves money.
Clients and products: fakturownia_list_clients (search by name, e-mail, short name, NIP or external_id), fakturownia_get_client, fakturownia_create_client, fakturownia_update_client; fakturownia_list_products, fakturownia_get_product, fakturownia_create_product, fakturownia_update_product. Products take a gross price and a tax rate; the net price is computed.
Payments, stock, settings: fakturownia_list_payments (recorded payments, read-only), fakturownia_list_warehouses, fakturownia_list_warehouse_documents, fakturownia_get_warehouse_document, fakturownia_list_departments (issuers: department_id), fakturownia_list_categories.
Field notes: ids are numbers. Amounts are decimals in the document currency (default PLN). Tax rates are numbers (23, 8, 5, 0) or the texts zw (exempt) and np (not subject). Statuses: issued, sent, paid, partial, rejected. KSeF state (gov_status): ok means accepted with a KSeF number in gov_id; processing, send_error and others are explained in gov_error_messages. Each invoice has a token: the link /invoice/TOKEN opens it without login, so do not share it carelessly.
Paging and limits: lists take page from 1 and per_page up to 100; a shorter page is the last. Fakturownia does not publish its rate limits; a 429 means wait and retry later. Some refusals come back with HTTP 200 and "status": "error", which the connector reports as a failed call.
Step 2 — Install the adapter
curl -fsSL https://raw.githubusercontent.com/HelpCode-ai/anythingmcp/main/docker-compose.quickstart.yml -o docker-compose.yml
printf 'JWT_SECRET=%s\nENCRYPTION_KEY=%s\n' "$(openssl rand -hex 32)" "$(openssl rand -hex 32)" > .env
docker compose up -d
Step 3 — Add the connector in Microsoft Copilot
Your server URL: in AnythingMCP, open MCP Servers → the server this connector is on, and copy its URL (
https://cloud.anythingmcp.com/mcp/…). Use it wherever this guide showsYOUR_SERVER_ID.
Microsoft Copilot uses MCP servers through agents built in Copilot Studio: you add AnythingMCP to an agent as a tool, then publish the agent to Microsoft 365 Copilot and Teams. Copilot Studio connects from Microsoft's cloud over Streamable HTTP, which AnythingMCP supports.
- In Copilot Studio, open your agent (or create one), go to Tools and choose Add a tool → New tool → Model Context Protocol.
- Enter a Server name (for example
AnythingMCP), a Server description that says what the connector does, and the Server URLhttps://cloud.anythingmcp.com/mcp/YOUR_SERVER_ID. Copilot Studio uses the description to decide when to call the server. - Under authentication, choose API key, set Type to Header and the header name to
X-API-Key, then select Create. - In Add tool, choose Create a new connection, paste an MCP API key from AnythingMCP (MCP Servers → your server → API keys) and select Add to agent.
- Try it in the agent's Test pane: ask for something that needs the
Fakturowniatools. - Select Publish, then Channels → Microsoft 365 and Microsoft Teams, keep Make agent available in Microsoft Copilot selected and choose Add channel. See agent in Teams installs it for you; in Microsoft 365 Copilot, type @ and pick the agent.
Prefer per-user sign-in? Choose OAuth 2.0 → Dynamic discovery instead of an API key: each user then signs in to AnythingMCP the first time the agent calls it.
Self-hosting? Use your instance's public HTTPS address instead of https://cloud.anythingmcp.com. Copilot Studio connects from Microsoft's cloud, so localhost does not work.
Available tools
| Tool | What it does |
|---|---|
fakturownia_list_invoices | List invoices and other sales or cost documents, newest first by default: id, number, kind, status (issued, sent, paid, partial, rejected)… |
fakturownia_get_invoice | Get one invoice with its lines: number, kind, status, dates, seller and buyer data, positions (name, quantity, prices, tax), totals, paid… |
fakturownia_get_invoice_ksef_status | Read the KSeF (Polish national e-invoicing system) state of one invoice: gov_status (ok, processing, send_error, server_error, offline… |
fakturownia_get_invoice_pdf | Download the PDF of one invoice, attached as a file (up to 4 MB) |
fakturownia_list_recurring_invoices | List recurring invoice definitions: id, name, invoice_id (the template), start_date, every (for example 1m), next_invoice_date, end_date… |
fakturownia_create_proforma | Create a proforma invoice (an offer or payment request, not a tax document and never sent to KSeF). Give client_id or buyer data, and the… |
fakturownia_create_invoice | Issue a new document of any kind (VAT invoice, receipt, correction, advance, final and others). A VAT invoice is a tax document; with KSeF… |
fakturownia_update_invoice | Change an existing invoice (partial: only the fields sent). Lines are changed by their id; a line with _destroy 1 is removed. Editing an… |
fakturownia_change_invoice_status | Set the status of an invoice: issued, sent, paid, partial or rejected. Marking it paid changes the books and the paid amount (no money… |
fakturownia_send_invoice_by_email | E-mail an invoice to the buyer (or the given addresses) from Fakturownia. With KSeF active, a VAT invoice to a company can only be sent… |
fakturownia_cancel_invoice | Cancel an invoice with an optional reason. A cancelled tax document stays in the register; one already in KSeF needs a correction invoice… |
fakturownia_delete_invoice | Delete an invoice permanently. Cannot be undone and breaks the numbering; never use it for documents already in KSeF. Installed switched… |
fakturownia_list_clients | List or search clients (buyers): id, name, shortcut, tax_no, email, phone, street, post_code, city, country, bank_account, external_id… |
fakturownia_get_client | Get one client by id: name, tax_no, address, e-mail, phone, bank account, external_id, discount, payment_to_kind, default currency, note… |
fakturownia_create_client | Add a client (buyer) with name, tax number, address and contact data. Returns the client with its id |
fakturownia_update_client | Change a client (only the fields sent). Existing invoices keep the buyer data they were issued with |
fakturownia_delete_client | Delete a client from the client list. Cannot be undone. Installed switched off |
fakturownia_list_products | List products and services: id, name, code, ean_code, price_net, price_gross, tax, currency, quantity_unit, stock level… |
fakturownia_get_product | Get one product by id: name, code, EAN, prices, tax, unit, stock (per warehouse with warehouse_id), category and description |
fakturownia_create_product | Add a product or service. Give the gross price and the tax rate; Fakturownia computes the net price. Returns the product with its id |
fakturownia_update_product | Change a product (only the fields sent). Price changes apply to new invoices only |
fakturownia_list_payments | List payments recorded in Fakturownia (bank and cash receipts linked to invoices): id, name, price, currency, paid, paid_date, kind… |
fakturownia_create_payment | Record a payment against one or more invoices (bookkeeping only, no money moves). It changes the paid amount and status of the invoices.… |
fakturownia_list_warehouses | List warehouses: id, name, kind, description. Use the id with the product tools to read stock per warehouse |
fakturownia_list_warehouse_documents | List warehouse documents (PZ goods received, WZ goods issued, MM transfers): id, kind, number, issue_date, warehouse_id, client_id… |
fakturownia_get_warehouse_document | Get one warehouse document with its lines (product_id, quantity, prices), warehouse and linked invoices |
fakturownia_list_departments | List the companies and departments of the account (the issuers of documents): id, name, shortcut, tax_no, address and bank account. The id… |
fakturownia_list_categories | List document categories: id, name and description. The id is the category_id of an invoice |
Example prompts
- "Which invoices from last month are still unpaid?"
- "What is the KSeF status of invoice FV 112/11/2026?"
- "Create a proforma for client Nordwind sp. z o.o. for 10 hours of consulting at 250 PLN net, 23% VAT."
- "Show the PDF of invoice FV 98/11/2026."
- "Which payments did we record this week?"
FAQ
Where does the API token come from? In Fakturownia under Ustawienia, Ustawienia konta, Integracja: copy the Kod autoryzacyjny API (generate it first if empty) and enter your account prefix. API access is part of the paid plans and the trial.
Can it send invoices to KSeF? No. It reads the KSeF status of invoices but has no tool that submits to KSeF. Issuing VAT invoices is switched off, because in an account connected to KSeF Fakturownia may submit an issued invoice, which cannot be undone. Proformas are never sent to KSeF.
Which tools install switched off? fakturownia_create_invoice, fakturownia_update_invoice, fakturownia_change_invoice_status, fakturownia_send_invoice_by_email, fakturownia_cancel_invoice, fakturownia_delete_invoice, fakturownia_create_payment and fakturownia_delete_client.
Which Copilot is this for? Microsoft 365 Copilot at work, through agents built in Copilot Studio. The Microsoft Copilot app for personal accounts has no option to add your own MCP server.
What do I need? A work account with access to Copilot Studio (a license or a trial) to build the agent. People who use it in Microsoft 365 Copilot or Teams need access to the agent: share it with them, or ask an admin to publish it to the organization. If your organization applies data policies to Power Platform connectors, they cover MCP servers too.
The agent doesn't call the tools. Check that the header name is exactly X-API-Key and that the key belongs to the same MCP server as the URL, and make the server description specific: Copilot Studio uses it to decide when to call the server. Publish the agent again after each change; in an open chat, type "start over" to get the new version.
Next steps
Was this guide helpful?