November 27, 2026

How to Connect Claude to QuickBooks Online with MCP: A Read-Only Setup for Accountants

How to Connect Claude to QuickBooks Online with MCP: A Read-Only Setup for Accountants
Learn how to build a safe, read-only Claude QuickBooks MCP integration for your firm. Follow our expert guide to restrict write access and protect your data.

Connecting an AI assistant to a client's general ledger offers massive leverage for querying reports and investigating variances. However, performing a QuickBooks MCP server setup requires caution. By default, Intuit's official open-source QuickBooks Online Model Context Protocol (MCP) server exposes 144 to 145 tools across 29 entity types and 11 financial reports, including full create, update, and delete capabilities.

If you leave these tools unrestricted, the results can be dangerous for live client data. In an October 2026 empirical test by Booke AI, an AI agent connected to Intuit's default MCP server was told to "fix my books." Without asking for permission, the agent made three unprompted changes to a test company in 84 seconds.

Fortunately, there is a verified way to restrict this. By applying three specific environment flags, you can establish a strict read-only Claude QuickBooks MCP integration. This guide provides the exact setup steps, OAuth scope realities, and boundaries for what accounting firms should never automate, ensuring you can safely evaluate AI-agent-operable accounting software with zero risk of mutating the ledger.

Intuit's Current QuickBooks MCP Server Options

Accountants looking to deploy this technology will encounter three distinct first-party paths from Intuit. They do not share settings or read-only controls.

Option A: Official Open-Source Local MCP Server (Recommended)

Available via GitHub (intuit/quickbooks-online-mcp-server), this runs locally on your machine communicating directly with Claude Desktop or Claude Code. It exposes over 140 tools. Accountants should choose this route because it is the only official Intuit option where you can enforce a strict server-level read-only mode via environment variables before Claude even starts.

Option B: Hosted QuickBooks Connector in Claude.ai

Intuit released a 1-click connector in the browser at claude.ai. As of July 2026, this connector gained write actions like invoicing and importing transactions. It is restricted to US QuickBooks Online and Intuit Enterprise Suite customers. Crucially, it does not accept the read-only environment restriction flags, making it unsuitable for risk-averse advisory work.

Option C: Intuit AI Pilot Hosted MCP Server

This is an invitation-only remote endpoint for third-party software vendors under the Intuit App Partner Program. It is not available for accounting firms to self-serve.

(Note for ChatGPT users: Those looking to connect ChatGPT to QuickBooks usually rely on the official ChatGPT marketplace app or hosted wrappers. Because ChatGPT in the browser cannot natively spawn a local server, Claude Desktop remains the safest, most controllable local option for accountants.)

Understanding Permissions and OAuth Scopes

A major point of confusion for accountants is the difference between QuickBooks UI user roles and Intuit OAuth 2.0 scopes.

When registering an app on the Intuit Developer Portal, there is no read-only API scope. Intuit publishes only one OAuth 2.0 scope for general ledger data: com.intuit.quickbooks.accounting. This scope grants full read and write access to the accounting API. Furthermore, QuickBooks requires a Company Admin to authorize a third-party connection. You cannot trick the API by using a "Reports-Only" user login.

Because the OAuth token itself can write to the ledger, read-only enforcement must happen in the MCP server's tool registry. Instructing the AI with a prompt like "do not change anything" is insufficient. If the model misinterprets an instruction, it will execute a write command. The only safe method is suppressing the write tools entirely at the server level.

Step-by-Step Read-Only Setup Guide (Sandbox First)

The following steps are verified against Intuit's MCP server documentation and Anthropic's local server guidelines.

Prerequisites

  • Claude Desktop installed on macOS or Windows.
  • Node.js 18 or higher installed on your machine.
  • An Intuit Developer Portal account (this provides a free QuickBooks Online Sandbox company).

Step 1: Clone and Build the Server

Open your terminal and run the following commands to download and compile the official server:

git clone https://github.com/intuit/quickbooks-online-mcp-server.git
cd quickbooks-online-mcp-server
npm install
npm run build

Step 2: Create a Sandbox App

Log into the Intuit Developer Portal and create a new app under "QuickBooks Online and Payments."

  1. Select the com.intuit.quickbooks.accounting scope. Do not check Payments.
  2. Open "Keys & credentials" under the Development (Sandbox) tab and copy your Client ID and Client Secret.
  3. In the "Redirect URIs" section, add exactly: http://localhost:8000/callback

Step 3: Configure the Environment Flags

Copy the example environment file in the repository root:

cp .env.example .env

Edit the .env file with your credentials and uncomment the three critical restriction flags. They must be set to lowercase "true":

QUICKBOOKS_CLIENT_ID=your_development_client_id_here
QUICKBOOKS_CLIENT_SECRET=your_development_client_secret_here
QUICKBOOKS_REDIRECT_URI=http://localhost:8000/callback
QUICKBOOKS_ENVIRONMENT=sandbox

# READ-ONLY RESTRICTION MODE
QUICKBOOKS_DISABLE_WRITE=true
QUICKBOOKS_DISABLE_UPDATE=true
QUICKBOOKS_DISABLE_DELETE=true

Step 4: Run the OAuth Handshake

In your terminal, run:

npm run auth

This opens your browser. Select your Sandbox Company and authorize access. The script captures your QUICKBOOKS_REFRESH_TOKEN and QUICKBOOKS_REALM_ID and writes them into your .env file.

Step 5: Wire the Server into Claude Desktop

Open Claude Desktop's configuration file (claude_desktop_config.json). Add the quickbooks entry under mcpServers.

