Prototype · Preview: every server in the official registry, synced every 30 minutes. Sign in with Google to write reviews.Prototype · updated every 30 min
PopNx MCPMCP servers for people who use AI · explained in plain words

Fortnox

by jakobwennbergversion 1.0.0i★ 48iRuns on your computerRepository ↗
Registry nameio.github.jakobwennberg/fortnox

How to install

What it does

MCP server for Fortnox Swedish accounting API integration

  • Connects Runs on your computer
  • Account or key Needs FORTNOX_CLIENT_ID, FORTNOX_CLIENT_SECRET, FORTNOX_REFRESH_TOKEN
  • Category Accounting, finance & tax

Why it ranks here

Lists are ordered by a usage score (out of 100) built from these parts

Popularity20/80GitHub stars or weekly downloads: the larger counts 60, the smaller 20
Freshness3/12Full marks for a release or code change within 30 days
Still answering0/8The cloud endpoint answered at the last check
Usage score23/100

Quality: Passed 2/3 basic checks (shown, not used for ordering) · Momentum: No data yet (Used only on the Trending tab)

Install

Pick the AI app you use, then copy the settings.

Let your AI install it with one sentence

Please install Fortnox. Follow https://mcp.popnx.com/i/jakobwennberg-fortnox.md, show me the commands and wait for my OK before running them.

Paste it into an AI that can work on your computer (such as Claude Code or Cursor). It reads our steps, shows you the commands and waits for your OK. No key, no sign-up. · See the full text your AI reads

Passed 2/3 checks · Runs on your computer · ✓ Commands checked Nov 14, 2026

First: which AI do you use?

Pick your app and the steps appear below.

Works with Claude, with some setup first

You need a Fortnox key (create it on the maker’s site) · Install Node.js on your computer first (one time) · Only the Claude desktop app (Windows or Mac), not the web or phone

Let AI install it

Copy this message into a Claude chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.

Please install the MCP server Fortnox for Claude on this computer, in this order: 1) Check Node.js with node -v. If it is missing, tell me to install it from https://nodejs.org/en/download; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): { "mcpServers": { "fortnox": { "command": "npx", "args": [ "-y", "fortnox-mcp-server" ], "env": { "FORTNOX_CLIENT_ID": "your-value", "FORTNOX_CLIENT_SECRET": "your-value", "FORTNOX_REFRESH_TOKEN": "your-value" } } } } 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) For FORTNOX_CLIENT_ID, FORTNOX_CLIENT_SECRET, FORTNOX_REFRESH_TOKEN, leave "your-value" in place and tell me to paste the real value myself into the file or the app’s field. Never ask me to type a key in chat. 5) Do what we agreed, then check that the Fortnox tools really show up.

This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.

  1. Install Node.js (if you don’t have it)

    Already installed? Check first · Open Terminal, type this command and press Enter

    node -v
    • A version number such as v26.13.1 = installed, skip this step
    • "command not found" (on Windows: "is not recognized") = not installed yet, or installed but Terminal needs to be closed and reopened
    How to open Terminal

    Mac: press ⌘ + Space, type Terminal, press Enter

    Windows: open Start, type Windows PowerShell, then Open

    Not installed: Open the official download page, pick the LTS version and the click-through installer: .pkg on Mac · .msi on Windows. Double-click and follow it to the end. No curl command needed

    Open the Node.js download page ↗

    When it’s done, close Terminal, open it again and run the same command. You should see a version number: node -v

    Install once; it works for everything that needs Node.js

  2. Sign up and create a Fortnox key

    Open the maker’s site, sign up and create an API key for the next step. Check the maker’s site for pricing and free plans.

    How to get a key is in the maker’s README below

  3. Open the Claude desktop app’s settings file

    SettingsDeveloperEdit Config

  4. Paste these settings and save the file

    {
      "mcpServers": {
        "fortnox": {
          "command": "npx",
          "args": [
            "-y",
            "fortnox-mcp-server"
          ],
          "env": {
            "FORTNOX_CLIENT_ID": "your-value",
            "FORTNOX_CLIENT_SECRET": "your-value",
            "FORTNOX_REFRESH_TOKEN": "your-value"
          }
        }
      }
    }

    Paste the key only into the app’s field, never into a chat or to anyone

  5. Quit Claude and open it again

  6. Try it

    Use Fortnox and tell me what you can do for me, then show me one thing

    ✓ If Claude says it is using Fortnox or shows a Fortnox tool in the answer, you are connected

