Grok connects to QuickBooks Desktop Enterprise through DeepLedger's MCP server at https://mcp.deepledger.ai/mcp, and DeepLedger reaches the company file through QuickBooks Web Connector on the Windows PC where the file lives. You can add DeepLedger to Grok in three places: the custom connector at grok.com/connectors, a custom MCP server you add in a Grok Bot chat, and the xAI Responses API for agents you run yourself. Each has its own setup, and all three reach the same Desktop books.
This guide is for firms and bookkeepers with clients on QuickBooks Desktop Enterprise, US edition, who want to work in those books from Grok. For QuickBooks Online, follow the Grok and QuickBooks Online guide instead.
How does Grok reach a QuickBooks Desktop company file?
Grok never talks to QuickBooks directly. Each request passes through three parts:
| Part | Where it runs | What it does |
|---|---|---|
| Grok, Grok Bot or your xAI agent | xAI's service | Sends requests to DeepLedger as you |
| DeepLedger MCP server | DeepLedger's service, at https://mcp.deepledger.ai/mcp | Checks your access, runs the checks before a write, holds a copy of the lists |
| QuickBooks Web Connector | The Windows PC with the company file | Checks in with DeepLedger and carries each request to QuickBooks Desktop |
Grok signs in to DeepLedger with your DeepLedger account. It reaches only the companies you can open in DeepLedger, with your access level. The QuickBooks Admin sign-in stays on the PC.
What do you need before you start?
- QuickBooks Desktop Enterprise, US edition. Pro, Premier, Mac and the Canadian and UK editions are not supported.
- The company set up in DeepLedger and in Web Connector. The QuickBooks Web Connector setup guide covers the connection file, the one-time password and Auto-Run.
- The PC on, with Web Connector running, whenever Grok reads transactions or reports or writes.
- For Grok chat: the Custom option at grok.com/connectors. xAI's connector documentation says connectors are available to all Grok users, and that Business and Enterprise admins provision them for their teams (as of November 2026).
- For the API: an xAI API key and a DeepLedger API key.
QuickBooks Desktop is priced per company in DeepLedger; see pricing.
How do I add DeepLedger to Grok chat?
- Sign in to Grok and open grok.com/connectors.
- Choose New Connector, then Custom.
- Paste the address:
https://mcp.deepledger.ai/mcp. - Sign in with your DeepLedger account when Grok sends you to DeepLedger. You do not pick a company here; you choose it in the chat.
- Open a new conversation and ask:
Using DeepLedger, which company am I in? Switch to Harbour Supply and tell me when its QuickBooks Desktop PC last checked in.
If you already added DeepLedger to Grok for QuickBooks Online or Xero clients, skip steps 1 to 4. The same connector reaches the Desktop company.
How do I add DeepLedger to Grok Bot?
Grok Bot is xAI's app for agents that work on a persistent cloud computer. It is a separate product from Grok chat, and grok.com/connectors does not set it up. DeepLedger is not in the Grok Bot plugin catalog, so you add it as a custom MCP server in the bot chat:
- In the Grok Bot chat, type:
Add a custom MCP server called DeepLedger at https://mcp.deepledger.ai/mcp
- Choose Authorize on the connect card and sign in to DeepLedger in the browser window that opens.
- Back in the chat, ask which company you are in and switch to the Desktop company by name.
xAI says Grok Bot follows your team's connector policy, which can allow or block each server, and a permitted connector is available to every bot a member runs. Read xAI's team and enterprise requirements before your team uses it.
How do I call DeepLedger from the xAI Responses API?
For an agent you run yourself, add DeepLedger as a remote MCP tool. xAI runs the MCP calls on its side and returns ordinary tool calls in the response.
First create a DeepLedger API key. In DeepLedger, open Settings → API keys and choose Create key. The key acts as you, with your access. It reaches every company you can access by default; choose One company to fix it to the Desktop company. Keep both keys in environment variables:
export XAI_API_KEY=...
export DEEPLEDGER_API_KEY=dl_live_...
A minimal request:
curl https://api.x.ai/v1/responses \
-H "Authorization: Bearer $XAI_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "grok-4.7",
"input": [{"role": "user", "content": "Which company am I in, and when did its QuickBooks Desktop PC last check in?"}],
"tools": [{
"type": "mcp",
"server_url": "https://mcp.deepledger.ai/mcp",
"server_label": "deepledger",
"server_description": "QuickBooks Desktop Enterprise bookkeeping: lists, transactions, reports and writes with a dry run",
"authorization": "'"$DEEPLEDGER_API_KEY"'"
}]
}'
The same tool from the xAI Python SDK:
import os
from xai_sdk import Client
from xai_sdk.tools import mcp
client = Client(api_key=os.environ["XAI_API_KEY"])
chat = client.chat.create(
model="grok-4.7",
tools=[mcp(
server_url="https://mcp.deepledger.ai/mcp",
server_label="deepledger",
authorization=os.environ["DEEPLEDGER_API_KEY"],
)],
)
The field names follow xAI's remote MCP documentation as of November 2026. A DeepLedger key has no read-only setting. If your agent should only read, say so in its instructions and review its tool calls.
How do I check Grok's first answer against QuickBooks Desktop?
Start with one company and one report, with the PC on.
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.
Using DeepLedger for [confirmed company], show the profit and loss for October 1 to October 31, 2026, accrual basis. Show the company name, dates, basis, income, expenses and net income. Do not create or change any records.
Run the same report in QuickBooks Desktop, from the Reports menu, with the same dates and basis. Compare income, expenses and net income line by line. A connected badge or a summary from Grok is not a check.
Your active company is shared across your AI apps, so another session can change it. Confirm the company again when you return. The one connection, every company guide explains how switching works.
What can Grok do in QuickBooks Desktop?
DeepLedger works when you ask. Grok acts only on your instruction.
Reads. Accounts, customers and jobs, vendors, items, classes and the other lists come from DeepLedger's copy, with its age. Transactions and reports, such as profit and loss, balance sheet, trial balance, general ledger and AR and AP aging, come from QuickBooks Desktop when asked.
Writes. Bills, vendor credits, purchase orders, item receipts, checks and card charges; invoices, sales receipts, credit memos, estimates and sales orders; customer payments, bill payments and deposits; journal entries; inventory adjustments, builds and transfers; time entries and mileage. Grok can also create and update list records, set custom fields, void or delete a transaction, and delete, merge or make inactive a list record.
The full list, with what is not available on Desktop, is in what an AI agent can read and write in QuickBooks Desktop.
What checks run before Grok writes to QuickBooks Desktop?
- Dry run. Every write supports one. It runs the checks and shows exactly what would be sent, and writes nothing.
- The PC must be connected. A write is refused while the PC is away. It is not left waiting.
- Closing date. Nothing dated on or before the company's closing date is written or changed.
- Duplicates. A second record that matches an existing one goes through only after you confirm it.
- No transfers between bank accounts.
- Read-only members cannot write.
Ask for the dry run first:
Do a dry run of a bill from Pacific Paper for $860 dated November 24, 2026, coded to Office Supplies. Show me what would be sent.
A merge of list records cannot be undone, so read a merge's dry run with care.
To stop access, remove the connector in Grok, revoke the grant or the API key in DeepLedger, or disconnect the company on its Connections tab. Any one of them is enough.
What does Grok not do on a QuickBooks Desktop company?
- It never writes payroll, pay rates, employees, tax ids, card or bank account numbers, or opening balances.
- It does not yet use the AI Brain, skills, Documents, reconciliation, DeepLedger's custom reports or the month-end close tools on a Desktop company. There is no bank feed.
- Tasks covers firm work on a Desktop company, not review of transactions.
Troubleshooting
Grok shows no Custom option. Check that you are signed in at grok.com/connectors and read xAI's current connector instructions. On a Business or Enterprise team, ask your admin to provision connectors.
Grok Bot cannot find DeepLedger. DeepLedger is not in the plugin catalog. Ask the bot in chat to add a custom MCP server called DeepLedger at https://mcp.deepledger.ai/mcp, then choose Authorize.
Grok 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.
Grok says the lists are old. The PC was off for a while. With the PC on, ask Grok 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 API returns an authentication error from DeepLedger. Check that authorization carries a current DeepLedger key that starts with dl_live_, not your xAI key, and that the key has not expired or been revoked.
Frequently asked questions
How do I connect Grok to QuickBooks Desktop?
Set up the company file in DeepLedger and add its connection file to QuickBooks Web Connector on the Windows PC. Then open grok.com/connectors, choose New Connector, then Custom, paste https://mcp.deepledger.ai/mcp and sign in with your DeepLedger account. Grok then works in the QuickBooks Desktop Enterprise company through DeepLedger.
Does Grok Bot work with QuickBooks Desktop?
Yes. Grok Bot reaches QuickBooks Desktop through the same DeepLedger address as Grok chat, but the setup happens in the bot chat. Ask the bot to add a custom MCP server called DeepLedger at https://mcp.deepledger.ai/mcp, choose Authorize on the connect card and sign in to DeepLedger.
Does the QuickBooks Desktop PC need to be on for Grok?
Yes, for transactions, reports and writes. Grok's requests reach QuickBooks through Web Connector on that PC, so the PC must be on with Web Connector running. With the PC off, Grok can still read the lists from DeepLedger's copy, which shows how old it is.
Can Grok write to QuickBooks Desktop?
Yes, when you ask. Grok can record bills, invoices, payments, deposits, journal entries and list changes, and void or delete a transaction. Every write supports a dry run that shows what would be sent and writes nothing, nothing dated on or before the closing date is written, and a possible duplicate needs your confirmation.
Can I use QuickBooks Desktop from the xAI API?
Yes. Add a tool of type mcp to your Responses API request with server_url set to https://mcp.deepledger.ai/mcp and authorization set to a DeepLedger API key read from an environment variable. The key acts as the person who created it and reaches the QuickBooks Desktop companies that person can access.
Can one Grok connection reach QuickBooks Online and QuickBooks Desktop companies?
Yes. One DeepLedger connection reaches every company you can access, whichever accounting software it uses. Ask Grok to switch to a company by name, and confirm the company before each piece of work.
Related guides
- QuickBooks Web Connector setup for AI agents
- What an AI agent can read and write in QuickBooks Desktop
- Connect Grok and Grok Bot to QuickBooks Online
- QuickBooks Desktop MCP
Find more connection options on AI platforms and integrations.