TaxBrainAI MCP

io.github.harshil-projectsPublished by GitHub account harshil-projectsv0.1.1Updated Oct 27, 2026

8 offline Indian income-tax MCP tools: deterministic compute, regimes, citations, notices.

The publisher's own server: BrainDog

VerifiedSTDIODesktop onlyFinanceKnowledge & Memory

Overview

AI-generated overview

Offline MCP server with 8 deterministic tools for Indian personal income-tax: liability computation, regime comparison, statute citations and notice…

What you can do
  • Compute income-tax liability from structured inputs such as salary, capital gains, deductions, age, residency and regime
  • Compare old and new regimes and simulate what-if changes to a base input
  • Resolve section numbers to titles and formatted citations, and map sections between the 1961 and 2025 Income-tax Acts
  • Classify post-filing notices by pattern-matching text and return section, type, deadline and guidance facts
  • Reconcile pre-extracted Form 16, 26AS and AIS fields and flag mismatches with PAN redacted
  • Run optional lexical case-law search over a user-supplied JSONL index
When to use it
Useful when an assistant should help with Indian personal income-tax estimates for AY 2026-27 / FY 2025-26 (ITR-1/2/3/4), compare regimes, look up statutory sections, or triage notices, without sending data to an external service.
Requirements
Runs locally over stdio as a Python package installed with pip; the taxbrainai-compute library is installed automatically. No API keys or accounts. Case-law search only works if TAXBRAIN_MCP_CASELAW_INDEX points to a JSONL index you supply; no corpus ships with the package.
Before you install
Figures are estimates for resident individuals and HUFs, not tax, legal or financial advice; verify against the official e-filing utility and a qualified professional. Document reconciliation works only on fields you extract yourself, since OCR is out of scope. If you build a case-law index from Indian Kanoon, attribution is required.

Installation

In SourceWeft

  1. Open TaxBrainAI MCP in the dashboard and add it to a workspace.
  2. Enable the server for the chats that should use its tools.

Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.

Other MCP clients

Follow the launch instructions in the repository.

README

taxbrainai-mcp

A standalone MCP server exposing 8 tools for Indian personal income-tax work (ITR-1/2/3/4 + post-filing notices). It is built on FastMCP as a thin wrapper over the deterministic taxbrainai-compute engine plus a small statute graph that ships inside the package.

It runs fully offline with no API keys — every tool here is deterministic or an optional bring-your-own-index lookup. There is no LLM call anywhere in this package.

This is the extracted, self-contained MCP surface of the larger TaxBrainAI project. In the full product, three of these tools are backed by an LLM / vision model and a hosted case-law corpus; here those halves are replaced by deterministic equivalents (or made optional), so the package installs and starts with no private backend, no secrets, and no redistributed third-party data. See "Honesty about each tool" below.

The 8 tools

#ToolKindWhat it does
1compute_taxDeterministic — Decimal computeIncome-tax liability for a structured input (salary, capital gains, deductions, age, residency, regime). No LLM in the math path.
2regime_compareDeterministic — Decimal computeOld vs new regime for the same inputs; recommends the cheaper, with savings delta + statutory citations.
3simulate_scenarioDeterministic — Decimal computeWhat-if: apply changes to a base input and compare tax before/after.
4cite_sectionDeterministic — statute graphResolves a section number to its title + a formatted citation, incl. the equivalent section in the other Act.
5compare_actsDeterministic — statute graphMaps a section across IT Act 1961 ↔ IT Act 2025 via the equivalence graph.
6classify_noticeDeterministic — table + pattern-matchDetects the notice section by pattern-matching the text, then returns curated section/type/deadline/guidance facts (not model-generated). Honest found: false when no known section is present.
7reconcile_documentsDeterministic — diffFlags cross-document mismatches across Form 16 / 26AS / AIS pre-extracted fields (PAN redacted in output). OCR/vision extraction is out of scope — bring your own extractor.
8find_case_lawOptional — lexical BM25 retrievalLexical search over an optional case-law metadata index. No corpus ships with this package; set an env var to enable it (below), otherwise it returns an empty result set with a note.

Honesty about each tool

  • Deterministic Decimal compute (1–3): all math flows through the property-tested taxbrainai-compute library (Hypothesis-verified, cross-checked against the official Income-Tax Dept ITR utilities). The server never authors a number.
  • Deterministic statute graph (4–5): answered from a vendored snapshot of the 1961↔2025 statute graph (nodes.csv + edges.csv, shipped inside the package).
  • Deterministic table / diff (6–7): in the full TaxBrainAI product these are LLM/vision-backed (a model reads the notice / extracts document fields). This standalone server keeps only the deterministic halves — a section/keyword matcher and a field-level reconciliation diff — so no model or key is required.
  • Optional retrieval (8): find_case_law needs a case-law index, which is not bundled (third-party data is not redistributed here). It degrades gracefully to an empty result set unless you point it at your own index.

Install

bash
pip install "taxbrainai-mcp[mcp]"     # server + FastMCP SDKpip install taxbrainai-mcp            # tool library only (no SDK; importable + testable)

taxbrainai-compute is a hard dependency and is installed automatically.

Run

bash
# installed console scripttaxbrainai-mcp
# or the module formpython -m taxbrainai_mcp.server

FastMCP's run() serves stdio by default and also supports Streamable HTTP (build_mcp_server().run(transport="streamable-http")). No API keys are needed.

Optional: enable case-law search

bash
export TAXBRAIN_MCP_CASELAW_INDEX=/path/to/caselaw.jsonl   # JSONL of {"title","court",...}

If your index is derived from Indian Kanoon (indiankanoon.org), attribute it accordingly.

Connect a client (Claude Desktop)

Add to claude_desktop_config.json (mcpServers block):

json
{  "mcpServers": {    "taxbrain": {      "command": "taxbrainai-mcp"    }  }}

If the console script is not on PATH, use "command": "python", "args": ["-m", "taxbrainai_mcp.server"].

Use the tools directly (no MCP SDK)

The tool logic is a plain class — handy for tests or embedding:

python
from taxbrainai_mcp import TaxBrainTools
t = TaxBrainTools()print(t.compute_tax({"salary_income": 1275000, "regime": "new"})["total_tax"])  # 0 (rebated under Section 87A)print(t.compare_acts("147")["equivalence"])

Registry manifest

server.json is the MCP-registry manifest (schema 2025-12-11), authored as a draft for submission. Its _meta block lists the exact pre-publish checklist (claim/publish the PyPI name, validate against the schema, authenticate the io.github.harshil-projects namespace). The package runs locally over stdio — there is no hosted remote endpoint.

Scope & disclaimer

Covers AY 2026-27 / FY 2025-26 for resident individuals / HUF (ITR-1/2/3/4). This is software for estimation, not tax, legal, or financial advice; verify against the official e-filing utility and a qualified professional before relying on any figure.

License

MIT — see LICENSE. Bundled statute graph data is derived from the text of the Income-tax Act (official statutory text). taxbrainai-compute is MIT-licensed.


mcp-name: io.github.harshil-projects/taxbrainai-mcp

Source: README.md at commit ce8fd87

Tools

0
SourceWeft has not started this package in its sandbox yet, so its tools are not known.

Version history

1
  1. v0.1.1LatestSep 16, 2026

Score

50% of the applicable checks met

How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.

  • Reached in the last 30 days25 pts

    Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.

  • Auth declared10 pts

    Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.

  • Tools listed15 pts

    Answer tools/list without a credential, or ship a package that starts in a sandbox without one.

  • DescriptionRequired15 pts
  • Logo10 pts
  • Documentation15 pts
  • License10 pts

Other Brain integrations