bokio-mcp

io.github.diblaze由 GitHub 帳號 diblaze 發布v0.6.0更新於 Oct 29, 2026

Bokio accounting API as MCP tools: ledger, invoices, SIE balances, VAT, P&L. Read-only by default.

已驗證STDIO僅桌面金融商業與電商

概覽

AI 產生的概覽

將 Bokio 會計 API 接上助理,可讀取並在開啟後修改公司的帳簿、發票、營業稅與 SIE 餘額。

可以做什麼
  • 讀取公司資訊、會計年度、科目表與科目,並下載 SIE 匯出檔
  • 列出與取得日記帳分錄,開啟寫入後可建立與沖銷分錄
  • 列出、取得、下載 PDF 發票與貸項通知單,開啟寫入後可建立、更新、刪除、發布、入帳與結算
  • 列出與取得客戶、供應商、供應商發票、品項、上傳檔案與銀行付款
  • 計算指定日期的餘額、單一科目明細帳、期間營業稅與損益、未結項目、疑似重複入帳及銀行對帳
  • 對任意 Bokio API 路徑送出原始 GET 請求
適用情境
適合在 Bokio 自行記帳的小型公司與顧問,用自然語言查詢餘額、未付發票、某季營業稅或重複入帳,並可選擇讓助理建立或修改紀錄。
執行需求
透過 npx 以 stdio 在本機執行,需要 Node.js 22 或更新版本。需要 Bokio 私有整合權杖(BOKIO_TOKEN)與公司 ID(BOKIO_COMPANY_ID)。建議設定 BOKIO_DOWNLOAD_DIR 以存放 SIE、PDF 與上傳檔案下載;BOKIO_BASE_URL 與 BOKIO_ALLOW_WRITES 為選用。Bokio 限制每家公司每月 5,000 次請求、每分鐘 200 次。
安裝前請注意
BOKIO_TOKEN 是可存取真實會計資料的私有 Bearer 權杖,請勿放入會被提交或分享的檔案。將 BOKIO_ALLOW_WRITES 設為 1、true、yes 或 on 會啟用建立、更新、刪除、發布與入帳發票、貸項通知單、日記帳分錄、客戶、供應商與品項的工具。銀行付款依設計僅供讀取。下載檔案會寫入 BOKIO_DOWNLOAD_DIR,該目錄以外的路徑會被拒絕。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 bokio-mcp,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

bokio-mcp

[CI] [npm] [downloads]

An MCP server for the Bokio accounting API. Connect it to Claude or any other MCP client and you can ask about your books in plain language: what is on the bank account at a given date, which customer invoices are still unpaid, what the VAT for last quarter adds up to, whether anything has been booked twice.

It is built for small companies and consultants who keep their own books in Bokio. By default it only reads: write tools stay hidden until you turn them on, so it is safe to point at live accounting data.

What it covers

The server wraps the Bokio API for one company: journal entries, invoices, credit notes, customers, suppliers, supplier invoices, items, uploads, bank payments (read only), chart of accounts, fiscal years and the SIE export.

It also has computed tools that work on the SIE export: balances at a date, a ledger for one account, VAT and profit and loss for a period, open items, possible double bookings, and reconciliation against a bank statement. The server does that arithmetic in whole öre and hands the client finished numbers, so the same question gives the same answer every time.

Before you start

You need three things:

  1. A Bokio private integration token. In Bokio, go to Integrations, create an integration and copy the token. Bokio allows 5,000 requests per company per month and 200 per minute.
  2. Your company id. It is in the Bokio URL: .../companies/<companyId>/....
  3. Node.js 22 or later.

Install

The server runs straight from npm, with no clone needed. It speaks MCP over stdio, so your MCP client starts it for you. Its MCP Registry name is io.github.diblaze/bokio-mcp.

Using an AI agent? Paste https://raw.githubusercontent.com/diblaze/bokio-mcp/main/LLM.md into it and ask it to install bokio-mcp.

Claude Code

bash
claude mcp add --transport stdio --scope user \  --env BOKIO_TOKEN=your_token \  --env BOKIO_COMPANY_ID=your_company_id \  bokio -- npx -y bokio-mcp

Claude Desktop and other MCP clients

Add this to the client's mcpServers config (for Claude Desktop, claude_desktop_config.json):

json
{  "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": ""      }    }  }}

