Back to Browse

Quickbooks MCP Server

Business ToolsUse Caution4.8MCP RegistryLocal
Free

Server data from the Official MCP Registry

MCP server for QuickBooks Online API integration

About

MCP server for QuickBooks Online API integration

Security Report

4.8
Use Caution4.8High Risk

This QuickBooks MCP server demonstrates solid security architecture with proper OAuth-based authentication, secure credential storage options (local file or AWS Secrets Manager), and appropriate input validation. The codebase follows good practices for an MCP server handling financial data: no hardcoded credentials, environment-based configuration, and name resolution to prevent direct ID exposure. Minor code quality observations exist around error handling breadth and logging verbosity, but these do not constitute security vulnerabilities. Permissions (file system, network HTTP, AWS/env access) are appropriate for a business accounting tool. Supply chain analysis found 5 known vulnerabilities in dependencies (0 critical, 3 high severity). Package verification found 1 issue.

3 files analyzed · 11 issues found

Security scores are indicators to help you make informed decisions, not guarantees. Always review permissions before connecting any MCP server.

Permissions Required

This plugin requests these system permissions. Most are normal for its category.

env_vars

Check that this permission is expected for this type of plugin.

File System Read

Reads files on your machine. Normal for tools that analyze or process local data.

File System Write

Writes or modifies files on your machine. Check that this is expected for the tool.

HTTP Network Access

Connects to external APIs or services over the internet.

network_https

Check that this permission is expected for this type of plugin.

What You'll Need

Set these up before or after installing:

QuickBooks app Client ID from developer.intuit.comRequired

Environment variable: QBO_CLIENT_ID

QuickBooks app Client Secret from developer.intuit.comRequired

Environment variable: QBO_CLIENT_SECRET

Credential storage mode: 'local' (default) or 'aws'Optional

Environment variable: QBO_CREDENTIAL_MODE

Set to 'true' to use QuickBooks sandbox environmentOptional

Environment variable: QBO_SANDBOX

How to Install

Add this to your MCP configuration file:

{
  "mcpServers": {
    "io-github-laf-rge-quickbooks-mcp": {
      "env": {
        "QBO_SANDBOX": "your-qbo-sandbox-here",
        "QBO_CLIENT_ID": "your-qbo-client-id-here",
        "QBO_CLIENT_SECRET": "your-qbo-client-secret-here",
        "QBO_CREDENTIAL_MODE": "your-qbo-credential-mode-here"
      },
      "args": [
        "-y",
        "quickbooks-mcp"
      ],
      "command": "npx"
    }
  }
}

Documentation

View on GitHub

From the project's GitHub README.

QuickBooks MCP Server

An MCP server for QuickBooks Online — built for bookkeepers, CFOs, and accountants who use AI assistants in their daily workflow.

Ask your AI assistant to pull a P&L report, create a journal entry, or investigate an account balance — using plain language, not API payloads.

Why This Server?

Intuit provides an official MCP server that's a solid starting point for developers exploring the QuickBooks API. This server takes a different approach: it's designed for financial professionals working in production books.

Use natural language, not internal IDs

Intuit's server requires QuickBooks internal IDs for every reference — you need to look up a vendor's ID before creating a bill. This server resolves names automatically:

"Create a bill for PG&E, $450 to Utilities, dated 2025-01-15"
→ Vendor, account, and department names are resolved automatically

Financial reports built in

This is the only QuickBooks MCP server with report tools. Pull a P&L, Balance Sheet, or Trial Balance — broken down by month, department, or class — without leaving your AI conversation.

Safe by default

Every create and edit operation defaults to draft/preview mode. You see exactly what will be written to your books before committing. No accidental journal entries or misclassified expenses.

One query tool instead of dozens

Instead of separate search tools for each entity type, a single SQL-like query tool works across all QuickBooks entities. AI assistants write SQL naturally, and QuickBooks validates it — no field whitelists to maintain.

"SELECT * FROM Purchase WHERE TxnDate >= '2025-01-01' AND TxnDate <= '2025-01-31'"

Production-ready credential management

Store credentials locally for personal use, or in AWS Secrets Manager for shared environments. OAuth tokens refresh automatically and persist across sessions.

