QuickBooks Online MCP Server 标志

QuickBooks Online MCP Server

组织
intuit

The QuickBooks MCP Server lets AI assistants access QuickBooks data via a standard interface. It uses the Model Context Protocol to expose QBO features as callable tools, enabling developers to build AI apps that fetch real-time QBO data through MCP.

发布者intuit
代码仓库quickbooks-online-mcp-server
语言TypeScript
复刻数
243
星标数
397
可用工具
0
传输类型stdio
分类
许可协议Apache-2.0
链接
  • 将工具接入 AI 工作流

    QuickBooks Online MCP Server 提供 MCP 功能,可供兼容的 AI 客户端和智能体使用。

  • 0 个可用工具

    浏览下方可调用的操作;如果服务器提供了名称和描述,也会一并显示。

  • 可直接复制的配置

    使用安装配置片段,在您首选的 MCP 客户端中配置此服务器。

  • 开源社区热度

    关联的代码仓库有 397 个星标和 243 个复刻。

QuickBooks Online MCP Server

A comprehensive Model Context Protocol (MCP) server for QuickBooks Online

License: MIT Tools Entities Reports Coverage Tests

Quick Start | Available Tools | Authentication | Documentation


Overview

This MCP server provides complete QuickBooks Online API integration for Claude Code and other MCP-compatible clients. It includes full CRUD operations for 29 entity types and 11 financial reports, giving you comprehensive access to QuickBooks Online functionality.

Key Features

  • 145 Total Tools - Complete coverage of QuickBooks Online API
  • 29 Entity Types - Full CRUD operations (Create, Read, Update, Delete, Search)
  • 11 Financial Reports - Balance Sheet, P&L, Cash Flow, and more
  • OAuth 2.0 Authentication - Secure token-based authentication
  • TypeScript - Full type safety with Zod validation
  • Tested - Jest test suite with ESM support

Note: this is a local MCP server. It runs as a stdio subprocess on the developer's or partner's machine and authenticates to a QuickBooks Online company.

Before you start: This MCP server is easy to run once authenticated, but QuickBooks Online integration is gated by Intuit's OAuth app setup. You must register an app on the Intuit Developer Portal and complete a one-time, browser-based OAuth handshake. Sandbox supports http://localhost redirect URIs; production requires a public HTTPS callback for the initial authorization. After that initial handshake, the server runs locally without further browser interaction (until the 100-day refresh window lapses). See Authentication for full details.


Quick Start

Installation

bash
# Clone the repository
git clone https://github.com/your-username/mcp-quickbooks-online.git
cd mcp-quickbooks-online

# Install dependencies
npm install

# Build the project
npm run build

Configuration

Copy the template .env.example to .env in the root directory and fill in your values:

bash
cp .env.example .env
env
QUICKBOOKS_CLIENT_ID=your_client_id
QUICKBOOKS_CLIENT_SECRET=your_client_secret
QUICKBOOKS_ENVIRONMENT=sandbox
QUICKBOOKS_REFRESH_TOKEN=your_refresh_token
QUICKBOOKS_REALM_ID=your_realm_id

# Optional: restrict which tool categories are registered (default: all enabled)
# QUICKBOOKS_DISABLE_WRITE=true    # suppress create_* tools
# QUICKBOOKS_DISABLE_UPDATE=true   # suppress update_* tools
# QUICKBOOKS_DISABLE_DELETE=true   # suppress delete_* tools

.env is gitignored so your real credentials stay local.

Read-only or containerized installs: the server reads .env at startup and writes the rotated refresh token back to it on each refresh. When the installed module sits on a read-only filesystem (a container with a read-only root, an immutable/Nix install), set QUICKBOOKS_TOKEN_STORE_PATH to an absolute, writable path for both operations. A per-tenant host can also point each connection at its own isolated token file this way. Three things to know: it must be set in the host process env (e.g. the env block of your MCP server config) — setting it inside .env has no effect, because the path is resolved before .env is read; it must be an absolute path (the server refuses to start otherwise); and when set, the package's own .env is not read at all, so any file-based config (including credentials) must live in the file it points to.

Claude Code Integration

Add to your Claude Code MCP configuration:

