Fortnox MCP server
communityFortnox has no MCP server of its own, so we built one and released it as open source. It reads invoices, supplier invoices, vouchers and accounts through the Fortnox API and builds the income statement, balance sheet and AR/AP ageing from the SIE export.
What an agent can do
- → Income statement and balance sheet for any period
- → Receivables and payables ageing by days past due
- → Read invoices, supplier invoices, vouchers and accounts
- → Create invoice, offer and order drafts after approval
Read-only by default. Write tools only create drafts, never bookkeeping, payments or sending.
About the Fortnox MCP server
fortnox-mcp is an open-source MCP server for Fortnox, the Swedish accounting system. It is built and maintained by Walma, released under the MIT licence, and is not affiliated with or endorsed by Fortnox AB. You run it yourself, on your own computer or your own server, and it talks to Fortnox through the official API using an app you register in Fortnox's Developer Portal.
Finance teams use it to ask about the books in their own words: which customer invoices are overdue, what the quarter's result was, what is owed to suppliers in the coming weeks, or what a group of accounts cost per month. The income statement, balance sheet and ageing reports are built from one SIE export per financial year, so the figures match the bookkeeping.
The server only reads unless you switch writing on. With writing enabled it can create customers, offers, orders and invoice drafts that are neither booked nor sent, and every write shows a preview and waits for a confirmation. Bookkeeping, payments, sending and deleting stay in Fortnox, with a person. Requests are paced to stay under Fortnox's limit of 25 calls per five seconds.
Things to ask
- Which customer invoices are overdue, and with which customers?
- Show the income statement for the third quarter compared with the second quarter.
- What did we spend on external services, accounts 5000 to 6999, per month this year?
- How much is in the company bank account, and what is due to suppliers in the next two weeks?
- Prepare an invoice draft to Acme AB for ten consulting hours and show it to me before saving.
Tools the server exposes
- get_company_info
- list_financial_years
- list_invoices
- get_invoice
- list_invoice_payments
- list_supplier_invoices
- get_supplier_invoice
- list_customers
- list_suppliers
- list_accounts
- list_vouchers
- get_voucher
- income_statement
- balance_sheet
- account_totals_by_month
- receivables_aging
- payables_aging
- fortnox_get
- create_customer
- create_invoice_draft
Part of these packages
Fortnox is part of these Walma packages.
Questions about Fortnox MCP
Is Fortnox MCP free?+
Yes, the server itself is free and open source under the MIT licence. You need a Fortnox account and your own app in Fortnox's Developer Portal, where a free test company is included when you sign up as an integration developer. Each scope the app asks for must also be covered by a licence on the Fortnox account that approves it.
Where is the Fortnox MCP server?+
The source code is at github.com/Walma-Labs/fortnox-mcp. There is no shared server URL, because you run the server yourself: locally next to your AI client, or as an HTTP service on your own server. The HTTP mode has no authentication of its own, so it belongs behind a gateway that requires sign-in and must never be exposed publicly.
How does sign-in to Fortnox work with the MCP server?+
You run the login command once, open the printed link, sign in to Fortnox and approve the app. The server then saves the tokens in a file on your computer that only you can read, and renews them on its own. A connection used at least once every 45 days never needs a new login. The tokens never reach the AI model.
Can the AI book entries or send invoices in Fortnox?+
No. By default the server only reads, and the write tools do not even exist until you turn them on. With writing enabled it can create customers, offers, orders and invoice drafts that are unbooked and unsent. Every write is first shown as a preview and needs a confirmation. Bookkeeping, payments, sending and deleting cannot be reached.
Which AI assistants does Fortnox MCP work with?+
The server follows the MCP standard and, according to its documentation, works with Claude, ChatGPT, Cursor and other MCP clients. Ready-made configuration is described for Claude Code, Claude Desktop and Cursor. For clients that connect over the network there is an HTTP mode, which should run behind a gateway that requires sign-in.
How does the server produce an income statement and balance sheet from Fortnox?+
The Fortnox API has no ready-made endpoints for those reports. The server therefore fetches one SIE export per financial year and builds the income statement, balance sheet, receivables and payables ageing, and monthly totals per account from it. Because the source is the same file the bookkeeping exports, the figures match the books exactly.
Is this Fortnox's own MCP server?+
No. It is built and maintained by Walma and is not affiliated with or endorsed by Fortnox AB. It uses Fortnox's published API and your own app in the Developer Portal. The server is tested on protocol, pagination, token renewal and reports, but has not yet been verified end to end against a live Fortnox test company.
Missing a connection?
We build and review MCP servers for teams that need them, and run them behind the same policy and log as the rest of the gateway.