MCP Ecommerce
QuickBooks logo

Installation guide

How to install QuickBooks Online MCP Server

In Claude, ChatGPT, Gemini, Microsoft Copilot, Perplexity, Cursor and Claude Code, with what to check before you start and the first prompts to run.

This is a local server. You clone Intuit's repository, build it with npm, and your MCP client launches it as a stdio subprocess with `node`. It authenticates to one QuickBooks Online company through OAuth 2.0, using an app you register on the Intuit Developer Portal. You do a one-time browser handshake with `npm run auth`, and after that the server runs without a browser until the 100-day refresh window lapses. Sandbox accepts `http://localhost:8000/callback`. Production rejects localhost and needs a public HTTPS callback for the first authorization. The listing is marked preview, so treat it as early.

A developer should do the setup, with the QuickBooks account owner or an admin signing in during the handshake. Start with a sandbox company and keep the server read-only. Writes are enabled by default, so set `QUICKBOOKS_DISABLE_WRITE`, `QUICKBOOKS_DISABLE_UPDATE` and `QUICKBOOKS_DISABLE_DELETE` to `true` before you connect any assistant. Allow write access later only for supervised tasks.

QuickBooks Online MCP Server setup guide: Intuit's MCP documentation page on github.com, shown in a browser frame (payments MCP server for e-commerce)
QuickBooks Online MCP Server setup guide preview: Intuit’s documentation on github.com, captured Nov 7, 2026. The page may have changed since; the link opens the live version.

Before you start

  • An Intuit Developer Portal account, with an app created and its Client ID and Client Secret from Keys & Credentials (Development keys for sandbox)
  • A sandbox company (Sandbox menu in the developer portal) for the first run, and later the QuickBooks Online company you want to connect, with a user who can authorize the app
  • git, npm and node installed on the machine that will run the server
  • The redirect URI http://localhost:8000/callback added under the app's Settings > Redirect URIs. For production, a public HTTPS callback such as an ngrok tunnel, as the vendor documentation describes
  • The QUICKBOOKS_REFRESH_TOKEN and QUICKBOOKS_REALM_ID values. The npm run auth handshake saves the tokens to .env
How it runs
Local, runs on your machine
Access
Read and write
Server address
Copy it from the vendor documentation

QuickBooks Online MCP Server in Claude

  1. Register the app and build the server first: clone the repository from https://github.com/intuit/quickbooks-online-mcp-server, then run npm install and npm run build.
  2. Copy .env.example to .env and fill in QUICKBOOKS_CLIENT_ID, QUICKBOOKS_CLIENT_SECRET, QUICKBOOKS_ENVIRONMENT=sandbox, QUICKBOOKS_REFRESH_TOKEN and QUICKBOOKS_REALM_ID. Set the three QUICKBOOKS_DISABLE_* flags to true.
  3. Run npm run auth, sign in to the sandbox company in the browser, and confirm the tokens were saved to .env.
  4. Open the Claude Desktop config file through Settings > Developer > Edit Config (claude_desktop_config.json). The vendor documentation does not cover Claude Desktop, so this uses the standard local-server format.
  5. Add the quickbooks entry from the snippet, using the absolute path to your built dist/index.js, then fully quit and restart Claude Desktop.
  6. Local stdio servers are configured in the desktop app file, not through the Claude.ai web Settings > Connectors URL form, so use the desktop app for this server.
claude_desktop_config.json
{
  "mcpServers": {
    "quickbooks": {
      "command": "node",
      "args": [
        "/absolute/path/to/quickbooks-online-mcp-server/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": "true",
        "QUICKBOOKS_DISABLE_UPDATE": "true",
        "QUICKBOOKS_DISABLE_DELETE": "true"
      }
    }
  }
}

QuickBooks Online MCP Server in ChatGPT

  1. The vendor documentation does not cover ChatGPT. This server runs as a local stdio process and the documentation gives no hosted URL.
  2. ChatGPT connectors in Developer mode add custom MCP servers by remote URL, so you cannot point them at node dist/index.js directly.
  3. Do not expose the server publicly just to reach ChatGPT. It holds OAuth credentials and, by default, write tools.
  4. If you need ChatGPT, check the vendor documentation for a supported remote option. Otherwise use a client that can launch local servers, such as Claude Code or Cursor.
  5. If you do put your own remote bridge in front of it, keep the three QUICKBOOKS_DISABLE_* flags set to true and restrict who can reach it.