json
{
  "mcpServers": {
    "quickbooks": {
      "command": "node",
      "args": ["path/to/mcp-quickbooks-online/dist/index.js"],
      "env": {
        "QUICKBOOKS_CLIENT_ID": "your_client_id",
        "QUICKBOOKS_CLIENT_SECRET": "your_client_secret",
        "QUICKBOOKS_REFRESH_TOKEN": "your_refresh_token",
        "QUICKBOOKS_REALM_ID": "your_realm_id",
        "QUICKBOOKS_ENVIRONMENT": "sandbox",
        "QUICKBOOKS_DISABLE_WRITE": "false",
        "QUICKBOOKS_DISABLE_UPDATE": "false",
        "QUICKBOOKS_DISABLE_DELETE": "false"
      }
    }
  }
}

Set any of the DISABLE_* flags to "true" to prevent that category of tools from being registered. Read tools (get_*, search_*) are always available.


Available Tools

Entities

Complete CRUD operations are available for all entity types:

EntityCreateGetUpdateDeleteSearch
Customer✅✅✅✅✅
Invoice✅✅✅✅✅
Estimate✅✅✅✅✅
Bill✅✅✅✅✅
Vendor✅✅✅✅✅
Employee✅✅✅✅✅
Account✅✅✅-✅
Item✅✅✅✅✅
Journal Entry✅✅✅✅✅
Bill Payment✅✅✅✅✅
Purchase✅✅✅✅✅
Payment✅✅✅✅✅
Sales Receipt✅✅✅✅✅
Credit Memo✅✅✅✅✅
Refund Receipt✅✅✅✅✅
Purchase Order✅✅✅✅✅
Vendor Credit✅✅✅✅✅
Deposit✅✅✅✅✅
Transfer✅✅✅✅✅
Time Activity✅✅✅✅✅
Class✅✅✅-✅
Department✅✅✅-✅
Term✅✅✅-✅
Payment Method✅✅✅-✅
Tax Code-✅--✅
Tax Rate-✅--✅
Tax Agency-✅--✅
Company Info-✅✅--
Attachable✅✅✅✅✅

Reports

ReportTool NameDescription
Balance Sheetget_balance_sheetAssets, liabilities, and equity snapshot
Profit & Lossget_profit_and_lossIncome and expenses over a period
Cash Flowget_cash_flowCash inflows and outflows
Trial Balanceget_trial_balanceDebit and credit balances
General Ledgerget_general_ledgerComplete transaction history
Customer Salesget_customer_salesSales by customer
Aged Receivablesget_aged_receivablesOutstanding customer invoices
Aged Receivables Detailget_aged_receivables_detailDetailed aging breakdown
Customer Balanceget_customer_balanceCurrent customer balances
Aged Payablesget_aged_payablesOutstanding vendor bills
Vendor Expensesget_vendor_expensesExpenses by vendor

Tool Reference