Menu names checked against Anthropic’s help page on Nov 11, 2026 · your screen may differ slightly by app version

ChatGPT cannot connect Fortnox yet

Fortnox runs on your computer, but ChatGPT can only connect servers that run on the web

What you can do instead

A · Use an app that can connect Fortnox

  • You need a Fortnox key (create it on the maker’s site) · Install Node.js on your computer first (one time) · Only the Claude desktop app (Windows or Mac), not the web or phone
  • You need a Fortnox key (create it on the maker’s site) · Install Node.js on your computer first (one time)
  • You need a Fortnox key (create it on the maker’s site) · Install Node.js on your computer first (one time)
  • You need a Fortnox key (create it on the maker’s site) · Install Node.js on your computer first (one time)

B · Others in Accounting, finance & tax that work with ChatGPT

Picked from the most used in the same category, only ones that connect by address with no key

Works with Claude Code, with some setup first

You need a Fortnox key (create it on the maker’s site) · Install Node.js on your computer first (one time)

Let AI install it

Copy this message into a Claude Code chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.

Please install the MCP server Fortnox for Claude Code on this computer, in this order: 1) Check Node.js with node -v. If it is missing, tell me to install it from https://nodejs.org/en/download; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): claude mcp add --scope user fortnox --env FORTNOX_CLIENT_ID=your-value --env FORTNOX_CLIENT_SECRET=your-value --env FORTNOX_REFRESH_TOKEN=your-value -- npx -y fortnox-mcp-server 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) For FORTNOX_CLIENT_ID, FORTNOX_CLIENT_SECRET, FORTNOX_REFRESH_TOKEN, leave "your-value" in place and tell me to paste the real value myself into the file or the app’s field. Never ask me to type a key in chat. 5) Do what we agreed, then check that the Fortnox tools really show up.

This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.

  1. Install Node.js (if you don’t have it)

    Already installed? Check first · Open Terminal, type this command and press Enter

    node -v
    • A version number such as v26.13.1 = installed, skip this step
    • "command not found" (on Windows: "is not recognized") = not installed yet, or installed but Terminal needs to be closed and reopened
    How to open Terminal

    Mac: press ⌘ + Space, type Terminal, press Enter

    Windows: open Start, type Windows PowerShell, then Open

    Not installed: Open the official download page, pick the LTS version and the click-through installer: .pkg on Mac · .msi on Windows. Double-click and follow it to the end. No curl command needed

    Open the Node.js download page ↗

    When it’s done, close Terminal, open it again and run the same command. You should see a version number: node -v

    Install once; it works for everything that needs Node.js

  2. Sign up and create a Fortnox key

    Open the maker’s site, sign up and create an API key for the next step. Check the maker’s site for pricing and free plans.

    How to get a key is in the maker’s README below

  3. Open Terminal

    Mac: press Command+Space and type Terminal · Windows: open PowerShell

  4. Paste this command and press Enter

    claude mcp add --scope user fortnox --env FORTNOX_CLIENT_ID=your-value --env FORTNOX_CLIENT_SECRET=your-value --env FORTNOX_REFRESH_TOKEN=your-value -- npx -y fortnox-mcp-server

    Replace “your-value” with your key before pressing Enter

    Paste the key only into the app’s field, never into a chat or to anyone

  5. Type /mcp in Claude Code

    You should see Fortnox listed as connected

  6. Try it

    Use Fortnox and tell me what you can do for me, then show me one thing

    ✓ If Claude Code says it is using Fortnox or shows a Fortnox tool in the answer, you are connected

