Skip to main content
Glama
quickbooks-desktop-mcp

quickbooks-desktop-mcp

by lilfroog

QBBridge

An MCP frontend for QuickBooks Desktop.

Gives any MCP-compatible client (Claude Desktop, Claude Code, or anything else that speaks MCP) safe, structured access to a local QuickBooks Desktop company file: read accounts/vendors/transactions, post new transactions, and modify or delete existing ones -- with every write automatically logged so it can be reverted.

QuickBooks Desktop's automation API (QBXML/QBFC) only works on the machine (or LAN) where QuickBooks is actually installed -- there is no cloud proxy for it. QBBridge runs locally, right next to QuickBooks, and your company file's data never has to leave that machine to be used by an MCP client.

Why this exists

QBXML is powerful but has real, undocumented sharp edges: several element orderings are order-sensitive in ways the schema alone doesn't tell you, and getting them wrong produces a bare COM parse exception with no indication of which field was the problem. This package exists so you don't have to rediscover those the hard way -- they're encoded and tested once, here.

Related MCP server: quickbooks-online-mcp

What it gives you

  • Read: chart of accounts, vendor list, a vendor's transaction history (so you can classify a new transaction against how this vendor has actually been booked before, not a guess), flexible transaction queries, and a duplicate/overlap checker.

  • Write: add/modify/delete transactions (Check, Deposit, CreditCardCharge, CreditCardCredit) and vendors.

  • Safety: every write is automatically recorded to an append-only undo log as it happens (not batched at the end -- a crash mid-run still leaves a usable log of everything that did complete). Any run can be reverted, in reverse order, with one call.

What it deliberately does NOT do

This server has no business-specific logic in it -- no classification rules, no confidence thresholds, no assumptions about what kind of business you run. Deciding which vendor maps to which account, when to trust a match versus flag it for a human, and how to parse a specific bank's statement format is policy, and policy differs by business. That belongs in the agent/skill calling this server, not in the server itself. This keeps the server itself universal.

The companion skill

The server is the mechanism; skills/qbbridge-bookkeeping/SKILL.md is the judgment. It's a Claude skill that teaches an agent how to actually use these tools well -- when to trust a vendor's transaction history vs. flag it for a human, how to handle payment/credit lines vs. purchases, and the safety habits (checking the open company file, checking for duplicates) to follow before every write. Install the MCP server for the plumbing; add this skill for the bookkeeping judgment on top of it.

Requirements

  • Windows, with QuickBooks Desktop installed and the target company file open.

  • Python 3.10+.

  • pywin32 (installed automatically on Windows).

Install

pip install qbbridge-mcp

Configure as an MCP server

Point your MCP client at the qbbridge-mcp command. For Claude Desktop, add to your MCP config:

{
  "mcpServers": {
    "qbbridge": {
      "command": "qbbridge-mcp"
    }
  }
}

Safety notes

  • Every write tool accepts an optional expected_company_file parameter. Pass the path you expect QuickBooks to have open (from a prior qb_company_info call); the tool refuses to run if a different file is actually open. This is the single check that prevents posting to the wrong client's file.

  • qb_delete_transaction requires you to pass a full snapshot of the transaction (query it first) -- without it, a delete cannot be undone.

  • Undo logs are written to ./qbbridge_runs by default, or $QBBRIDGE_RUNS_DIR if set.

License

MIT

Available Tools

12 tools
qb_add_transactionA

Adds a transaction (Check, Deposit, CreditCardCharge, or CreditCardCredit). lines: [{"account": str, "amount": float, "memo": str|None}, ...]. Automatically logs an undo entry -- every add can be reverted with qb_revert_run using the returned run_id.

Pass expected_company_file (from a prior qb_company_info call) to have this refuse to run if a different file is open than you expect.

Inputs: lines (required), account (required), txn_date (required), txn_type (required), +4 more.

qb_add_vendorA

Creates a vendor if it doesn't already exist. Check qb_list_vendors first -- QuickBooks Desktop vendor names must be unique, and the same real-world vendor sometimes already exists under slightly different spelling/casing.

Inputs: name (required), expected_company_file.

qb_check_duplicateA

