India Company Diligence

io.github.amit043由 GitHub 帳號 amit043 發布v0.2.0更新於 Nov 3, 2026

India company data for agents: 3.74M-company MCA mirror, CIN/GSTIN tools, provenance on every field

已驗證STDIO僅桌面資料庫金融商業與電商

概覽

AI 產生的概覽

以印度 MCA 公司登記資料的本地鏡像為基礎的離線 MCP 伺服器,讓助理依 CIN 或名稱查詢公司,並離線解析 CIN、驗證 GSTIN。

可以做什麼
  • 依 21 碼 CIN 查詢單一公司的完整登記資料,並附上每個欄位的來源
  • 以不分大小寫的方式搜尋公司名稱,最多回傳 50 筆排序結果
  • 離線解析 CIN,得出上市狀態、所在邦、成立年份與公司類型
  • 離線驗證 GSTIN 的結構、邦代碼與 mod-36 檢查碼
  • 每次回答都說明缺少或過期的內容,而不是憑空推測
適用情境
適合需要查核印度公司的情境,例如驗證供應商、查看登記狀態或實收資本、核對發票上的 CIN,並希望使用本機資料而不呼叫線上介面。
執行需求
透過 uv/uvx 以 stdio 在本機執行。需先用 icd-fetch 一次性下載預先建好的鏡像(約 530 MB 下載、磁碟約 1.4 GB),並以環境變數 ICD_MIRROR_DB 指向 DuckDB 檔案。自行重建鏡像需要 data.gov.in 的免費 API 金鑰,放在 OGD_API_KEY 中。僅支援桌面用戶端。
安裝前請注意
鏡像是快照(截至 2026-10-25),可能已過期;不含董事、抵押與財務資料,會標示為缺少。GSTIN 驗證只檢查結構,不核實法定名稱與登記狀態。自行重建鏡像需要 OGD_API_KEY 金鑰,且下載耗時長、有速率限制。資料來自 data.gov.in 發布的 MCA 資料,依 GODL 授權,應註明來源。

安裝

在 SourceWeft 中

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

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

其他 MCP 客戶端

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

README

india-company-diligence

An open-source MCP server that makes India's public company data agent-legible: a full local mirror of the MCA company master data (~3.74M companies), offline CIN decoding and GSTIN validation, and provenance on every field.

v0.2.0 · mirror as_of 2026-10-25 · upstream dataset updated 2026-10-13 · MIT license · github.com/amit043/india-company-diligence

[Glama — tool definitions rated A] [mcprush — security A]

Independently evaluated: Glama — tool definitions rated A, maintenance A, one-click deploy · mcprush — security A, low access · Also listed on Agensi skills and the official MCP registry.

60-second demo

You: A vendor called "Hella Infra Market" wants a ₹2 crore credit line. Check them out.

Claude (calls company_search, then company_lookup): HELLA INFRA MARKET LIMITED (CIN U46632MH2016PLC283737) is Active, a public unlisted company registered with ROC Mumbai, incorporated 2016-07-15, paid-up capital ₹285.8 crore. Note: HELLA INFRACON PRIVATE LIMITED — a similarly named entity — is Strike Off, so confirm the exact CIN on the invoice. Missing: directors, charges, and financials require the live MCA layer (roadmap). Source: mca-master-data, as_of 2026-10-25.

Every answer carries where each field came from, what is missing, and what is stale. Missing is stated, never fabricated.

Install & run (Claude Desktop)

Requires uv.

bash
# 1. one-time: download the prebuilt mirror (~530 MB download, ~1.4 GB on disk)uvx --from india-company-diligence icd-fetch

Add to claude_desktop_config.json:

json
{  "mcpServers": {    "india-company-diligence": {      "command": "uvx",      "args": ["india-company-diligence"],      "env": { "ICD_MIRROR_DB": "C:\\full\\path\\to\\mca_mirror.duckdb" }    }  }}

Restart Claude Desktop. Ask: "Look up CIN L17110MH1973PLC019786".

Tools

ToolWhat it doesNetwork
company_lookup(cin)Full registry row for one CIN, per-field provenancemirror only
company_search(name, limit)Case-insensitive name search, ≤50 rows, rankedmirror only
cin_decode(cin)Offline structural decode: listing status, state, year, company typenone
gstin_validate(gstin)Offline GSTIN structure + mod-36 checksum validationnone

The provenance contract

Every tool returns data plus provenance, and states what is missing or stale — never fabricated, never an error page:

json
{  "data": { "...": "..." },  "provenance": [{"field": "CompanyStatus", "source": "mca-master-data", "as_of": "2026-10-25"}],  "missing": ["director_network (live layer unavailable)"],  "stale": []}

Data & attribution

Company Master Data (RoC-wise), published by the Ministry of Corporate Affairs via data.gov.in, licensed under the Government Open Data License – India (GODL). 3,738,721 companies; upstream dataset updated 2026-10-13; this mirror built 2026-10-25.

gstin_validate is offline-only by design: no keyless public GST API exists, so legal name / registration status are stated as missing rather than guessed.

Roadmap

  • L1 live layer — MCA directors & charges via browser automation (week 2)
  • LLP decode — cin_decode currently handles company CINs; LLP IDs (e.g. ABA-1729) next
  • Refresh cadence: monthly mirror rebuilds as upstream updates

Bugs and data gaps: open an issue.

Sync the mirror yourself (alternative to icd-fetch)

Get a free API key on data.gov.in, then:

bash
export OGD_API_KEY=your-key        # or put it in a .env file at the repo rootuv run icd-sync                    # paginated pull, checkpointed, safe to interruptuv run icd-import                  # CSV -> data/mca_mirror.duckdb, source/as_of baked in

The pull is paced (5s between pages by default; override with OGD_DELAY_SECONDS or uv run icd-sync --delay 3). Completion matters, not speed.

Pausing & resuming

  • stop: uv run icd-watch stop (or just close the terminal)
  • status: uv run icd-watch status
  • resume: uv run icd-watch start — continues from data/mca_master.checkpoint
  • when the checkpoint reaches the dataset total, run uv run icd-import

Development

bash
uv syncuv run pytestuv run ruff check .

Prefer plain pip? requirements.txt / requirements-dev.txt mirror the deps.

License

MIT. Data under GODL-India; attribution as above.

來源:README.md,提交 a27481e

工具

4

company_lookup

Company Lookup

Look up one company by its 21-character Corporate Identity Number.

輸入參數cin必填

cin_decode

Cin Decode

Decode a Corporate Identity Number without using the mirror or network.

輸入參數cin必填

gstin_validate

Gstin Validate

Validate a GSTIN offline: structure, state code, and mod-36 check digit. Pure offline — no network, no keys. Live fields (legal name, trade name, registration status, filing history) require an authenticated GST API and are stated as missing, never fabricated.

輸入參數gstin必填

版本歷史

2
  1. v0.2.0最新Oct 31, 2026
  2. v0.1.1Oct 25, 2026

評分

已滿足適用檢查項的 90%

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

  • 近 30 天內可連通25 分
  • 已宣告認證方式10 分

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

  • 已列出工具必需15 分
  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分