Menu names checked against Anthropic’s help page on Nov 11, 2026 · your screen may differ slightly by app version

Works with Cursor, with some setup first

You need a Fortnox key (create it on the maker’s site) · Install Node.js on your computer first (one time)

Let AI install it

Copy this message into a Cursor chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.

Please install the MCP server Fortnox for Cursor on this computer, in this order: 1) Check Node.js with node -v. If it is missing, tell me to install it from https://nodejs.org/en/download; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): { "mcpServers": { "fortnox": { "command": "npx", "args": [ "-y", "fortnox-mcp-server" ], "env": { "FORTNOX_CLIENT_ID": "your-value", "FORTNOX_CLIENT_SECRET": "your-value", "FORTNOX_REFRESH_TOKEN": "your-value" } } } } 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) For FORTNOX_CLIENT_ID, FORTNOX_CLIENT_SECRET, FORTNOX_REFRESH_TOKEN, leave "your-value" in place and tell me to paste the real value myself into the file or the app’s field. Never ask me to type a key in chat. 5) Do what we agreed, then check that the Fortnox tools really show up.

This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.

  1. Install Node.js (if you don’t have it)

    Already installed? Check first · Open Terminal, type this command and press Enter

    node -v
    • A version number such as v26.13.1 = installed, skip this step
    • "command not found" (on Windows: "is not recognized") = not installed yet, or installed but Terminal needs to be closed and reopened
    How to open Terminal

    Mac: press ⌘ + Space, type Terminal, press Enter

    Windows: open Start, type Windows PowerShell, then Open

    Not installed: Open the official download page, pick the LTS version and the click-through installer: .pkg on Mac · .msi on Windows. Double-click and follow it to the end. No curl command needed

    Open the Node.js download page ↗

    When it’s done, close Terminal, open it again and run the same command. You should see a version number: node -v

    Install once; it works for everything that needs Node.js

  2. Sign up and create a Fortnox key

    Open the maker’s site, sign up and create an API key for the next step. Check the maker’s site for pricing and free plans.

    How to get a key is in the maker’s README below

  3. Click this button to open Cursor

    Open in Cursor

    Cursor asks you to confirm; click Install

  4. Fill in your key

    In the Fortnox settings, FORTNOX_CLIENT_ID, FORTNOX_CLIENT_SECRET, FORTNOX_REFRESH_TOKEN is empty; add your key and save

    Paste the key only into the app’s field, never into a chat or to anyone

  5. Open the AI chat in Cursor in Agent mode

  6. Try it

    Use Fortnox and tell me what you can do for me, then show me one thing

    ✓ If Cursor says it is using Fortnox or shows a Fortnox tool in the answer, you are connected

Menu names checked against Cursor’s help page on Nov 11, 2026 · your screen may differ slightly by app version

Works with VS Code, with some setup first

You need a Fortnox key (create it on the maker’s site) · Install Node.js on your computer first (one time)

Let AI install it

Copy this message into a VS Code chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.

Please install the MCP server Fortnox for VS Code on this computer, in this order: 1) Check Node.js with node -v. If it is missing, tell me to install it from https://nodejs.org/en/download; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): { "servers": { "fortnox": { "type": "stdio", "command": "npx", "args": [ "-y", "fortnox-mcp-server" ], "env": { "FORTNOX_CLIENT_ID": "your-value", "FORTNOX_CLIENT_SECRET": "your-value", "FORTNOX_REFRESH_TOKEN": "your-value" } } } } 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) For FORTNOX_CLIENT_ID, FORTNOX_CLIENT_SECRET, FORTNOX_REFRESH_TOKEN, leave "your-value" in place and tell me to paste the real value myself into the file or the app’s field. Never ask me to type a key in chat. 5) Do what we agreed, then check that the Fortnox tools really show up.