At a glance

Intuit OfficialThis Server
AudienceDevelopers exploring the APIBookkeepers, CFOs, accountants
Name resolutionRequires internal QB IDsResolves names automatically
Financial reportsNoneP&L, Balance Sheet, Trial Balance
Write safetyExecutes immediatelyDraft preview by default
Query approachEntity-specific search toolsSQL-like queries across all entities
CredentialsLocal .env fileLocal file or AWS Secrets Manager
DistributionClone from GitHubnpx quickbooks-mcp

Prerequisites

Installation Options

Choose the setup that fits your use case:

SetupBest For
NPM InstallQuick setup, using your own QuickBooks app
Local CheckoutDevelopment, customization
AWS ModeShared/production environments

Option 1: NPM Install

The simplest way to get started. Credentials are stored locally on your machine.

1. Create a QuickBooks App

  1. Go to developer.intuit.com and sign in
  2. Create a new app (or select an existing one)
  3. Go to "Keys & credentials"
  4. Note your Client ID and Client Secret
  5. Under "Redirect URIs", add: https://developer.intuit.com/v2/OAuth2Playground/RedirectUrl

2. Add to Claude Code

Add to your project's .mcp.json:

{
  "mcpServers": {
    "quickbooks": {
      "command": "npx",
      "args": ["-y", "quickbooks-mcp"]
    }
  }
}

3. Configure Credentials

Create ~/.quickbooks-mcp/credentials.json:

{
  "client_id": "your_client_id",
  "client_secret": "your_client_secret"
}

4. Authenticate

Once Claude Code is running, use the qbo_authenticate tool:

  1. Call qbo_authenticate with no arguments to get an authorization URL
  2. Open the URL in your browser and authorize the app
  3. Copy the code and realmId from the redirect URL
  4. Call qbo_authenticate again with the authorization code and realm ID

Your OAuth tokens will be saved and automatically refreshed.


Option 2: Local Checkout

For development or customization.

1. Create a QuickBooks App

Follow the same steps as Option 1 above.

2. Clone and Build

git clone https://github.com/laf-rge/quickbooks-mcp.git
cd quickbooks-mcp
npm install
npm run build

3. Add to Claude Code

Add to your project's .mcp.json:

{
  "mcpServers": {
    "quickbooks": {
      "command": "node",
      "args": ["/path/to/quickbooks-mcp/dist/index.js"]
    }
  }
}

4. Configure Credentials

Create ~/.quickbooks-mcp/credentials.json with your client credentials (same as Option 1), then run qbo_authenticate to complete the OAuth flow.


Option 3: AWS Mode

For shared or production environments. Stores credentials in AWS Secrets Manager.

1. Create AWS Resources

Create the secret in Secrets Manager:

aws secretsmanager create-secret \
  --name prod/qbo \
  --secret-string '{
    "client_id": "your_client_id",
    "client_secret": "your_client_secret",
    "access_token": "your_access_token",
    "refresh_token": "your_refresh_token",
    "redirect_url": "https://developer.intuit.com/v2/OAuth2Playground/RedirectUrl"
  }'

Store Company ID in SSM Parameter Store:

aws ssm put-parameter \
  --name /prod/qbo/company_id \
  --value "your_company_id" \
  --type SecureString

2. Configure the Server

Create a .env file in the quickbooks-mcp directory:

QBO_CREDENTIAL_MODE=aws
AWS_REGION=us-east-2
QBO_SECRET_NAME=prod/qbo
QBO_COMPANY_ID_PARAM=/prod/qbo/company_id

Note: Due to a known Claude Code bug, environment variables from .mcp.json are not reliably passed to MCP servers. The .env file workaround is required.

3. Add to Claude Code

{
  "mcpServers": {
    "quickbooks": {
      "command": "node",
      "args": ["/path/to/quickbooks-mcp/dist/index.js"]
    }
  }
}

4. IAM Permissions

