---
title: "How to Connect Tally Accounting Software with AI Using an MCP Connector"
description: "Connect TallyPrime or Tally.ERP 9 to Claude, ChatGPT and Claude Code with an MCP connector. Step-by-step setup with Tally Sync, the tools the AI can use, security, and real examples."
slug: "connect-tally-accounting-software-with-ai"
date: "2026-06-06"
modifiedDate: "2026-10-20"
author: "Jayesh Jain"
category: "Artificial Intelligence"
tags: ["Tally", "MCP", "AI Agents", "Accounting Automation", "TallyPrime", "Claude", "ChatGPT"]
keywords: "connect Tally with AI, connect Tally to ChatGPT, connect Tally to Claude, Tally AI integration, Tally MCP server, Tally MCP connector, TallyPrime AI assistant, Tally.ERP 9 AI, Tally Sync, MCP server for Tally, AI accounting assistant"
excerpt: "A practical guide to connecting TallyPrime or Tally.ERP 9 with Claude, ChatGPT or Claude Code through an MCP connector, so finance teams can ask about receivables, sales, expenses and stock in plain language."
featuredImage: "/blog/connect-tally-accounting-software-with-ai-2026.jpg"
cta: "Want to ask your Tally books with AI?"
ctaDescription: "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."
faqs:
  - question: "Can AI connect to TallyPrime and Tally.ERP 9?"
    answer: "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."
  - question: "How do I connect Tally to ChatGPT or Claude?"
    answer: "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."
  - question: "Does Tally need to stay open?"
    answer: "No. The AI answers from the synced copy of your books, so you can ask questions even when Tally is closed. Tally only needs to be open while Tally Sync syncs, and for changes written back to Tally."
  - question: "Do I need a VPN or to open a port?"
    answer: "No. Tally Sync only makes outbound HTTPS connections. You do not expose Tally's port 9000 to the internet or set up a VPN."
  - question: "Where is my Tally data stored?"
    answer: "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."
  - question: "Can the AI change my Tally data?"
    answer: "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."
  - question: "Can I control which employees and companies the AI can access?"
    answer: "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."
  - question: "How much does Tally MCP Server cost?"
    answer: "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."
---

# 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](/products/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.

```text
TallyPrime / 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, reads the synced data and returns structured rows, 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](/products/tally-mcp-server#contact).

---

## Step 1: Enable Tally's XML Server

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

For **TallyPrime**:

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

For **Tally.ERP 9**:

```text
F12 -> 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](https://tirnav.com/products/tally-mcp-server/tally-sync.png)

---

## Step 3: Decide Who Sees What

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

| Role | Typical use |
|---|---|
| **Owner** | Everything, including users, billing and AI writes |
| **Accountant** | All data and reports, approves imports, AI read |
| **Viewer** | Read-only console and AI read |
| **AI only** | AI assistant access without the console |
| **Data entry** | Limited 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 `/mcp` to sign in.

```powershell
claude 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](https://tirnav.com/products/tally-mcp-server/connect-ai.png)

---

## 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:

```text
Which 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 synced data, and returns rows the assistant ranks and explains:

![Claude answering a receivables question from live Tally data, with names masked](https://tirnav.com/products/tally-mcp-server/real-receivables-question.png)

---

## Tools the AI Can Use

| Area | Tools |
|---|---|
| **Financial reports** | trial-balance, profit-loss, balance-sheet, chart-of-accounts |
| **Ledgers** | ledger-balance, ledger-account (statement down to each voucher) |
| **Bills** | bills-outstanding, bills-aging (receivables or payables in overdue buckets) |
| **Vouchers** | day-book, voucher-register (sales, purchase and more) |
| **Inventory** | stock-summary, stock-item-balance, stock-item-account |
| **Masters** | groups, ledgers, voucher types, units, godowns, stock items, cost centres, currencies, GSTINs |
| **Analysis** | query 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?

**Tally does not need to stay open.** The AI answers from the synced copy, so you can ask from anywhere. Tally needs to be open only while Tally Sync syncs, 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

| Plan | Price (before GST) | For |
|---|---|---|
| **Starter** | ₹499 / month | One business, one Tally licence, up to 25 companies |
| **Seller** | ₹1,199 / month | Adds Amazon and Flipkart sales and returns into Tally |
| **Practice** | ₹1,999 / month | CA firms: 3 licences, up to 100 companies each |
| **Enterprise** | On request | Custom limits, on-premises hosting, SSO |

Yearly billing gives two months free. See the [full plans](/products/tally-mcp-server#pricing).

---

## 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?

No. The AI answers from the synced copy of your books, so you can ask questions even when Tally is closed. Tally only needs to be open while Tally Sync syncs, 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](/products/tally-mcp-server#contact)** for an invite and an early-access discount.
