How to Connect Tally Accounting Software with AI Using an MCP Connector

Jayesh Jain

Jun 6, 2026

12 min read

Share this article

How to Connect Tally Accounting Software with AI

For many Indian businesses, Tally is the system of record for accounting. It holds the ledgers, vouchers, receivables, payables, stock and years of financial history.

But an AI assistant cannot read Tally on its own. It can explain accounting concepts, but it does not know which customers owe you money, what a vendor's balance is, or how this month's expenses compare with last month's.

That gap is what an MCP connector for Tally closes. This guide shows how to connect TallyPrime or Tally.ERP 9 to Claude, ChatGPT or Claude Code using Tally MCP Server: what you need, the setup, what the AI can do, and how access stays under your control.

Updated October 2026. The first version of this guide described a local demo connector. It now covers Tally MCP Server and the Tally Sync connector, which replace it.


What Does "Connecting Tally with AI" Actually Mean?

It does not mean uploading your accounting database into a chatbot. The better approach is tool-based:

  1. Tally keeps running on your computer, as today.
  2. Tally Sync, a small Windows app next to Tally, keeps a synced copy of your books up to date. It only makes outbound connections.
  3. Tally MCP Server, on your own domain, exposes that data as defined tools - "outstanding bills", "profit & loss", "day book".
  4. Your AI assistant calls those tools, and only the ones the user's role allows.
1TallyPrime / Tally.ERP 9 -> Tally Sync (outbound HTTPS) -> synced copy -> Tally MCP Server -> Claude / ChatGPT

The assistant asks for a tool, the server checks the user's permissions and returns structured rows - from the synced copy for balances, statements and registers, or live from Tally through Tally Sync for other reports - and the assistant explains them in plain language.


Why Use MCP for Tally?

MCP (Model Context Protocol) is an open standard that gives AI assistants a consistent way to discover and call external tools. Instead of guessing or reading a spreadsheet you exported, the AI calls a defined tool and answers from the result.

For accounting this matters, because "read a balance" and "post an entry" are very different risks. With MCP each tool is separate, so you can allow reports and keep writes off - per person, per company.


What You Can Ask After Connecting Tally

  • "Which customers have the highest outstanding receivables? Show the top 10."
  • "Which bills are overdue by more than 60 days?"
  • "Which expense ledgers increased the most compared with last month?"
  • "Compare our sales for the last 3 months, and who contributed most."
  • "Show the trial balance as of 31 March."
  • "What is the closing stock of each item in the main godown?"

You can ask follow-up questions in the same conversation, which is where AI beats a one-off export.


What You Need

  1. TallyPrime (Silver or Gold) or Tally.ERP 9, with its XML server enabled (port 9000).
  2. The Windows computer that runs Tally, for Tally Sync. Nothing is installed on other employees' machines.
  3. An MCP-compatible AI assistant: Claude (claude.ai or Claude Desktop), ChatGPT, or Claude Code.
  4. A Tally MCP Server workspace. It is in early access - join the waiting list.

Step 1: Enable Tally's XML Server

Tally Sync reads Tally through its built-in XML server, usually on port 9000.

For TallyPrime:

1F1 (Help) -> Settings -> Connectivity -> Client/Server configuration 2TallyPrime acts as: Server or Both 3Port: 9000

For Tally.ERP 9:

1F12 -> Advanced Configuration -> Tally.ERP 9 is acting as: Server or Both, port 9000

To check, open http://localhost:9000 on that computer. If you see a response from Tally, the XML server is working. The port only needs to be reachable on that computer - never expose it to the internet.


Step 2: Install Tally Sync and Pair It

  1. In the console, open Download Tally Sync and install it on the computer that runs Tally.
  2. Open Tally Sync. It checks that Tally is reachable and shows an 8-character pairing code.
  3. In the console, go to Tally Sync → Add a computer and enter the code.
  4. Open the companies you want in Tally. They appear on the Tally Sync page within a few minutes - link each one to a workspace company.

Tally Sync then keeps ledgers, vouchers and stock up to date, including deleted vouchers. It only makes outbound HTTPS connections, so no ports are opened and no VPN is needed.

