
QuickBooks Online MCP Server
io.github.amin-ale由 GitHub 账号 amin-ale 发布v0.1.0更新于 Oct 24, 2026
QuickBooks Online MCP server for invoices, customers, and payments. OAuth 2.1 + PKCE, stdio/HTTP.
概览
本地 MCP 服务器,让助手管理 QuickBooks Online 的发票、客户和收款,并读取公司与应收账款摘要。
- 可以做什么
- 创建、读取、更新、停用和删除客户,可按名称前缀、邮箱或启用状态搜索
- 创建、读取、整体替换、删除、列出和搜索发票,可按客户、日期区间或单据编号查找
- 登记、读取、替换、删除、列出和搜索收款,可指定冲抵某张发票
- 以只读资源形式读取公司资料、应收账款汇总和按欠款排序的客户
- 返回带建议的结构化成功或错误结果,并内置限流与令牌自动刷新
- 适用场景
- 适合需要让助手直接处理 QuickBooks Online 真实账务数据的场景,例如起草和更新发票、查询客户、登记收款或查看未结清款项,而不必由用户在系统之间手工搬运数字。
- 运行要求
- 以 Python 包 mcp-quickbooks 在本地运行,支持 stdio 或 Streamable HTTP;快速上手使用 Python 3.12 与 uv。需要 Intuit 开发者应用提供的 QBO_CLIENT_ID 和 QBO_CLIENT_SECRET、公司标识 QBO_REALM_ID、设为 sandbox 或 production 的 QBO_ENVIRONMENT,并需执行一次交互式授权,将 OAuth 令牌保存在本地文件。需要访问 QuickBooks API 的网络。
安装
在 SourceWeft 中
- 打开 控制台中的 QuickBooks Online MCP Server,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
QuickBooks Online MCP Server
[CI] [Python 3.11+] [License: MIT]
QuickBooks Online MCP server for Claude Desktop and any MCP client, written in Python on the official MCP SDK (FastMCP). It exposes 18 tools over invoices, customers, and payments (create, read, update, delete, list, search) plus read-only company and receivables resources, behind a real OAuth 2.1 authorization-code + PKCE flow with automatic token refresh, client-side rate limiting that honors QuickBooks throttles, and structured errors that tell an agent what to do next. It runs over stdio and Streamable HTTP.
Related: HubSpot CRM MCP Server · MCP Audit Gateway · What production MCP actually requires
Architecture
The server holds no state and stores no customer data: it is a stateless proxy over the QuickBooks REST API. Tokens live in a local file you control; the client deploys with its own Intuit credentials.
Tools
Every tool returns a structured { "ok": true, ... } result, or { "ok": false, "error": {...} } with a suggestion. Each one carries MCP annotations (readOnlyHint, destructiveHint, idempotentHint, openWorldHint) and a declared output schema.
create_customer: Create a customer. The display name must be unique; QuickBooks rejects duplicates with error 6240.get_customer: Read one customer by Id, including balance, contact details, and the current SyncToken.update_customer: Sparse update of an existing customer. Needs the Id and a fresh SyncToken.delete_customer: Deactivate a customer (QuickBooks has no hard delete for customers), preserving history.list_customers: List customers, most recently updated first, with caller-driven pagination.search_customers: Find customers by display-name prefix, exact email, or active flag.create_invoice: Create an invoice for an existing customer with one or more line items.get_invoice: Read one invoice by Id, including lines, totals, balance, and the current SyncToken.update_invoice: Replace an invoice. Lines are replaced wholesale, so send every line it should end with.delete_invoice: Delete an invoice permanently. Needs the Id and a fresh SyncToken.list_invoices: List invoices, most recent transaction date first, with caller-driven pagination.search_invoices: Find invoices by customer Id, transaction-date range, or document number.create_payment: Record a payment received, optionally applied against a specific invoice.get_payment: Read one payment by Id, including linked transactions and the current SyncToken.update_payment: Replace a payment. Dropping the invoice link reopens that invoice's balance.delete_payment: Delete a payment permanently. Any invoice it settled goes back to unpaid.list_payments: List payments, most recent transaction date first, with caller-driven pagination.search_payments: Find payments by customer Id or transaction-date range.
Resources
Read-only JSON:
qbo://company: company profile and legal addressqbo://summary/receivables: open/overdue invoice counts and outstanding balanceqbo://summary/customers: active customers ranked by outstanding balance
Least-privilege scopes
The default scope is com.intuit.quickbooks.accounting only. Add com.intuit.quickbooks.payment (via QBO_SCOPES) solely if you connect payment processing. The scope string is validated at startup against the known Intuit scope set, so a typo fails fast rather than silently under-authorizing. Identity scopes (openid, profile, email) are never requested unless you opt in.
Rate limiting and retries
A dual token-bucket limiter caps outbound traffic under both the QuickBooks per-second and per-minute ceilings (configurable via QBO_REQUESTS_PER_SECOND / QBO_REQUESTS_PER_MINUTE). On 429 the client honors the Retry-After header; on 429/5xx without one it uses exponential backoff with jitter, up to QBO_MAX_RETRIES. A single 401 triggers a token refresh and one transparent retry.
Quickstart
Credentials are read lazily. The server starts, answers initialize, and serves tools/list with no QBO_* variables set at all; a tool call without credentials returns a structured 401 telling the caller what to configure. That keeps registry introspection and container smoke tests working without secrets.
Claude Desktop
Docker
Running against a real Intuit sandbox
- Create an app at the Intuit Developer portal and open its Keys & OAuth section. Copy the Development client id and secret.
- Add a redirect URI that matches
QBO_REDIRECT_URIin your.env(defaulthttp://localhost:8765/callback). - Create a sandbox company from the developer dashboard; its company id is your
QBO_REALM_ID. - Set
QBO_ENVIRONMENT=sandbox, fill inQBO_CLIENT_ID/QBO_CLIENT_SECRET, then runmcp-quickbooks auth. The browser flow returns arealmIdautomatically; it is stored alongside the tokens. mcp-quickbooks statusconfirms the tokens refresh. You are now driving the live sandbox.
Switch QBO_ENVIRONMENT=production (with production keys and a connected company) to point at real books. Credentials and tokens are yours; nothing is committed: .env and .qbo_tokens.json are gitignored.
Tests
The suite runs fully offline. Every QuickBooks and OAuth call is served by an in-memory fake (tests/fake_qbo.py) seeded from recorded-style fixtures in tests/fixtures/, wired in through an httpx mock transport: no network, no real credentials.
Registry metadata
server.json describes the server for the MCP registry, and .mcp.json is the client-config snippet directory crawlers look for. Publishing is intentionally left as a manual step. See PUBLISHING.md. Nothing here submits to any registry.
Hire me
I make AI-era and money-critical integrations production-safe: real auth, real rate limits, real error handling, real tests. Available for MCP server builds and API-integration hardening. Portfolio and contact: https://amin-ale.github.io/portfolio-site · [email protected]
License
MIT: see LICENSE.
来源:README.md,提交 267c3f0
工具
0版本历史
1- v0.1.0最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分