ToolDescription
create_customerCreate a new customer
get_customerGet customer by ID
update_customerUpdate customer details
delete_customerDelete a customer
search_customersSearch customers with filters
ToolDescription
create_invoiceCreate a new invoice
get_invoiceGet invoice by ID
update_invoiceUpdate invoice details
delete_invoiceDelete/void an invoice
search_invoicesSearch invoices with filters
get_invoice_pdfDownload an invoice as a PDF (inline base64, or to disk when QBO_PDF_OUTPUT_DIR is set)
ToolDescription
create_paymentRecord a customer payment
get_paymentGet payment by ID
update_paymentUpdate payment details
delete_paymentVoid a payment
search_paymentsSearch payments with filters
ToolDescription
create_billCreate a new bill
get_billGet bill by ID
update_billUpdate bill details
delete_billDelete a bill
search_billsSearch bills with filters
create_vendorCreate a new vendor
get_vendorGet vendor by ID
update_vendorUpdate vendor details
delete_vendorDelete a vendor
search_vendorsSearch vendors with filters
create_bill_paymentCreate a bill payment
get_bill_paymentGet bill payment by ID
update_bill_paymentUpdate bill payment
delete_bill_paymentDelete a bill payment
search_bill_paymentsSearch bill payments
ToolDescription
create_sales_receiptCreate a sales receipt
get_sales_receiptGet sales receipt by ID
update_sales_receiptUpdate sales receipt
delete_sales_receiptVoid a sales receipt
search_sales_receiptsSearch sales receipts
create_credit_memoCreate a credit memo
get_credit_memoGet credit memo by ID
update_credit_memoUpdate credit memo
delete_credit_memoVoid a credit memo
search_credit_memosSearch credit memos
create_refund_receiptCreate a refund receipt
get_refund_receiptGet refund receipt by ID
update_refund_receiptUpdate refund receipt
delete_refund_receiptVoid a refund receipt
search_refund_receiptsSearch refund receipts
ToolDescription
create_depositCreate a bank deposit
get_depositGet deposit by ID
update_depositUpdate deposit details
delete_depositDelete a deposit
search_depositsSearch deposits
create_transferCreate an account transfer
get_transferGet transfer by ID
update_transferUpdate transfer details
delete_transferDelete a transfer
search_transfersSearch transfers
ToolDescription
create_purchase_orderCreate a purchase order
get_purchase_orderGet purchase order by ID
update_purchase_orderUpdate purchase order
delete_purchase_orderDelete a purchase order
search_purchase_ordersSearch purchase orders
create_vendor_creditCreate a vendor credit
get_vendor_creditGet vendor credit by ID
update_vendor_creditUpdate vendor credit
delete_vendor_creditDelete a vendor credit
search_vendor_creditsSearch vendor credits
ToolDescription
create_time_activityCreate a time activity
get_time_activityGet time activity by ID
update_time_activityUpdate time activity
delete_time_activityDelete a time activity
search_time_activitiesSearch time activities
ToolDescription
create_classCreate a class
get_classGet class by ID
update_classUpdate class details
search_classesSearch classes
create_departmentCreate a department
get_departmentGet department by ID
update_departmentUpdate department
search_departmentsSearch departments
ToolDescription
create_termCreate a payment term
get_termGet term by ID
update_termUpdate term details
search_termsSearch terms
create_payment_methodCreate a payment method
get_payment_methodGet payment method by ID
update_payment_methodUpdate payment method
search_payment_methodsSearch payment methods
get_preferencesGet company accounting and feature preferences
ToolDescription
get_tax_codeGet tax code by ID
search_tax_codesSearch tax codes
get_tax_rateGet tax rate by ID
search_tax_ratesSearch tax rates
get_tax_agencyGet tax agency by ID
search_tax_agenciesSearch tax agencies
ToolDescription
get_company_infoGet company information
update_company_infoUpdate company info
create_attachableCreate an attachment
get_attachableGet attachment by ID
update_attachableUpdate attachment
delete_attachableDelete an attachment
search_attachablesSearch attachments

Authentication

This server uses OAuth 2.0 to authenticate to a QuickBooks Online company. You'll set up an app on the Intuit Developer Portal and connect it to either a sandbox (for development) or your production QBO company.

Important: Sandbox vs Production

ModeWhen to useRedirect URI acceptedSetup difficulty
SandboxDevelopment, testing, demoshttp://localhost:8000/callback worksEasy
ProductionReal company dataLocalhost rejected — must be a public HTTPS URLHarder (see below)

If you only want to read your own company's data, you still need to set up an app — Intuit does not offer per-user API keys. There is no shortcut around the OAuth + app-creation flow.

Sandbox Setup (recommended for first run)

  1. Go to the Intuit Developer Portal and create a new app
  2. Open the app → Settings (left sidebar) → Redirect URIs → add: http://localhost:8000/callback
  3. Get your Client ID and Client Secret from the app's Keys & Credentials page (Development keys)
  4. Create or use a sandbox company under the Sandbox top-level menu item in the dev portal
  5. Set QUICKBOOKS_ENVIRONMENT=sandbox in your .env
  6. Run npm run auth to complete the OAuth handshake — your browser will open, you sign in to the sandbox company, tokens are saved to .env

Production Setup

The Intuit Developer Portal rejects http://localhost redirect URIs in production mode — every contributor hits this. Two known workarounds:

  1. ngrok tunnel (most common): run ngrok http 8000, then on your Intuit app go to Settings → Redirect URIs and add the generated https://<id>.ngrok-free.app/callback URL. Use that URL for the OAuth handshake, then revert to localhost afterwards.
  2. Deploy a small public callback handler (e.g., on a VPS or serverless function) that captures the auth code and hands it back to your local setup. More involved; only needed if you can't use ngrok.

