Ledger connector for Claude and ChatGPT
Read and update your ledger from an AI assistant — the same data, rules and approvals as the web app.
What it does
The Ledger connector is a remote MCP server. Once it is connected, your assistant can answer questions about your net worth, balances, spending, investments and income tax, and record or edit entries for you. Every change goes through the same validation, reconciliation locks and linked-account approvals as the web app.
It is a record-keeping tool: no tool moves money, contacts a bank, or starts a payment. “Record payment” writes down a payment you already made.
Before you start
You need a Ledger account — sign up or sign in. The server URL is https://ledger.shreyansh.online/api/mcp.
Connect to Claude
- Find Ledger in Claude’s connector directory, or add it yourself: Settings → Connectors → Add custom connector, then paste the server URL.
- Claude opens Ledger’s sign-in page. Sign in, review the access request, and choose Allow.
- In a chat, turn on the Ledger connector from the tools menu and ask away.
Connect to ChatGPT
- Find Ledger in ChatGPT’s app directory. With developer mode on, you can instead add it as a custom app using the server URL above.
- Sign in to Ledger when prompted and allow access.
Try asking
- “What’s my net worth, and how are my investments doing?”
- “How much did I spend last month compared with the month before?”
- “I paid ₹450 for lunch from HDFC yesterday — record it the way I usually do.”
- “What was my HDFC balance at the end of March?”
- “Do I have any pending approval requests?”
- “Estimate my income tax for this financial year.”
How it keeps your ledger safe
- Every tool declares what it does: read-only tools change nothing, and tools that overwrite or delete are marked so, which lets your assistant ask before running them.
- Every write returns the resulting balances of the accounts it touched, so mistakes show up immediately.
- Creating a transaction accepts an idempotency key (a retry never double-posts) and a dry run (validate without writing), and a likely duplicate — same account, same amount, within 36 hours — is refused unless confirmed.
- Deleting a transaction returns a full copy of it, so it can be re-created.
- Accounts you have reconciled can be locked; entries on or before the lock date cannot be changed.
- A transaction shared with another Ledger user needs that user’s approval, and your assistant is told to explain the effect before approving or rejecting anything.
Sign-in and access
The connector uses OAuth 2.1 with PKCE. Your assistant acts as you, with exactly your permissions, and sees only your ledger. Access tokens last one hour; refresh tokens last 90 days and rotate on each use. To revoke access, disconnect Ledger in your assistant’s connector settings. Editing the shared asset catalog is limited to admin accounts, as on the web.
Attachments
Small text, JSON or image files (up to 64 KB) can be attached directly. Larger files, such as PDF statements and photos, use a one-time upload link that expires after 10 minutes. The file type is checked from its contents, not its name.
Good to know
- Dates are in Indian Standard Time and accept dd-MM-yyyy or yyyy-MM-dd.
- Bulk creation takes up to 50 transactions per call and is all-or-nothing.
- Scheduled (future) transactions never affect balances until they are converted.
Tools
Overview & balances
- Get net worth get_net_worthRead-only
- Get holdings get_holdingsRead-only
- Get account balances get_balancesRead-only
- Get income and expenses get_income_expenseRead-only
- Validate transactions validate_my_transactionsRead-only
Transactions
- List transactions list_transactionsRead-only
- Find similar transactions find_similar_transactionsRead-only
- Get transaction get_transactionRead-only
- Create transaction create_transactionWrite
- Create transactions in bulk create_transactionsWrite
- Record payment record_paymentWrite
- Convert scheduled transaction convert_future_transactionWrite
- Update transaction update_transactionChanges or deletes
- Delete transaction delete_transactionChanges or deletes
Heads & assets
- List heads list_headsRead-only
- Get head details get_headRead-only
- List assets list_assetsRead-only
- Get asset details get_assetRead-only
- Create head create_headWrite
- Create asset create_assetWrite
- Update head update_headChanges or deletes
- Delete head delete_headChanges or deletes
- Update asset update_assetChanges or deletes
- Delete asset delete_assetChanges or deletes
- Reorder heads or assets reorder_siblingsChanges or deletes
Tags
- List tags list_tagsRead-only
- Get tag get_tagRead-only
- Create tag create_tagWrite
- Add transactions to tag add_transactions_to_tagWrite
- Update tag update_tagChanges or deletes
- Delete tag delete_tagChanges or deletes
- Remove transactions from tag remove_transactions_from_tagChanges or deletes
- Set transaction tags set_transaction_tagsChanges or deletes
Templates
- List templates list_templatesRead-only
- Create template create_templateWrite
- Update template update_templateChanges or deletes
- Delete template delete_templateChanges or deletes
Attachments
- Get attachment get_attachmentRead-only
- Add attachment add_attachmentWrite
- Request attachment upload link request_attachment_uploadWrite
- Delete attachment delete_attachmentChanges or deletes
Linked accounts & approvals
- List approval requests list_requestsRead-only
- Find user find_userRead-only
- Notify linked user notify_linked_userWrite
- List sent notifications list_sent_notificationsRead-only
- Approve request approve_requestChanges or deletes
- Reject request reject_requestChanges or deletes
- Cancel request cancel_requestChanges or deletes
- Revert request revert_requestChanges or deletes
- Accept all requests from a user accept_all_fromChanges or deletes
Tax & settings
- Get tax computation get_tax_computationRead-only
- Get settings get_settingsRead-only
- Update settings update_settingsChanges or deletes
Support and privacy
Questions or problems: the operator of this Ledger instance. How your data is handled is set out in the privacy policy.