Billy Mcp

io.github.Thourum由 GitHub 帳號 Thourum 發布v0.3.2更新於 Oct 24, 2026

Billy (billy.dk) accounting: invoices, journal entries, trial balance, with write protection.

概覽

AI 產生的概覽

針對 Billy.dk 會計平台的在地 MCP 伺服器,讓助理建立發票、記帳分錄、查詢餘額並核對銀行明細,寫入預設需人工核准。

可以做什麼
管理組織、聯絡人與聯絡人個人、產品(列出、取得、建立、更新)。建立、核准和刪除發票,列出或建立供應商帳單。登記銀行付款並列出餘額調整項。建立、作廢和批次作廢日記帳分錄,列出日記帳與交易。讀取試算表、過帳記錄、科目、銀行明細與配對結果,用於報表和核對。上傳並附加收據檔案,執行沙箱批次腳本,並透過原始請求工具呼叫任意 Billy v2 端點。
適用情境
適合在 Billy.dk 記帳、希望助理起草發票、準備日記帳分錄、查詢餘額或逾期發票並核對銀行明細的情境,同時讓寫入保持人工核准。
執行需求
透過 stdio 在本機執行,通常以 npx 從 npm 套件 billy-mcp 啟動,需要 Node.js。需要在 BILLY_ACCESS_TOKEN 中提供 Billy API 存取權杖,可於 Billy 帳戶設定中建立。選用設定:BILLY_WRITE_MODE、BILLY_ORGANIZATION_ID 和 BILLY_LOCALE。需要連線至 Billy API 的網路。
安裝前請注意
存取權杖可存取真實財務資料且不會過期,須妥善保密。寫入工具可建立、核准、作廢和刪除發票與日記帳分錄,並登記銀行付款。預設的 confirm 模式需要主機支援核准對話框,否則寫入會被阻擋;full 模式不經核准即執行寫入。原始請求工具可觸及任意 Billy 端點。

安裝

在 SourceWeft 中

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

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

其他 MCP 客戶端

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

README

billy-mcp — Billy (billy.dk) MCP Server for Claude & AI Assistants

Connect Claude, Cursor, VS Code, and any MCP-compatible AI assistant to Billy — the Danish accounting platform (billysbilling). Create invoices, book journal entries, check account balances, reconcile bank lines, and attach receipts — with built-in human-approval write protection so your AI never books anything without your sign-off.

[npm version] [license: MIT] [MCP]

Billy accounting · Billy.dk API · Danish bookkeeping (bogføring/regnskab) · AI bookkeeping agent · Model Context Protocol server · Claude Desktop integration

What can it do?

Ask your AI assistant things like:

  • "Create an invoice for Acme ApS: 10 consulting hours at 1.200 DKK, due in 14 days"
  • "What's the balance of account 5211 this quarter?" (trial balance from live postings)
  • "Book last month's payroll as a journal entry — draft it, I'll approve"
  • "Void these 34 duplicate entries" (one call, one approval, per-item results)
  • "Upload this receipt PDF and attach it to journal entry #67"
  • "Which invoices are overdue and unpaid?"

40 tools covering invoices, supplier bills, contacts, products, bank payments, manual journal entries (daybook transactions), postings, trial balance, bank reconciliation, file attachments, a sandboxed batch-scripting tool, and a raw API escape hatch for everything else.

Quick start

1. Get a Billy access token

Log into mit.billy.dk → Settings → Access tokens → Create access token. Tokens are per-company and don't expire.

2. Add to your MCP client

Claude Desktop (claude_desktop_config.json) / Cursor / any JSON-config host:

json
{  "mcpServers": {    "billy": {      "command": "npx",      "args": ["-y", "billy-mcp"],      "env": {        "BILLY_ACCESS_TOKEN": "<your token>"      }    }  }}

Claude Code (CLI):

sh
claude mcp add billy -e BILLY_ACCESS_TOKEN=<your token> -- npx -y billy-mcp

VS Code (.vscode/mcp.json):

json
{  "servers": {    "billy": {      "command": "npx",      "args": ["-y", "billy-mcp"],      "env": { "BILLY_ACCESS_TOKEN": "${input:billy-token}" }    }  }}

That's it — no clone, no build. npx fetches the published package.

From source (development)

sh
git clone https://github.com/thourum/billy-mcp.gitcd billy-mcpnpm installcp .env.example .env      # paste your tokennpm run dev               # run over stdionpm run inspector         # try tools in the MCP Inspector UI