After completing the production OAuth handshake, the refresh token is what matters — once it's in .env, you no longer need the public redirect URL for day-to-day use. Refresh tokens auto-rotate; the server persists the new token on each refresh.

Once you have tokens

env
QUICKBOOKS_CLIENT_ID=your_client_id
QUICKBOOKS_CLIENT_SECRET=your_client_secret
QUICKBOOKS_REFRESH_TOKEN=your_refresh_token
QUICKBOOKS_REALM_ID=your_realm_id
QUICKBOOKS_ENVIRONMENT=sandbox  # or 'production'

Common pitfalls

  • .env loaded from the wrong directory. The server resolves .env relative to the compiled module, not your shell's CWD. If you launch via Claude Desktop, this matters — make sure you're on current main.
  • Redirect URI mismatch. The URI you register in the Intuit portal must match exactly — protocol, host, port, path. http://localhost:8000/callback .

Development

Building

bash
npm run build

Testing

bash
npm test

The test suite includes 396 tests with 100% code coverage across all metrics (statements, branches, functions, lines).

Project Structure

src/
├── clients/          # QuickBooks API client
├── handlers/         # Business logic handlers (87 files)
├── tools/           # MCP tool definitions
├── helpers/         # Utility functions
├── types/           # TypeScript types
└── index.ts         # Server entry point

tests/
├── unit/            # Unit tests (396 tests)
│   ├── handlers/    # Handler tests (15 test files)
│   └── helpers/     # Helper tests
└── mocks/           # Test mocks

docs/
├── ARCHITECTURE.md  # System architecture & design patterns
├── TESTING.md       # Testing guide & patterns
└── plans/           # Development plans

Documentation

DocumentDescription
CHANGELOG.mdVersion history and all changes
docs/ARCHITECTURE.mdSystem architecture, patterns, and design decisions
docs/TESTING.mdTesting strategy, ESM patterns, and coverage guide

Error Handling

If you encounter connection errors:

  1. Verify all environment variables are set correctly
  2. Check that tokens are valid and not expired
  3. Ensure the QuickBooks app has the correct redirect URIs
  4. For sandbox testing, use QUICKBOOKS_ENVIRONMENT=sandbox

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

Tool naming convention

All tool names must follow the {verb}_{entity} convention using underscores. The verb prefix determines CRUD Restriction Mode behaviour:

PrefixCategorySuppressed by
create_WRITEQUICKBOOKS_DISABLE_WRITE=true
update_UPDATEQUICKBOOKS_DISABLE_UPDATE=true
delete_DELETEQUICKBOOKS_DISABLE_DELETE=true
get_, search_, read_READnever

New tools that do not follow this convention will not be correctly categorised and may appear or be suppressed unexpectedly.


License

MIT License - see LICENSE for details.


Acknowledgments

安装

TypingMind
前提条件:

Node.js 18+

{
  "mcpServers": {
    "your-username-mcp-quickbooks-online": {
      "command": "",
      "args": []
    }
  }
}

将 QuickBooks Online MCP Server MCP 与多个 AI 模型配合使用

TypingMind 在工作区级别连接 MCP 工具,因此连接 QuickBooks Online MCP Server 后,您就可以在 TypingMind 中搭配不同的 AI 模型使用,无需为每个模型单独设置。 此 MCP 通过您设备上的 TypingMind MCP 连接器在本地运行。

本地连接器设置指南

如果 MCP 服务器需要访问您电脑上的本地文件、应用或私有资源,请选择此方式。

1

打开 MCP 设置

在 TypingMind 中,依次前往“设置”、“高级设置”和“模型上下文协议”,然后选择“设置连接器”。

  1. 在您的浏览器中打开 TypingMind。
  2. 点击“设置”图标。
  3. 进入“高级设置”。
  4. 打开“模型上下文协议”部分。
  5. 点击“设置连接器”,然后选择“此设备”。
TypingMind MCP 连接器设置界面,已选择“此设备”
2

运行连接器命令

