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.

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,npmandnodeinstalled on the machine that will run the server- The redirect URI
http://localhost:8000/callbackadded under the app's Settings > Redirect URIs. For production, a publicHTTPScallback such as anngroktunnel, as the vendor documentation describes - The
QUICKBOOKS_REFRESH_TOKENandQUICKBOOKS_REALM_IDvalues. Thenpm run authhandshake 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
- Register the app and build the server first: clone the repository from
https://github.com/intuit/quickbooks-online-mcp-server, then runnpm installandnpm run build. - Copy
.env.exampleto.envand fill inQUICKBOOKS_CLIENT_ID,QUICKBOOKS_CLIENT_SECRET,QUICKBOOKS_ENVIRONMENT=sandbox,QUICKBOOKS_REFRESH_TOKENandQUICKBOOKS_REALM_ID. Set the threeQUICKBOOKS_DISABLE_*flags totrue. - Run
npm run auth, sign in to the sandbox company in the browser, and confirm the tokens were saved to.env. - 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. - Add the
quickbooksentry from the snippet, using the absolute path to your builtdist/index.js, then fully quit and restart Claude Desktop. - Local stdio servers are configured in the desktop app file, not through the Claude.ai web
Settings > ConnectorsURL form, so use the desktop app for this server.
{
"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
- The vendor documentation does not cover ChatGPT. This server runs as a local stdio process and the documentation gives no hosted URL.
- ChatGPT connectors in Developer mode add custom MCP servers by remote URL, so you cannot point them at
node dist/index.jsdirectly. - Do not expose the server publicly just to reach ChatGPT. It holds OAuth credentials and, by default, write tools.
- 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.
- If you do put your own remote bridge in front of it, keep the three
QUICKBOOKS_DISABLE_*flags set totrueand restrict who can reach it.
QuickBooks Online MCP Server in Gemini
- Build the server and complete
npm run authas described in the vendor documentation: clone,npm install,npm run build, fill.env, then authenticate against a sandbox company. - Open the Gemini CLI settings file (
settings.json) and add an entry undermcpServers. The vendor documentation does not cover Gemini, so this uses the standard Gemini CLI format. - Use the snippet, replacing the path with the absolute path to
dist/index.jsand filling in your values. Keep the threeQUICKBOOKS_DISABLE_*flags set totrue. - Restart Gemini CLI so it launches the server.
- Run the CLI's MCP listing command (for example
/mcp) to confirmquickbooksis connected and shows get_* and search_* tools only. - Gemini app extensions are not covered by the documentation. Use the CLI for this local server.
{
"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
- The vendor documentation does not cover Microsoft Copilot Studio or GitHub Copilot. For VS Code, use the standard
.vscode/mcp.jsonformat for a local server. - Build the server and run
npm run authfirst, as in the vendor documentation, so a valid refresh token and realm ID exist. - Create
.vscode/mcp.jsonin your workspace (or use the MCP: Add Server command) and add thequickbooksentry from the snippet with the absolute path todist/index.js. - Avoid committing real secrets. Use placeholders in the file and keep real values out of version control.
- 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.
- 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.
{
"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
- The vendor documentation does not cover Perplexity. Check whether your Perplexity desktop app version supports adding a local MCP server by command.
- If it does, open the app's connectors settings and add a custom or local server, using
nodeas the command and the absolute path todist/index.jsas the argument. - 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 threeQUICKBOOKS_DISABLE_*flags set totrue. - Build the server and run
npm run authbeforehand, as the vendor documentation describes, so the tokens are valid. - 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
- Clone the repository, run
npm installandnpm run build, copy.env.exampleto.env, fill it in for a sandbox company, and runnpm run auth. - Open Cursor's MCP settings (
Settings > MCP) or edit.cursor/mcp.jsonin your project, or~/.cursor/mcp.jsonfor all projects. The vendor documentation does not cover Cursor, so this is the standard format. - Add the
quickbooksentry from the snippet with the absolute path to your builtdist/index.js. - Keep the three
QUICKBOOKS_DISABLE_*flags set totruefor the first run. - Reload Cursor, then check that
quickbooksshows as enabled with get_* and search_* tools only.
{
"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
- Clone the repository from
https://github.com/intuit/quickbooks-online-mcp-server, then runnpm installandnpm run build. - Copy
.env.exampleto.env. Fill in the client ID, client secret,QUICKBOOKS_ENVIRONMENT=sandbox, refresh token and realm ID, and set the threeQUICKBOOKS_DISABLE_*flags totrue. - Run
npm run auth. Your browser opens, you sign in to the sandbox company, and the tokens are saved to.env. - Register the server with
claude mcp add, using the absolute path todist/index.js. The server reads.envfrom the module directory, so the credentials and flags there apply. - Alternatively, use the vendor's
JSONexample: anmcpServersentry withcommandset tonode,argsset to the path ofdist/index.js, and anenvblock with the same keys. - Run
claude mcp listto confirmquickbooksis registered, then start a session and test.
claude mcp add quickbooks -- node /absolute/path/to/quickbooks-online-mcp-server/dist/index.jsCheck 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.