Step-by-step guide to connect Claude AI to TallyPrime with free, open-source TallyMCP. Runs on your PC, no SQL needed, and you approve every voucher.
Short answer: Install the free, open-source TallyMCP server on the PC that runs TallyPrime, run
tally-mcp setup, restart Claude Desktop, and start asking questions about your books in plain English. No SQL database, no cloud relay, and nothing is written to Tally until you approve it.
Picture it: it is the 28th, GST is due soon, and you type one line into Claude:
"Which customers are overdue by more than 60 days, and how much is each one holding?"
A few seconds later you have a ranked table, pulled live from your own TallyPrime company. No Excel export, no filtering through five reports.
This guide shows exactly how to set that up, how it stays safe, and what to ask once it works.
tally-mcp setup and tally-mcp doctor.Claude does not reach into Tally by itself. It needs a bridge that can ask Tally for data and hand the answer back in a form the AI can use. There are two common ways to build that bridge.
| Route A: Local MCP server (TallyMCP) | Route B: Reporting layer + SQL database | |
|---|---|---|
| Flow | Tally → TallyMCP (on your PC) → Claude | Tally → connector → SQL database → Claude |
| Data freshness | Live from Tally when you ask | As fresh as the last sync |
| Extra software | One small binary | Connector, SQL database, SQL access layer |
| Writing back to Tally | Drafts with human approval | Typically read-only reporting |
| Best for | Day-to-day questions, audits, voucher drafting, small and mid-size books | Cross-system dashboards, heavy historical analytics, multi-ERP reporting |
| Cost | Free and open source | Depends on the vendor |
Both routes are valid. If your goal is "let me talk to my Tally books today, safely, without building a data warehouse," Route A is the shorter path, and it is the one this guide follows.
1. It runs on your computer.
The server listens on 127.0.0.1 (loopback). The project states there are no cloud relays and no telemetry.
2. Human approval before any write. When Claude drafts a voucher, TallyMCP stages it on local disk and gives you a review link. You see the full Dr/Cr ledger breakdown, a balance check, and a content hash, then confirm with one click. The AI cannot post on its own.
3. Double-entry is verified. A draft must balance (debits equal credits) before it is staged, so a hallucinated ledger total cannot slip in.
4. Tiny and dependency-free. The Windows build is about 1.4 MB, installs per user and needs no administrator rights.
5. Works with more than Claude. Claude Desktop, Cursor, Windsurf, Gemini/Antigravity, ChatGPT Desktop and Cline-style clients can use the same server. You can even pair it with a local model such as one served by Ollama for a fully offline setup.
6. Wide TallyPrime coverage. The project lists support for TallyPrime Release 7.2 and earlier 6.x, 5.x, 4.x and 3.x releases over the standard XML port.
| Requirement | Details |
|---|---|
| TallyPrime | A company open on the PC, any supported release |
| Computer | Windows 10/11 (macOS and Linux builds are also listed on the project site) |
| Claude | Claude Desktop installed and signed in |
| Permissions | No admin rights needed for TallyMCP |
💡 Tip: Use a test company or a backup copy for your first session. It costs nothing and removes all worry.
TallyMCP talks to Tally through its built-in HTTP/XML interface.
.exe is also offered.tally-mcp command is on your PATH.tally-mcp setup
The wizard finds supported AI clients on your machine and adds the server to their configuration, so you do not need to edit JSON by hand.
tally-mcp doctor
doctor verifies that port 9000 is reachable, a company is open, and your client configuration is valid. Fix anything it flags before moving on.
Open %APPDATA%\Claude\claude_desktop_config.json (or in Claude Desktop: File → Settings → Developer → Edit Config) and add:
{ "mcpServers": { "tallymcp.pro": { "command": "C:\\Users\\<YOUR_WINDOWS_USERNAME>\\AppData\\Local\\Programs\\TallyMCP\\tally-mcp.exe", "args": ["serve"] } } }
Replace <YOUR_WINDOWS_USERNAME> with your Windows user name (in PowerShell: $env:USERNAME). Using Tally on another PC on your LAN? Point TallyMCP at that machine's address and port using the host option described in the docs.
taskkill /IM Claude.exe /F.You should now see the Tally tools, such as tally_status, tally_day_book and tally_trial_balance.
Start simple:
"Check the connection to TallyPrime and tell me which company is active."
If Claude reports the company name, you are connected.
Copy any of these straight into Claude.
Everyday queries
Collections and cash flow 4. "Who are my top 10 debtors by outstanding amount, and how old are their bills?" 5. "Which customers are overdue by more than 90 days? Draft a polite reminder for each."
Compliance support 6. "Compare my purchase register with this GSTR-2B file and list invoices I may not be able to claim ITC on." 7. "Which supplier bills are older than 45 days and might fall under Section 43B(h) for MSME payments?"
Audit-style checks 8. "Scan the Day Book for gaps in sales invoice numbers." 9. "Find payments made in cash above ₹10,000." 10. "List vouchers passed on Sundays or holidays."
Drafting and bank work 11. "Draft a payment of ₹50,000 to Apex Logistics for freight from our HDFC bank account." 12. "Read this bank statement and suggest ledgers for each line." 13. "Stage these 40 purchase invoices as drafts, and flag any that do not match my purchase orders."
Management view 14. "Why did profit drop this month compared with last month?" 15. "Give me a one-page summary of cash, receivables and payables."
⚠️ Always review AI output. Claude is very good at structure and arithmetic over the data it is given, but you remain responsible for your books. Treat compliance answers as a first pass for your CA or accounts team to confirm.
This is the part that matters most to accountants.
You ask Claude to draft a voucher
│
▼
TallyMCP checks the entry balances (Dr = Cr) and stages it on local disk
│
▼
Claude gives you a review link on your own machine
│
▼
You open it, inspect the ledger breakdown, and click Confirm
│
▼
Only then does the voucher post to TallyPrime
What you see in the review screen:
You can also choose how strict the system is:
| Safety mode | What happens | Good for |
|---|---|---|
| Approve (default) | Every write waits for your confirmation | Everyone, especially when starting out |
| Auto under limit | Small drafts below a rupee limit you set post automatically | Recurring micro-payments, once you trust your setup |
| Off | Read-only; nothing can be staged for posting | Auditors and cautious first runs |
Settings are saved in the local config.toml. Our advice: keep Approve on until you have reviewed a few dozen drafts, then consider a low limit for repetitive small entries.
Be clear on the difference between the two parts of the system:
So ask yourself what you are comfortable sharing with your AI provider, and review its data-handling terms. If you need data to stay entirely inside your premises, use a local model through Ollama or LM Studio with the offline profile.
| Problem | What to try |
|---|---|
| Connector does not appear in Claude | Fully quit Claude (taskkill /IM Claude.exe /F), then reopen it |
doctor says port 9000 is unreachable | Recheck Tally's Client/Server setting and make sure the company is open |
| "No company" or empty reports | Open a company in Tally before asking questions |
| Path error in the JSON config | Use double backslashes (\\) and your real Windows username |
| Tally runs on another PC | Allow Tally's port through that PC's firewall and point TallyMCP at its LAN address |
| Educational mode date limits | Educational Tally only accepts certain dates, so test with a licensed or test company |
Still stuck? Open the setup guide or raise an issue on the GitHub repository.
Not on its own. It needs a bridge. TallyMCP is a local MCP server that lets Claude read Tally data and stage voucher drafts through Tally's built-in XML interface.
Yes. It is open source and dual-licensed under MIT or Apache-2.0, with no subscription fee.
No. Queries are read-only. Drafts wait for your explicit confirmation before posting, and the tool creates new entries rather than altering existing ones.
No. TallyMCP queries Tally live over port 9000. A SQL-based reporting layer is a different architecture and can still make sense for large cross-system analytics.
The project lists TallyPrime Release 7.2 and earlier 6.x, 5.x, 4.x and 3.x releases. Check the docs for the latest compatibility notes.
Yes. Any client that supports MCP can use the server, and the setup wizard covers several popular ones.
TallyMCP keeps its own traffic on your machine. The AI provider you pick will see the results returned into your conversation, so choose accordingly, or use a local offline model.
No. TallyMCP is an independent community project. Tally and TallyPrime are trademarks of Tally Solutions Pvt. Ltd., and Claude is a product of Anthropic. This is not the Tally.so form builder either.
tally-mcp setup, then tally-mcp doctorWant to see it before installing? Try the live demo, browse the tools registry, or read the full docs. Source code is on GitHub.
Disclaimer: Tally and TallyPrime are registered trademarks of Tally Solutions Pvt. Ltd. Claude is a product of Anthropic. TallyMCP is an independent open-source project and is not affiliated with, endorsed by, or sponsored by either company. This article is for general information; verify compliance outputs with a qualified professional.