Set up Ledg with your AI agent.
The steps for each AI app, prompts to try first, every tool and where it stops, and what to do when something goes wrong. Once you have signed in to Ledg, the same steps are in Settings, then Connections, with a button for each app.
Add Ledg to the AI app you already use.
Connecting works on every plan, Free included. See pricing, or read how it works from a receipt to a confirmed entry.
Claude on the web or desktop
Add Ledg to Claude opens Claude with Ledg's name and URL filled in. Select Add, then Connect, and approve. Or by hand:
- In Claude, open Customize, then Connectors.
- Select the plus button, then Add custom connector.
- Paste
https://ledg.ca/api/mcpand select Add. - Select Connect, sign in to Ledg, and approve.
- In a chat, select the plus button, then Connectors, and turn Ledg on.
Claude Free allows one custom connector. On a Team or Enterprise plan, an Owner adds Ledg first under Organization settings, then Connectors. Members then find it in Customize, Connectors and select Connect.
Claude Code
- In a terminal, run
claude mcp add --transport http ledg https://ledg.ca/api/mcp - In Claude Code, run
/mcp, choose ledg, and sign in to Ledg in the browser window that opens. - Approve. Claude Code can then read your books, add to Stage and update your business settings, the same as Claude.
ChatGPT
Add Ledg to ChatGPT opens Ledg in ChatGPT's plugin directory. Select Install plugin, sign in to Ledg, and approve. Then, in a new chat, type @ and pick Ledg. The directory lists Ledg in Canada. Where it does not show Ledg, add it by hand:
- Go to ChatGPT Plugins, select the plus button, then Add custom MCP server.
- Name it Ledg. Under Connection, paste
https://ledg.ca/api/mcpand choose OAuth for authentication. - Under the risk warning, tick the box (I understand and want to continue), then select Create as a plugin.
- In Plugins, find Ledg under Personal (Your workspace on a Business plan) and install it. When ChatGPT opens Ledg, sign in and approve.
- In a new chat, type @ and pick Ledg. Pick it again when a later question needs your books.
Adding Ledg by hand needs ChatGPT Plus, Pro, Business, Enterprise or Edu, on chatgpt.com in a browser. The mobile app cannot add it this way, and ChatGPT Free does not have it. On a Business workspace only an admin or owner can add Ledg by hand, and on Enterprise or Edu an admin gives you access first. ChatGPT warns about every server added this way. Ledg cannot move money, and what it adds waits in Stage until you confirm it.
Grok
- Open Grok Connectors, select New Connector, then Custom.
- Paste
https://ledg.ca/api/mcpand select Connect. - Sign in to Ledg and approve. Ledg's approval screen names the app grok.com.
Grok uses Ledg's tools without asking you each time. What it records still waits in Stage until you confirm it. On Grok Business or Enterprise, an admin adds the connector first.
Grok Bot
- In a chat with Grok Bot, send
Add this MCP server: https://ledg.ca/api/mcp - Confirm the details it reads back.
- Sign in to Ledg and approve. Ledg's approval screen names the app Cursor, or Cursor on this computer, because Grok Bot signs in through Cursor.
Cursor
- Add Ledg to
~/.cursor/mcp.json:{"mcpServers":{"ledg":{"url":"https://ledg.ca/api/mcp"}}} - In Cursor, open Customize, find ledg and sign in.
- Sign in to Ledg and approve. Ledg's approval screen may name it Cursor on this computer.
Cursor's cloud agents sign in on their own. In Customize, sign in on the ledg Cloud row too.
Apps that take a token
- In Ledg, open Settings, then Connections, then More options, Access tokens, and select Generate token. It starts with
ledg_mcp_. - In your client's MCP settings, add
https://ledg.ca/api/mcpwith the headerAuthorization: Bearerfollowed by the token.
Access tokens only read. To add receipts or categories, connect through an app on this page that signs in instead.
Signing in works the same way in Claude, ChatGPT, Grok and Cursor. Your AI app opens a Ledg page. Sign in if asked, read what your AI agent will and will not be able to do, and select Approve and continue. Your AI app never sees your Ledg password.
Menus in AI apps move. If a step does not match what you see, follow Claude's custom connector guide, the Claude Code guide, OpenAI's guide for ChatGPT, xAI's guide for Grok, or Cursor's MCP guide.
Prompts to try first.
Start with one that only reads, so you can check the business and the dates before your AI agent adds anything. Under each prompt are the tools it usually calls.
“What were my sales last quarter, and how much GST/HST did I collect?”
list_corporationsget_salesget_sales_tax_collected
Reads only. A good first prompt: check that it picked the right business and dates.
“How much did I spend on software this year?”
list_categoriesget_expenses
Reads only, from confirmed entries.
“What tax deadlines are coming up in the next 30 days?”
list_deadlines
Reads only. Dates follow the business profile you set up in Ledg.
“Here is a receipt. Add it to my books.”
find_transactionsrecord_receipt_detailrecord_expense
Adds to Stage. Your AI agent first looks for the purchase in your books, then fills in its detail, or records it as new when nothing matches.
“Categorize the uncategorized transactions from last month.”
find_uncategorized_transactionslist_categoriescategorize_entries
Changes entries waiting in Stage. Nothing counts until you confirm it in Ledg.
“Here is my bank statement for August. Add it to Stage.”
record_bank_statement
Adds to Stage after Ledg checks the lines against the statement's opening and closing balances.
“Invoice Cedar Point Consulting for 6 hours of design at my usual rate.”
list_customerslist_itemscreate_invoice_draft
Starts a draft in Invoices at your saved price, and Ledg works out the tax. It stays a draft until you send it from Ledg.
“I want $3,000 a month by December. Work it back from 10,000 users with 10% paying, and set it as my goal.”
get_business_goalset_business_goal
Sets your goal with the settings permission. get_business_goal then tells you how your revenue stands against it.
The tools, and where they stop.
Most tools only read. The ones that write entries can only write into your Stage, for example recording a purchase from a receipt, or adding a receipt's detail to a transaction already in your books. They cannot change an entry you have confirmed, and nothing they write reaches your statements, GST figures, or accountant package until you confirm it. Updating your business settings takes a separate permission you approve; each change applies right away and shows in Activity, and you can set it back in Settings. The same permission lets it set your revenue goal and read it back. The invoice tools start and change drafts in Invoices, and a draft waits there until you send it from Ledg. No tool moves money. Personal access tokens stay read-only.
list_corporationsEvery business under your login, with its type, province, registration flags, and its plan. The AI agent you connect works in every one of them, on any plan.
get_business_profileYour business settings as Ledg has them: province, year end, start date, business number, GST and PST registration and filing frequency, your PST, RST or QST number, payroll and, for a corporation, dividends. Also what is still missing or looks like a placeholder, the minute-book documents on file, and the deadlines those settings produce.
get_business_goalYour revenue goal and the plan behind it, with revenue by month from confirmed entries and a verdict: ahead, on pace or behind. Until your books are complete through the end of last month, it gives the date they need to reach before the goal is judged.
list_accountsFinancial accounts (chequing, savings, credit cards) with opening balances.
list_categoriesThe chart of accounts grouped by section, with GIFI codes for a corporation or T2125 lines for a sole proprietorship or partnership, and the names Ledg shows you, such as Owner Draw.
get_salesTotal revenue between two dates from confirmed entries, excluding owner deposits and loan proceeds.
get_sales_tax_collectedGST/HST or PST collected on sales between two dates from confirmed entries, with the entries behind the total. Each province's PST, RST or QST is its own figure, never added to another's.
get_expensesOperating expenses between two dates from confirmed entries, with a per-category breakdown. Amounts are before the 50% limit on meals.
get_account_balanceAn account's balance on a given date: its opening balance, plus confirmed money in, minus confirmed money out.
get_closed_periodsEach account's closed periods, with the bank's closing balance and who closed them, and the day each account is closed through. Entries in a closed period stay locked until you reopen it in Ledg.
find_transactionsSearches your books by date, amount, or supplier, whatever the status, along with bank transactions still waiting in your bank list, so a receipt can be matched to a purchase Ledg already has.
find_uncategorized_transactionsEntries waiting in Stage or still without a category, up to 100 most recent.
find_purchases_without_pstConfirmed expenses with no PST recorded, to review for self-assessment, each with the province it was taxed in. It covers a business in BC, Saskatchewan, Manitoba or Quebec, and any other province you are registered in for PST or RST. Not every one owes PST. In Quebec, if you are registered for QST, it also finds QST a receipt shows that is not in your books yet, which you can claim back.
list_deadlinesTax filing deadlines for the next 12 months, scoped to the entity's filing profile (T2 or T1+T2125, GST, PST, T4, etc.).
list_entry_attachmentsGoogle Drive links to the receipts attached to an entry, which open in your own Drive.
list_entry_notesThe notes you, your accountant and AI agents left on an entry, or the newest across your business, each with who left it and when.
list_saved_receiptsSaved receipts and their originals, showing whether a matching transaction has arrived. Waiting receipts stay saved without adding expenses.
list_pending_receiptsUploaded originals awaiting a first reading, including receipts saved before their transactions arrive.
read_receipt_fileThe original receipt image with its saved receipt or transaction details, so an AI agent can read it.
list_pending_statementsBank and credit card statement PDFs you added on the Bank statements page that the AI agent you connect has not read yet, with the account you added each one under.
read_statement_fileThe text of one waiting statement PDF, pulled out by Ledg on its own servers, so the AI agent you connect can read every line. Ledg sends the file to no one else, and a scan or photo is refused because it has no text.
list_minute_bookCorporate minute-book documents (corp only; returns empty for sole props).
read_minute_book_documentThe text of one minute-book document, such as your certificate of incorporation, fetched from your own Google Drive, or a picture of its first page when it is a scan. Ledg hands it over as it is and reads nothing into it (corp only).
get_tax_profileReads your T2125 details: industry code, address, each year's kilometres and home office, your vehicles and capital assets, what is still missing, and an estimate of your personal tax and CPP with your instalment dates and what is marked paid.
get_t2125_previewT2125 line-by-line preview for sole proprietors: gross revenue, expenses mapped to the CRA line numbers, and net business income (sole prop only).
list_customersYour invoice customers, each with their province, language and payment terms, whether an email is on file, and what they owe you. Never their email, address or your notes.
list_itemsThe items you sell, with their prices, units and whether they charge your provincial sales tax, and how often your sent invoices used them.
list_invoicesYour invoices, newest first, with what each customer owes you and what is overdue.
get_invoiceOne invoice with its lines, taxes and payments, and for a draft what it still needs before you send it. Never your customer's email or address.
record_expenseSaves receipts. Keeps receipt details and originals for automatic matching with bank or statement transactions. Receipts waiting for a match stay outside Stage. A receipt in another currency is saved as printed. It is matched automatically with a transaction on an account kept in that currency, or with its supplier's nearest one in Canadian dollars unless a reference rate shows another amount, and Ledg converts its tax and items to Canadian dollars there when the bank's print or the Bank of Canada's rate backs the rate. Otherwise the AI agent you connect links it to its transaction, where Ledg converts it. A separate expense is created only when explicitly requested with its actual account. Refuses an invoice Ledg can tell your business issued.
record_bank_statementWrites to Stage. The AI agent you connect reads a bank or credit card statement and sends every line. Ledg checks the opening and closing balances and any supplied running balances before adding transactions for your review. Balance checks help catch reading errors; they do not prove every line was captured.
undo_bank_statementWrites to Stage. Takes a statement the AI agent you connect filed by mistake back out whole, every line it added, as if it had never been filed. When you worked on its lines, the agent asks you in the Inbox instead. Bank transactions those lines were matched to wait in your bank list, receipts are kept, and Put it back restores it while nothing has changed.
record_receipt_detailWrites to Stage. Adds a receipt's tax breakdown and line items to a transaction already in your books, or moves one waiting in your bank list into Stage first. For a receipt in another currency, the AI agent sends the whole receipt as printed and Ledg converts the tax and items to Canadian dollars at the rate your payment was converted at, so they add up to the amount you paid. Tidies the supplier name while keeping names and categories you picked, never changes the amount or date of a bank or statement transaction, and refuses an entry you have confirmed.
record_statement_shows_chargeWrites to Stage. When your bank no longer lists a charge on its account, the AI agent you connect can read your statement for that month and, if it prints the charge, say so, so the entry can go into your books. You commit it, and you can undo it.
record_personalWrites to Stage. Records transactions that were not the business's as money between you and the business (Owner Draw and Owner Investment for a sole proprietor), so nothing your bank shows is left out of your books.
link_owner_pay_backWrites to Stage. Marks a payment from the business to you as paying you back for purchases you paid personally, so they stop being owed to you and their GST/HST comes back on the right return. Never commits it.
categorize_entriesWrites to Stage. Sets the category, and the GST, HST or PST a receipt shows in Canadian dollars with the province it was charged in, on entries waiting in Stage, such as bank and statement lines. For a business that is not incorporated, it can also say how much of a cost or an asset is for the business, and which asset is a vehicle. Never changes the amount, date, supplier or a category you picked yourself, never adds a vendor rule, and never confirms an entry for you.
add_entry_noteWrites to an entry's notes. Leaves a short note on one entry, waiting in Stage or confirmed, for you and your accountant to read, marked as written by the AI agent. A note never changes the entry, its amounts or your reports.
create_invoice_draftWrites invoice drafts. Starts an invoice for a customer you have, from their last invoice, your items or the lines and prices the AI agent gives. Ledg works out the tax. It stays a draft until you send it from Ledg.
update_invoice_draftWrites invoice drafts. Changes a draft an AI agent started, never one you started, changed or sent. Ledg works out the tax again. It stays a draft until you send it from Ledg.
update_business_profileWrites to your business settings. Changes the province, year end, start date, where a corporation was incorporated, business number, GST and PST registration and filing frequency, your PST, RST or QST number, the other provinces you are registered in for PST or RST, payroll and, for a corporation, dividends and how the company paid you, under the same rules as Settings, and changes nothing when any part breaks one. Never changes the business name or type. The change shows in Activity under the AI agent's name.
update_tax_profileWrites to your business settings. Changes your T2125 details under the same rules as Settings, Tax profile: industry code, kilometres, home office, balances from before Ledg, your other income and CRA instalment reminders, and marks an instalment paid when you say so. It takes no street, city or postal code: you type your business address and a partner's address in Settings, Tax profile. Changes nothing when any part breaks a rule. The change shows in Activity under the AI agent's name.
set_business_goalWrites to your business settings. Sets your revenue goal, a monthly amount or a total for the year, and the plan you worked back from it, such as users, the share who pay, and your prices. Checks the plan's arithmetic and says when it does not add up to the goal. Replaces the goal you had, and records which AI agent set it.
If something goes wrong.
ChatGPT answers without looking at your books
ChatGPT decides on its own when to use a plugin, and a pick lasts one message. Type @ in the message box and pick Ledg, or select the plus button and pick it there. Do it again when a later question needs your books. If Ledg is not in the list, install it. In Canada, open Ledg's page in ChatGPT's plugin directory and select Install plugin. If you added it by hand, find it under Personal in Plugins.
Your AI agent can read but cannot add to Stage or start invoices
Adding to Stage and starting invoice drafts need the write permission. Approve it when your AI app asks. If it never asks, remove Ledg in your AI app and add it again. Access tokens only read, so a token connection cannot add anything.
A tool on this page is missing
AI apps keep the tool list from when you connected. Remove Ledg in your AI app, add it again, and start a new chat.
Receipt photos or minute book documents fail
Ledg keeps both in your own Google Drive. Without Drive, your AI agent can still record what a receipt says, but the photo is not kept with the transaction. Connect Drive in Settings, then Connections.
A statement is refused as a scan
A statement you leave on the Bank statements page for your AI agent needs a PDF with real text, the kind you download from online banking, because Ledg pulls its text out for the agent. A scan or a photo is refused rather than guessed at. Download the statement again and add that file.
"Too many changes in a short time"
Ledg limits how many changes one person can send in a minute. Nothing was changed by that call. Wait a minute, then ask again.
How to disconnect.
Do both: disconnect in Ledg to end access, and remove Ledg in your AI app so it stops trying. Disconnecting does not delete anything already in Stage or your books, and it does not erase what your AI app already received.
In Ledg
Open Settings, then Connections. Under AI agents, select Disconnect next to the app. It loses access to your books within the hour.
In Claude
Open Customize, then Connectors, and remove Ledg with Remove or the three dots next to it.
In Claude Code
Run claude mcp remove ledg in a terminal.
In ChatGPT
Open Settings, then Plugins, and select Ledg. Select Disconnect under Connection or in the three dots menu.
In Grok
Open Grok Connectors and remove Ledg. For Grok Bot, ask it in chat to remove the Ledg server.
In Cursor
Open Customize and delete ledg. Signing out there does not sign out Cursor's cloud agents, so log out on its Cloud row as well.
Access tokens
In Ledg, open Settings, then Connections, then More options, Access tokens, and select Revoke. A revoked token stops working right away.
Still stuck? Write to us.
Email info@ledg.ca and tell us which AI app you use and what it said. Never send an access token or a password. What Ledg does with your data is in the privacy policy.