Tally Prime MCP Server
Tally Prime MCP (Model Context Protocol) Server implementation to feed Tally Prime ERP data to popular LLM like Claude, ChatGPT supporting MCP client. This MCP Server helps expose functionalities of Tally to LLM directly.
Prerequisites
- Tally Prime (Silver / Gold)
- Node JS
Ensure below things are pre-installed and setup:
- Ensure to download & install Node JS from official website
- XML Port of Tally Prime must be enabled (F1 > Settings > Connectivity > Client/Server configuration) with below settings
TallyPrime acts as = Server
Port = 9000
Note: Kindly avoid using Educational version of Tally Prime, which has limitations of date range. It will result in invalid / partial data being fed to LLM, leading to highly degraded & incorrect responses.
Download
Avoid cloning repository directly. Utility is available for download (with required dependencies) on below link https://excelkida.com/resource/tally-mcp-server-v7.12.zip
One-click installer extension for Claude Desktop https://excelkida.com/resource/tally-mcp-server-v7.12.mcpb
Last updated: version 7.12 [25-Oct-2026]
Refer docs/CHANGELOG.md for details
Contact
Project developed & maintained by:
Dhananjay Gokhale (Chartered Accountant)
Email: [email protected] Whatsapp: (+91) 90284-63366
Supported Platform
Implementation was tested on below AI platform
Setup (Local)
This mode of setup is to be used when MCP Client (like Claude Desktop, Perplexity etc.) and Tally Prime both exists in local PC. MCP Client software itself runs the MCP Server internally in such scenario.
Simply download & extract zip file somewhere on the disk. Assuming that we downloaded & extracted zip file on below path (folder)
D:\Software\Tally MCP Server
A sample setup for few popular tools is demonstrated.
Claude Desktop
Desktop version of Claude AI supports loading of local MCP server. Ensure you have Pro / Team / Max / Enterprise subscription of Claude, which supports higher limit compared to Free. MCP makes multiple calls to Tally for validation and inference, which might exhaust free limits quickly. Download Claude Desktop from following link claude.ai/download
One-click installation (via Extension)
Go to menu > File > Settings
Extensions > Advance Settings
Click on install extension button
Browse the extension file (with file extension mcpb) download at the start
A dialog window will appear asking Do you want to install Tally Prime? click Install button, which would install the Tally MCP Server
Installation via Config file (via Developer menu)
Go to menu > File > Settings > Developer
This will open My Computer window. Right click and edit claude_desktop_config.json file (via Notepad) with as below JSON
{
"mcpServers": {
"Tally Prime": {
"command": "node",
"args": ["D:\\Software\\Tally MCP Server\\dist\\index.mjs"]
}
}
}
Note: single slash in folder path needs to be substituted with double slash
Save the file. Close Claude Desktop (menu > File > Exit) and again re-launch it.
Verify by clicking on Tools button and check if Tally Prime appears in the list (screenshot below)
ChatGPT Desktop
Download & install ChatGPT Desktop from Microsoft Store. Login to it.
Go to Edit > Settings
Navigate to Integration > Plugins. Click Add button and choose Add MCP Server
In the MCP settings page enter / apply below options or values Name = Tally Prime (or any other value) Command to launch = node Arguments = D:\Software\Tally MCP Server\dist\index.mjs (or other path)
Click Save button
Close & Re-Open ChatGPT Desktop app
Setup (Cloud)
This mode of setup is to be used, when using browser-based MCP client like ChatGPT, Claude AI, Copilot, OR mobile-based app for these LLM which cannot access Tally Prime running inside local PC. In this scenario, MCP Server needs to run as web-server, internally connected to Tally securely. Setup is quite complicated, and is covered in detail in docs folder of this project.
- Linux-based Server
- Windows Server (exploration in-progress)
Available Tools
This server currently exposes 20 MCP tools.
metadata-collection
Returns metadata for supported collections.
Input No input.
Output JSON array with objects containing:
collectiondescription
query-option-values
Returns predefined option values used by input fields.
Input
Output JSON array of option values for the selected option name.
metadata-fields
Returns field metadata for a selected collection.
Input
Output
JSON array of field metadata containing field name, description (if any), and normalized datatype (string, number, date, boolean).
query-database
Runs SQL query on in-memory pglite tables previously created by reporting tools.
Input
Output Query result in tab-separated text format.
query-collection
Queries a Tally collection for selected fields and caches output in an in-memory table.
Input
Output
JSON: { "tableID": "..." }
list-master
Fetches list of masters for validation and auto-completion.
Input
Output
JSON: { "list": [ ... ] }
chart-of-accounts
Extracts Chart of Accounts (or Group hierarchy) useful for preparing Balance Sheet, Profit and Loss, Trial Balance
Input
Output
JSON: { "tableID": "..." } with columns:
ledger_namegroup_nameprimary_groupbs_pl(boolean) [true = Profit & Loss / false = Balance Sheet]dr_cr(boolean) [true = Debit / false = Credit]affects_gross_profit(boolean) [true = Affects Gross Profit / false = Does not affect Gross Profit]sort_position(number)
trial-balance
Fetches trial balance for period.
Input
Output
JSON: { "tableID": "..." } with columns:
ledger_namegroup_nameopening_balance(number) [negative = Debit / positive = Credit]net_debitnet_creditclosing_balance(number) [negative = Debit / positive = Credit]
profit-loss
Fetches profit and loss data for period.
Input
Output
JSON: { "tableID": "..." } with columns:
ledger_namegroup_nameclosing_balance(number) [negative = Debit / positive = Credit]
balance-sheet
Fetches balance sheet data for period.
Input
Output
JSON: { "tableID": "..." } with columns:
ledger_namegroup_nameclosing_balance(number) [negative = Debit / positive = Credit]
stock-summary
Fetches stock item summary for period.
Input
Output
JSON: { "tableID": "..." } with columns:
stock_item_namestock_group_nameopening_quantity(number)opening_value(number) [negative = Debit / positive = Credit]inward_quantity(number)inward_value(number)outward_quantity(number)outward_value(number)closing_quantity(number)closing_value(number) [negative = Debit / positive = Credit]
ledger-balance
Returns ledger closing balance as on date.
Input
Output
JSON: { "amount": number } where negative = Debit and positive = Credit.
stock-item-balance
Returns stock item closing quantity as on date.
Input
Output
JSON: { "quantity": number, "unit_of_measurement": string } when found.
bills-outstanding
Fetches receivable/payable bill-wise outstanding as on date.
Input
Output
JSON: { "tableID": "..." } with columns:
bill_datereference_numberoutstanding_amountparty_nameoverdue_days
ledger-account
Fetches ledger account statement for period.
Input
Output
JSON: { "tableID": "..." } with columns:
guiddatevoucher_typevoucher_numberalternate_ledgerparty_nameamount(number) [negative = Debit / positive = Credit]narration
stock-item-account
Fetches stock item account statement for period.
Input
Output
JSON: { "tableID": "..." } with columns:
datevoucher_typevoucher_numberparty_ledgerquantityamount(number) [negative = Debit / positive = Credit]narrationtracking_numbervoucher_category
ledger-create-update
Creates or updates one or more ledger.
Note: This tool has ability to modify existing ledger. Always backup your Company before instructing this tool.
Input
Master ledger object accepts following
Output JSON result returned by import operation (success/failure details).
delete-master
Delete one (or more) masters from Tally
Input
Output JSON result returned by delete operation (count of deleted, skipped, etc).
voucher-journal
Creates one (or more) Journal vouchers in Tally.
Input
Voucher object accepts following
Accounting entry object accepts following
Output JSON result returned by import operation (success/failure details).
set-company
Sets active company context in Tally Prime.
Input
Output
JSON string: "OK" on success.
set-period
Sets active reporting period context in Tally Prime.
Input
Output
JSON string: "OK" on success.
Environment Variables
End-users are free to hard-code few settings which needs to be applied