Fortnox MCP
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Fortnox MCP what's the stock level for article 12345?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Fortnox MCP
An MCP server for day-to-day work in Fortnox from an AI assistant such as Claude, ChatGPT or Cursor. It covers articles and prices, stock and stock corrections, purchase orders and goods receipt, customers, suppliers, offers, orders, invoices, credit notes and payments: 78 tools in all.
Quick start: let your AI agent install it
Paste this into Claude Code, Codex, Cursor or another agent that can run commands. It does the technical parts and tells you the few steps only you can do in Fortnox.
Install the Fortnox MCP server from https://github.com/Elegant-Lift-Sweden-AB/fortnox-mcp and connect it to my
Fortnox. Read the repository's README first and follow it. Answer me in the language I write in.
1. Make sure `uv` is installed (install it if not). Check that the server starts with
`uvx --from git+https://github.com/Elegant-Lift-Sweden-AB/fortnox-mcp fortnox-mcp`, then stop it.
2. Walk me through creating the Fortnox integration (README section "1. Fortnox: create the integration"),
one step at a time, and wait for me after each step: an app in the Fortnox Developer Portal with service
account enabled, the scopes, and activation by our Fortnox system administrator.
3. Add the server to your own MCP configuration: stdio, command `uvx`, args
`--from git+https://github.com/Elegant-Lift-Sweden-AB/fortnox-mcp fortnox-mcp`, with the environment
variables FORTNOX_CLIENT_ID, FORTNOX_CLIENT_SECRET and FORTNOX_TENANT_ID. Put placeholders there and tell me
exactly which file and line to open so I can paste the real values in myself. Do not ask me to paste the
client secret into this chat, and never print it, commit it or copy it to any other file. Ask me whether we
have more than one stock point or use another price list than A, and set FORTNOX_STOCK_POINT /
FORTNOX_PRICE_LIST if so.
4. If you support skills, install skills/fortnox/SKILL.md from the repository as a skill.
5. After reloading the MCP server, test with read-only tools only: company_info, then search_articles and
get_stock for one article. Do not create or change anything in Fortnox.
6. Show me the Swedish note about bookkeeping accounts ("Bokföringskonton") in the README and ask whether I want to set
FORTNOX_ARTICLE_DEFAULTS now.
Do everything you can yourself. Tell me in short, plain steps only what I have to do myself.Related MCP server: fiken-mcp
Why we built it
We built it at Elegant Lift Sweden AB (Lift-Spares) because we needed an AI assistant to do the real work in our Fortnox, stock and purchasing included, and the servers we found only covered bookkeeping. We use it every day and are sharing it as it is.
Status: provided as-is under the MIT licence. We update it when we have time and don't offer support. Issues and pull requests are welcome, but answers may take a while or never come.
Know what you're getting: the code was written with an AI coding assistant, and we haven't read it line by line ourselves. What we can vouch for is that we use it every day in our own Fortnox.
Bokföringskonton – läs detta innan du börjar
Servern väljer inga bokföringskonton själv. En ny artikel får de standardkonton och den moms som är inställda i ert Fortnox. Har ni aldrig ändrat dem är det Fortnox grundinställningar, och de passar inte alltid er verksamhet.
Gå igenom med er redovisningskonsult vilka konton era affärer ska bokföras på: försäljning i Sverige, till andra EU-länder, export utanför EU, inköp och lager.
Ställ in dem i Fortnox, eller ange dem i
FORTNOX_ARTICLE_DEFAULTSså att varje ny artikel får rätt konton, t.ex.{"VAT": 25, "SalesAccount": 3001, "EUAccount": 3108, "EUVATAccount": 3106, "ExportAccount": 3105, "PurchaseAccount": 4000}. Siffrorna är bara ett exempel ur BAS-kontoplanen, ingen rekommendation för just er.Fakturor bokförs på artikelns konton och inbetalningar på betalsättets konto. Fel konto på en artikel ger alltså fel bokföring på varje faktura där artikeln finns med.
Kontrollera kundens land, momsregistreringsnummer och momstyp i Fortnox. De avgör om fakturan får svensk moms, omvänd skattskyldighet eller exportmoms.
Prova nya flöden med
dry_run=trueförst. Då visar servern exakt vad den skulle skicka utan att ändra något.
What is different about it
Warehouse work, not only bookkeeping. Stock balances, the low-stock list, stock corrections (stocktaking), manual in/outbound deliveries, order points, purchase orders, goods receipt and supplier entries on articles, using Fortnox's warehouse API (
/api/warehouse).Every write tool has
dry_run. Withdry_run=trueit returns the exact request(s) it would send to Fortnox and changes nothing.Guards for the mistakes Fortnox lets you make:
Titles are cleaned of the characters Fortnox silently deletes ("(±1%)" would otherwise be stored as "(1%)").
EANs are checked (GS1 check digit, not already used on another article).
A webshop article can't be published without a price, so it never shows up at 0.
New customers are checked against every existing one by VAT/organisation number first.
Sent invoices are credited, never cancelled.
Supplier entries are read, changed and written back, so one change doesn't wipe the other suppliers.
Optional role files. If you want staff to see less (for example no purchase prices for sales, no selling prices for purchasing), you write a role file and the server enforces it: it removes tools, refuses fields and hides keys from every answer. Without one, everything is available.
Parallel reads. Read-only tools carry
readOnlyHint, so clients can run several of them at once.api_requestreaches any Fortnox endpoint the named tools don't cover.
Requirements
A Fortnox subscription. The stock and purchasing tools need Fortnox Lager (the warehouse module).
A Fortnox integration (an app in the Fortnox Developer Portal) that uses a service account with the client-credentials flow. There are no refresh tokens to keep alive.
Python 3.10+ and uv (or pip).
1. Fortnox: create the integration
In the Developer Portal, create an app and enable service account for it.
Give it the scopes for the parts you will use:
companyinformation(required for service accounts),article,price,customer,supplier,offer,order,invoice,payment,supplierinvoice,currency,print(PDFs),bookkeeping(vouchers),settings(modes of payment) andwarehouse(Lager). Check the names against Fortnox's current scope list.A system administrator of your Fortnox company activates the integration with
account_type=service.Note the client ID, the client secret and your tenant ID. The tenant ID is your company's Fortnox database number. Fortnox sends it when the integration is activated (consent webhook) and returns it as
DatabaseNumberfrom the company information endpoint; its client-credentials guide below shows both.
Fortnox's own guides: client credentials · service accounts.
2. Add it to your AI client
Claude Desktop, Cursor and other stdio clients (in claude_desktop_config.json or the client's MCP settings):
{
"mcpServers": {
"fortnox": {
"command": "uvx",
"args": ["--from", "git+https://github.com/Elegant-Lift-Sweden-AB/fortnox-mcp", "fortnox-mcp"],
"env": {
"FORTNOX_CLIENT_ID": "...",
"FORTNOX_CLIENT_SECRET": "...",
"FORTNOX_TENANT_ID": "..."
}
}
}
}Claude Code:
claude mcp add fortnox \
-e FORTNOX_CLIENT_ID=... -e FORTNOX_CLIENT_SECRET=... -e FORTNOX_TENANT_ID=... \
-- uvx --from git+https://github.com/Elegant-Lift-Sweden-AB/fortnox-mcp fortnox-mcpAs an HTTP server (Docker):
docker build -t fortnox-mcp .
# fortnox.env holds FORTNOX_CLIENT_ID=..., FORTNOX_CLIENT_SECRET=..., FORTNOX_TENANT_ID=... (one per line)
docker run --env-file fortnox.env -p 127.0.0.1:8000:8000 fortnox-mcp
# MCP endpoint: http://localhost:8000/mcpHTTP mode has no authentication of its own. Anyone who can reach the port can use your Fortnox, so keep it on
localhost (as above) or put an authenticating proxy or MCP gateway in front of it. The server only accepts requests
addressed to localhost/127.0.0.1 (this stops web pages from reaching it through DNS rebinding). Behind a proxy
under another name, list that name in MCP_ALLOWED_HOSTS.
Configuration
Variable | Default | Meaning |
| (required) | The service-account credentials. |
| (none) | Path to a role file that narrows what this server offers. See Restricting access. |
|
| The sales price list the tools read and write; offers, orders and invoices use the customer's own price list when it has one. |
| the only active one | Stock point code (e.g. |
| (none) | JSON fields every new article gets on top of |
|
|
|
|
| HTTP mode only. |
| localhost, 127.0.0.1 | HTTP mode only: comma-separated host names the server answers to ( |
Restricting access (optional)
By default the server offers every tool to whoever connects to it. Who may do what in your company is your decision, so the server ships with no built-in roles.
If you want someone to have less, write a role file (JSON) and run a separate server for them with
FORTNOX_ROLE_FILE=/path/to/role.json. The server then enforces the file, not the AI:
only the tools listed in
"tools"exist for that server;"params"refuses arguments per tool:"forbid"(may not be given),"only"(allowed values) and"writable"(allowed keys in free-form fields and rows);keys in
"hide_fields"are removed from every answer, and CSV columns matching"hide_csv_columns"are dropped;Fortnox error text is replaced by a reference number (the full text goes to the server log), so hidden values can't leak through an error message.
Two tools can't be narrowed by a role file, so leave them out of a restricted role unless you mean to give that
access: api_request reaches any Fortnox endpoint with any body, and get_document_pdf returns the PDF exactly as
your Fortnox print template prints it (a PDF can't have fields removed; "only" can limit which document types).
examples/roles/ has two examples of the format: a sales file (no costs, margins or suppliers)
and a sourcing file (no selling prices or customers). Copy and change them, or write your own. The format is
described at the top of roles.py. A file the server can't fully understand stops it
from starting.
Tools
Articles and prices
Tool | What it does |
| Everything about one article (SKU): register data, stock (in stock / available / reserved), sales price, order point + max stock, and supplier entries (supplier, supplier part number, purchase price). |
| Search the article register. |
| Sales price of an article on a price list (default: the server's price list, FORTNOX_PRICE_LIST). |
| Create a stock article. |
| Change article fields. |
| Set the sales price (company currency, ex VAT) on a price list (default: the server's price list, FORTNOX_PRICE_LIST). |
| Tick/untick 'Webbshopsartikel'. |
| Set 'Beställningspunkt' (order point) and max stock on the server's stock point. |
| Add/update/remove one supplier entry on an article ('Leverantörsinformation': supplier part number, purchase price in the supplier's currency, lead time, MOQ). |
| Retire an article (articles that were ever used can't be deleted): webshop off, inactive, EAN cleared so it can move to a new article, description prefixed 'UTGÅTT' (plus 'ersatt av X' with replaced_by). |
Stock
Tool | What it does |
| Current stock per article on the server's stock point: inStock and availableStock (= in stock minus reservations, what a webshop should show). |
| The 'Lågt saldo' stock warning list (Lager → Lagerlista): supplier, article, in stock, on order, reserved, available, order shortage, order point, stock warning. |
| Stock history for one article, rebuilt from its documents (Fortnox has no movement log): goods receipts, manual in/outbound deliveries, stock corrections and purchase orders. |
| Step 1 of correcting a stock balance (= a stocktaking with one counted row). |
| Apply a started stock correction: stock is set to the counted quantity and bookkept. |
| Throw away a stock correction that has not been released (no effect on stock). |
| Stocktakings / stock corrections, optionally for one article. |
| One stocktaking / stock correction with its rows (counted vs current balance). |
| Goods in WITHOUT a purchase order (found stock, sample, warranty return, SKU swap). |
| Goods out WITHOUT a sale (scrap, damage, loss, SKU swap). |
| Apply a manual inbound/outbound delivery: stock and value change and are bookkept. |
| Void a manual inbound/outbound delivery. |
| Manual inbound/outbound deliveries (and transfers). |
| One manual inbound/outbound delivery with rows. |
Customers and suppliers
Tool | What it does |
| Find customers. |
| One customer. |
| Create a customer. |
| Change customer fields (Fortnox field names, e.g. {"Address1": "...", "VATNumber": "...", "Email": "..."}). |
| Find suppliers by name, organisation number, e-mail or supplier number. |
| One supplier. |
| Create a supplier (checks name / org number for an existing one first). |
| Change supplier fields (Fortnox field names). |
Offers, orders, invoices
Tool | What it does |
| List offers (quotes). |
| One offer with rows. |
| Create an offer (quote). |
| Change an offer: fields = Fortnox header fields (e.g. {"ExpireDate": "2026-11-30"}); rows replaces ALL rows. |
| Cancel an offer (it stays in the list, marked cancelled, total zeroed). |
| Confirm an offer: creates an order from it. |
| E-mail the offer PDF to the customer from Fortnox (customer-facing). |
| List orders. |
| One order with rows and delivery/warehouse state. |
| Create an order. |
| Change an order (Fortnox header fields; rows replaces ALL rows). |
| Cancel an order. |
| Create the invoice from an order (gets the next invoice number in the books). |
| E-mail the order confirmation PDF to the customer from Fortnox (customer-facing). |
| List invoices. |
| One invoice with rows, payment and booking state. |
| The PDF of an offer, order or invoice (as Fortnox prints it). |
| Create an invoice (unbooked). |
| Change an UNBOOKED invoice (Fortnox header fields; rows replaces ALL rows — include RowId in |
| Book an invoice in the ledger (Fortnox only credits booked invoices). |
| Cancel (makulera) an invoice that was NEVER sent and is not booked. |
| Create a FULL credit note for an invoice (refund/return). |
| E-mail the invoice from Fortnox to the address on the invoice (customer-facing). |
| Mark an invoice as sent without e-mailing it (external print), e.g. when the PDF is sent another way. |
| Mark an invoice as delivered/done in the warehouse. |
| Register an incoming customer payment on an invoice (amount in SEK; amount_currency for foreign-currency invoices). |
| Payments and the vouchers linked to ONE invoice: payment method, amounts, and the VAT / receivable / bank / revenue rows of each voucher. |
Purchasing and goods receipt
Tool | What it does |
| Purchase orders (rows not included — use get_purchase_order). |
| One purchase order with rows (ordered / received / remaining) and its matched goods receipts / supplier invoices. |
| Create a purchase order (not sent). |
| Change purchase-order head fields (partial update, e.g. {"deliveryDate": "2026-10-20", "internalReference": "..."}). |
| E-mail the purchase order to the supplier (supplier-facing). |
| Record the supplier's answer (e.g. when the order was placed by e-mail, phone or a web shop rather than sent from Fortnox). |
| Close a purchase order manually (nothing more will arrive). |
| Void a purchase order. |
| Goods receipts (incoming goods). |
| One goods receipt with rows. |
| Book a delivery against a purchase order (draft; stock goes up on release_goods_receipt). |
| Put a goods receipt in stock: stock and value are booked, the PO's received quantities update. |
| Finalise a goods receipt's bookkeeping. |
| Void a goods receipt (only while not completed and not matched to a supplier invoice). |
| Supplier invoices (bills we have to pay). |
| One supplier invoice. |
Other
Tool | What it does |
| Fortnox's current exchange rate for a currency (SEK per |
| Company settings in Fortnox (name, org number, address). |
| Any Fortnox API call the other tools don't cover. |
Using it well
skills/fortnox/SKILL.md is a short skill for Claude (or any agent) with the standard
Fortnox workflows: receiving goods, quote to invoice, refunds, stock corrections. Add it to your agent so it uses the
tools in the right order.
Writes go straight into your live Fortnox. Try new workflows with dry_run=true first, or in a Fortnox test company.
Development
uv venv && uv pip install -e '.[test]'
.venv/bin/pytestThe tests run the real server against a fake Fortnox client: no network, no credentials.
Licence
MIT, see LICENSE. Not affiliated with or endorsed by Fortnox AB.
Available Tools
78 toolsapi_requestA
Any Fortnox API call the other tools don't cover. path starts with /3/ (classic API: bodies wrapped in the resource key, e.g. {"Article": {...}}) or /api/warehouse/ (bare JSON). Non-GET calls change live data, and so do some GETs (e.g. /3/invoices/{n}/email sends the invoice). With dry_run=true nothing is sent, GETs included.
Inputs: path (required), method (required), body, params, +1 more.
article_movementsARead-only
Stock history for one article, rebuilt from its documents (Fortnox has no movement log): goods receipts, manual in/outbound deliveries, stock corrections and purchase orders. Sales are on invoices (list_invoices).
Inputs: article_number (required).
bookkeep_invoiceB
Book an invoice in the ledger (Fortnox only credits booked invoices). A booked invoice can no longer be edited.
Inputs: document_number (required), dry_run.
cancel_invoiceA
Cancel (makulera) an invoice that was NEVER sent and is not booked. A sent invoice is in the customer's hands, so it is credited instead (credit_invoice); this tool refuses it.
Inputs: document_number (required), dry_run.
cancel_offerB
Cancel an offer (it stays in the list, marked cancelled, total zeroed).
Inputs: document_number (required), dry_run.
cancel_orderD
Cancel an order.
Inputs: document_number (required), dry_run.
cancel_stock_correctionB
Throw away a stock correction that has not been released (no effect on stock).
Inputs: stock_correction_id (required), dry_run.
company_infoBRead-only
Company settings in Fortnox (name, org number, address).
Inputs: no named parameters.
complete_goods_receiptA
Finalise a goods receipt's bookkeeping. Do this only after the supplier invoice is matched — afterwards it can't be matched or voided.
Inputs: goods_receipt_id (required), dry_run.
complete_purchase_orderC
Close a purchase order manually (nothing more will arrive).
Inputs: purchase_order_id (required), dry_run.
create_articleB
Create a stock article. Applies the server's article defaults (FORTNOX_ARTICLE_DEFAULTS; Type STOCK, StockGoods). The description is cleaned of characters Fortnox would silently delete, and an EAN is checked (GS1 check digit, not already used). If sales_price is given it is set on the price list BEFORE the webshop flag, so a webshop never shows the product at 0. Articles can't be deleted once used on any document.
Inputs: description (required), article_number (required), ean, note, +9 more.
create_customerB
Create a customer. Checks VAT / org number against every existing customer first and returns the existing account(s) instead, unless allow_duplicate=true. email = the customer's main e-mail address. EU companies: give the VAT number (drives reverse-charge VAT).
Inputs: name (required), country_code (required), city, email, +11 more.
create_goods_receiptA
Book a delivery against a purchase order (draft; stock goes up on release_goods_receipt). received: [{article_number, quantity}] — what physically arrived. rest_still_expected=false closes the remaining quantity (supplier short-shipped for good). delivery_note = the supplier's delivery-note/invoice number.
Inputs: received (required), purchase_order_id (required), note, dry_run, +3 more.
create_invoiceC
Create an invoice (unbooked). rows: [{article_number, quantity, price, description?}]. Invoice quantities are delivered quantities and take the goods out of stock.
Inputs: rows (required), customer_number (required), dry_run, freight, +8 more.
create_manual_inboundA
Goods in WITHOUT a purchase order (found stock, sample, warranty return, SKU swap). rows: [{article_number, quantity, unit_cost (in currency, default 0), freight_cost, other_cost}]. Created as a draft; stock changes on release_manual_delivery. Real purchases belong on a purchase order + goods receipt.
Inputs: note (required), rows (required), dry_run, currency, +1 more.
create_manual_outboundA
Goods out WITHOUT a sale (scrap, damage, loss, SKU swap). rows: [{article_number, quantity}]. Draft until release_manual_delivery.
Inputs: note (required), rows (required), dry_run, delivery_date.
create_offerA
Create an offer (quote). rows: [{article_number, quantity, price (per unit, ex VAT, in the offer currency),
description?, discount?}] — use the final prices you were given, never a formula. Defaults: valid 1 month,
Swedish for Swedish customers else English, the customer's price list (else the server's), customer's currency.
Freight goes in freight; other Fortnox header fields (e.g. OfferDate) in extra_fields.
Inputs: rows (required), customer_number (required), dry_run, freight, +7 more.
create_orderC
Create an order. rows: [{article_number, quantity, price, description?}]. delivery_state: registration (no stock effect), reservation (reserves stock), delivery (takes stock out).
Inputs: rows (required), customer_number (required), dry_run, freight, +8 more.
create_purchase_orderA
Create a purchase order (not sent). rows: [{article_number, quantity, price (in the PO currency), description?}]; every article must exist (create_article first). Currency defaults to the supplier's, the rate comes from Fortnox. internal_reference = your own reference (e.g. the supplier's order number). language = Fortnox language code for the PO document (GB = English). Delivery address = the stock point's address, else the company address from Fortnox.
Inputs: rows (required), supplier_number (required), dry_run, currency, +7 more.
create_supplierC
Create a supplier (checks name / org number for an existing one first).
Inputs: name (required), country_code (required), city, email, +8 more.
credit_invoiceA
Create a FULL credit note for an invoice (refund/return). Fortnox only credits BOOKED invoices; set bookkeep_first=true to book it first. Booking a full credit note puts the goods back in stock — don't add a manual inbound as well. Partial refund: credit, then update_invoice on the credit note to trim its rows.
Inputs: document_number (required), dry_run, bookkeep_first.
deactivate_articleA
Retire an article (articles that were ever used can't be deleted): webshop off, inactive, EAN cleared so it can move to a new article, description prefixed 'UTGÅTT' (plus 'ersatt av X' with replaced_by). Move any stock first (manual outbound/inbound).
Inputs: article_number (required), dry_run, clear_ean, replaced_by.
get_articleBRead-only
Everything about one article (SKU): register data, stock (in stock / available / reserved), sales price, order point + max stock, and supplier entries (supplier, supplier part number, purchase price).
Inputs: article_number (required).
get_currency_rateBRead-only
Fortnox's current exchange rate for a currency (SEK per Unit units).
Inputs: currency (required).
get_customerCRead-only
One customer. Email is the customer's main e-mail; Fortnox also has EmailInvoice / EmailOffer / EmailOrder for where each document type is sent.
Inputs: customer_number (required).
get_document_pdfBRead-only
The PDF of an offer, order or invoice (as Fortnox prints it).
Inputs: document_type (required), document_number (required).
get_goods_receiptCRead-only
One goods receipt with rows.
Inputs: goods_receipt_id (required).
get_invoiceCRead-only
One invoice with rows, payment and booking state.
Inputs: document_number (required).
get_invoice_payment_evidenceARead-only
Payments and the vouchers linked to ONE invoice: payment method, amounts, and the VAT / receivable / bank / revenue rows of each voucher. No ledger browsing beyond this invoice. Accounting entries are not bank receipts.
Inputs: document_number (required).
get_manual_deliveryCRead-only
One manual inbound/outbound delivery with rows.
Inputs: type (required), delivery_id (required).
get_offerCRead-only
One offer with rows.
Inputs: document_number (required).
get_orderCRead-only
One order with rows and delivery/warehouse state.
Inputs: document_number (required).
get_priceBRead-only
Sales price of an article on a price list (default: the server's price list, FORTNOX_PRICE_LIST).
Inputs: article_number (required), price_list.
get_purchase_orderBRead-only
One purchase order with rows (ordered / received / remaining) and its matched goods receipts / supplier invoices.
Inputs: purchase_order_id (required), include_matches.
get_stockARead-only
Current stock per article on the server's stock point: inStock and availableStock (= in stock minus reservations, what a webshop should show). Articles missing from the answer have 0. Omit article_numbers for every non-zero balance.
Inputs: article_numbers.
get_stock_correctionBRead-only
One stocktaking / stock correction with its rows (counted vs current balance).
Inputs: stock_correction_id (required).
get_supplierCRead-only
One supplier.
Inputs: supplier_number (required).
get_supplier_invoiceDRead-only
One supplier invoice.
Inputs: given_number (required).
list_goods_receiptsCRead-only
Goods receipts (incoming goods). unmatchedValue = received value not yet matched to a supplier invoice.
Inputs: search, released, completed, delivery_note, +2 more.
list_invoicesCRead-only
List invoices. your_order_number = the customer's or webshop's order number (YourOrderNumber) — how the invoice for a webshop order is usually found.
Inputs: page, limit, filter, to_date, +3 more.
list_manual_deliveriesCRead-only
Manual inbound/outbound deliveries (and transfers).
Inputs: type, state, article_number.
list_offersCRead-only
List offers (quotes).
Inputs: page, limit, filter, to_date, +2 more.
list_ordersDRead-only
List orders.
Inputs: page, limit, filter, to_date, +3 more.
list_purchase_ordersBRead-only
Purchase orders (rows not included — use get_purchase_order). DELAYED = past delivery date, not fully received.
Inputs: limit, state, offset, search, +2 more.
list_stock_correctionsCRead-only
Stocktakings / stock corrections, optionally for one article.
Inputs: state, article_number.
list_supplier_invoicesDRead-only
Supplier invoices (bills we have to pay).
Inputs: page, limit, filter, to_date, +2 more.
mark_invoice_sentA
Mark an invoice as sent without e-mailing it (external print), e.g. when the PDF is sent another way.
Inputs: document_number (required), dry_run.
offer_to_orderC
Confirm an offer: creates an order from it.
Inputs: document_number (required), dry_run.
order_to_invoiceC
Create the invoice from an order (gets the next invoice number in the books).
Inputs: document_number (required), dry_run.
register_invoice_paymentB
Register an incoming customer payment on an invoice (amount in SEK; amount_currency for foreign-currency invoices). bookkeep=true books the payment as well.
Inputs: amount (required), document_number (required), dry_run, bookkeep, +3 more.
release_goods_receiptB
Put a goods receipt in stock: stock and value are booked, the PO's received quantities update.
Inputs: goods_receipt_id (required), dry_run.
release_manual_deliveryC
Apply a manual inbound/outbound delivery: stock and value change and are bookkept.
Inputs: type (required), delivery_id (required), dry_run.
release_stock_correctionA
Apply a started stock correction: stock is set to the counted quantity and bookkept. Completed corrections cannot be voided (a wrong count needs a new correction).
Inputs: stock_correction_id (required), dry_run.
search_articlesBRead-only
Search the article register. text searches description. Rows include stock, prices, EAN, webshop flag.
Always filtered on active/inactive (the unfiltered list hides which is which).
Inputs: ean, page, text, limit, +7 more.
search_customersARead-only
Find customers. vat_number / organisation_number scan ALL customers (registers often hold the same company under several customer numbers), so you find every existing account before creating a new one.
Inputs: name, email, vat_number, customer_number, +2 more.
search_suppliersCRead-only
Find suppliers by name, organisation number, e-mail or supplier number.
Inputs: name, email, supplier_number, organisation_number.
send_invoice_emailB
E-mail the invoice from Fortnox to the address on the invoice (customer-facing).
Inputs: document_number (required), dry_run.
send_offer_emailC
E-mail the offer PDF to the customer from Fortnox (customer-facing).
Inputs: document_number (required), dry_run.
send_order_emailB
E-mail the order confirmation PDF to the customer from Fortnox (customer-facing).
Inputs: document_number (required), dry_run.
send_purchase_orderC
E-mail the purchase order to the supplier (supplier-facing).
Inputs: purchase_order_id (required), dry_run.
set_article_supplierA
Add/update/remove one supplier entry on an article ('Leverantörsinformation': supplier part number, purchase price in the supplier's currency, lead time, MOQ). Reads the full list first and writes it back with only this supplier changed. Fortnox answers a random 404 now and then; if the list can't be read at all, the write is refused unless article_has_no_supplier_entries=true (otherwise other suppliers would be wiped).
Inputs: article_number (required), supplier_number (required), price, remove, +7 more.
set_invoice_warehouse_readyC
Mark an invoice as delivered/done in the warehouse.
Inputs: document_number (required), dry_run.
set_order_pointB
Set 'Beställningspunkt' (order point) and max stock on the server's stock point. -1 = not stocked, order when sold. (This is not the article's StockWarning/'Lagervarning' field.)
Inputs: order_point (required), article_number (required), dry_run, max_stock.
set_priceA
Set the sales price (company currency, ex VAT) on a price list (default: the server's price list, FORTNOX_PRICE_LIST). Creates the price row if the article has none on that list.
Inputs: price (required), article_number (required), dry_run, price_list.
set_purchase_order_responseC
Record the supplier's answer (e.g. when the order was placed by e-mail, phone or a web shop rather than sent from Fortnox).
Inputs: response (required), purchase_order_id (required), dry_run.
set_webshop_articleB
Tick/untick 'Webbshopsartikel'. Webshop integrations use this flag to publish the article, so ticking it is refused while the article has no price on the server's price list (it would go live at 0).
Inputs: on (required), article_number (required), dry_run.
start_stock_correctionA
Step 1 of correcting a stock balance (= a stocktaking with one counted row). Creates and starts it and returns the current balance next to the counted one. Nothing changes until release_stock_correction. Use when the count is wrong; for a real physical event (scrap, found goods) use a manual delivery.
Inputs: reason (required), article_number (required), counted_quantity (required), dry_run, +1 more.
stock_warningsCRead-only
The 'Lågt saldo' stock warning list (Lager → Lagerlista): supplier, article, in stock, on order, reserved, available, order shortage, order point, stock warning.
Inputs: status.
update_articleB
Change article fields. Description is cleaned of characters Fortnox would silently delete; EAN is checked (valid + unique). Never changes stock quantities (use goods receipt / stock correction). Price: use set_price. Webshop flag: use set_webshop_article.
Inputs: article_number (required), ean, note, active, +11 more.
update_customerA
Change customer fields (Fortnox field names, e.g. {"Address1": "...", "VATNumber": "...", "Email": "..."}). Existing documents keep the e-mail address they were created with.
Inputs: fields (required), customer_number (required), dry_run.
update_invoiceA
Change an UNBOOKED invoice (Fortnox header fields; rows replaces ALL rows — include RowId in extra to keep
rows). Re-pointing to another customer does NOT update the e-mail address (EmailInformation.EmailAddressTo) —
set it in fields too.
Inputs: document_number (required), rows, fields, dry_run.
update_offerC
Change an offer: fields = Fortnox header fields (e.g. {"ExpireDate": "2026-11-30"}); rows replaces ALL rows.
Inputs: document_number (required), rows, fields, dry_run.
update_orderB
Change an order (Fortnox header fields; rows replaces ALL rows). DeliveryState changes move stock.
Inputs: document_number (required), rows, fields, dry_run.
update_purchase_orderB
Change purchase-order head fields (partial update, e.g. {"deliveryDate": "2026-10-20", "internalReference": "..."}).
Inputs: fields (required), purchase_order_id (required), dry_run.
update_supplierC
Change supplier fields (Fortnox field names).
Inputs: fields (required), supplier_number (required), dry_run.
void_goods_receiptA
Void a goods receipt (only while not completed and not matched to a supplier invoice).
Inputs: goods_receipt_id (required), dry_run.
void_manual_deliveryC
Void a manual inbound/outbound delivery.
Inputs: type (required), delivery_id (required), dry_run.
void_purchase_orderC
Void a purchase order.
Inputs: purchase_order_id (required), dry_run.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 78 tools
Most tools target distinct Fortnox resources/actions, and descriptions actively clarify boundaries such as manual deliveries vs. goods receipts vs. stock corrections. However, the huge surface includes overlapping paths (create_invoice vs. order_to_invoice, release_manual_delivery vs. release_goods_receipt vs. release_stock_correction) and the catch-all api_request can duplicate any other tool, increasing misselection risk.
The dominant convention is clear verb_noun naming (search_customers, create_order, release_goods_receipt, send_invoice_email), which is predictable across most domains. Minor deviations such as company_info, stock_warnings, article_movements, and api_request keep it from being fully consistent.
With 78 tools, the surface is far too large for an agent to navigate efficiently, even for an ERP domain. Many tools are useful individually, but the count creates a heavy selection burden and invites use of the generic api_request fallback.
Coverage is broad across customers, suppliers, articles, stock, offers, orders, invoices, purchase orders, and goods receipts, and api_request provides an escape hatch. Notable first-class gaps remain around supplier invoice creation/update/payment and broader accounting/ledger operations, so it is not a fully complete ERP surface.
Maintenance
Related MCP Connectors
Connect ChatGPT and Claude to Fortnox: invoices, customers, reports. Every write needs your OK.
Connect ChatGPT and Claude to Fortnox: read your books and propose changes you approve before anything is written.
Fortnox accounting in Claude and ChatGPT: read and write bookkeeping, invoices and vouchers.
Fortnox MCP server for ChatGPT, Claude and any AI agent: create invoice, send invoice, create customer, book voucher and list unpaid invoices in your own Fortnox account. Cotlet works in the account through your Cloud Browser, a real Chrome where you sign in to Fortnox yourself; Cotlet does not store your password and you need no Fortnox API key. About the official Fortnox API: Yes, Fortnox has a public REST API with scopes for invoices, customers, vouchers and invoice payments (checked 14 Oct 2026), but it is not open by default: you register an integration, request scopes, and the company must hold the Fortnox licence each resource needs. Fortnox publishes no MCP server of its own. Setup and FAQ: https://cotlet.dev/integrations/fortnox-api-mcp-server
Related MCP Servers
- AlicenseBqualityDmaintenanceEnables AI assistants to interact with the Tripletex accounting API to manage time tracking, projects, and timesheet approvals through natural language. It also supports searching and managing outgoing invoices and processing supplier invoice approvals.312ISC
- AlicenseCqualityCmaintenanceEnables AI assistants to manage invoices, contacts, purchases, journal entries, and other accounting operations via the Fiken API.10020 npm8MIT
- AlicenseBqualityDmaintenanceEnables AI agents to manage invoices, customers, suppliers, accounting entries, orders, and more through Fortnox's cloud accounting platform via natural language.2068 npm1MIT
- AlicenseNot gradedqualityBmaintenanceEnables AI assistants to read and write accounting data in PowerOffice Go, including bookkeeping, sales, purchases, payroll, time tracking, and read-only bank access, with support for multiple companies and strict isolation.MIT