Tally Sync page in the console: one computer online and two Tally companies up to date


Step 3: Decide Who Sees What

Before anyone connects an AI assistant, give each person a role per company:

RoleTypical use
OwnerEverything, including users, billing and AI writes
AccountantAll data and reports, approves imports, AI read
ViewerRead-only console and AI read
AI onlyAI assistant access without the console
Data entryLimited data and imports

A person can hold a different role in each company, you can create your own roles, and access can have an end date - useful for an outside CA or auditor. The AI assistant always gets exactly the same access as the person who connected it.


Step 4: Connect Claude, ChatGPT or Claude Code

Open Connect AI in the console. It shows your connector URL on your own domain, plus the workspace and company codes to sign in with.

  • Claude (claude.ai or Claude Desktop): Settings → Connectors → add a custom connector, name it, paste the URL, choose Connect and sign in.
  • ChatGPT: Settings → Connectors → create a connector with the URL and OAuth authentication (some plans need developer mode for custom connectors), then sign in.
  • Claude Code: run the command below, then use
    1/mcp
    to sign in.
1claude mcp add --transport http tally-access https://tally.yourcompany.com/mcp

Each person signs in with their own account and approves the connection - there is no shared password.

Connect AI page with the connector URL and setup steps for Claude, ChatGPT and Claude Code


Step 5: Ask Your First Question

Start a new chat with the connector enabled and ask something you already know the answer to, such as a customer's balance. Then try an analysis question:

1Which customers currently have the highest outstanding receivables? Show me the top 10 with outstanding amount and overdue days.

Behind the scenes the assistant calls bills-outstanding, the server checks the user's role for that company, reads the bills live from Tally through Tally Sync, and returns rows the assistant ranks and explains:

Claude answering a receivables question from live Tally data, with names masked


Tools the AI Can Use

AreaTools
Financial reportstrial-balance, profit-loss, balance-sheet, chart-of-accounts
Ledgersledger-balance, ledger-account (statement down to each voucher)
Billsbills-outstanding, bills-aging (receivables or payables in overdue buckets)
Vouchersday-book, voucher-register (sales, purchase and more)
Inventorystock-summary, stock-item-balance, stock-item-account
Mastersgroups, ledgers, voucher types, units, godowns, stock items, cost centres, currencies, GSTINs
Analysisquery results the AI already fetched, field reference, input options

Write tools are separate and off unless granted: create and update ledgers and stock masters, import purchase and sales invoices, and godown transfers. Each needs its own permission in the person's role, and deleting masters is in no built-in role.


Does Tally Need to Stay Open? Where Is the Data?

For everyday questions, Tally does not need to stay open. Ledger balances, ledger statements, the day book, voucher registers and the trial balance answer from the synced copy, and each answer says how current it is - ask for live figures and the AI reads Tally directly. Profit & loss, balance sheet, outstanding bills and stock reports still read Tally live, so Tally and Tally Sync need to be running for those, and for changes written back to Tally.

The synced copy is stored on servers in India, with each workspace's data isolated at the database level. One thing to keep in mind: when the AI calls a tool, the result goes to the AI assistant you use, so check that provider's data and training settings for your account too.


Keeping Control

  • Roles per company decide what each person and their AI can see.
  • Read-only unless you allow writes - and writes can be blocked for the whole server or on a Tally Sync computer.
  • Network rules: require office or VPN IP ranges when someone connects an AI assistant, and limit the admin console to your networks.
  • Disconnect any AI connection at any time from Connected apps.
  • Tamper-evident activity log: sign-ins, admin changes and every AI tool call are recorded in an append-only, hash-chained log, without storing report contents.

Beyond Chat

The same workspace also gives you:

  • A web console for ledgers, vouchers and stock, so you can check any AI answer against the books.
  • Marketplace imports that post Amazon (MTR B2C and B2B) and Flipkart sales and returns into Tally as GST vouchers and credit notes, after you review and approve them.