选择“此设备”,从 TypingMind 复制命令并在终端中运行。使用 MCP 时,请保持该进程运行。

  1. 复制 TypingMind 显示的设置命令。
  2. 在 macOS 上打开“终端”,或在 Windows 上打开 Windows Terminal。
  3. 粘贴并运行命令。
  4. 如果终端询问您是否继续,请确认安装软件包。
  5. 使用 MCP 工具时,请勿关闭终端窗口或停止其中的连接器进程。
3

将 QuickBooks Online MCP Server 添加为服务器

当连接器状态为“就绪”时,点击“编辑服务器”,然后粘贴 MCP 服务器配置。

  1. 等待连接器状态显示为“就绪”。
  2. 点击“编辑服务器”。
  3. 粘贴 QuickBooks Online MCP Server MCP 服务器配置。
  4. 保存服务器列表。
  5. 如需确认连接器是否仍处于就绪状态,请刷新。
TypingMind MCP 设置界面,显示正在运行的服务器和“编辑服务器”按钮
{
  "mcpServers": {
    "your-username-mcp-quickbooks-online": {
      "command": "npx",
      "args": [
        "-y",
        "@qboapi/qbo-mcp-server"
      ]
    }
  }
}
4

在不同模型中使用同一连接

保存服务器列表,打开“插件”,启用 QuickBooks Online MCP Server MCP 工具,然后在 TypingMind 中选择任意受支持的 AI 模型,即可在聊天中使用这些工具,或将其分配给智能体。

  1. 在 TypingMind 中打开“插件”页面。
  2. 启用 QuickBooks Online MCP Server MCP 工具。
  3. 开始聊天并选择您想使用的 AI 模型。
  4. 在聊天中使用 MCP 工具,或将其分配给 AI 智能体。
  5. 根据需要随时切换到其他 AI 模型,无需重新连接 MCP。
在 TypingMind 聊天中使用已启用的 MCP 工具和选定的 AI 模型
您能使用 QuickBooks Online MCP Server 帮我完成这项任务吗?
QuickBooks Online MCP Server
当然,我看过了。
以下是我使用 QuickBooks Online MCP Server 得到的结果。

常见问题

QuickBooks Online MCP Server MCP 服务器有什么用途?

QuickBooks Online MCP Server 是一个 MCP 服务器,可让兼容的 AI 客户端连接外部工具并获取上下文。在 TypingMind 中,只需添加一次此 MCP 服务器,即可在您的 AI 工作区中使用其工具。

可以在 TypingMind 中让多个 AI 模型使用 QuickBooks Online MCP Server MCP 吗?

可以。TypingMind 在工作区层面连接 MCP 工具,因此您无需为每个模型单独配置 MCP 服务器,就能在 Claude、ChatGPT、Gemini 或您在 TypingMind 中配置的其他 AI 模型中使用 QuickBooks Online MCP Server。

为什么在 TypingMind 中使用 QuickBooks Online MCP Server MCP?

TypingMind 将多个 AI 模型、提示词、插件、AI 智能体、API 密钥和 MCP 工具整合到同一个工作区中,是最出色的大语言模型聊天前端之一。连接 QuickBooks Online MCP Server 后,您可以在偏好的不同模型中使用其 MCP 工具,同时在 TypingMind 中井然有序地管理聊天工作流程。

如何将 QuickBooks Online MCP Server MCP 连接到 TypingMind?

QuickBooks Online MCP Server 通过 TypingMind 本地 MCP 连接器运行。当 MCP 服务器需要访问您计算机上的本地文件、桌面应用、命令行工具或私有资源时,这种方式最合适。

QuickBooks Online MCP Server MCP 在 TypingMind 中提供哪些工具?

QuickBooks Online MCP Server 提供 MCP 功能,您可以在 TypingMind 的插件页面启用这些功能,然后在聊天中使用,或将其分配给 AI 智能体。

使用 QuickBooks Online MCP Server MCP 需要向 TypingMind 提供我的 API 密钥吗?

不需要。TypingMind 采用本地优先的设计,让您自行选择模型提供商,并自行管理 API 密钥、提示词和 MCP 配置。如果 QuickBooks Online MCP Server 需要身份验证,请在创建连接时,为该 MCP 服务器添加所需的请求头、OAuth 设置或本地配置。

相关 MCP 服务器

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