This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.

  1. Install Node.js (if you don’t have it)

    Already installed? Check first · Open Terminal, type this command and press Enter

    node -v
    • A version number such as v26.13.1 = installed, skip this step
    • "command not found" (on Windows: "is not recognized") = not installed yet, or installed but Terminal needs to be closed and reopened
    How to open Terminal

    Mac: press ⌘ + Space, type Terminal, press Enter

    Windows: open Start, type Windows PowerShell, then Open

    Not installed: Open the official download page, pick the LTS version and the click-through installer: .pkg on Mac · .msi on Windows. Double-click and follow it to the end. No curl command needed

    Open the Node.js download page ↗

    When it’s done, close Terminal, open it again and run the same command. You should see a version number: node -v

    Install once; it works for everything that needs Node.js

  2. Sign up and create a Fortnox key

    Open the maker’s site, sign up and create an API key for the next step. Check the maker’s site for pricing and free plans.

    How to get a key is in the maker’s README below

  3. Click this button to open VS Code

    Open in VS Code

    VS Code asks you to confirm; click Install

  4. Fill in your key

    In the Fortnox settings, FORTNOX_CLIENT_ID, FORTNOX_CLIENT_SECRET, FORTNOX_REFRESH_TOKEN is empty; add your key and save

    Paste the key only into the app’s field, never into a chat or to anyone

  5. Open the AI chat in VS Code in Agent mode

  6. Try it

    Use Fortnox and tell me what you can do for me, then show me one thing

    ✓ If VS Code says it is using Fortnox or shows a Fortnox tool in the answer, you are connected

Menu names checked against VS Code’s help page on Nov 11, 2026 · your screen may differ slightly by app version

Other apps that use MCP, such as Windsurf, Zed or Gemini CLI, each add servers differently. See how in the app list.

See every app that uses MCP →

JSON settings are under “For developers” below

Stuck? Ask people who use Fortnox💬 Discussion →
For developers: Terminal commands and JSON settings

Installed on your computer

Claude Code

claude mcp add --scope user fortnox --env FORTNOX_CLIENT_ID=your-value --env FORTNOX_CLIENT_SECRET=your-value --env FORTNOX_REFRESH_TOKEN=your-value -- npx -y fortnox-mcp-server

Claude Desktop (claude_desktop_config.json)

{
  "mcpServers": {
    "fortnox": {
      "command": "npx",
      "args": [
        "-y",
        "fortnox-mcp-server"
      ],
      "env": {
        "FORTNOX_CLIENT_ID": "your-value",
        "FORTNOX_CLIENT_SECRET": "your-value",
        "FORTNOX_REFRESH_TOKEN": "your-value"
      }
    }
  }
}

Cursor (~/.cursor/mcp.json)

{
  "mcpServers": {
    "fortnox": {
      "command": "npx",
      "args": [
        "-y",
        "fortnox-mcp-server"
      ],
      "env": {
        "FORTNOX_CLIENT_ID": "your-value",
        "FORTNOX_CLIENT_SECRET": "your-value",
        "FORTNOX_REFRESH_TOKEN": "your-value"
      }
    }
  }
}

VS Code (mcp.json)

{
  "servers": {
    "fortnox": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "fortnox-mcp-server"
      ],
      "env": {
        "FORTNOX_CLIENT_ID": "your-value",
        "FORTNOX_CLIENT_SECRET": "your-value",
        "FORTNOX_REFRESH_TOKEN": "your-value"
      }
    }
  }
}

Values you fill in

  • FORTNOX_CLIENT_ID secret required env
    Your Fortnox app client ID from developer.fortnox.se
  • FORTNOX_CLIENT_SECRET secret required env
    Your Fortnox app client secret
  • FORTNOX_REFRESH_TOKEN secret required env
    OAuth2 refresh token obtained from Fortnox authorization flow

Descriptions are as written by the maker.

These settings are generated from the maker’s registry entry. If the README says otherwise, follow the README.

