Tally Prime MCP Server

Tally Prime MCP Server

Connects Tally Prime ERP data to AI assistants via MCP, enabling natural language queries for financial reports, stock summaries, and ledger balances.

Category
访问服务器

README

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

Download the latest release from GitHub: <br> https://github.com/QalaLabs/tally-mcp-server/releases

Last updated: version 7.3 [31-May-2026]

Refer docs/CHANGELOG.md for details

Supported Platform

Implementation was tested on below AI platform

Platform Local Remote
Claude AI :heavy_check_mark: :heavy_check_mark:
ChatGPT :heavy_check_mark:

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

<image src="https://excelkida.com/image/github/explorer-tally-mcp-server.png" height="265" width="766" />

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

<image src="https://excelkida.com/image/github/claude-desktop-settings-menu.png" height="185" width="335">

Extensions > Advance Settings

<image src="https://excelkida.com/image/github/claude-desktop-settings-extension.png" height="553" width="928">

Click on install extension button

<image src="https://excelkida.com/image/github/claude-desktop-extension-page.png" height="619" width="868">

Browse the extension file (with file extension mcpb) download at the start

<image src="https://excelkida.com/image/github/claude-desktop-extension-install.png" height="843" width="696">

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

<image src="https://excelkida.com/image/github/claude-desktop-developer-setting.png" height="751" width="1045" />

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)

<image src="https://excelkida.com/image/github/claude-desktop-tally-mcp-server-tool-display.png" height="595" width="722" />

Perplexity Desktop

Perplexity Desktop version for MacOS supports connecting to local MCP server. Configuration file (JSON format) is same as demonstrated for Claude Desktop. In absense of MacBook, documentation with screenshot could not be written. Kindly refer to below blog on perplexity website, which explains the steps.

Perplexity Desktop MCP Connectivity

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.

Available Tools

This server currently exposes 19 MCP tools.

metadata-collection

Returns metadata for supported collections.

Input No input.

Output JSON array with objects containing:

  1. collection
  2. description

query-option-values

Returns 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.

metadata-fields

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).

query-database

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.

query-collection

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": "..." }

list-master

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": [ ... ] }

chart-of-accounts

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:

  1. ledger_name
  2. group_name
  3. primary_group
  4. bs_pl (boolean) [true = Profit & Loss / false = Balance Sheet]
  5. dr_cr (boolean) [true = Debit / false = Credit]
  6. affects_gross_profit (boolean) [true = Affects Gross Profit / false = Does not affect Gross Profit]
  7. sort_position (number)

trial-balance

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:

  1. ledger_name
  2. group_name
  3. opening_balance (number) [negative = Debit / positive = Credit]
  4. net_debit
  5. net_credit
  6. closing_balance (number) [negative = Debit / positive = Credit]

profit-loss

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:

  1. ledger_name
  2. group_name
  3. closing_balance (number) [negative = Debit / positive = Credit]

balance-sheet

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:

  1. ledger_name
  2. group_name
  3. closing_balance (number) [negative = Debit / positive = Credit]

stock-summary

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:

  1. stock_item_name
  2. stock_group_name
  3. opening_quantity (number)
  4. opening_value (number) [negative = Debit / positive = Credit]
  5. inward_quantity (number)
  6. inward_value (number)
  7. outward_quantity (number)
  8. outward_value (number)
  9. closing_quantity (number)
  10. closing_value (number) [negative = Debit / positive = Credit]

ledger-balance

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.

stock-item-balance

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.

bills-outstanding

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:

  1. bill_date
  2. reference_number
  3. outstanding_amount
  4. party_name
  5. overdue_days

ledger-account

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:

  1. guid
  2. date
  3. voucher_type
  4. voucher_number
  5. alternate_ledger
  6. party_name
  7. amount (number) [negative = Debit / positive = Credit]
  8. narration

stock-item-account

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:

  1. date
  2. voucher_type
  3. voucher_number
  4. party_ledger
  5. quantity
  6. amount (number) [negative = Debit / positive = Credit]
  7. narration
  8. tracking_number
  9. voucher_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

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).

set-company

Sets active company context in Tally Prime.

Input

Argument Description
companyName Company name to activate

Output JSON string: "OK" on success.

set-period

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.

Contact

Project developed & maintained by: Qala Labs

Email: hello@qalalabs.com <br> GitHub: https://github.com/QalaLabs

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选