
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 分