Write protection — safe for real financial data

Every write (create/update/approve/void/pay/upload) is gated by BILLY_WRITE_MODE:

ModeBehavior
read-onlyWrite tools are not registered at all; raw requests reject non-GET
confirm (default)Each write pauses and shows you a native approval dialog (MCP elicitation) with the full payload — the AI cannot approve its own writes
fullWrites execute without approval

Fail-closed: if your MCP host doesn't support elicitation dialogs, confirm mode blocks writes with instructions instead of executing them. Irreversible operations (approve invoice, void entry, bank payments) are additionally flagged destructiveHint so hosts can add their own guardrails. Declining, dismissing, or leaving the checkbox unticked = nothing is booked.

Environment variables

VariableRequiredDescription
BILLY_ACCESS_TOKENyesBilly API access token (sent as X-Access-Token)
BILLY_WRITE_MODEnoread-only, confirm (default), or full
BILLY_ORGANIZATION_IDnoAuto-resolved when the token maps to one company
BILLY_BASE_URLnoDefaults to https://api.billysbilling.com/v2
BILLY_LOCALEnoen_US, da_DK, fr_FR, nl_NL, de_DE

Tools

Full tool list (40)

Organization & contacts — get_organization, list_contacts, get_contact, create_contact, update_contact, list_contact_persons, create_contact_person

Products — list_products, get_product, create_product, update_product

Invoices — list_invoices, get_invoice, create_invoice (embedded lines, draft or approve-immediately), approve_invoice, delete_invoice

Bills (expenses) — list_bills, get_bill, create_bill

Payments — create_bank_payment (mark invoices/bills paid), list_bank_payments, list_balance_modifiers

Journal entries (daybook) — create_daybook_transaction (client-side debit/credit balance validation + idempotency-key safe retry), void_daybook_transaction, batch_void_daybook_transactions (N voids, one approval), list_daybook_transactions, list_daybooks

Reporting & reconciliation — get_account_balances (trial balance / per-account balance from postings), list_postings, list_transactions, list_accounts, get_account, list_bank_lines, list_bank_line_matches

Files & attachments — upload_file (pdf/jpg/png/gif), attach_file (link to invoice/bill/journal entry), list_files, list_attachments

Power tools — execute_script (sandboxed JS batch runner with server-enforced mutation log + dry_run), billy_raw_request (any Billy v2 endpoint)

Built for LLM agents, not just humans

  • Compact responses by default (~90% fewer tokens); pass verbose: true for full payloads
  • appliedFilters transparency: Billy silently ignores unknown query params — every list tool reports which filters ran server-side vs client-side, so the agent never mistakes "filter ignored" for "no results"
  • Pre-flight validation: imbalanced journal entries are rejected client-side with per-currency debit/credit totals before an approval is ever requested
  • Idempotent retries: idempotencyKey on journal entries dedupes safely after timeouts
  • Batch with one approval: execute_script runs loops (e.g. 34 voids) with a full audit log returned even when the script fails mid-run

FAQ

Is this an official Billy integration? No — community project using Billy's public REST API v2.

Does it work with Billy's free plan? Yes, any account that can create access tokens at mit.billy.dk.

Can the AI spend my money? In default confirm mode, no write happens without you clicking approve in a dialog the model can't touch. Use read-only for pure analysis sessions.

Which AI apps are supported? Anything speaking Model Context Protocol over stdio: Claude Desktop, Claude Code, Cursor, Windsurf, VS Code (GitHub Copilot), Zed, and more.

Development

sh
npm run typecheck   # tsc --noEmitnpm run build       # compile to dist/npm run inspector   # interactive tool testing

Stack: TypeScript, MCP TypeScript SDK v2, Zod v4 schemas. Billy API reference mirrored in docs/billy-api.md.

License

MIT


Keywords: Billy MCP server, billy.dk API, billysbilling integration, Danish accounting AI, bogføring automatisering, regnskab AI, Claude accounting, MCP accounting server, AI bookkeeping Denmark, fakturering API.

來源:README.md,提交 b29239c

工具

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

版本歷史

1
  1. v0.3.2最新Sep 16, 2026

評分

已滿足適用檢查項的 50%

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

  • 近 30 天內可連通25 分

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

  • 已宣告認證方式10 分

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

  • 已列出工具15 分

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

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