by dhananjay1405
Exposes Tally Prime ERP data and operations to large language models via MCP, enabling AI‑driven queries, reporting, and automated voucher creation.
Tally Prime MCP Server provides a bridge between Tally Prime accounting software and popular LLMs (Claude, ChatGPT, Gemini, etc.). By implementing the Model Context Protocol, it lets AI agents query Tally collections, retrieve financial statements, and create or modify masters and vouchers directly from natural‑language prompts.
node D:\Software\Tally MCP Server\dist\index.mjs to Claude Desktop’s claude_desktop_config.json or to ChatGPT Desktop’s MCP plugin settings).docs/server-setup-linux.md to run the server as a web service reachable by remote MCP clients.TALLY_PORT, TALLY_HOST, BLOCK_WRITE, PORT, MCP_DOMAIN, and PASSWORD control connection details and write‑access restrictions.BLOCK_WRITE or through client UI switches.Q: Do I need a paid subscription for the LLM client?\nA: Claude Desktop requires a Pro/Team/Max/Enterprise plan to handle the frequent calls; free plans may hit limits quickly.
Q: Can I run the server on a Linux box?\nA: Yes. Follow docs/server-setup-linux.md for a step‑by‑step guide.
Q: Will the server modify my Tally data?\nA: Write tools (ledger-create-update, voucher‑*, delete‑master) can change data. Use BLOCK_WRITE=1 or the client‑side switch to disable them, and always back up your company before using write operations.
Q: What if I use the educational version of Tally Prime?\nA: The educational edition restricts date ranges, leading to incomplete or inaccurate data being sent to the LLM.
Q: How do I change the default ports?\nA: Set TALLY_PORT/TALLY_HOST for the Tally XML server and PORT for the MCP server via environment variables before launching the Node process.
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.
Ensure below things are pre-installed and setup:
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.
Avoid cloning repository directly. Utility is available for download (with required dependencies) on below link https://excelkida.com/resource/tally-mcp-server-v7.13.zip
One-click installer extension for Claude Desktop https://excelkida.com/resource/tally-mcp-server-v7.13.mcpb
Last updated: version 7.13 [24-Nov-2026]
Refer docs/CHANGELOG.md for details
Project developed & maintained by:
Dhananjay Gokhale (Chartered Accountant)
Email: info@excelkida.com Whatsapp: (+91) 90284-63366
Implementation was tested on below AI platform
| Platform | Local | Remote |
|---|---|---|
| Claude AI | :heavy_check_mark: | :heavy_check_mark: |
| ChatGPT | :heavy_check_mark: | :heavy_check_mark: |
| Gemini | :heavy_check_mark: | |
| Grok | :heavy_check_mark: | |
| Mistral | :heavy_check_mark: | |
| LM Studio | :heavy_check_mark: |
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.
Video tutorial: Claude Desktop (extension)
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
Go to menu > File > Settings
Desktop app > Extensions > Manage
Click Advanced Settings button
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
Go to menu > File > Settings > Desktop app > Extensions > Manage
This will open Extension management page. Click Edit config button
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)
Video tutorial: 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
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.
This server currently exposes 23 MCP tools.
Returns metadata for supported collections.
Input No input.
Output JSON array with objects containing:
collectiondescriptionReturns predefined option values used by input fields.
Input
| Argument | Description |
|---|---|
| optionName | Supported: country-state |
Output JSON array of option values for the selected option name.
Returns field metadata for a selected collection.
Input
| Argument | Description |
|---|---|
| collection | Collection name. Use metadata-collection to discover valid values |
Output
JSON array of field metadata containing field name, description (if any), and normalized datatype (string, number, date, boolean).
Runs SQL query on in-memory pglite tables previously created by reporting tools.
Input
| Argument | Description |
|---|---|
| sql | SELECT query only |
| outputFormat | One of JSON Array of Objects, JSON with Schema and Rows, CSV, Markdown Table. Default is JSON Array of Objects which is preferred format |
Output Query result in tab-separated text format.
Queries a Tally collection for selected fields and caches output in an in-memory table.
Input
| Argument | Description |
|---|---|
| collection | Collection name |
| fields | Array of field names to fetch |
| targetCompany (optional) | Company name (defaults to active company) |
| fromDate (optional) | Date in YYYY-MM-DD |
| toDate (optional) | Date in YYYY-MM-DD |
Output
JSON: { "tableID": "..." }
Fetches list of masters for validation and auto-completion.
Input
| Argument | Description |
|---|---|
| targetCompany (optional) | Company name (defaults to active company) |
| collection | One of: group, ledger, vouchertype, unit, godown, stockgroup, stockitem, costcategory, costcentre, attendancetype, company, currency, gstin, gstclassification |
| containsFilter (optional) | filter to apply CONTAINS operation to restrict values |
Output
JSON: { "list": [ ... ] }
Extracts Chart of Accounts (or Group hierarchy) useful for preparing Balance Sheet, Profit and Loss, Trial Balance
Input
| Argument | Description |
|---|---|
| targetCompany (optional) | Company name (defaults to active company) |
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)Fetches trial balance for period.
Input
| Argument | Description |
|---|---|
| targetCompany (optional) | Company name (defaults to active company) |
| fromDate | Date in YYYY-MM-DD |
| toDate | Date in YYYY-MM-DD |
| group_name (optional) | Filter by group name |
Output
JSON: { "tableID": "..." } with columns:
ledger_namegroup_nameopening_balance (number) [negative = Debit / positive = Credit]net_debitnet_creditclosing_balance (number) [negative = Debit / positive = Credit]Sample Prompt I need trial balance for FY 2025-26 from my tally
Fetches profit and loss data for period.
Input
| Argument | Description |
|---|---|
| targetCompany (optional) | Company name (defaults to active company) |
| fromDate | Date in YYYY-MM-DD |
| toDate | Date in YYYY-MM-DD |
Output
JSON: { "tableID": "..." } with columns:
ledger_namegroup_nameclosing_balance (number) [negative = Debit / positive = Credit]Sample Prompt Analyze profit loss for FY 2025-26 from my tally and display key ratio like Gross Profit Ratio, Net Profit Ratio, etc
Fetches balance sheet data for period.
Input
| Argument | Description |
|---|---|
| targetCompany (optional) | Company name (defaults to active company) |
| fromDate | Date in YYYY-MM-DD |
| toDate | Date in YYYY-MM-DD |
Output
JSON: { "tableID": "..." } with columns:
ledger_namegroup_nameclosing_balance (number) [negative = Debit / positive = Credit]Sample Prompt Analyze balance sheet for FY 2025-26 from my tally and help me understand how is my business performing with some key ratios
Fetches stock item summary for period.
Input
| Argument | Description |
|---|---|
| targetCompany (optional) | Company name (defaults to active company) |
| fromDate | Date in YYYY-MM-DD |
| toDate | Date in YYYY-MM-DD |
| stockGroup (optional) | Filter by stock group name |
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]Sample Prompt Analyze stock summary for FY 2025-26 in tally and help me identify my top 10 selling items value-wise
Returns ledger closing balance as on date.
Input
| Argument | Description |
|---|---|
| targetCompany (optional) | Company name (defaults to active company) |
| ledgerName | Exact ledger name |
| toDate | Date in YYYY-MM-DD |
Output
JSON: { "amount": number } where negative = Debit and positive = Credit.
Sample Prompt What is closing balance of ledger Amazon as on 31 mar 2026 in tally
Returns stock item closing quantity as on date.
Input
| Argument | Description |
|---|---|
| targetCompany (optional) | Company name (defaults to active company) |
| itemName | Exact stock item name |
| toDate | Date in YYYY-MM-DD |
Output
JSON: { "quantity": number, "unit_of_measurement": string } when found.
Sample Prompt How many units of Drift Runner Men Black shoes are in stock as on today in my tally
Fetches receivable/payable bill-wise outstanding as on date.
Input
| Argument | Description |
|---|---|
| targetCompany (optional) | Company name (defaults to active company) |
| nature | receivable or payable |
| toDate | Date in YYYY-MM-DD |
Output
JSON: { "tableID": "..." } with columns:
bill_datereference_numberoutstanding_amountparty_nameoverdue_daysSample Prompt Analyze customer outstanding as on 31 Dec 2026 and create a pie chart of it from tally
Fetches ledger account statement for period.
Input
| Argument | Description |
|---|---|
| targetCompany (optional) | Company name (defaults to active company) |
| ledgerName | Ledger name |
| fromDate | Date in YYYY-MM-DD |
| toDate | Date in YYYY-MM-DD |
Output
JSON: { "tableID": "..." } with columns:
guiddatevoucher_typevoucher_numberalternate_ledgerparty_nameamount (number) [negative = Debit / positive = Credit]narrationSample Prompt Analyze Amazon ledger for FY 2025-26 and create a column chart of monthly sales from tally
Fetches stock item account statement for period.
Input
| Argument | Description |
|---|---|
| targetCompany (optional) | Company name (defaults to active company) |
| itemName | Stock item name |
| fromDate | Date in YYYY-MM-DD |
| toDate | Date in YYYY-MM-DD |
Output
JSON: { "tableID": "..." } with columns:
datevoucher_typevoucher_numberparty_ledgerquantityamount (number) [negative = Debit / positive = Credit]narrationtracking_numbervoucher_categorySample Prompt Analyze item ledger for Drift Runner Men Black and identify variance in sales price in tally
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
| Argument | Description |
|---|---|
| targetCompany (optional) | Company name (defaults to active company) |
| masters | Array of ledger master objects to create/update |
Master ledger object accepts following
| Property | Description |
|---|---|
| name | Ledger name or New Ledger name (during update) |
| _name | Existing ledger name |
| parent | Group under which ledger would exists |
| openingBalance | (optional) Opening Balance of the Ledger |
| isBillWise | (optional) flag to set Bill-by-Bill referencing |
| billCreditPeriod | (optional) Credit Period for bill in days |
| mailingDetails | (optional) Business Name for mailing purpose, country, state, pincode, address |
| gstRegistrationDetails | (optional) GST registration details like GST Number, Registration Type, Place of Supply (state) |
Output JSON result returned by import operation (success/failure details).
Sample Prompt Create a ledger for the customer Amazon with address ... and GST number ... in tally
Delete one (or more) masters from Tally
Input
| Argument | Description |
|---|---|
| targetCompany (optional) | Company name (defaults to active company) |
| collection | Type of master or collection to delete. One of: group, ledger, vouchertype, unit, godown, stockgroup, stockitem, costcategory, costcentre, attendancetype, company, currency, gstin, gstclassification |
| name | array of name(s) of master to be deleted |
Output JSON result returned by delete operation (count of deleted, skipped, etc).
Sample Prompt Delete ledger Amazon from my tally
Creates one (or more) Journal vouchers in Tally.
Input
| Argument | Description |
|---|---|
| targetCompany (optional) | Company name (defaults to active company) |
| vouchers | Array of journal voucher objects to create |
Voucher object accepts following
| Property | Description |
|---|---|
| isoptional | (optional) Set to true to create Optional voucher |
| date | Voucher date in YYYY-MM-DD |
| voucherType | (optional) Voucher type (defaults to Journal and must belong to Journal parent) |
| voucherNumber | (optional) Voucher number |
| narration | (optional) Narration text |
| accountingEntry | Array of accounting lines (minimum 2 lines and sum of amount must be zero) |
Accounting entry object accepts following
| Property | Description |
|---|---|
| ledgerName | Ledger name |
| amount | Amount for the line (positive = Credit / negative = Debit) |
Output JSON result returned by import operation (success/failure details).
Sample Prompt Book depreciation on Furniture of 30500 on 31 mar 2022 in tally
Creates one or more Receipt vouchers in Tally.
Input
| Argument | Description |
|---|---|
| targetCompany (optional) | Company name (defaults to active company) |
| vouchers | Array of receipt voucher objects to create |
Receipt voucher object accepts following:
| Property | Description |
|---|---|
| isoptional (optional) | Set to true to create an Optional voucher. It must be manually made regular in Tally to affect the books of accounts. |
| date | Voucher date in YYYY-MM-DD |
| voucherType | Receipt voucher type; must belong to the Receipt parent |
| voucherNumber (optional) | Voucher number |
| narration (optional) | Narration text |
| ledgerCashBank | Ledger under Cash-in-Hand, Bank Accounts, Bank OD A/c, or Bank OCC A/c |
| receiptAmount | Cash/bank entry amount; must be negative (debit) |
| bankAllocations | Array of bank allocation objects; the allocation amounts must sum to receiptAmount |
| accountingEntry | Array of other ledger entries (at least one); amounts must balance with receiptAmount so the voucher total is zero |
Bank allocation object accepts following:
| Property | Description |
|---|---|
| instrumentDate (optional) | Instrument date in YYYY-MM-DD; defaults to the voucher date |
| transactionType | One of ATM, Card, Cash, Cheque/DD, ECS, e-Fund Transfer, Electronic Cheque, Electronic DD/PO, UPI, Others |
| virtualPaymentAddress (optional) | Virtual payment address for UPI transactions |
| instrumentNumber (optional) | Instrument/reference number, such as a cheque number or UTR |
| bankName (optional) | Bank name |
| amount | Allocation amount; positive is credit and negative is debit |
Accounting entry object accepts following:
| Property | Description |
|---|---|
| ledgerName | Ledger name |
| amount | Amount for the ledger; positive is credit and negative is debit. The other ledger entries are usually credits. |
Output JSON result returned by import operation (success/failure details).
Sample Prompt Book a receipt of 15000 from Amazon in HDFC Bank with Cheque number 156207 on 15-Nov-2021 in tally
Creates one or more Payment vouchers in Tally.
Input
| Argument | Description |
|---|---|
| targetCompany (optional) | Company name (defaults to active company) |
| vouchers | Array of payment voucher objects to create |
Payment voucher object accepts following:
| Property | Description |
|---|---|
| isoptional (optional) | Set to true to create an Optional voucher. It must be manually made regular in Tally to affect the books of accounts. |
| date | Voucher date in YYYY-MM-DD |
| voucherType | Payment voucher type; must belong to the Payment parent |
| voucherNumber (optional) | Voucher number |
| narration (optional) | Narration text |
| ledgerCashBank | Ledger under Cash-in-Hand, Bank Accounts, Bank OD A/c, or Bank OCC A/c |
| paymentAmount | Cash/bank entry amount; must be positive (credit) |
| bankAllocations | Array of bank allocation objects; the allocation amounts must sum to paymentAmount |
| accountingEntry | Array of other ledger entries (at least one); amounts must balance with paymentAmount so the voucher total is zero |
Bank allocation object accepts the same properties and transaction types documented under voucher-receipt.
Accounting entry object accepts following:
| Property | Description |
|---|---|
| ledgerName | Ledger name |
| amount | Amount for the ledger; positive is credit and negative is debit. The other ledger entries are usually debits. |
Output JSON result returned by import operation (success/failure details).
Sample Prompt Book a cash payment of 15000 to Amazon on 1 dec 2021 in tally
Creates one or more Contra vouchers in Tally for transferring funds between cash and bank accounts.
Input
| Argument | Description |
|---|---|
| targetCompany (optional) | Company name (defaults to active company) |
| vouchers | Array of contra voucher objects to create |
Contra voucher object accepts following:
| Property | Description |
|---|---|
| isoptional (optional) | Set to true to create an Optional voucher. It must be manually made regular in Tally to affect the books of accounts. |
| date | Voucher date in YYYY-MM-DD |
| voucherType (optional) | Contra voucher type; must belong to the Contra parent (defaults to Journal) |
| voucherNumber (optional) | Voucher number |
| narration (optional) | Narration text |
| accountingEntry | Exactly two cash/bank ledger entries: credit entry first, then debit entry. Amounts must sum to zero. |
Accounting entry object accepts following:
| Property | Description |
|---|---|
| ledgerName | Cash/bank ledger name; must be under Cash-in-Hand, Bank Accounts, Bank OD A/c, or Bank OCC A/c |
| amount | Amount for the ledger; positive is credit and negative is debit |
Output JSON result returned by import operation (success/failure details).
Sample Prompt Book a cash withdrawl of 5000 from HDF bank on 15-dec-2021 in tally
Sets active company context in Tally Prime.
Input
| Argument | Description |
|---|---|
| companyName | Company name to activate |
Output
JSON string: "OK" on success.
Sets active reporting period context in Tally Prime.
Input
| Argument | Description |
|---|---|
| fromDate | Start date in YYYY-MM-DD |
| toDate | End date in YYYY-MM-DD |
Output
JSON string: "OK" on success.
End-users are free to hard-code few settings which needs to be applied
| Variable | Description |
|---|---|
| TALLY_PORT | Port Number of XML Server of Tally (optional, default is 9000) |
| TALLY_HOST | Host name or IP where XML Server is running (optional, default is localhost) |
| BLOCK_WRITE | Controls if MCP completely block access of write functionality. Setting this flag to value 1 will completely hide write functionality tools from the tool list. [ 0 = Allow , 1 = Block ] (optional, default is 0 i.e. allowed). Not applicable for Claude Desktop (as it offers graphical switch to disable write functionality) |
| PORT | Tally MCP Server port number. Applicable only if Tally Prime MCP Server is deployed as Remote MCP server (optional, default is 3000). Not applicable for Claude Desktop |
| MCP_DOMAIN | Domain name of Tally MCP Server website (optional, default is https://localhost:9000). Not applicable for Claude Desktop |
| PASSWORD | Password for the OAuth Login front-end page to authenticate genuine user (kindly set this to some complex password default is password). Not applicable for Claude Desktop |
Please log in to share your review and rating for this MCP.
Explore related MCPs that share similar capabilities and solve comparable challenges
by crbnos
Open-source manufacturing ERP, MES and QMS platform that unifies quoting, material requirements planning, inventory, shop‑floor execution, quality management and lot/serial traceability in a single Postgres schema with a REST API and built‑in MCP server. Deploy on Carbon Cloud or self‑host on any VPS/AWS environment.
by robotmcp
Enables bidirectional integration of large language models with ROS‑enabled robots, allowing natural language commands and real‑time access to robot state, topics, services and parameters.
by yusong652
Connect AI agents to ITASCA geomechanics engines, enabling natural‑language driven model creation, documentation lookup, simulation execution, and result inspection.
by sunsetcoder
Track flights in real time, retrieve arrival and departure times, view airport status, and monitor emergency situations using Flightradar24 data via a Model Context Protocol server.
by theYahia
Provides a comprehensive catalog of MCP servers covering APIs from emerging markets across Brazil, MENA, Gulf, Southeast Asia, Africa, CIS, and Iran, enabling seamless integration with non‑Western services.
by daiemon12
Provides a Model Context Protocol server that lets Claude AI drive Dassault Systèmes CATIA V5 through natural‑language commands, exposing more than 50 CAD operations via COM automation.
by EduBase
Enables Claude and other LLMs to interact with the EduBase e‑learning platform via the Model Context Protocol, allowing automated quiz creation, exam scheduling, and result analysis.
by 1102tools-dev
Provides deterministic, version‑controlled MCP servers that expose federal contracting and policy data from SAM.gov, USASpending, GSA CALC+, BLS OEWS, eCFR, Federal Register, Regulations.gov, and Acquisition.gov.
by armpro24-blip
Enables AI-driven generation, editing, verification, and simulation of mechanical designs using build123d/OpenCASCADE geometry and CalculiX analysis, while preserving editable parameters, stable topology pointers, and full provenance in a reproducible .aieng package.