QuickBooks Desktop MCP tools
Reference for the tools the local QuickBooks Desktop MCP server exposes.
The Desktop server keeps a session with one open company file at a time, so there is an explicit open_company step. Everything else mirrors the Online server.
Session
list_companies(): names and paths fromcompanies.json.open_company(name_or_path): opens the file, starting QuickBooks if needed, and closes any other open company first.close_company(): ends the session and releases QuickBooks.session_state(): whether a company is open and which.
Discovery
list_entities(): which names can be used withquery,add,mod,deleteandreport.describe(entity): fields, types and allowed values for a list, transaction or report.
Data
query(entity, filters={}, limit=100, more=false): pull records.filtersfollow the qbXML query filters for that entity (date ranges, name ranges, modified-since, etc.). Setmore=trueto continue a previous page.report(name, params={}): run any QuickBooks report and get a table with headers and rows.add(entity, data): add a record; QuickBooks validates and returns the full record.mod(entity, data): modify a record;datamust include thelist_idortxn_idand the currentedit_sequencefromquery.delete(entity, list_id | txn_id): delete a record.
Field naming
Arguments and results use snake_case (txn_date, ref_number, customer_ref). The server converts to and from qbXML names.
Errors
QuickBooks error codes and messages are passed through as tool errors with the code (for example 3120 Object not found) and the field it applies to.