At a glance

Downloads per weeki
58/wk
Connection
Runs on your computer
Latest versioni
1.0.0
Published to registryi
Jan 25, 2026
Code last changedi
Apr 28, 2026
Maker
jakobwennberg
Packages
npm: fortnox-mcp-server
Registry status
Active

Which apps can use it

Based on how this server connects and on each app’s own docs, checked Nov 10, 2026.

Run on your computer in

ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast

All apps, with pros and cons →

Related guides

What it can do

Runs on your computer; the tool list appears in your AI app after you install it.

Basic checksi

We check information anyone can see; we have not read the code. Checks that do not apply are left out of the count. · Checked Nov 19, 2026

  • ✓ Pass

    Maker matches the repo

    The registry name was verified with the GitHub account erp-mafia, which owns the repo

  • ! Caution

    Still maintained

    Code last changed 7 months ago, more than 6 months ago

  • ✓ Pass

    Has a licence

    Uses MIT

  • – Not applicable

    Endpoint responds

    This one runs on your computer; there is no internet endpoint

  • – Not applicable

    Sign-in with OAuth

    Runs on your computer and uses local settings instead

  • … Not checked yet

    No hidden instructions in tool descriptions

    Runs on your computer; we can only read tool lists from internet endpoints

Published vulnerabilities (OSV.dev)

No entries on OSV.dev for fortnox-mcp-server@1.0.0

Checks only this package version, not every dependency · checked Nov 15, 2026

What we check → · JSON

Makers: ask for a re-check or report wrong info
For makers: add a badge to your README

If you made this, paste this code into your README. The badge links back to this page.

