TaxBrainAI MCP

io.github.harshil-projects由 GitHub 帳號 harshil-projects 發布v0.1.1更新於 Oct 27, 2026

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

發布方自己的服務:BrainDog

已驗證STDIO僅桌面金融知識與記憶

概覽

AI 產生的概覽

離線執行的 MCP 伺服器,提供 8 個確定性工具,處理印度個人所得稅:稅額計算、新舊稅制比較、法條引用與通知分類。

可以做什麼
  • 依薪資、資本利得、扣除額、年齡、居住身分與稅制等結構化輸入計算所得稅負
  • 比較舊制與新制,並對基準輸入做假設情境模擬、比較前後稅額
  • 將條號解析為標題與格式化引用,並在 1961 年與 2025 年所得稅法之間對應條文
  • 以樣式比對申報後通知文字,回傳條文、類型、期限與指引資訊
  • 比對事先擷取的 Form 16、26AS 與 AIS 欄位並標示不一致,輸出中 PAN 已遮蔽
  • 在使用者自備的 JSONL 索引上執行選用的詞彙式判例檢索
適用情境
適合讓助理協助估算印度個人所得稅(AY 2026-27 / FY 2025-26,ITR-1/2/3/4)、比較稅制、查詢法條或初步判斷通知類型,且不希望資料送往外部服務時使用。
執行需求
以 Python 套件透過 pip 安裝,並在本機以 stdio 執行;taxbrainai-compute 會自動安裝。不需 API 金鑰或帳號。判例檢索僅在 TAXBRAIN_MCP_CASELAW_INDEX 指向自備 JSONL 索引時可用,套件內不含語料。
安裝前請注意
結果僅為針對居民個人與 HUF 的估算,不構成稅務、法律或財務建議;使用前應以官方電子申報工具及專業人士核實。文件比對只處理你自行擷取的欄位,OCR 不在範圍內。若以 Indian Kanoon 建立判例索引,須依要求標示來源。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 TaxBrainAI MCP,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

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

來源:README.md,提交 ce8fd87

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v0.1.1最新Sep 16, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分

其他 Brain 整合