
Quickbooks Mcp
io.github.laf-rge由 GitHub 账号 laf-rge 发布v0.12.0更新于 Oct 24, 2026
MCP server for QuickBooks Online API integration
概览
将 AI 助手连接到 QuickBooks Online,可用自然语言查询数据、生成财务报表,并以草稿方式创建或修改记账凭证。
- 可以做什么
- 完成 OAuth 认证并读取已连接公司的信息
- 以类 SQL 语句查询各类 QuickBooks 实体,并列出会计科目表
- 生成利润表、资产负债表、试算平衡表等 25 种报表,以及科目交易与期间汇总
- 创建、读取和修改日记账分录、账单、费用、销售收据、发票、存款和供应商贷项
- 登记账单付款、客户收款和账户间转账,并管理供应商
- 删除交易记录
- 适用场景
- 适合记账人员、会计师和财务团队,希望助手用自然语言查看和维护生产环境的 QuickBooks Online 账套,包括出报表和录入交易,而无需查找内部 ID。
- 运行要求
- 通过 npx 或本地构建在本地运行,需要 Node.js 18+ 和 QuickBooks 开发者应用。需提供 QBO_CLIENT_ID 与 QBO_CLIENT_SECRET(本地凭据文件或环境变量),并通过 qbo_authenticate 工具完成 OAuth 授权。AWS 模式还需 AWS 凭据、Secrets Manager 密钥和 SSM 参数。在 Claude Desktop 中使用需设置 QBO_INLINE_OUTPUT。
安装
在 SourceWeft 中
- 打开 控制台中的 Quickbooks Mcp,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
QuickBooks MCP Server
An MCP server for QuickBooks Online — built for bookkeepers, CFOs, and accountants who use AI assistants in their daily workflow.
Ask your AI assistant to pull a P&L report, create a journal entry, or investigate an account balance — using plain language, not API payloads.
Why This Server?
Intuit provides an official MCP server that's a solid starting point for developers exploring the QuickBooks API. This server takes a different approach: it's designed for financial professionals working in production books.
Use natural language, not internal IDs
Intuit's server requires QuickBooks internal IDs for every reference — you need to look up a vendor's ID before creating a bill. This server resolves names automatically:
Financial reports built in
This is the only QuickBooks MCP server with report tools. Pull a P&L, Balance Sheet, or Trial Balance — broken down by month, department, or class — without leaving your AI conversation.
Safe by default
Every create and edit operation defaults to draft/preview mode. You see exactly what will be written to your books before committing. No accidental journal entries or misclassified expenses.
One query tool instead of dozens
Instead of separate search tools for each entity type, a single SQL-like query tool works across all QuickBooks entities. AI assistants write SQL naturally, and QuickBooks validates it — no field whitelists to maintain.
Production-ready credential management
Store credentials locally for personal use, or in AWS Secrets Manager for shared environments. OAuth tokens refresh automatically and persist across sessions.
At a glance
Prerequisites
- QuickBooks Developer Account: Register at developer.intuit.com
- Node.js 18+
Installation Options
Choose the setup that fits your use case:
Option 1: NPM Install
The simplest way to get started. Credentials are stored locally on your machine.
1. Create a QuickBooks App
- Go to developer.intuit.com and sign in
- Create a new app (or select an existing one)
- Go to "Keys & credentials"
- Note your Client ID and Client Secret
- Under "Redirect URIs", add:
https://developer.intuit.com/v2/OAuth2Playground/RedirectUrl
2. Add to Claude Code
Add to your project's .mcp.json:
3. Configure Credentials
Create ~/.quickbooks-mcp/credentials.json:
4. Authenticate
Once Claude Code is running, use the qbo_authenticate tool:
- Call
qbo_authenticatewith no arguments to get an authorization URL - Open the URL in your browser and authorize the app
- Copy the
codeandrealmIdfrom the redirect URL - Call
qbo_authenticateagain with the authorization code and realm ID
Your OAuth tokens will be saved and automatically refreshed.
Option 2: Local Checkout
For development or customization.
1. Create a QuickBooks App
Follow the same steps as Option 1 above.
2. Clone and Build
3. Add to Claude Code
Add to your project's .mcp.json:
4. Configure Credentials
Create ~/.quickbooks-mcp/credentials.json with your client credentials (same as Option 1), then run qbo_authenticate to complete the OAuth flow.
Option 3: AWS Mode
For shared or production environments. Stores credentials in AWS Secrets Manager.
1. Create AWS Resources
Create the secret in Secrets Manager:
Store Company ID in SSM Parameter Store:
2. Configure the Server
Create a .env file in the quickbooks-mcp directory:
Note: Due to a known Claude Code bug, environment variables from
.mcp.jsonare not reliably passed to MCP servers. The.envfile workaround is required.
3. Add to Claude Code
4. IAM Permissions
The server needs these AWS permissions:
Inline Output Mode
By default, large responses (reports, query results) are written to /tmp files and the server returns a file path. This works well for Claude Code in terminal environments but breaks in Claude Desktop and plugin environments where the model cannot read from /tmp.
Set QBO_INLINE_OUTPUT=true to return all responses inline instead.
Option A — via .env file (recommended for local checkout):
Create a .env file in the quickbooks-mcp directory:
Option B — via .mcp.json env block (recommended for NPM install):
Note: Due to a known Claude Code bug, environment variables from
.mcp.jsonare not reliably passed to MCP servers in some configurations. If Option B doesn't work, use the.envfile workaround.
Environment Variables
Available Tools
Naming Vendors, Customers, and Employees
Every write tool that can attribute a line or a header to a name list accepts a
name and resolves it to an ID, the same way account_name and
department_name do. Which parameter you get depends on what QuickBooks will
actually store there:
Each also has an _id form (entity_id, customer_id) if you already know the
internal ID. On edit tools, the rule for line parameters is:
- omit the parameter and a line addressed by
line_idkeeps the entity it already has; - name one and it is set or replaced;
- pass an empty string (
entity_name: "") and it is cleared.
See docs/quickbooks-api-limitations.md
for the underlying QBO field shapes, which are not uniform.
Parameter Names Are Enforced
Arguments are checked against the schema each tool advertises, before anything
runs. An unknown parameter is an error that names the closest valid one, a
missing required parameter is an error, and an edit_* call with no field to
change is an error rather than a write that reports success.
The alternative is silence. A handler reads the parameters it knows about, so a misspelled one is simply absent: a create call that puts the date under the wrong key posts on today's date, an as-of report asked for a date range returns today's balances, and an edit whose fields are all misspelled comes back "updated successfully" having changed nothing. None of those raise anything for the caller to notice.
Relatedly, when QuickBooks accepts an update without advancing the record's
SyncToken — meaning the payload matched what was already stored — the edit
tools report no change instead of success.
Token Refresh
The server automatically refreshes OAuth tokens on each request and persists them back to your credential store (local file or AWS Secrets Manager).
Development
Tests live in tests/, mirroring src/. They are TypeScript, compiled by
tsconfig.test.json into dist-test/ and run by Node's built-in test runner —
no test framework dependency. Type errors in a test are build failures, so a
test referencing a renamed export fails loudly rather than silently skipping.
Anything needing a QuickBooks client passes a hand-written stand-in covering
just the calls under test, so the suite runs offline with no credentials.
Troubleshooting
"QuickBooks credentials not configured"
Run the qbo_authenticate tool to set up OAuth credentials (local mode only).
"Authorization code expired"
Authorization codes are only valid for a few minutes. Start the OAuth flow again.
Token refresh fails
- Check that your refresh token hasn't expired (~100 days)
- Verify your client credentials are correct
- Try re-authenticating with
qbo_authenticate
AWS credential errors
- Ensure
.envfile hasQBO_CREDENTIAL_MODE=aws - Check your AWS credentials and permissions
- Verify the secret and parameter names match your configuration
来源:README.md,提交 611ca6d
工具
0版本历史
2- v0.12.0最新Oct 19, 2026
- v0.11.0Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分