QuickBooks Online MCP Server in Gemini

  1. Build the server and complete npm run auth as described in the vendor documentation: clone, npm install, npm run build, fill .env, then authenticate against a sandbox company.
  2. Open the Gemini CLI settings file (settings.json) and add an entry under mcpServers. The vendor documentation does not cover Gemini, so this uses the standard Gemini CLI format.
  3. Use the snippet, replacing the path with the absolute path to dist/index.js and filling in your values. Keep the three QUICKBOOKS_DISABLE_* flags set to true.
  4. Restart Gemini CLI so it launches the server.
  5. Run the CLI's MCP listing command (for example /mcp) to confirm quickbooks is connected and shows get_* and search_* tools only.
  6. Gemini app extensions are not covered by the documentation. Use the CLI for this local server.
Gemini CLI settings.json
{
  "mcpServers": {
    "quickbooks": {
      "command": "node",
      "args": [
        "/absolute/path/to/quickbooks-online-mcp-server/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": "true",
        "QUICKBOOKS_DISABLE_UPDATE": "true",
        "QUICKBOOKS_DISABLE_DELETE": "true"
      }
    }
  }
}

QuickBooks Online MCP Server in Microsoft Copilot

  1. The vendor documentation does not cover Microsoft Copilot Studio or GitHub Copilot. For VS Code, use the standard .vscode/mcp.json format for a local server.
  2. Build the server and run npm run auth first, as in the vendor documentation, so a valid refresh token and realm ID exist.
  3. Create .vscode/mcp.json in your workspace (or use the MCP: Add Server command) and add the quickbooks entry from the snippet with the absolute path to dist/index.js.
  4. Avoid committing real secrets. Use placeholders in the file and keep real values out of version control.
  5. Start the server from the MCP controls in VS Code, then open Copilot Chat in agent mode and check that the get_* and search_* tools are listed.
  6. Copilot Studio custom connectors and MCP tools expect a remote endpoint. This server has no hosted URL in the documentation, so it is not a fit there.
.vscode/mcp.json
{
  "servers": {
    "quickbooks": {
      "command": "node",
      "args": [
        "/absolute/path/to/quickbooks-online-mcp-server/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": "true",
        "QUICKBOOKS_DISABLE_UPDATE": "true",
        "QUICKBOOKS_DISABLE_DELETE": "true"
      }
    }
  }
}

QuickBooks Online MCP Server in Perplexity

  1. The vendor documentation does not cover Perplexity. Check whether your Perplexity desktop app version supports adding a local MCP server by command.
  2. If it does, open the app's connectors settings and add a custom or local server, using node as the command and the absolute path to dist/index.js as the argument.
  3. Enter the same environment variables as in the vendor's Claude Code example: client ID, client secret, refresh token, realm ID, QUICKBOOKS_ENVIRONMENT=sandbox, and the three QUICKBOOKS_DISABLE_* flags set to true.
  4. Build the server and run npm run auth beforehand, as the vendor documentation describes, so the tokens are valid.
  5. If the app only accepts a remote URL, it cannot run this local stdio server. The documentation gives no hosted endpoint, so use another client.

QuickBooks Online MCP Server in Cursor

  1. Clone the repository, run npm install and npm run build, copy .env.example to .env, fill it in for a sandbox company, and run npm run auth.
  2. Open Cursor's MCP settings (Settings > MCP) or edit .cursor/mcp.json in your project, or ~/.cursor/mcp.json for all projects. The vendor documentation does not cover Cursor, so this is the standard format.
  3. Add the quickbooks entry from the snippet with the absolute path to your built dist/index.js.
  4. Keep the three QUICKBOOKS_DISABLE_* flags set to true for the first run.
  5. Reload Cursor, then check that quickbooks shows as enabled with get_* and search_* tools only.
