DeepLedger
Menu

For developers

Connect Cursor to QuickBooks Desktop Enterprise with MCP

Give Cursor QuickBooks Desktop Enterprise tools with one mcp.json entry for DeepLedger, sign in with OAuth or an API key, and check a report first.

Published by DeepLedger9 min read

Cursor works in QuickBooks Desktop Enterprise through DeepLedger's remote MCP server: add https://mcp.deepledger.ai/mcp to Cursor's mcp.json and sign in with your DeepLedger account. DeepLedger reaches the company file through QuickBooks Web Connector on the Windows PC where the file lives, so Cursor needs no SDK, no local server and nothing installed on the QuickBooks PC. This guide covers the OAuth route, an API-key route, and a first report check.

Add this entry to ~/.cursor/mcp.json (every project) or .cursor/mcp.json (one project), and keep any servers already in the file:

{
  "mcpServers": {
    "deepledger": {
      "url": "https://mcp.deepledger.ai/mcp"
    }
  }
}

Cursor's MCP documentation describes the file locations, ${env:NAME} variables, the Streamable HTTP transport and OAuth sign-in.

What are you connecting?

Three parts sit between Cursor and the books. Cursor signs in to DeepLedger as you. DeepLedger checks your access and runs the checks before any write. QuickBooks Web Connector, on the PC with the company file, carries each request to QuickBooks Desktop. Cursor never sees the QuickBooks Admin sign-in. The QuickBooks Desktop MCP page describes the connection as a whole.

OAuth sign-inDeepLedger API key
Use it forCursor on your own computerSetups where browser sign-in is not possible
In mcp.jsonThe URL onlyThe URL and an Authorization header
Where the secret is keptCursor's stored sign-inAn environment variable, DEEPLEDGER_API_KEY
Works asYouThe person who created the key
Revoke it in DeepLedgerSettings → Connected appsSettings → API keys

The same address serves QuickBooks Online and Xero companies. If Cursor already uses DeepLedger for those, the existing entry reaches the Desktop company too. For QuickBooks Online, see the Cursor and QuickBooks Online guide.

Before you start

  • QuickBooks Desktop Enterprise, US edition. Pro, Premier, Mac and the Canadian and UK editions are not supported.
  • The company file connected to DeepLedger through Web Connector. The QuickBooks Web Connector setup guide has every step on the PC.
  • The PC on, with Web Connector running, whenever Cursor reads transactions or reports or writes.
  • Cursor desktop. On Cursor's Enterprise plan, admins can limit which MCP servers and tools members may use (as of November 2026).
  • A test company for the first run, if you have one.

How do I connect Cursor to QuickBooks Desktop?

  1. Connect the company file to DeepLedger. In DeepLedger, open the company's Connections tab, set up QuickBooks Desktop and add the connection file to QuickBooks Web Connector on the Windows PC with the company file.
  2. Add DeepLedger to mcp.json. Add the DeepLedger entry to ~/.cursor/mcp.json for every project, or to .cursor/mcp.json for one project, and keep the servers already in the file.
  3. Turn the server on and sign in. Open Customize in Cursor's sidebar, turn DeepLedger on and sign in with your DeepLedger account when Cursor asks.
  4. Check that the tools loaded. Look for DeepLedger's tools under Available Tools.
  5. Ask which company you are in. In Agent chat, ask Cursor to use DeepLedger, name the active company and say when its QuickBooks Desktop PC last checked in.

Using DeepLedger, which company am I in, and when did its QuickBooks Desktop PC last check in? Do not create or change anything.

DeepLedger supports OAuth discovery and dynamic client registration, so there is no client ID or token to paste. Cursor's run settings and your team's policy decide which tool calls ask you first. Read each tool call's arguments before you approve it.

How do I sign Cursor in with a DeepLedger API key?

Use a key only where browser sign-in is not possible. Any team member can create one.

  1. In DeepLedger, open Settings → API keys and choose Create key.
  2. Give it a name, pick an Expiration, and choose All my companies or One company.
  3. Copy the key. It starts with dl_live_, and DeepLedger shows it once.
  4. Set DEEPLEDGER_API_KEY in the environment Cursor starts from, and use this entry in place of the URL-only one:
{
  "mcpServers": {
    "deepledger": {
      "url": "https://mcp.deepledger.ai/mcp",
      "headers": {
        "Authorization": "Bearer ${env:DEEPLEDGER_API_KEY}"
      }
    }
  }
}

The key works as the person who created it, with that person's access. A One company key stays in its company and cannot switch. A key has no read-only setting. Never write the key itself into mcp.json, least of all a project file that may be committed.

How do I check one company and one report?

With the PC on, ask Cursor:

Using DeepLedger, list the companies I can access and name the active one. Ask me which to use, then switch to it and confirm its name. Do not create or change any records.

Then one report with fixed settings:

Using DeepLedger for [confirmed company], show the trial balance as of October 31, 2026, accrual basis. Show the company name, date, basis and total debits and credits. Do not create or change any records.