[![Featured on PopNx MCP](https://mcp.popnx.com/badge/jakobwennberg-fortnox.svg)](https://mcp.popnx.com/en/servers/jakobwennberg-fortnox)

Discussion

Ask, share a tip or report that it does not work. Sorted by what people marked helpful.

No posts yet. Be the first to ask or share.

Posts here are written by users, not the PopNx team.

Sign in to post

User reviews

No reviews yet

Sign in to write a review

Compared with others in Accounting, finance & taxi

  • More stars than 98% of the other 3423 servers in this category
  • Published to the registry more recently than 0% of the other 3423 servers in this category
  • Basic checks equal to or better than 53% of the other 3423 servers in this category

Compared with every active server in this category in the registry. Stars count only when the publisher owns the repo.

Common questions

Is Fortnox safe?

It passed 2 of 3 applicable basic checks. We have not read the code. Before adding a key or token, see what access the server asks for and use a key with only the permissions you need.

What keys or codes does it need?

You need to fill in: FORTNOX_CLIENT_ID, FORTNOX_CLIENT_SECRET, FORTNOX_REFRESH_TOKEN

Does it run on my computer or in the cloud?

It runs on your computer. Your AI app starts it when needed, and data does not pass through the maker’s servers (unless it calls an online service itself).

Is it still maintained?

The GitHub repo last changed 7 months ago, and the latest version (1.0.0) reached the registry 10 months ago.

Which apps can use it?

Apps that support MCP, such as Claude Desktop, Claude Code, Cursor and VS Code. You also need Node.js on your computer.

What can I use instead?

In the same category: SolidInvoice, Signal8, Journalit, Beancount.io, Tapetide - Indian Stock Market MCP

Similar alternatives

Same category, other makers, commands already checked. Official ones first, then by stars.

Reading a card:↓ Downloads per weeki★ GitHub starsiThree pillars: reviews · checks · usageiUpdated = latest version published to the registryi

SolidInvoice

Create and send invoices and quotes, manage clients, and track payments in SolidInvoice.

by SolidInvoiceGrowing★ 989Updated 10 days ago

Runs in the cloud✓ service owner · solidinvoice.co

Signal8

SEC filings, dilution, insider & institutional ownership, and political-trade data for AI agents.

by signal8aiGrowing↓ 431/wk★ 425Updated 10 days ago

Computer or cloud✓ service owner · signal8.ai

Journalit

Trading journal in Obsidian. Ask Claude or ChatGPT about your trades; edits are previewed first.

by CursivezGrowing★ 261Updated 11 days ago

Runs in the cloud✓ service owner · journalit.co

Beancount.io

Query, edit, and reconcile a hosted Beancount ledger: BQL, reports, files, and bank imports.

by bex-coGrowing★ 702 Stars for the whole repoUpdated 44 days ago

Runs in the cloud✓ service owner · beancount.io
Compared with similar ones
This one
Fortnox
SolidInvoiceSignal8JournalitBeancount.ioTapetide - Indian Stock Market MCP
Runs whereInstalls on your computerRuns in the cloud, nothing to installCloud or install on your computerRuns in the cloud, nothing to installRuns in the cloud, nothing to installCloud or install on your computer
Needs a keyYesNoYesNoNoYes
Add with + in ClaudeNoNoNoNoNoNo
Basic checks2/34/65/54/44/45/5
LicenseMITMITMITNOASSERTIONMITMIT
PriceNo cost listed in the registryNo cost listed in the registryNo cost listed in the registryNo cost listed in the registryNo cost listed in the registryNo cost listed in the registry

README from the maker

Open the README

Copied from the maker’s repo as written. PopNx MCP has not reviewed or endorsed it. HTML, images and scripts are removed. Links lead off this site.

Fortnox MCP Server

An MCP (Model Context Protocol) server for integrating with the Fortnox Swedish accounting system. This server enables LLMs to interact with Fortnox for managing invoices, customers, suppliers, orders, accounts, vouchers, and provides business intelligence analytics.

Two Ways to Use

ModeBest ForSetup
Remote ModeEnd usersJust add URL, authorize in browser
Local ModeDevelopers, self-hostedConfigure environment variables

Quick Start: Remote Mode (Recommended)

The easiest way to use Fortnox MCP - no credentials needed, just authorize in your browser.

Option A: Add to Claude.ai (Web)
  1. Go to claude.ai
  2. Navigate to Settings → Integrations → Add Integration
  3. Enter the URL: https://fortnox-mcp.vercel.app/mcp
  4. Wait for it to load, then authorize access by clicking connect
Option B: Add to Claude Desktop

Open your Claude Desktop config file:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json

Add this configuration:

{

"mcpServers": { "fortnox": { "url": "https://fortnox-mcp.vercel.app/mcp" } } }

Restart Claude Desktop. When you first ask Claude to do something with Fortnox, a browser window will open for you to authorize access to your Fortnox account. Once authorized, you're all set!


Quick Start: Local Mode (Self-Hosted)

For developers who want to run the server locally or use their own Fortnox app credentials.

1. Get your Fortnox credentials
  1. Register at Fortnox Developer Portal
  2. Create an application to get your Client ID and Client Secret
  3. Complete the OAuth2 flow to get a Refresh Token
2. Add to Claude Desktop

Open your Claude Desktop config file:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json

Add this configuration:

{

"mcpServers": { "fortnox": { "command": "npx", "args": ["-y", "fortnox-mcp-server"], "env": { "FORTNOX_CLIENT_ID": "your-client-id", "FORTNOX_CLIENT_SECRET": "your-client-secret", "FORTNOX_REFRESH_TOKEN": "your-refresh-token" } } } }

3. Restart Claude Desktop

That's it! You can now ask Claude to manage your Fortnox invoices, customers, and more.


Features

Customer Management
  • fortnox_list_customers - List and search customers
  • fortnox_get_customer - Get customer details
  • fortnox_create_customer - Create new customer
  • fortnox_update_customer - Update customer
  • fortnox_delete_customer - Delete customer
Invoice Management
  • fortnox_list_invoices - List invoices with filtering
  • fortnox_get_invoice - Get invoice details with line items
  • fortnox_create_invoice - Create new invoice
  • fortnox_update_invoice - Update draft invoice
  • fortnox_bookkeep_invoice - Bookkeep invoice
  • fortnox_cancel_invoice - Cancel invoice
  • fortnox_credit_invoice - Create credit note
  • fortnox_send_invoice_email - Send invoice by email
Supplier Management
  • fortnox_list_suppliers - List and search suppliers
  • fortnox_get_supplier - Get supplier details
  • fortnox_create_supplier - Create new supplier
  • fortnox_update_supplier - Update supplier
  • fortnox_delete_supplier - Delete supplier
Supplier Invoice Management
  • fortnox_list_supplier_invoices - List supplier invoices with filtering
  • fortnox_get_supplier_invoice - Get supplier invoice details
  • fortnox_approve_supplier_invoice - Approve supplier invoice for payment
  • fortnox_payables_report - Get accounts payable aging report
Order Management
  • fortnox_list_orders - List sales orders with filtering
  • fortnox_list_offers - List offers/quotes with filtering
Account Management
  • fortnox_list_accounts - List chart of accounts
  • fortnox_get_account - Get account details
  • fortnox_create_account - Create new account
  • fortnox_update_account - Update account
  • fortnox_delete_account - Delete account
Voucher Management
  • fortnox_list_vouchers - List vouchers (journal entries)
  • fortnox_get_voucher - Get voucher details with rows
  • fortnox_create_voucher - Create manual voucher
  • fortnox_list_voucher_series - List available voucher series
  • fortnox_account_activity - Get activity for a specific account
  • fortnox_search_vouchers - Search vouchers by description, account, or amount
Company Information
  • fortnox_get_company_info - Get company details
  • fortnox_list_financial_years - List company financial years
Analytics
  • fortnox_invoice_summary - Get invoice statistics by period
  • fortnox_top_customers - Get top customers by revenue
  • fortnox_unpaid_report - Get detailed unpaid invoice report
Business Intelligence
  • fortnox_cash_flow_forecast - Forecast cash flow based on invoices and payables
  • fortnox_order_pipeline - Analyze sales order pipeline
  • fortnox_sales_funnel - Analyze sales funnel from offers to invoices
  • fortnox_product_performance - Analyze product/article performance
  • fortnox_period_comparison - Compare financial metrics across periods
  • fortnox_customer_growth - Analyze customer acquisition and growth
  • fortnox_project_profitability - Analyze project profitability (if using projects)
  • fortnox_cost_center_analysis - Analyze costs by cost center
  • fortnox_expense_analysis - Analyze expenses by category
  • fortnox_yearly_comparison - Compare year-over-year performance
  • fortnox_gross_margin_trend - Track gross margin trends over time

Installation

Via npx (Recommended)

No installation needed! Just add the config above to Claude Desktop.

Manual Installation
npm install -g fortnox-mcp-server
From Source
git clone https://github.com/jakobwennberg/fortnox-mcp.git

cd fortnox-mcp npm install npm run build

Configuration

Environment Variables
Local Mode (default)
VariableRequiredDescription
FORTNOX_CLIENT_IDYesYour Fortnox app client ID
FORTNOX_CLIENT_SECRETYesYour Fortnox app client secret
FORTNOX_REFRESH_TOKENYesOAuth2 refresh token (only needed for initial setup; automatically persisted after first use)
FORTNOX_ACCESS_TOKENNoCurrent access token (auto-refreshed)
TRANSPORTNostdio (default) or http
PORTNoHTTP port (default: 3000)
Remote Mode (AUTH_MODE=remote)
VariableRequiredDescription
AUTH_MODEYesSet to remote
SERVER_URLYesPublic URL of your server
JWT_SECRETYesSecret for signing JWT tokens
FORTNOX_CLIENT_IDYesYour Fortnox app client ID
FORTNOX_CLIENT_SECRETYesYour Fortnox app client secret
UPSTASH_REDIS_REST_URLYes*Upstash Redis URL for token storage
UPSTASH_REDIS_REST_TOKENYes*Upstash Redis token
PORTNoHTTP port (default: 3000)

*Falls back to in-memory storage if not provided (not recommended for production)

Getting OAuth Credentials
  1. Register as a developer at Fortnox Developer Portal
  2. Create a new application to get Client ID and Client Secret
  3. Complete the OAuth2 authorization flow to obtain a refresh token
  4. Set the environment variables

Usage

With Claude Desktop

See Quick Start above.

As HTTP Server
TRANSPORT=http PORT=3000 node dist/index.js

Then connect to http://localhost:3000/mcp

Tool Examples

List Unpaid Invoices
{

"tool": "fortnox_list_invoices", "arguments": { "filter": "unpaid", "limit": 20 } }

Create Invoice
{

"tool": "fortnox_create_invoice", "arguments": { "customer_number": "1001", "rows": [ { "description": "Consulting services", "quantity": 10, "price": 1000 } ] } }

Create Voucher
{

"tool": "fortnox_create_voucher", "arguments": { "voucher_series": "A", "description": "Office supplies", "transaction_date": "2025-01-24", "rows": [ { "account_number": 6110, "debit": 500 }, { "account_number": 1910, "credit": 500 } ] } }

Rate Limiting

The Fortnox API allows 25 requests per 5 seconds. This server includes automatic rate limiting to prevent exceeding this limit.

Development

# Run in development mode with auto-reload

npm run dev

Build for production

npm run build

Clean build artifacts

npm run clean

Publishing & Distribution

This server is published to multiple registries for easy installation:

RegistryURLPurpose
npmnpmjs.com/package/fortnox-mcp-serverPackage distribution via npx
MCP Registryregistry.modelcontextprotocol.ioOfficial MCP server discovery
GitHubgithub.com/jakobwennberg/fortnox-mcpSource code
How It Works
  1. User adds config to Claude Desktop with npx fortnox-mcp-server
  2. Claude Desktop starts the server via npx (downloads latest version from npm)
  3. Server authenticates with Fortnox using OAuth2 credentials from environment variables
  4. Claude can now use tools like fortnox_list_invoices, fortnox_create_customer, etc.
  5. Server handles API calls to Fortnox, including automatic token refresh and rate limiting
Token Persistence (Local Mode)

Fortnox refresh tokens are single-use — each token refresh returns a new one. The server automatically persists the latest refresh token to ~/.fortnox-mcp/tokens.json so it survives process restarts without requiring manual config updates.

  • On first run, the server reads FORTNOX_REFRESH_TOKEN from your environment/config
  • After each token refresh, the new refresh token is saved to ~/.fortnox-mcp/tokens.json
  • On subsequent restarts, the server uses the persisted token (which is always the latest)
  • If the persisted file is missing or corrupt, the server falls back to the environment variable

The token file is created with restricted permissions (0600) for security.

Releasing New Versions

To release a new version, use the release script:

# Bug fixes (1.0.0 → 1.0.1)

npm run release:patch

New features (1.0.0 → 1.1.0)

npm run release:minor

Breaking changes (1.0.0 → 2.0.0)

npm run release:major

The release script automatically:

  1. Bumps the version in package.json
  2. Updates server.json for the MCP Registry
  3. Builds the project
  4. Commits and tags the release
  5. Publishes to npm
  6. Publishes to MCP Registry
  7. Pushes to GitHub

Prerequisites for releasing:

  • npm login - Logged into npm
  • mcp-publisher login github - Logged into MCP Registry
  • Clean git working directory
Users Get Updates Automatically

When you publish a new version, users running npx -y fortnox-mcp-server will automatically get the latest version the next time they restart Claude Desktop.


Deploying Your Own Remote Server

Want to host your own instance of the Fortnox MCP server? Follow these instructions.

Deploy to Vercel
1. Prerequisites
2. Set Environment Variables

In your Vercel project settings, add these environment variables:

Only the beginning is shown; read the rest in the repo