Configure TallyPrime XML Server (Port 9000)
Interactive pre-configuration checklist for TallyPrime.
curl http://localhost:9000 or open in your browser to confirm HTTP 200 OK.Connect Your AI Client
Choose your assistant below for 1-click config snippets, paths, and restart commands.
One-Click Installer Extension for Claude Desktop (.mcpb)
RecommendedFastest installation method — no manual JSON editing required.
- 1Go to menu > File > Settings
- 2Extensions > Advance Settings
- 3Click on install extension button
- 4Browse the extension file (with file extension
mcpb) downloaded at the start (tally-mcp-1.0.1.mcpb) - 5A dialog window will appear asking “Do you want to install Tally Prime?” Click Install button, which would install the Tally MCP Server
- 6Verify once configured by checking it on connectors: In Claude Desktop, open any chat, click on the + attachment icon > Connectors (or Settings > Connectors) to confirm
tallymcp.prois active with a green indicator.
{
"mcpServers": {
"tallymcp.pro": {
"command": "tally-mcp",
"args": ["serve"]
}
}
}taskkill /IM Claude.exe /FSetup Steps
100% Local stdio- 1Click File ▸ Settings (Ctrl + ,) ▸ Developer tab ▸ Edit Config.
- 2Paste the standardized "tallymcp.pro" configuration block.
- 3Force close background Claude workers in PowerShell with taskkill.
- 4Relaunch Claude Desktop. Click + ▸ Connectors to verify tools.
CLI Diagnostics & Management (tally-mcp)
Run automated 5-point diagnostics or auto-configure AI clients with built-in commands.
Rules for AI Coding Agents Interacting with TallyMCP
Prompt conventions and invariants that Claude Code, Cursor Agent, Codex, and Antigravity follow when querying Tally books.
Interactive Tool Reference (26 Tools)
Search by tool name, purpose, or filter by access level. Click any tool for its schema and examples.
| Tool Name | Access | Toolset | Description | Parameters |
|---|---|---|---|---|
| tally_status↗ | read | core | Check TallyPrime reachability, active company, and circuit breaker health. Use when: check connection, tally health, system status. READ-ONLY. | none |
| tally_list_companies↗ | read | core | List all open and available companies loaded in TallyPrime. Use when: which companies are available, switch company, list accounts. READ-ONLY. | none |
| tally_set_active_company↗ | session | core | Set the active company for read queries in this session. Use when: switch active company, select company, set context. READ-ONLY. | company |
| tally_list_ledgers↗ | read | core | List all ledger accounts, parent groups, and balances in the active company. Use when: chart of accounts, find ledger, party accounts. READ-ONLY. | company |
| tally_trial_balance↗ | read | core | Export structured Trial Balance report from TallyPrime with debit/credit closing totals. Use when: trial balance, balance check, financial health. READ-ONLY. | company, from_date, to_date |
| tally_day_book↗ | read | core | Export Day Book transactions as deterministic JSON array of vouchers. Use when: day book, daily transactions, recent vouchers. READ-ONLY. | company, from_date, to_date |
| tally_draft_voucher↗ | draft | core | Stage a TallyPrime voucher draft with double-entry balance validation and out-of-band approval URL. Use when: create voucher, post entry, draft transaction. DRAFT: human approval required. | company, voucher_type, date, number, party_ledger, entries, narration, allow_create_masters |
| tally_preview_draft↗ | draft | core | Preview formatted summary and exact XML payload of a staged voucher draft. Use when: inspect draft, review XML, verify staged entry. READ-ONLY. | draft_id |
| tally_discard_draft↗ | draft | core | Discard and purge an unapproved voucher draft from local staging storage. Use when: cancel draft, delete staged entry, reject voucher. READ-ONLY. | draft_id |
| tally_commit_draft↗ | draft | core | Post an approved voucher into TallyPrime using a human-authorized approval token. Use when: human approved draft, finalize voucher. DRAFT: human approval required. | draft_id, auth_token |
| tally_extract_document↗ | read | core | Extract structured accounting data from invoice PDF or image for voucher drafting. Use when: scan invoice, parse bill PDF, OCR receipt. READ-ONLY. | file_path |
| tally_run_report↗ | read | core | Execute a read-only financial report from an extensible TDL pack. Use when: custom report, financial summary, ageing pack. READ-ONLY. | report_name, parameters |
| tally_get_environment↗ | read | core | Get TallyPrime connection status: Tally version, open company, edit-log on/off, server version, tested versions. Use when: check connection, which company is open, version support. READ-ONLY. | none |
| tally_explain_gstr2b_mismatches↗ | read | core | Explain GSTR-2B vs TallyPrime books mismatches (ITC reconciliation): matched, partial, only-in-books, only-on-portal, with likely cause and next step. Use when: GSTR-2B reconciliation, ITC mismatch. READ-ONLY. | period, bucket, portal_file, include_followups, limit, cursor, detail |
| tally_list_receivables_ageing↗ | read | core | List TallyPrime receivables ageing (sundry debtors outstanding) in 0-30/31-60/61-90/90+ day buckets with last payment date. Use when: who owes money, overdue customers, payment chase. READ-ONLY; reminder drafts never sent. | as_of, buckets, min_amount, include_reminders, limit, cursor, detail |
| tally_diagnose_connection↗ | read | core | Diagnose TallyPrime connection problems: Tally not running, XML/HTTP server off, wrong port, firewall, no company open, version mismatch. Use when: cannot connect to Tally, timeouts, company not found. READ-ONLY. | port |
| tally_check_audit_trail↗ | read | core | Check TallyPrime audit trail: edit log on/off, last backup if detectable, recent voucher alterations and deletions. Use when: data integrity, before big batch, did anyone change entries. READ-ONLY; never repairs. | from, to, limit, detail |
| tally_draft_bank_vouchers↗ | draft | core | Draft TallyPrime Receipt/Payment/Contra vouchers from a bank statement (CSV, XLSX or PDF) with duplicate detection and closing-balance check. Use when: bank statement import, BRS entries. DRAFT: human approval required. | file_path, bank_ledger, suspense_ledger, dry_run, limit, cursor, allow_create_masters |
| tally_draft_bill_voucher↗ | draft | core | Draft a TallyPrime purchase voucher from a supplier bill photo or PDF using existing party/item masters, with per-field confidence and GSTIN check. Use when: bill to voucher, purchase entry. DRAFT: human approval required. | file_path, confirm, allow_create_masters |
| tally_check_books_health↗ | read | core | Check TallyPrime books for errors: duplicate vouchers, negative cash/stock, missing opening balances, odd ledger groups, invalid GSTIN, round-figure and cash-limit flags, with risk score. Use when: audit review, month-end. READ-ONLY. | from, to, checks, cash_limit, limit, detail |
| tally_draft_vouchers_from_table↗ | draft | core | Draft TallyPrime sales, purchase, payment or journal vouchers from an Excel/CSV/JSON table with column mapping and a dry-run summary. Use when: bulk voucher import, Excel to Tally. DRAFT: human approval required. | file_path, voucher_type, column_map, dry_run, allow_create_masters |
| tally_export_report↗ | read | core | Export TallyPrime ledgers, vouchers, outstandings or trial balance to CSV/XLSX with a stable column schema for Excel or Power BI. Use when: Tally to Excel, Power BI dataset. READ-ONLY; writes only to the export folder. | report, format, from, to |
| audit_sec_269ss_loan_acceptance↗ | read | core | Detects acceptance of loans, deposits, or specified advances in cash >= ₹20,000 with 100% penalty under Sec 271D. Form 3CD Clause 31(a) exception report. READ-ONLY. | from_date, to_date, threshold |
| audit_sec_269t_loan_repayment↗ | read | core | Detects repayment of loan, deposit, or specified advance in cash when repayment or balance >= ₹20,000 with 100% penalty under Sec 271E. Form 3CD Clause 31(b). READ-ONLY. | from_date, to_date, threshold |
| audit_sec_40a3_cash_expenditure↗ | read | core | Identifies cash payments to a single person in a day exceeding ₹10,000 (₹35,000 for transporters) for Form 3CD Clause 21(d) disallowance with Rule 6DD filters. READ-ONLY. | from_date, to_date, default_limit, transport_limit |
| audit_labour_pf_esi_36_1_va↗ | read | core | Validates timely deduction & deposit of EPF/ESI against statutory due date (15th) for permanent disallowance under Sec 36(1)(va) (Checkmate ruling) and Sec 43B. Form 3CD Clause 20(b). READ-ONLY. | from_date, to_date, grace_days |
Interactive Troubleshooting Matrix
Click any symptom below to see the exact root cause, diagnostic check, and resolution.
http://localhost:9000.tally-mcp doctorDedicated Topic Guides & Deep Dives
Browse platform-specific walkthroughs, network architecture guides, and offline configurations.
Claude Desktop Walkthrough →
Detailed configuration, stdio setup, and worker cache cleanup.
ChatGPT Desktop Guide →
Setting up OpenAI desktop application with TallyMCP.
Cursor & Windsurf Guide →
Project-level .cursor/mcp.json and global settings integration.
Antigravity & Gemini Guide →
Configure ~/.gemini/mcp_config.json for Google Antigravity & Gemini CLI.
Wi-Fi & Office LAN Guide →
Connect to Tally across local network using --host and --port.
Local & Offline Models →
On-premises local integration using Ollama and LM Studio.
Diagnostics & Preflight →
Step-by-step diagnostic resolution with tally-mcp doctor.
Real-World Conversation Recipes
Sample multi-turn prompts and deterministic workflow patterns for your AI assistant.
“Check our cash balance, bank account, and show the top 5 sundry debtors in Tally.”
tally_list_companies → tally_set_active_company → tally_trial_balance“Show all sales vouchers entered yesterday and calculate total GST collected.”
tally_day_book (returns typed voucher objects with voucher_type, amount, and ledger_entries).“Draft a payment voucher of ₹50,000 to Apex Logistics for freight from our HDFC bank account.”
TallyMCP stages the draft locally, validates double-entry balance (Debits == Credits == ₹50,000.00), and emits an approval link (http://127.0.0.1:9190/approve?draft_id=...). You review the entry in the interactive modal and click Approve & Commit to post into Tally.
Data Hygiene & Clean Uninstallation
TallyMCP puts you in complete control of your local logs, cache, drafts, and credentials.
CLI Hygiene Commands:
# Inspect data inventory without deleting anything: tally-mcp cleanup --dry-run # Clean temporary logs and cache with automatic backup: tally-mcp cleanup --backup C:\Backups\TallyMCP # Complete clean uninstall (removes data, PATH entries, and shortcuts): tally-mcp uninstall