Where is the source code for Bokio?
The source code is linked from the repository URL on this page.
@diblaze
Basic information
Model Context Protocol server for the Bokio accounting API (private Bearer auth, read-only by default)
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"bokio": {
"command": "npx",
"args": [
"-y",
"bokio-mcp"
],
"env": {
"BOKIO_TOKEN": "your_token",
"BOKIO_COMPANY_ID": "your_company_id",
"BOKIO_DOWNLOAD_DIR": "/path/for/downloads",
"BOKIO_ALLOW_WRITES": ""
}
}
}
}Get the Bokio company's own details, such as its name and organisation number. Use it to confirm which company the token and companyId point at.
List the company's fiscal years with their ids and start and end dates. The ids feed bokio_download_sie and the fiscalYearId of bokio_account_balances.
Get one fiscal year by id, with its start and end dates. bokio_list_fiscal_years returns all of them in one call.
List the company's BAS chart of accounts: account numbers with names. Use it to find the account number the ledger and balance tools take; bokio_get_account reads a single account.
Get one account from the BAS chart of accounts by number. For its balance or postings use bokio_account_balances or bokio_account_ledger.
Download the raw SIE 4 export of one fiscal year to savePath, or return its first 4,000 characters as text when savePath is omitted. For balances, ledgers, VAT or profit and loss use the computed tools, which read this export themselves and do the arithmetic.
Compute the opening balance, movement and balance per account at a date from the SIE export. Use it for what is on an account at a date; bokio_account_ledger shows the individual lines. Amounts in ledger sign: debit positive, credit negative.
List the postings on one account between two dates with a running balance, ordered by date, series and number, computed from the SIE export. Annulled verifications are kept and flagged cancelled; bokio_list_journal_entries lists whole verifications instead. Amounts in ledger sign: debit positive, credit negative.
Find possible double bookings in the SIE export: lines with the same account and amount from different verifications within windowDays of each other. Annulled verifications are skipped; to check against a bank statement use bokio_reconcile_bank. Amounts in ledger sign: debit positive, credit negative.
Match bank statement rows against one ledger account by exact amount within toleranceDays, reading the SIE export itself; rows in date order each take the earliest unmatched ledger line within toleranceDays, each ledger line once. Returns matched pairs, unmatched rows on both sides, suspected duplicate ledger lines and totals, where difference = ledger minus bank. Amounts in ledger sign: debit positive, credit negative.
Sum the VAT accounts (2610-2659) and sales accounts (3000-3999) for a period, with outputVat (negated 2610-2639), inputVat (2640-2649) and netVat = output minus input, positive when VAT is to pay. These are account totals and do not map to tax-return boxes. Amounts in ledger sign: debit positive, credit negative.
Sum the result accounts (BAS classes 3-8) for a period, grouped by class or by account, with result = negated total so that profit is positive. For balance-sheet accounts use bokio_account_balances. Amounts in ledger sign: debit positive, credit negative.
List unpaid items on a ledger account at asOf, matching each payment to the earliest unpaid posting of the same amount (FIFO, exact öre). Returns open items with their age in days, payments that matched nothing, the balance, and the oldest loaded year's opening balance as one unitemised amount. Amounts in ledger sign: debit positive, credit negative.
List journal entries (verifikationer) with paging, optionally between from and to or narrowed by a raw query filter. For the postings on one account use bokio_account_ledger.
Get one journal entry (verifikation) by id, as Bokio returns it. To find entries by date use bokio_list_journal_entries.
List customer invoices with paging and a raw query filter. Revenue booked as journal entries is not listed here; use bokio_account_ledger or bokio_open_items for that.
Get one customer invoice by id, as Bokio returns it. Use bokio_download_invoice for the PDF and bokio_list_invoice_payments for its payments.
Download a published invoice as a PDF file to savePath. Returns the written path and byte count; bokio_get_invoice returns the invoice data instead.
List the payments registered on one invoice, with paging. Fees and currency differences are listed by bokio_list_invoice_settlements.
List the settlements on one invoice: currency differences, bank fees and payment-service fees. Payments are listed by bokio_list_invoice_payments.
List credit notes (kreditfakturor) with paging and a raw query filter. Customer invoices are listed by bokio_list_invoices.
Get one credit note by id, as Bokio returns it. Use bokio_download_credit_note for the PDF.
Download a published credit note as a PDF file to savePath. Returns the written path and byte count.
List suppliers (leverantörer) with paging and a raw query filter. Their invoices are listed by bokio_list_supplier_invoices.
Get one supplier by id, as Bokio returns it. Their invoices are listed by bokio_list_supplier_invoices.
List supplier invoices (leverantörsfakturor) with paging and a raw query filter. For unpaid supplier debt by age use bokio_open_items on account 2440.
Get one supplier invoice by id, as Bokio returns it. An attached file downloads with bokio_download_upload.
List bank payments with paging. Bokio returns only payments created by this integration, and creating them is deliberately not exposed.
Get one bank payment by id. Bokio returns only payments created by this integration, and creating them is deliberately not exposed.
List customers with paging and a raw query filter. Use bokio_get_customer for one customer's details.
Get one customer by id, as Bokio returns it. Their invoices are listed by bokio_list_invoices.
List items (artiklar), the products and services used on invoice lines, with paging. Use bokio_get_item for one item.
Get one item (artikel) by id, as Bokio returns it.
List uploaded files and receipts (kvitton) with paging. Use bokio_download_upload for a file's content.
Get one upload's metadata by id. bokio_download_upload fetches the file itself.
Download an uploaded file's content to savePath. Returns the written path and byte count; bokio_get_upload returns its metadata.
Send a GET to any Bokio API path that no other tool covers; {companyId} in the path is replaced with the company id. Returns the response body.
Model Context Protocol server for the Bokio accounting API (private Bearer auth, read-only by default)
The README includes setup instructions such as bokio -- npx -y bokio-mcp.
The source code is linked from the repository URL on this page.
If the README contains a parseable MCP configuration block, it is shown in the Config tab.

Verified distributed compute for humans, applications, and agents. Submit Blender, Octane, and video workloads, route them across qualified GPUs, track asynchronous execution, download finished artifacts, and verify FARP
CronWatch records every run of your scheduled jobs in your own database, and speaks up when one is missed, fails, gets stuck, runs slow or costs too much. CronWatch is free and open-source.

Turn Perfex CRM into an AI-ready workspace. This MCP server exposes your full REST API to Claude, ChatGPT and any AI agent, so leads, invoices and tasks are one prompt away.

Automated codebase documentation for GitHub: searchable docs, MCP context for AI agents, doc drift detection, and Friday Cleanup PRs.

Agent-Native Terminal
Comments