QuickBooks Online MCP Server logo

QuickBooks Online MCP Server

Organization
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.

Publisherintuit
Repositoryquickbooks-online-mcp-server
LanguageTypeScript
Forks
243
Stars
397
Available tools
0
Transport typestdio
Categories
LicenseApache-2.0
Links
  • Connect tools to AI workflows

    QuickBooks Online MCP Server exposes MCP capabilities that can be used by compatible AI clients and agents.

  • 0 available tools

    Browse the callable actions below, including names and descriptions when provided by the server.

  • Ready-to-copy setup

    Use the installation snippets to configure this server in your preferred MCP client.

  • Open source signals

    397 stars and 243 forks from the linked repository.

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

Installation

TypingMind
Prerequisites:

Node.js 18+

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

Use QuickBooks Online MCP Server MCP with multiple AI models

TypingMind connects MCP tools at the workspace level, so once QuickBooks Online MCP Server is connected, you can use it with different AI models in TypingMind instead of setting it up separately for each model. This MCP runs locally through the TypingMind MCP connector on your device.

Setup guide to use the local connector

Use this when the MCP server needs access to local files, apps, or private resources on your computer.

1

Open the MCP settings

In TypingMind, go to Settings, Advanced Settings, then Model Context Protocol and choose Setup Connector.

  1. Open TypingMind in your browser.
  2. Click the Settings icon.
  3. Go to Advanced Settings.
  4. Open the Model Context Protocol section.
  5. Click Setup Connector and choose This Device.
TypingMind MCP connector setup screen with This Device selected
2

Run the connector command

Choose This Device, copy the command from TypingMind, and run it in Terminal. Keep the process running while you use MCP.

  1. Copy the setup command shown by TypingMind.
  2. Open Terminal on macOS or Windows Terminal on Windows.
  3. Paste and run the command.
  4. Approve the package install if Terminal asks you to proceed.
  5. Keep the Terminal window running while using MCP tools.
3

Add QuickBooks Online MCP Server as a server

When the connector status is Ready, click Edit Servers and paste the MCP server configuration.

  1. Wait until the connector status shows Ready.
  2. Click Edit Servers.
  3. Paste the QuickBooks Online MCP Server MCP server configuration.
  4. Save the server list.
  5. Refresh if you want to confirm the connector is still ready.
TypingMind MCP settings showing active server and Edit Servers button
{
  "mcpServers": {
    "your-username-mcp-quickbooks-online": {
      "command": "npx",
      "args": [
        "-y",
        "@qboapi/qbo-mcp-server"
      ]
    }
  }
}
4

Use it across models

Save the server list, open Plugins, enable the QuickBooks Online MCP Server MCP tools, then select any supported AI model in TypingMind and use the tools in chat or assign them to an AI agent.

  1. Open the Plugins page in TypingMind.
  2. Enable the QuickBooks Online MCP Server MCP tools.
  3. Start a chat and choose the AI model you want to use.
  4. Use the MCP tools in chat or assign them to an AI agent.
  5. Switch to another AI model whenever needed without reconnecting MCP.
TypingMind chat using enabled MCP tools with a selected AI model
Can you use QuickBooks Online MCP Server to help me with this task?
QuickBooks Online MCP Server
Sure. I read it.
Here is what I found using QuickBooks Online MCP Server.

Frequently asked questions

What is the QuickBooks Online MCP Server MCP server used for?

QuickBooks Online MCP Server is an MCP server that lets compatible AI clients connect to external tools and context. In TypingMind, you can add this MCP server once and make its tools available in your AI workspace.

Can I use QuickBooks Online MCP Server MCP with multiple AI models in TypingMind?

Yes. TypingMind connects MCP tools at the workspace level, so you can use QuickBooks Online MCP Server with different AI models such as Claude, ChatGPT, Gemini, or other models you have configured in TypingMind without setting up the MCP server separately for each model.

Why use QuickBooks Online MCP Server MCP with TypingMind?

TypingMind is one of the best frontends for LLM chat because it brings multiple AI models, prompts, plugins, AI agents, API keys, and MCP tools into one workspace. With QuickBooks Online MCP Server connected, you can use its MCP tools across your preferred models while keeping your chat workflow organized in TypingMind.

How do I connect QuickBooks Online MCP Server MCP to TypingMind?

QuickBooks Online MCP Server runs through the TypingMind local MCP connector. This is best when the MCP server needs access to local files, desktop apps, command-line tools, or private resources on your computer.

What tools does QuickBooks Online MCP Server MCP provide in TypingMind?

QuickBooks Online MCP Server exposes MCP capabilities that can be enabled from the TypingMind Plugins page and used in chat or assigned to AI agents.

Do I need to share my API keys with TypingMind to use QuickBooks Online MCP Server MCP?

No. TypingMind is local-first and lets you keep your model providers, API keys, prompts, and MCP configuration under your control. If QuickBooks Online MCP Server requires authentication, add the required headers, OAuth settings, or local configuration for that MCP server when you create the connection.

Related MCP Servers

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