Run the same trial balance in QuickBooks Desktop, from the Reports menu, with the same date and basis, and compare the totals and a few account lines. A connected status in Cursor is not a check. Your active company is shared across your AI apps, so confirm it when you start a new session.

What can Cursor do in QuickBooks Desktop?

DeepLedger works when you ask. Cursor acts only on your instruction.

  • Lists: accounts, customers and jobs, vendors, items and classes, read from DeepLedger's copy with its age. Ask Cursor to refresh them while the PC is on.
  • Reports: profit and loss, balance sheet, trial balance, general ledger, and AR and AP aging, read from QuickBooks Desktop when asked.
  • Purchases and sales: bills, vendor credits, purchase orders, item receipts, checks and card charges; invoices, sales receipts, credit memos, estimates and sales orders.
  • Payments and journals: customer payments, bill payments, deposits and journal entries.
  • Inventory and time: inventory adjustments, builds and transfers; time entries and mileage.
  • List upkeep and fixes: create and update customers, vendors, accounts, classes and items, set custom fields, void or delete a transaction, and delete, merge or make inactive a list record.

Cursor's agent can also save what it reads into your project. A prompt to try:

Using DeepLedger for [company], get AP aging as of today and write it to ap-aging.csv in this project, one row per vendor with the report's aging columns and total. Do not change anything in QuickBooks.

The full scope, including what Desktop does not have yet, is in what an AI agent can read and write in QuickBooks Desktop.

Is it safe to let Cursor write to QuickBooks Desktop?

DeepLedger runs these checks on its server for every Desktop write:

  • Dry run. Every write supports one. It shows exactly what would be sent to QuickBooks and writes nothing.
  • PC connection. A write is refused while the PC is away, not queued.
  • Closing date. Nothing dated on or before the company's closing date is written or changed.
  • Duplicates. A record that matches an existing one goes through only after you confirm it.
  • Read-only members cannot write, and transfers between bank accounts are refused.

A merge of list records cannot be undone. Ask for a dry run of a merge, a void or a delete, and read it before you approve.

On a Desktop company the AI agent does not yet use the AI Brain, skills, Documents, reconciliation, DeepLedger's custom reports or the month-end close tools, and there is no bank feed. It never writes payroll, pay rates, employees or opening balances.

A prompt that says "do not change records" is not a read-only permission. Read each proposed write before you approve the tool call.

Troubleshooting

DeepLedger does not appear. Check the JSON and the file location, restart Cursor, and turn DeepLedger on in Customize.

Sign-in fails. Open Output → MCP Logs, check the URL and sign in again with the right DeepLedger account. With the API-key entry, check that DEEPLEDGER_API_KEY is set where Cursor starts and that the key has not expired or been revoked.

Cursor says the PC is not connected. Turn the PC on, open Web Connector, tick the DeepLedger entry and choose Update Selected. Turn Auto-Run on so it keeps checking in.

Cursor says the lists are old. The PC was off for a while. With the PC on, ask Cursor to refresh the lists.

A write was refused. Read the reason. The PC was away, the date is on or before the closing date, a possible duplicate needs your confirmation, or the lists need a refresh. Nothing was written.

The agent answers without tools. Check that Available Tools lists DeepLedger, ask for DeepLedger by name, and ask for report data with the company name.

Frequently asked questions

How do I connect Cursor to QuickBooks Desktop?

Connect the QuickBooks Desktop Enterprise company file to DeepLedger through QuickBooks Web Connector first. Then add https://mcp.deepledger.ai/mcp to Cursor's mcp.json, turn DeepLedger on under Customize and sign in with your DeepLedger account. Cursor then works in the Desktop company through DeepLedger.

Does Cursor have to run on the QuickBooks PC?

No. Cursor can run on any computer. QuickBooks Web Connector on the Windows PC with the company file carries DeepLedger's requests to QuickBooks, so that PC must be on with Web Connector running when Cursor reads transactions or reports or writes.

Can Cursor write to QuickBooks Desktop?

Yes, when you ask and approve the tool call. Cursor can record bills, invoices, payments, deposits, journal entries and list changes through DeepLedger. Every write supports a dry run that writes nothing, nothing dated on or before the closing date is written, and a possible duplicate needs your confirmation.

Do I need a DeepLedger API key for Cursor?

No. Cursor signs in to DeepLedger with OAuth, which is the route to use on your own computer. A DeepLedger API key is for setups where browser sign-in is not possible; Cursor reads it from an environment variable, and it acts as the person who created it.

How do I disconnect Cursor from QuickBooks Desktop?

Turn DeepLedger off under Customize and remove its entry from mcp.json. To revoke access fully, revoke the grant or the API key in DeepLedger, or have an admin disconnect the company on its Connections tab. None of these steps changes the QuickBooks company file.

Browse all AI platforms and integrations.

Ready to get started?

Connect QuickBooks and try your first task with an AI agent.

Start free trial

With your permission, Google Analytics measures visits to our public website and blog. Essential cookies work either way. Change your choice in Cookie settings. Privacy policy