The server needs these AWS permissions:

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Effect": "Allow",
      "Action": [
        "secretsmanager:GetSecretValue",
        "secretsmanager:PutSecretValue"
      ],
      "Resource": "arn:aws:secretsmanager:*:*:secret:prod/qbo*"
    },
    {
      "Effect": "Allow",
      "Action": ["ssm:GetParameter"],
      "Resource": "arn:aws:ssm:*:*:parameter/prod/qbo/*"
    }
  ]
}

Inline Output Mode

By default, large responses (reports, query results) are written to /tmp files and the server returns a file path. This works well for Claude Code in terminal environments but breaks in Claude Desktop and plugin environments where the model cannot read from /tmp.

Set QBO_INLINE_OUTPUT=true to return all responses inline instead.

Option A — via .env file (recommended for local checkout):

Create a .env file in the quickbooks-mcp directory:

QBO_INLINE_OUTPUT=true

Option B — via .mcp.json env block (recommended for NPM install):

{
  "mcpServers": {
    "quickbooks": {
      "command": "npx",
      "args": ["-y", "quickbooks-mcp"],
      "env": {
        "QBO_CREDENTIAL_MODE": "local",
        "QBO_INLINE_OUTPUT": "true"
      }
    }
  }
}

Note: Due to a known Claude Code bug, environment variables from .mcp.json are not reliably passed to MCP servers in some configurations. If Option B doesn't work, use the .env file workaround.


Environment Variables

VariableDefaultDescription
QBO_CREDENTIAL_MODElocalCredential storage: local or aws
QBO_CLIENT_ID-QuickBooks app Client ID (local mode)
QBO_CLIENT_SECRET-QuickBooks app Client Secret (local mode)
QBO_CREDENTIAL_FILE~/.quickbooks-mcp/credentials.jsonCustom credential file path. A leading ~ is expanded to your home directory, so it works in an MCP client's JSON env block where no shell is present to expand it.
QBO_INLINE_OUTPUTfalseReturn responses inline instead of writing to /tmp files. Required when using Claude Desktop or plugin environments where file-based output is not accessible to the model.
QBO_SANDBOXfalseUse QuickBooks sandbox environment. Also switches the "View in QuickBooks" deep links to app.sandbox.qbo.intuit.com so they cannot open the production company.
AWS_REGIONus-east-2AWS region (aws mode)
QBO_SECRET_NAMEprod/qboSecrets Manager secret name (aws mode)
QBO_COMPANY_ID_PARAM/prod/qbo/company_idSSM parameter path (aws mode)

Available Tools

ToolDescription
Setup
qbo_authenticateSet up OAuth credentials (local mode only)
get_company_infoGet connected company information
Query & Reports
queryRun SQL-like queries against any QuickBooks entity
list_accountsList chart of accounts with filtering
get_profit_lossProfit & Loss report (by month, department, class, etc.)
get_balance_sheetBalance Sheet report
get_trial_balanceTrial Balance report (flags: true adds a close-review pass for wrong-side and uncategorized/suspense balances)
get_reportAny of 24 other QuickBooks reports — A/R and A/P aging, customer and vendor balances, transaction lists, general ledger, journal, sales by customer/item/class/department, cash flow, and the detail variants
query_account_transactionsAll transactions affecting a specific account (13 posting entity types, paginated, optional sub-account rollup; see docs/entity-coverage.md for limits)
account_period_summaryPeriod summary for an account (opening/closing balance, debits, credits, count)
Journal Entries
create_journal_entryCreate a journal entry (validates debits = credits; lines take entity_name/entity_type)
get_journal_entryFetch a journal entry by ID
edit_journal_entryModify an existing journal entry
Bills
create_billCreate a vendor bill (lines take customer_name)
get_billFetch a bill by ID
edit_billModify an existing bill
Expenses
create_expenseCreate an expense (Cash, Check, or Credit Card; payee may be a vendor, customer, or employee)
get_expenseFetch an expense by ID
edit_expenseModify an existing expense
Sales Receipts
create_sales_receiptCreate a sales receipt with item lines
get_sales_receiptFetch a sales receipt by ID
edit_sales_receiptModify an existing sales receipt
Invoices
create_invoiceCreate an invoice with item lines (customer required)
get_invoiceFetch an invoice by ID
edit_invoiceModify an existing invoice
Deposits
create_depositCreate a bank deposit (lines take entity_name/entity_type)
get_depositFetch a deposit by ID
edit_depositModify an existing deposit (lines take entity_name/entity_type)
Vendor Credits
create_vendor_creditCreate a vendor credit (lines take customer_name)
get_vendor_creditFetch a vendor credit by ID
edit_vendor_creditModify an existing vendor credit
Bill Payments
create_bill_paymentPay bills and apply vendor credits (the QBO "check" / pay-bills flow)
receive_paymentRecord a customer payment against open invoices (A/R counterpart to create_bill_payment); each line defaults to the invoice's open balance
create_transferMove money between two of the company's own accounts (bank↔bank, credit-card paydown)
get_bill_paymentFetch a bill payment by ID; flags unapplied amounts
Delete
delete_entityDelete any transaction (journal entry, bill, invoice, deposit, sales receipt, expense, vendor credit, bill payment)

