MCP server

Accounting MCP server

One MCP server for every accounting API; today that is the Tally API. Ask an AI assistant about your books. The server speaks the Model Context Protocol, so Claude, Cursor and other MCP clients can read balances, statements, the trial balance, outstanding bills, the day book and stock of the companies you synced, in a conversation.

Streamable HTTP acc.ejiapi.com/mcp Read-only tools Your own acc_ key

Using ChatGPT, Claude or Gemini? Add the address and sign in with your EJI API account instead of pasting a key: how to connect an AI app.

It uses your own accounting key (acc_…), the same one as the REST API, so the assistant sees exactly the companies your key may read and nothing else. Finance keys do not work here; the finance MCP server is at fin.ejiapi.com/mcp-server.

Connect

claude mcp add --transport http eji-tally https://acc.ejiapi.com/mcp \
  --header "x-api-key: YOUR_ACC_KEY"
{
  "mcpServers": {
    "eji-tally": {
      "url": "https://acc.ejiapi.com/mcp",
      "headers": { "x-api-key": "YOUR_ACC_KEY" }
    }
  }
}
{
  "mcpServers": {
    "eji-tally": {
      "command": "npx",
      "args": ["-y", "mcp-remote", "https://acc.ejiapi.com/mcp",
               "--header", "x-api-key:${EJI_ACC_KEY}"],
      "env": { "EJI_ACC_KEY": "YOUR_ACC_KEY" }
    }
  }
}
Claude Desktop needs Node.js

It reaches remote servers through the mcp-remote helper. Your key reads your accounts: keep it out of shared config files and repositories, and prefer a key limited to the companies the assistant needs.

Try without a key

Connect without the header and every tool reads the made-up company of the explorer. Answers then carry "demo": true.

Claude Code, demo
claude mcp add --transport http eji-tally-demo https://acc.ejiapi.com/mcp

Demo companyMade-up books

Demo Traders Pvt Ltd: the same invented ledgers, bills and stock as the explorer and Ask AI.

Tools

All tools are read-only. Amounts are debit-positive: a debit balance is positive, a credit balance negative. Pass company as an id or name from tally_list_companies, or - when your key reads one company.

tally_list_companiesRead-only

Companies your key can read, with last sync time.

tally_company_summaryRead-only

Counts of ledgers and vouchers, first and last voucher date.

tally_list_groupsRead-only

Account groups with parent, primary group and nature.

tally_list_ledgersRead-only

Ledgers with balance, GSTIN and state; filter by group or text.

tally_get_ledgerRead-only

One ledger's balance on a date, with its details.

tally_get_balancesRead-only

Balances of many ledgers in one call.

tally_ledger_statementRead-only

Entries between two dates with running balance; long statements keep the latest rows.

tally_trial_balanceRead-only

Trial balance on a date, by group or by ledger.

tally_group_totalRead-only

Debits, credits, net and closing of a group in a period (sales, purchases, expenses).

tally_day_bookRead-only

Vouchers of a period with lines and items; page with offset.

tally_outstandingRead-only

Open bills with due dates and days overdue, per party; optionally overdue only.

tally_stock_itemsRead-only

Stock items with unit, HSN and closing quantity.

tally_stock_movementRead-only

Quantity and value in and out of an item in a period.

Example questions

Prompt“Which customers have bills overdue by more than 60 days, and how much in total?”Uses tally_outstanding
Prompt“What were sales and purchases each month this financial year?”Uses tally_group_total
Prompt“Show the ledger statement of Ravi Traders for October and explain the closing balance.”Uses tally_ledger_statement
Prompt“Is the trial balance on 31 March in balance? Which groups carry the largest balances?”Uses tally_trial_balance
Prompt“Which stock items moved least in the last 90 days?”Uses tally_stock_movement

Your data

Read-only, one key per request
  • The server keeps no session: each request uses the key it came with and nothing else, so one user's key can never answer another user's question.
  • Tools only read. Nothing can change your books on EJI or in Tally.
  • The assistant you connect sends the answers to its own model provider. Connect only assistants you are allowed to share these books with.
  • Calls count against your key's quota like REST calls. Demo calls are limited per visitor.
Read-only acc_ keys only Same quota as REST

Tally and TallyPrime are trademarks of Tally Solutions Pvt. Ltd. EJI API is an independent product and is not affiliated with or endorsed by Tally Solutions.