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 集成