Skip to main content
Glama
mcp-connector

mcp-connector

mcp-connector

Read-only TallyPrime MCP. Cursor asks accounting questions; this server fetches live company data over Tally XML Export. Nothing is created, altered, or deleted in Tally.

Flow:

Cursor → Streamable HTTP MCP → Node → TallyPrime

Setup

Copy .env.example to .env next to tally.js and server.js:

TALLY_URL=http://192.168.29.149:9000
HOST=0.0.0.0
PORT=3000

TALLY_URL is the TallyPrime HTTP port on the Tally PC (9000). Do not expose that port to the internet.

npm install
node server.js

Health: GET http://127.0.0.1:3000/health
MCP: POST http://127.0.0.1:3000/mcp

STDIO (optional): node server.js --stdio

Tally connectivity check: node test-tally.js

Related MCP server: merit-aktiva-mcp

Remote Cursor

On another PC on the LAN, add this MCP server (this machine’s LAN IP is 192.168.29.47):

{
  "mcpServers": {
    "tally": {
      "url": "http://192.168.29.47:3000/mcp"
    }
  }
}

Allow inbound TCP 3000 on this PC. Keep Tally port 9000 local.

Tools

Four tools, not one per report:

Tool

Purpose

query_tally

Companies, ledgers, groups, customers, suppliers, cash, bank, stock, GST, vouchers, outstanding

tally_report

Profit & loss, balance sheet, trial balance, registers, GST and stock reports

tally_describe

Catalog of resources, filters, and example questions

get_ledgers

Original smoke test: Tally Collection List of Ledgers, raw XML

Dates should match the loaded Tally financial year. Pass financialYear such as 26-27, or explicit fromDate / toDate as YYYY-MM-DD.

Layout

mcp-connector/
  .env
  tally.js          Tally HTTP client (Export POST)
  server.js         Streamable HTTP MCP
  test-tally.js     Connectivity check
  lib/
    mcp-server.js   Tool registration
    query.js        Read-only query layer
    catalog.js      Resources and reports
    dates.js        Dates and Indian FY
    parse.js        Tally XML → JSON
    xml-build.js    Read-only Export XML

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      B
      maintenance
      A read-only MCP server that connects Claude Desktop to TallyPrime, enabling natural-language auditing and analysis of accounting data directly from the local Tally installation.
      39
      MIT
    • A
      license
      B
      quality
      B
      maintenance
      Enables read-only access to Merit Aktiva accounting data, including customers, vendors, sales invoices, accounts, payments, and taxes, through natural language MCP tools.
      77
      1
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables AI assistants to read and analyze consolidated financial data across banks, cards, payments, accounting, payroll, and equity sources. Provides tightly controlled, read-only access so AI can answer finance questions without moving money.
      2
      AGPL 3.0
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables AI assistants to query BUSY Accounting books in plain language through read-only tools covering ledgers, outstanding bills, banking, vouchers, inventory, GST/TDS, and audit trails.
      MIT