---
title: QuickBooks Desktop MCP tools
description: Reference for the tools the local QuickBooks Desktop MCP server exposes.
order: 80
---

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 from `companies.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 with `query`, `add`, `mod`, `delete` and `report`.
- `describe(entity)`: fields, types and allowed values for a list, transaction or report.

## Data

- `query(entity, filters={}, limit=100, more=false)`: pull records. `filters` follow the qbXML query filters for that entity (date ranges, name ranges, modified-since, etc.). Set `more=true` to 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; `data` must include the `list_id` or `txn_id` and the current `edit_sequence` from `query`.
- `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.
