
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.
概览
面向 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 的网络连接。
安装
在 SourceWeft 中
- 打开 控制台中的 Billy Mcp,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
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:
Claude Code (CLI):
VS Code (.vscode/mcp.json):
That's it — no clone, no build. npx fetches the published package.
From source (development)
Write protection — safe for real financial data
Every write (create/update/approve/void/pay/upload) is gated by BILLY_WRITE_MODE:
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
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: truefor full payloads appliedFilterstransparency: 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:
idempotencyKeyon journal entries dedupes safely after timeouts - Batch with one approval:
execute_scriptruns 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
Stack: TypeScript, MCP TypeScript SDK v2, Zod v4 schemas. Billy API reference mirrored in docs/billy-api.md.
License
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版本历史
1- v0.3.2最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分