Step-by-step setup guide for connecting Google Antigravity and Gemini CLI to TallyPrime via Model Context Protocol (MCP).
Google Antigravity and the Gemini CLI natively support the Model Context Protocol (MCP) using local stdio process execution. By running TallyMCP locally on your machine, your accounting data is queried strictly over local loopback (127.0.0.1:9000) with zero telemetry, zero cloud relays, and human verification on every voucher draft.
Before configuring Antigravity, ensure TallyPrime's built-in XML server is listening on port 9000:
Download and install TallyMCP for your operating system:
Open or create your Gemini / Antigravity MCP configuration file at ~/.gemini/mcp_config.json (or in Windows at %USERPROFILE%\.gemini\mcp_config.json):
{
"mcpServers": {
"tallymcp.pro": {
"command": "tally-mcp",
"args": ["serve"]
}
}
}For project-specific or workspace-level Antigravity workspaces, you can also declare the server in your active workspace configuration.
Run the built-in diagnostic doctor to verify that TallyPrime, the HTTP port, and the client registration are working properly:
tally-mcp doctorWhen all 5 preflight checks pass (Loopback Reachability, XML Protocol Compatibility, Company Loaded, Client Discovery, and PATH Registration), your environment is ready for agentic queries.
Once configured, you can prompt Antigravity to perform accounting workflows:
Inspect our active company in TallyPrime, check the trial balance debit/credit closing totals, and list any sundry debtors with overdue balances past 60 days.
All 15 query tools (trial balance, day book, ledgers, audit trail, ageing) are strictly read-only. For writes, TallyMCP uses a two-phase staging architecture: the draft tool only stages the voucher locally and outputs a human-approval URL. No autonomous commit is possible without manual human authorization.
No. TallyMCP connects directly to TallyPrime over local loopback (127.0.0.1:9000). The binary includes zero telemetry and zero external network calls.
Ensure the tally-mcp binary is available in your system PATH, or specify the absolute binary path in ~/.gemini/mcp_config.json under the 'command' attribute.