
Crunch Accounting (crunch-mcp)
io.github.mattoddie由 GitHub 账号 mattoddie 发布v0.4.1更新于 Oct 29, 2026
Work with your Crunch Accounting books: expenses, receipts, invoices, clients, suppliers and banking
概览
将助手连接到 Crunch Accounting 账目,可读取并在开启后修改费用、收据、发票、客户、供应商和银行账户。
- 可以做什么
- 读取公司信息、银行余额,并一次性获取业务概览
- 列出和筛选费用、合计、付款及缺少收据的项目,附加或下载收据
- 创建、更新、开具、邮件发送销售发票并下载 PDF,登记付款
- 管理客户、供应商和周期性费用,包括归档与删除
- 查询费用类型、增值税类型、会计期间等参考值
- 通过原始接口调用任意 Crunch 公共 API 端点
- 适用场景
- 适合使用 Crunch Accounting 的英国企业,希望用自然语言询问账目情况、催收逾期发票、登记收据或起草发票;默认只读,写入需手动开启。
- 运行要求
- 通过 Docker 镜像 ghcr.io/mattoddie/crunch-mcp 或桌面扩展包在本地运行;需要已获批 API 访问的 Crunch 账户、CRUNCH_CLIENT_ID,机密客户端还需 CRUNCH_CLIENT_SECRET;需交互式 OAuth 登录;可选 CRUNCH_REFRESH_TOKEN;需要 Docker 和 MCP 客户端。
安装
在 SourceWeft 中
- 打开 控制台中的 Crunch Accounting (crunch-mcp),将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
crunch-mcp
Talk to your books.
An open-source Model Context Protocol server for Crunch Accounting, the UK online accounting service. It lets Claude and other AI assistants read and, if you allow it, update your expenses, receipts, invoices, clients, suppliers and bank accounts, all from one small Docker container.
"How's the business looking this month?" You have £18,240 across your two bank accounts and £312 on the company credit card. Three sales invoices are unpaid, £7,800 in total. INV-0042 to Example Client Ltd (£2,400) is 12 days overdue; the other two aren't due yet. On the spending side, four September expenses have no receipt attached and one bill from Example Hosting Ltd (£96) is still unpaid. Want me to draft a polite chaser for INV-0042, or list the expenses that are missing receipts?
Ask about your business in plain English. The assistant picks from 70 tools to look things up and, if you allow it, make changes. Some examples:
- 🩺 "Give me a health check of the business."
- 🧾 "Here's a receipt for a train ticket to Leeds. Record it as an expense paid from the business account."
- 📬 "Which invoices are overdue? Draft a chasing email for each customer."
- 📊 "Summarise income and spending for the last quarter, with an estimate of the VAT."
- 🔍 "Which expenses this year have no receipt attached?"
- 📝 "Invoice Example Client Ltd for 5 days of consulting at £450 a day, on 30-day terms."
Highlights
- 🐳 Docker-first and tiny. One image (
ghcr.io/mattoddie/crunch-mcp) forlinux/amd64andlinux/arm64, about 21 MB. It's a single static Go binary on a distroless base, with no shell or package manager, running as a non-root user. It serves Streamable HTTP for a long-running service, or stdio fordocker run -i. You can also run the binary on its own. - 🛡️ Safe by default. The server is read-only unless you turn on writes. Deleting needs a second switch, and emailing invoices or payment reminders to customers needs a third. The switches also hold inside request bodies and the raw API tool, and the HTTP server requires a bearer token. Tools that aren't allowed aren't registered at all, and destructive tools, such as deletes and issuing an invoice, are labelled so your MCP client asks before running them.
- 🔑 Least-privilege login. It logs in with Crunch's own OAuth 2.0 flow (with PKCE) and asks only for the scopes your settings need. Tokens never appear in tool output.
- 🔄 Stays logged in. Crunch rotates refresh tokens, and reusing an old one revokes your login. crunch-mcp saves each new token before using it and never refreshes twice at once, so it keeps working across restarts.
- ✏️ Careful updates. Changing an expense or invoice fetches the current record and changes only what you asked, so payments and attachments are never dropped by accident.
- 🔍 Preview and audit. Every tool that changes something takes
dry_run: trueto show the request it would send, with a field-by-field diff for updates, without changing anything.CRUNCH_AUDIT_LOGrecords each change in a JSON Lines audit log. - 🖥️ One-click Claude Desktop install. Each release has an extension bundle (
.mcpb) for macOS, Windows and Linux, with a settings form and no Docker needed. - 📎 Receipts and PDFs. Attach receipts and timesheets, download receipts as images the assistant can read, and fetch invoice PDFs.
- 🎛️ Tunable. Expose only the toolsets you need, which keeps the model's context small and focused. List tools take
search,fieldsandlimitto fetch only what's needed. - 🧪 Tested. The test suite runs against a mock Crunch API and OAuth server on every build.
Quick start
Using Claude Desktop? Download the extension bundle for your computer from the latest release, open it, enter your Crunch client ID and ask Claude to "log in to Crunch". See Claude Desktop. The steps below set up the Docker server for every other client.
You need Docker, a Crunch account, Crunch API access and an MCP client such as Claude Code.
1. Get API access. Apply for access to Crunch's public API through the application form linked from Crunch's developer documentation. Crunch sends you a client ID, and a client secret if you're set up as a confidential client. There's no sandbox, so a free Crunch account is a good place to try things. Getting started has the details.
2. Set up the server.
3. Log in to Crunch and start the server.
If your browser isn't on the Docker host, the page after Allow won't load. That's fine: copy the URL from the address bar and paste it into the terminal.
4. Connect your assistant.
Now ask "How's my business doing?" in Claude Code.
Using Claude Desktop, VS Code, Cursor or Codex? See Connecting MCP clients. Prefer not to run a service? Use stdio mode with docker run -i or the local binary.
crunch-mcp is listed in the official MCP Registry as io.github.mattoddie/crunch-mcp, so clients that install servers from the registry can set it up for you, with the Docker image in stdio mode or an extension bundle.
Turning on changes
Out of the box the assistant can look but not touch. To let it make changes, add these to .env:
The login needs matching scopes, so log in again after turning on writes or deletes:
Ask for a dry run first when it matters: "Record that receipt, but show me a dry run first."
Read Security before turning on writes for your real books.
What it can do
See the tool reference for every tool and argument. Ready-made prompts like business_health_check, record_receipt and chase_overdue_invoices chain the tools together for common jobs.
Documentation
The docs are also published at crunch-mcp.mattoddie.dev/docs, with search.
Contributing
Contributions are very welcome, whether that's bug reports, docs or new tools. Read the contributing guide to get started, and please follow the code of conduct. To report a vulnerability, see the security policy. Please don't open a public issue for one.
License
MIT © Matt Oddie
crunch-mcp is an independent community project. It is not affiliated with, endorsed by or sponsored by Crunch (E-Crunch Ltd). "Crunch" is a trademark of E-Crunch Ltd.
来源:README.md,提交 b5f70de
工具
0版本历史
1- v0.4.1最新Oct 22, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分