# Google Antigravity & Gemini CLI Setup Guide | TallyMCP

> Complete guide to configuring Google Antigravity and Gemini CLI with TallyMCP: JSON configuration, agent permissions, tool execution, and prompt patterns.

Canonical: https://www.tallymcp.pro/docs/antigravity
Last updated: 2026-10-26

## Configuring Google Antigravity & Gemini CLI with TallyMCP

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.

## Step 1: Enable TallyPrime HTTP/XML Connector

Before configuring Antigravity, ensure TallyPrime's built-in XML server is listening on port 9000:

- Open TallyPrime and load your desired company.
- Press F1: Help ▸ Settings ▸ Connectivity ▸ Client/Server configuration.
- Set 'TallyPrime acts as' to Both (or Server).
- Set 'Enable ODBC Server' to Yes and 'Port' to 9000.
- Restart TallyPrime. Test connectivity in your browser at http://localhost:9000.

## Step 2: Install Native TallyMCP Binary

Download and install TallyMCP for your operating system:

- Windows: Download the Windows MSI installer or standalone .exe from the downloads section.
- macOS / Linux: Download the native binary from GitHub Releases and place it in your PATH (e.g. /usr/local/bin/tally-mcp).

## Step 3: Register TallyMCP in Gemini / Antigravity Config

Open or create your Gemini / Antigravity MCP configuration file at ~/.gemini/mcp_config.json (or in Windows at %USERPROFILE%\.gemini\mcp_config.json):

```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.

## Step 4: Verify with CLI Diagnostics

Run the built-in diagnostic doctor to verify that TallyPrime, the HTTP port, and the client registration are working properly:

```bash
tally-mcp doctor
```

When all 5 preflight checks pass (Loopback Reachability, XML Protocol Compatibility, Company Loaded, Client Discovery, and PATH Registration), your environment is ready for agentic queries.

## Sample Antigravity Prompts

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.

## Frequently Asked Questions

### How does TallyMCP ensure financial safety in Antigravity?

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.

### Does Antigravity send accounting books to external servers?

No. TallyMCP connects directly to TallyPrime over local loopback (127.0.0.1:9000). The binary includes zero telemetry and zero external network calls.

### What if Antigravity reports 'tally-mcp not found'?

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.

[View Full Documentation & Tool Reference](https://www.tallymcp.pro/docs)

## Related
- [Download TallyMCP](https://www.tallymcp.pro/download)
- [Documentation](https://www.tallymcp.pro/docs)