Keep the token out of files you commit or share. Clients that support it, such as Claude Code, can read ${BOKIO_TOKEN} from your shell environment instead.

Configuration

VariableRequiredPurpose
BOKIO_TOKENyes, when a tool is calledPrivate Bearer token
BOKIO_COMPANY_IDdefault companyUsed when a tool call leaves out companyId
BOKIO_ALLOW_WRITESno1, true, yes or on enables write tools; anything else keeps them hidden and blocked
BOKIO_DOWNLOAD_DIRrecommendedWhere SIE, PDF and upload downloads are saved. Without it, downloads go to the server's working directory, and they are rejected when that is /, as it often is for Claude Desktop. Paths outside the directory are rejected and existing files are never overwritten
BOKIO_BASE_URLnoDefaults to https://api.bokio.se/v1

Reading and writing

Set BOKIO_ALLOW_WRITES=1 when you want the server to create or change things in Bokio, and leave it empty the rest of the time. Write tools are marked (write) below.

Bank payments are read only on purpose. Creating one would move money once it is signed with BankID, so the server does not offer it.

Tools

Company and ledger: bokio_company_info, bokio_list_fiscal_years, bokio_get_fiscal_year, bokio_chart_of_accounts, bokio_get_account, bokio_download_sie

Journal: bokio_list_journal_entries (from/to/query), bokio_get_journal_entry, bokio_create_journal_entry (write), bokio_reverse_journal_entry (write)

Invoices: bokio_list_invoices, bokio_get_invoice, bokio_create_invoice (write), bokio_update_invoice (write), bokio_delete_invoice (write), bokio_publish_invoice (write), bokio_record_invoice (write), bokio_create_invoice_payment (write), bokio_download_invoice (PDF), bokio_list_invoice_payments, bokio_list_invoice_settlements, bokio_create_invoice_settlement (write)

Credit notes: bokio_list_credit_notes, bokio_get_credit_note, bokio_download_credit_note (PDF), bokio_create_credit_note (write, from an invoice), bokio_update_credit_note (write), bokio_publish_credit_note (write), bokio_record_credit_note (write), bokio_delete_credit_note (write, drafts only)

Suppliers: bokio_list_suppliers, bokio_get_supplier, bokio_create_supplier (write), bokio_update_supplier (write)

Supplier invoices: bokio_list_supplier_invoices, bokio_get_supplier_invoice, bokio_create_supplier_invoice (write), bokio_update_supplier_invoice (write)

Customers: bokio_list_customers, bokio_get_customer, bokio_create_customer (write), bokio_update_customer (write)

Items: bokio_list_items, bokio_get_item, bokio_create_item (write), bokio_update_item (write)

Uploads: bokio_list_uploads, bokio_get_upload, bokio_upload_file (write), bokio_download_upload

Bank payments: bokio_list_bank_payments, bokio_get_bank_payment. Bokio only returns payments created by the same integration.

Computed: bokio_account_balances, bokio_account_ledger, bokio_find_duplicates, bokio_reconcile_bank (pass your bank statement as {date, amount, text} rows), bokio_vat_summary (account totals, not mapped to VAT-return boxes), bokio_profit_and_loss, bokio_open_items (also works when revenue is booked as manual journal entries instead of through the invoice module). Each call downloads the SIE export for the fiscal years it needs, one request per year. Amounts are in ledger sign, debit positive and credit negative, and a verification cancels out against its Annullering av … reversal.

Anything else: bokio_raw_get sends a GET to any Bokio path.

Limits

  • Journal entries are double entry, so the debit total must equal the credit total.
  • Tag groups, projects, journal-entry comments and tags, and invoice attachments have no tools yet. Read them with bokio_raw_get.
  • Bokio's API reference is at https://docs.bokio.se and the OpenAPI specs at https://github.com/bokio/bokio-api.

Contributing

Issues and pull requests are welcome. CONTRIBUTING.md covers building from source, running the tests and the smoke check, and what a pull request needs. In short: commits follow Conventional Commits, pnpm install sets up git hooks that check formatting and commit messages, and CI has to pass on Node 22 and 24 before a maintainer reviews. Adding a tool has its own checklist in the same file.

Report security issues privately as described in SECURITY.md, not in a public issue. Release notes are in CHANGELOG.md.

License

MIT

來源:README.md,提交 b9c9f53

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v0.6.0最新Oct 29, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分