To prevent the AI from bypassing your .env restrictions, enforce the read-only flags in this file as well:

{
  "mcpServers": {
    "quickbooks": {
      "command": "node",
      "args": [
        "/ABSOLUTE/PATH/TO/quickbooks-online-mcp-server/dist/index.js"
      ],
      "env": {
        "QUICKBOOKS_CLIENT_ID": "your_development_client_id",
        "QUICKBOOKS_CLIENT_SECRET": "your_development_client_secret",
        "QUICKBOOKS_REFRESH_TOKEN": "your_refresh_token_from_env",
        "QUICKBOOKS_REALM_ID": "your_sandbox_realm_id",
        "QUICKBOOKS_ENVIRONMENT": "sandbox",
        "QUICKBOOKS_TOKEN_STORE_PATH": "/ABSOLUTE/PATH/TO/quickbooks-online-mcp-server/.env",
        "QUICKBOOKS_DISABLE_WRITE": "true",
        "QUICKBOOKS_DISABLE_UPDATE": "true",
        "QUICKBOOKS_DISABLE_DELETE": "true"
      }
    }
  }
}

Quit and reopen Claude Desktop to initialize the connection.

Verifying Read-Only Mode and Example Queries

Before running any financial analysis, ask Claude to verify its constraints: "List all of your available QuickBooks tools and group them by their starting verb."

The tool count should drop from roughly 145 down to approximately 71. If you see any tools starting with create_, update_, or delete_, check your configuration. To understand the full scope of what AI agents can do with an MCP server, review the remaining get_ and search_ commands.

Once verified, try these accountant-focused prompts:

Accounts Receivable (AR) Aging Triage

"Pull the Aged Receivables Detail report as of today (YYYY-MM-DD). Group all open invoices over 30 days past due by customer, list the invoice number, due date, open balance, and aging bucket (31-60, 61-90, 91+), and reconcile the total against the Aged Receivables summary report. Flag any customer with both an overdue invoice and an unapplied credit memo or payment."

Profit and Loss (P&L) Variance Check

"Run a Profit and Loss report for Q3 2026 (2026-07-01 to 2026-09-30) on an Accrual basis with columns summarized by Classes. Identify any expense accounts that have transactions sitting in 'Not Specified' (unclassified), then search the underlying bills or purchases in that date range to list the exact transactions missing a Class tag."

Logging and Audit Trails

QuickBooks Online's built-in Audit Log only records logins and write/update/delete events. Because a read-only MCP server only issues GET/SELECT requests, QuickBooks does not record a line-by-line log of what reports Claude reads.

However, Claude Desktop captures local MCP server logs on your machine. You can view these via the Claude Desktop GUI (Help > Troubleshooting > Show Logs) or by locating the mcp-server-quickbooks.log file in your system's application data folders. Monitoring these logs is the best way to see exactly which API endpoints the AI is querying under the hood.

What NOT to Automate: The Accountant's Red Lines

Even with read-only guardrails in place on a sandbox, general-purpose chat models should never be used to automate certain accounting workflows:

  1. Closing the Books: Accruals, prepaid amortizations, and depreciation require workpaper tie-outs and professional judgment that an AI lacks.
  2. Bulk Recategorization: Asking an unrestricted model to "fix duplicates" can destroy historical bank reconciliations in seconds.
  3. Sending Customer Invoices: Write-enabled connections can hallucinate line items or customer IDs, dispatching erroneous invoices directly to clients.
  4. Payroll Compensation Analysis: Intuit gates detailed employee pay data behind a separate API restricted to Gold and Platinum partners. The standard accounting scope only provides summary GL lines. You cannot read payroll data from QuickBooks Online at the individual paycheck level using the default MCP server.
  5. Multi-Client Production Environments: Mixing production company IDs without clearly labeling each server instance risks querying the wrong client's financials during advisory work.

Frequently Asked Questions

Does QuickBooks Online have an official MCP server for Claude?

Yes, in two main forms. Intuit offers an open-source local MCP server exposing 144 to 145 tools across 29 accounting entities, and a hosted QuickBooks connector inside Claude.ai (US only). Only the local open-source server allows you to strip out write, update, and delete tools via environment variables.

How do I make the QuickBooks MCP server strictly read-only?

Set three environment variables to lowercase "true" in both your .env file and your claude_desktop_config.json environment block: QUICKBOOKS_DISABLE_WRITE=true, QUICKBOOKS_DISABLE_UPDATE=true, and QUICKBOOKS_DISABLE_DELETE=true.

Is there a read-only OAuth scope in the Intuit Developer Portal?

  1. Intuit publishes a single accounting OAuth 2.0 scope (com.intuit.quickbooks.accounting) that includes full CRUD permissions. Accountants must enforce read-only access at the MCP server layer by suppressing tool registration.

Can Claude read employee pay rates and paycheck details through the QuickBooks MCP server?

  1. General agent connections run under the accounting scope, which only exposes basic Employee directory records and summary payroll journal entries. Detailed employee compensation sits behind Intuit's separate Payroll Compensation API.

Can I use the local QuickBooks MCP server with ChatGPT or Claude in the browser?

Not directly. Intuit's open-source MCP server runs locally over standard input/output, requiring a desktop client like Claude Desktop or Claude Code. Browser-based clients require hosted connectors or remote gateways.

Take the Next Step

Ready to safely test AI agents against financial data? The Accountant's MCP Starter Kit is in the works. Subscribe free to Modern Accounting and we'll send it to you when it's released.