Checks whether a transaction with this date+amount already exists somewhere in the company file, within a tolerance window (banks don't always post the two sides of a transfer/payment on the exact same date). Use this before posting anything, to avoid double-entry -- especially for payments/transfers, where the same real-world event can get recorded from either side of a linked account.

Inputs: date (required), amount (required), account, txn_types, +1 more. Returns: result

qb_company_infoA

Returns the company file path QuickBooks Desktop currently has open. Call this first, and before any write, to confirm you're pointed at the right client's file.

Inputs: no named parameters.

qb_delete_transactionA

Deletes a transaction. You must pass before_snapshot -- the full transaction as it exists right now (query it first: account, payee, refnum, txn_date, header_memo, lines) -- so the undo log can recreate it if this needs to be reverted. Deleting without an accurate snapshot means it cannot be undone.

Inputs: txn_id (required), txn_type (required), before_snapshot (required), expected_company_file.

qb_list_accountsA

Lists all accounts in the chart of accounts (name, type, active, balance). Use this to confirm an account name exists exactly before trying to post to it -- QuickBooks rejects an AccountRef to a nonexistent or misspelled account.

Inputs: no named parameters. Returns: result

qb_list_runsA

Lists recent run logs (most recent first), so you can find a run to inspect or revert without knowing its exact filename.

Inputs: limit. Returns: result

qb_list_vendorsA

Lists vendors (name, ListID). Use this to confirm a payee exists exactly before posting a transaction against it.

Inputs: active_only. Returns: result

qb_modify_transaction_lineA

Modifies one expense/deposit line on an existing transaction. You must pass the ORIGINAL account/amount/memo (query the transaction first if you don't already have them) so the undo log can restore them exactly.

Inputs: txn_id (required), line_id (required), txn_type (required), new_amount (required), +7 more.

qb_query_transactionsA

Queries transactions of one type (Check, Deposit, CreditCardCharge, CreditCardCredit, Transfer, JournalEntry). date_from/date_to as YYYY-MM-DD. Returns normalized records: date, amount, payee, account (first line), memo, txn_id, edit_sequence.

Inputs: txn_type (required), entity, account, date_to, +1 more. Returns: result

qb_revert_runA

Reverts every operation in a run log, in reverse order. Set dry_run=true first to preview what would happen without changing anything.

Inputs: run_log_path (required), dry_run.

qb_vendor_historyA

Returns which account(s) this vendor's past transactions were booked to, with counts -- e.g. {"Food Purchases": 175}. Use this before guessing an account for a new transaction from a known vendor: prefer whatever this vendor has actually been booked to before, not a plausible-sounding guess.

Inputs: vendor_name (required), txn_types.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4/5.0

    Scored across 12 tools

    Disambiguation5/5

    Each tool has a clearly distinct purpose, from adding transactions and vendors to checking duplicates, querying, and reverting operations. No two tools overlap in function; even 'vendor_history' and 'list_vendors' serve different needs (history lookups vs. listing names).

    Naming Consistency4/5

    Most tools follow a 'qb_verb_noun' pattern (e.g., add_transaction, list_accounts, revert_run), but 'company_info' and 'vendor_history' use a 'noun_info/history' pattern, breaking strict consistency. However, the prefix 'qb_' unifies them, and the naming is still predictable.

    Tool Count5/5

    With 12 tools, the set is well-scoped for a QuickBooks Desktop integration. It covers essential operations (CRUD for transactions and vendors, plus supporting tools for company info, duplicates, and undo) without being overwhelming or sparse.

    Completeness4/5

    The tool surface covers core workflows: adding/deleting/modifying transactions, managing vendors, querying, and undoing operations. Missing are vendor updates or transaction header modifications, but the provided tools handle most common needs, and the undo system adds robustness.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      A comprehensive MCP server for QuickBooks Online, providing 144 tools for full CRUD operations on 29 entity types and 11 financial reports, with built-in safety guards against unintended writes.
      5
      Apache 2.0
    • A
      license
      Not graded
      quality
      C
      maintenance
      Provides complete coverage of the QuickBooks Online Accounting API v3, enabling queries, financial reports, sales and expense management, and write operations with deployment-controlled access.
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables an MCP client such as Claude Code to run financial reports, query records, and create, update, void, delete, deactivate, email, or attach records in a company's QuickBooks Online books through the Accounting API. It runs locally over stdio with read and write tools separated, dry-run previews, an optional read-only mode, and a local audit log so the owner stays in control of every change.
      Apache 2.0
    • A
      license
      Not graded
      quality
      B
      maintenance
      Local Windows MCP server for QuickBooks Desktop (Pro, Premier, Enterprise; not QuickBooks Online). Read customers, vendors, items, invoices, bills and reports through the installed QuickBooks SDK. Read-only by default; changes are opt-in with previews, confirmation tokens, masking of sensitive numbers and an audit log.
      2
      MIT