.cursor/mcp.json
{
  "mcpServers": {
    "quickbooks": {
      "command": "node",
      "args": [
        "/absolute/path/to/quickbooks-online-mcp-server/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": "true",
        "QUICKBOOKS_DISABLE_UPDATE": "true",
        "QUICKBOOKS_DISABLE_DELETE": "true"
      }
    }
  }
}

QuickBooks Online MCP Server in Claude Code

  1. Clone the repository from https://github.com/intuit/quickbooks-online-mcp-server, then run npm install and npm run build.
  2. Copy .env.example to .env. Fill in the client ID, client secret, QUICKBOOKS_ENVIRONMENT=sandbox, refresh token and realm ID, and set the three QUICKBOOKS_DISABLE_* flags to true.
  3. Run npm run auth. Your browser opens, you sign in to the sandbox company, and the tokens are saved to .env.
  4. Register the server with claude mcp add, using the absolute path to dist/index.js. The server reads .env from the module directory, so the credentials and flags there apply.
  5. Alternatively, use the vendor's JSON example: an mcpServers entry with command set to node, args set to the path of dist/index.js, and an env block with the same keys.
  6. Run claude mcp list to confirm quickbooks is registered, then start a session and test.
Terminal
claude mcp add quickbooks -- node /absolute/path/to/quickbooks-online-mcp-server/dist/index.js

Check that it works

Start with questions that only read data. If these answer from your real account, the connection is good.

  • Run a profit and loss report for last month on the sandbox company.
  • Search for the first five customers and list their display names.
  • List the open invoices for the sandbox company, read only, and do not change anything.

Troubleshooting

+

The server starts but fails with authentication or connection errors. What should I check?

Check that all five variables are set: client ID, client secret, environment, refresh token and realm ID. Confirm the refresh token is still valid (the window is 100 days) and that `QUICKBOOKS_ENVIRONMENT` matches the keys you used. Make sure the redirect URI in the Intuit portal matches exactly, including protocol, host, port and path.

+

Production authorization fails with a redirect URI error. Why?

The vendor documentation says Intuit rejects `http://localhost` redirect URIs in production. Use a public HTTPS callback, either an `ngrok` tunnel (`ngrok http 8000`) added under Settings > Redirect URIs, or a small hosted callback handler. After the handshake, the refresh token in `.env` is what the server uses day to day.

+

The server cannot save the refreshed token, or my client does not pick up my `.env`. What now?

The server resolves `.env` relative to the compiled module, not your shell's working directory. It also writes the rotated refresh token back. On a read-only install, set `QUICKBOOKS_TOKEN_STORE_PATH` to an absolute writable path in the client's `env` block, not in `.env`. When it is set, the package's own `.env` is not read.

Written Nov 7, 2026 from the vendor documentation. Exact menus, addresses and commands change; the official documentation is the source of truth.

Questions and answers (1)

Questions readers and searchers ask about installing QuickBooks Online MCP Server, answered by the site editor from the vendor documentation, plus reader experience. Every comment is reviewed before it appears.

  • MCP Ecommerce editorSite editor

    People search for: “is it safe to connect claude to quickbooks?”

    It can be, if you lock it down first, but Intuit's QuickBooks Online MCP server is still marked preview, so treat it as early. This is the local server you run yourself, not a hosted connector. Your OAuth client ID, secret and refresh token sit in your own `.env` or client config, and the docs describe no remote hosting, so don't expose it publicly.

    The main catch is that writes are on by default. Set `QUICKBOOKS_DISABLE_WRITE=true`, `QUICKBOOKS_DISABLE_UPDATE=true` and `QUICKBOOKS_DISABLE_DELETE=true` and the create, update and delete tools are never registered. Read tools like `get_*` and `search_*` stay, plus the financial reports.

    Practical order: use `QUICKBOOKS_ENVIRONMENT=sandbox`, run `npm run auth` against a sandbox company, check you only see read tools, and only enable writes for supervised tasks. The docs don't cover audit logging or approval prompts, so check the repo at https://github.com/intuit/quickbooks-online-mcp-server for that.

Ask a question or share what worked

Reviewed before publishing. One link max, no HTML.