Discover how to get list of ledger accounts in Tally Prime. Master Chart of Accounts, Multi Masters, Excel exports, XML queries, and TallyMCP.pro AI.

Quick Answer: The fastest way to see your master ledger accounts inside Tally is to open Gateway of Tally ▸ Chart of Accounts ▸ Ledgers. If you want an automated, structured JSON or spreadsheet export with closing balances using AI, connect Claude Desktop to TallyMCP.pro and ask: "Claude, list all active ledger accounts, their parent groups, and current closing balances." Claude queries the read-only
tally_list_ledgerstool over local loopback (127.0.0.1:9000) without manual navigation.
Every business maintaining its accounts in TallyPrime creates hundreds or thousands of ledgers—including customers (Sundry Debtors), vendors (Sundry Creditors), bank accounts, statutory duties, and direct/indirect expenses.
Knowing how to get list of ledger accounts in Tally Prime is essential for:
Below are the 5 practical methods to extract and view your ledger list in TallyPrime, ranging from native UI shortcuts to modern AI-driven automation.
The primary visual method in TallyPrime is the built-in Chart of Accounts.
If you need to view or edit ledgers group-by-group in a tabular list rather than a tree structure:
This view shows columns for Ledger Name, Under (Parent Group), and Opening Balance, making it ideal for rapid manual spot-checks.
When you need an offline spreadsheet to share with external auditors or consultants:
If you are writing a custom script in Python, Node.js, or C#, Tally exposes an HTTP XML interface on port 9000. You can query the list of accounts via a POST request:
<ENVELOPE> <HEADER> <TALLYREQUEST>Export Data</TALLYREQUEST> </HEADER> <BODY> <EXPORTDATA> <REQUESTDESC> <REPORTNAME>List of Accounts</REPORTNAME> <STATICVARIABLES> <SVEXPORTFORMAT>$$SysName:XML</SVEXPORTFORMAT> <ACCOUNTTYPE>All Ledger Accounts</ACCOUNTTYPE> </STATICVARIABLES> </REQUESTDESC> </EXPORTDATA> </BODY> </ENVELOPE>
While powerful, raw TDL XML responses are deeply nested and require extensive parsing logic to unwrap closing balances, parent aliases, and currency denominations.
The modern, friction-free method to get list of ledger accounts in Tally Prime is using TallyMCP.pro. TallyMCP is an open-source Model Context Protocol server that enables AI clients (Claude Desktop, ChatGPT, Cursor) to interact with TallyPrime via native read-only tools.
127.0.0.1:9000) without risk of data alteration.tally-mcp setup.tally-mcp doctor in terminal to confirm connectivity.Claude, get the list of ledger accounts in Tally Prime. Filter for Sundry Debtors and show their parent group and closing balance in a Markdown table.
Claude calls the built-in tally_list_ledgers tool:
{ "name": "tally_list_ledgers", "arguments": { "company": "Acme Industries Pvt Ltd" } }
TallyMCP retrieves the active masters directly and delivers a structured summary:
| Ledger Name | Parent Group | Closing Balance | Status |
|---|---|---|---|
| Apex Retail Solutions | Sundry Debtors | ₹ 1,45,200.00 Dr | Active |
| Blue Horizon Logistics | Sundry Debtors | ₹ 82,450.00 Dr | Active |
| Global Tech Traders | Sundry Debtors | ₹ 0.00 | Inactive |
| Zenith Industrial Corp | Sundry Debtors | ₹ 3,12,800.00 Dr | Active |
You can further instruct Claude to:
| Method | Speed | Formats Supported | Balance Included | Natural Language Filtering |
|---|---|---|---|---|
| Chart of Accounts | Quick visual | Screen only | Configurable | No |
| Multi-Masters | Moderate | Screen only | Opening only | No |
| Excel Export (Ctrl+E) | Moderate | Excel, CSV, XML | Yes | No |
| TDL XML Request | Fast (programmatic) | Raw XML | Yes | No |
| TallyMCP.pro + Claude | Instantaneous | JSON, Table, CSV, Markdown | Closing & Opening | Yes (Full Conversational) |
Whether you need a quick visual check inside TallyPrime or an automated dataset for your audit team, knowing how to get list of ledger accounts in Tally Prime streamlines your financial workflows.
For teams looking to automate accounting workflows and eliminate manual export routines:
tally_list_ledgers tool.