Common Gotchas

  1. The XML server is not enabled. If http://localhost:9000 does not respond on the Tally computer, Tally Sync cannot read Tally.
  2. The company is not open in Tally. Tally Sync only sees companies that are open; open them and link them in the console.
  3. The wrong company is linked. Check each Tally company is linked to the right workspace company before anyone connects.
  4. Answers look out of date. Answers reflect the last sync - check "last data received" on the Tally Sync page and that the computer is online.
  5. Totals look off for a recent month. If a month is only partly posted in Tally, comparisons will show it. A good assistant flags this, but it is worth posting first.

Pricing

PlanPrice (before GST)For
Starter₹499 / monthOne business, one Tally licence, up to 25 companies
Seller₹1,199 / monthAdds Amazon and Flipkart sales and returns into Tally
Practice₹1,999 / monthCA firms: 3 licences, up to 100 companies each
EnterpriseOn requestCustom limits, on-premises hosting, SSO

Yearly billing gives two months free. See the full plans.


Frequently Asked Questions

Can AI connect to TallyPrime and Tally.ERP 9?

Yes. Tally MCP Server works with TallyPrime (Silver or Gold) and Tally.ERP 9 through Tally's built-in XML server. Tally Sync, a small Windows app on the computer that runs Tally, keeps a synced copy of your books that AI assistants query through MCP.

How do I connect Tally to ChatGPT or Claude?

Enable Tally's XML server on port 9000, install Tally Sync and pair it with your workspace, then copy your connector URL from Connect AI in the console. Add it as a custom connector in Claude or ChatGPT (or with claude mcp add in Claude Code), sign in with your own account, and ask a question.

Does Tally need to stay open?

Not for everyday questions. Ledger balances, ledger statements, the day book, voucher registers and the trial balance answer from the synced copy of your books, so you can ask them even when Tally is closed, and the answer says how current it is. Other reports - profit & loss, balance sheet, outstanding bills and stock - still read Tally live, so Tally and Tally Sync need to be running for those, and for changes written back to Tally.

Do I need a VPN or to open a port?

No. Tally Sync only makes outbound HTTPS connections. You do not expose Tally's port 9000 to the internet or set up a VPN.

Where is my Tally data stored?

The synced copy is stored on servers in India, and each workspace's data is isolated at the database level. When the AI calls a tool, the result is sent to the AI assistant you use, so review that provider's data settings too.

Can the AI change my Tally data?

Only if you allow it. Reading follows what each person may view. Write tools, such as creating ledgers or importing invoices, each need their own permission in the person's role, and writes can be switched off for the whole server or on a Tally Sync computer.

Can I control which employees and companies the AI can access?

Yes. Each person gets a role per company (Owner, Accountant, Viewer, AI only, Data entry or a custom role), and their AI assistant gets exactly the same access. Access can have an end date, for example for an outside CA, and every AI tool call is recorded in the activity log.

How much does Tally MCP Server cost?

Starter is ₹499 a month for one Tally licence with up to 25 companies; Seller (with Amazon and Flipkart imports) is ₹1,199 and Practice (for CA firms) is ₹1,999 a month. Prices are before GST, and yearly billing gives two months free.


Final Thoughts

Connecting Tally with AI is not about replacing accountants. It gives your team a faster way to ask questions, investigate numbers and spot what needs attention - while Tally stays the system of record.

The safe path is simple: sync with Tally Sync, give each person the right role, start with read-only questions, and turn on writes only where they help.

Join early access to Tally MCP Server for an invite and an early-access discount.

Share this article

Inspired by This Blog?

Join our newsletter

Get product updates and engineering insights.

JJ

Jayesh Jain

Jayesh Jain is the CEO of Tirnav Solutions and a dedicated business leader defined by his love for three pillars: Technology, Sales, and Marketing. He specializes in converting complex IT problems into streamlined solutions while passionately ensuring that these innovations are effectively sold and marketed to create maximum business impact.

Want to ask your Tally books with AI?

Tally MCP Server connects TallyPrime and Tally.ERP 9 to Claude and ChatGPT with role-based access and no VPN. Join early access for an invite and a discount.

Related Posts