Naming Vendors, Customers, and Employees

Every write tool that can attribute a line or a header to a name list accepts a name and resolves it to an ID, the same way account_name and department_name do. Which parameter you get depends on what QuickBooks will actually store there:

ParameterWhere it appliesAccepts
entity_name + entity_typecreate_deposit / edit_deposit lines, create_journal_entry / edit_journal_entry lines, create_expense / edit_expense header payeeVendor, Customer, or Employee. entity_type defaults to Vendor.
customer_namecreate_bill / edit_bill, create_expense / edit_expense, create_vendor_credit / edit_vendor_credit linesCustomer only — QuickBooks stores a CustomerRef on these lines and has no vendor or employee option.
vendor_namecreate_bill, create_vendor_credit, create_bill_payment headersVendor only.
customer_name (header)create_invoice, create_sales_receiptCustomer only. Their item lines have no per-line entity.

Each also has an _id form (entity_id, customer_id) if you already know the internal ID. On edit tools, the rule for line parameters is:

  • omit the parameter and a line addressed by line_id keeps the entity it already has;
  • name one and it is set or replaced;
  • pass an empty string (entity_name: "") and it is cleared.

See docs/quickbooks-api-limitations.md for the underlying QBO field shapes, which are not uniform.

Parameter Names Are Enforced

Arguments are checked against the schema each tool advertises, before anything runs. An unknown parameter is an error that names the closest valid one, a missing required parameter is an error, and an edit_* call with no field to change is an error rather than a write that reports success.

The alternative is silence. A handler reads the parameters it knows about, so a misspelled one is simply absent: a create call that puts the date under the wrong key posts on today's date, an as-of report asked for a date range returns today's balances, and an edit whose fields are all misspelled comes back "updated successfully" having changed nothing. None of those raise anything for the caller to notice.

Relatedly, when QuickBooks accepts an update without advancing the record's SyncToken — meaning the payload matched what was already stored — the edit tools report no change instead of success.


Token Refresh

The server automatically refreshes OAuth tokens on each request and persists them back to your credential store (local file or AWS Secrets Manager).


Development

npm run dev      # Run in development mode
npm run build    # Build
npm run typecheck # Type check
npm test         # Run the test suite

Tests live in tests/, mirroring src/. They are TypeScript, compiled by tsconfig.test.json into dist-test/ and run by Node's built-in test runner — no test framework dependency. Type errors in a test are build failures, so a test referencing a renamed export fails loudly rather than silently skipping. Anything needing a QuickBooks client passes a hand-written stand-in covering just the calls under test, so the suite runs offline with no credentials.


Troubleshooting

"QuickBooks credentials not configured"

Run the qbo_authenticate tool to set up OAuth credentials (local mode only).

"Authorization code expired"

Authorization codes are only valid for a few minutes. Start the OAuth flow again.

Token refresh fails

  • Check that your refresh token hasn't expired (~100 days)
  • Verify your client credentials are correct
  • Try re-authenticating with qbo_authenticate

AWS credential errors

  • Ensure .env file has QBO_CREDENTIAL_MODE=aws
  • Check your AWS credentials and permissions
  • Verify the secret and parameter names match your configuration

Reviews

No reviews yet

Be the first to review this server!