India Regulatory Mcp

io.github.Akhilgovind02由 GitHub 帳號 Akhilgovind02 發布v1.0.1更新於 Oct 24, 2026

Search RBI & SEBI circulars, master directions and regulations. Offline SQLite index, no API keys.

概覽

AI 產生的概覽

一個本機 MCP 伺服器,讓助理從離線 SQLite 索引檢索印度 RBI 與 SEBI 的監理文件,並附官方出處。

可以做什麼
依關鍵字、監理機關或文件類型搜尋 RBI 與 SEBI 的通函、主指引、主通函、通知與條例,也可依主題搜尋,一次回傳合併後的現行規則與近期通函。依 ID 取得文件全文及官方來源連結。列出最新文件、全部主指引與主通函,或依部門列出 SEBI 文件。查看索引狀態與文件數量,並執行增量同步,從監理機關網站抓取新發布的文件。
適用情境
適合需要印度銀行與證券監理規則且有出處的答案時,例如某主題的現行 RBI 規則或本月 SEBI 通函,並希望取得附引用的原始文本而非摘要。它是檢索工具,不提供法律意見。
執行需求
以 npm 套件(india-reg-mcp)透過 stdio 在本機執行,需要 Node.js 18+ 以及 Claude Code 或 Claude Desktop 等 MCP 用戶端。不需 API 金鑰或帳號。首次同步會抓取 RBI 與 SEBI 網站,約需 5 至 15 分鐘;資料庫存放在使用者家目錄下。僅在同步時需要網路存取。
安裝前請注意
索引是某一時點的快照,未執行 sync_latest 前結果可能過時。同步會造訪政府網站並可能耗時數分鐘。文件按原樣檢索,專案聲明不提供法律意見,依賴前請對照官方連結文件核實。

安裝

在 SourceWeft 中

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

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

其他 MCP 客戶端

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

README

india-reg-mcp

An MCP server that gives Claude (and any MCP client) searchable, cited access to RBI and SEBI regulatory documents — circulars, master directions, notifications, and regulations.

No API keys. No subscriptions. Built entirely on free public government data.


Why This Exists

Regulatory rules in India are scattered across thousands of PDFs and HTML pages on rbi.org.in and sebi.gov.in. They reference and supersede each other constantly. There is no AI-accessible way to ask "what are the current rules on X" and get sourced answers.

This MCP solves that. It scrapes, indexes, and exposes the full text of RBI and SEBI documents in a local SQLite database — so Claude can search and retrieve primary-source regulatory text with official citations, instantly.

This is not a legal advice tool. It retrieves primary-source documents so you can reason over actual rules instead of hallucinated summaries.


What It Does

  • Full-text search across all indexed RBI and SEBI documents
  • Retrieve full document body by ID, with official source link
  • List recent documents — useful for "what changed this month" questions
  • List Master Directions and Master Circulars — the consolidated, currently-in-force rules on each subject
  • Browse by department — SEBI's Investment Management, Market Regulation, etc.
  • On-demand sync — pull newly published documents from regulators' sites
  • Topic search — returns both consolidated master rules AND recent circulars on a subject in one call

Tools (8 total)

ToolDescription
search_regulationsFull-text search with optional regulator/type filter
get_documentRetrieve full text of a document by ID
get_recentMost recent documents, optionally filtered
list_master_directionsAll RBI Master Directions + SEBI Master Circulars
list_by_departmentSEBI documents by department name
sync_latestIncremental scrape of new documents from RBI + SEBI
sync_statusDocument count breakdown + last sync time
search_by_topicCombined master rules + recent circulars on a topic

Architecture

RBI / SEBI websites        │        ▼   Scrapers (TypeScript)   rbi.ts  ──── ASP.NET POST with viewstate tokens   sebi.ts ──── AJAX pagination via JSP endpoint        │        ▼   SQLite DB  (~/.india-reg-mcp/regdata.db)   ├── documents table (full text, metadata, source URLs)   ├── documents_fts (FTS5 full-text index, porter stemmer)   └── sync_meta (last sync timestamp)        │        ▼   MCP Server (stdio transport)   ├── 8 tools exposed to Claude   └── Every result includes official source URL + disclaimer

Key design decision: Tools never scrape live. The scrapers populate a local SQLite database once, and tools query that instantly. Only sync_latest hits the regulators' sites. This makes every tool call fast, keeps you off government servers during normal use, and works offline once indexed.


Installation

Prerequisites

  • Node.js 18+
  • Claude Code CLI or Claude Desktop

Option A — npm (recommended)

Install globally and register with Claude Code in one step:

bash
npm install -g india-reg-mcpclaude mcp add -s user india-reg india-reg-mcp

Or use without installing via npx:

bash
claude mcp add -s user india-reg npx india-reg-mcp
First-run sync

After adding the server, ask Claude to sync:

Run sync_latest to populate the index

Or run directly:

bash
npx india-reg-mcp  # starts the MCP server

Option B — from source

bash
git clone https://github.com/Akhilgovind02/india-regulatory-mcp.gitcd india-regulatory-mcpnpm installnpm run build
First-run sync (populates the database)
bash
npm run sync

This scrapes RBI notifications for the last 36 months and SEBI circulars (~1000 recent documents). Takes 5–15 minutes depending on your connection. The database is stored at ~/.india-reg-mcp/regdata.db and survives rebuilds.

Progress is printed to stderr:

[sync] RBI 2026-6: 12 docs found[sync] RBI 2026-5: 18 docs found...[sync] SEBI ssid=6 page 0: 25 docs...[sync] Sync complete.

Configuration

Claude Code (CLI)

Via npm (global install):

bash
claude mcp add -s user india-reg india-reg-mcp

Via npx (no install):

bash
claude mcp add -s user india-reg npx india-reg-mcp

Via source build:

bash
claude mcp add -s user india-reg node /ABSOLUTE/PATH/TO/india-regulatory-mcp/dist/index.js

Or add to ~/.claude.json manually:

json
{  "mcpServers": {    "india-reg": {      "command": "npx",      "args": ["india-reg-mcp"]    }  }}

Claude Desktop

Edit %APPDATA%\Claude\claude_desktop_config.json (Windows) or ~/Library/Application Support/Claude/claude_desktop_config.json (macOS):

json
{  "mcpServers": {    "india-reg": {      "command": "npx",      "args": ["india-reg-mcp"]    }  }}

Restart Claude Desktop fully after editing the config.


Usage Examples

Once connected, ask Claude naturally:

What are the current RBI rules on digital lending?

→ Claude calls search_by_topic("digital lending") — returns the Master Direction on Digital Lending plus recent amending circulars, each with official source links.

What new SEBI circulars came out this month?

→ Claude calls get_recent(regulator="SEBI", limit=10).

Show me all RBI Master Directions

→ Claude calls list_master_directions(regulator="RBI").

What are the KYC requirements for mutual funds?

→ Claude calls search_regulations("KYC mutual fund", doc_type="master_direction").

Pull in the latest regulatory updates

→ Claude calls sync_latest() — incremental, only fetches new documents.


Data Sources

RBI (Reserve Bank of India)

  • Notifications + Circulars: rbi.org.in/Scripts/NotificationUser.aspx
  • Master Directions: rbi.org.in/Scripts/BS_ViewMasterDirections.aspx
  • Master Circulars: rbi.org.in/Scripts/BS_ViewMasterCirculardetails.aspx
  • Document bodies: HTML page text (with PDF fallback for PDF-only docs)

SEBI (Securities and Exchange Board of India)

  • Circulars (ssid=7): ~2,775 documents as of June 2026
  • Master Circulars (ssid=6): consolidated current rules by topic
  • Regulations (ssid=3): statutory regulations
  • Document bodies: primarily PDF-embedded content extracted via pdf-parse

Document Types

TypeSourceDescription
circularRBI + SEBIPoint-in-time regulatory guidance
master_directionRBIConsolidated current rules on a subject (supersedes earlier circulars)
master_circularSEBISame as master direction, SEBI's term
notificationRBIStatutory notifications under various Acts
regulationSEBIFormal regulations (e.g. SEBI (FPI) Regulations 2019)

For compliance questions, start with master_direction/master_circular. These represent the current state of rules, not a point-in-time snapshot.


Keeping the Index Fresh

The database is a point-in-time snapshot. RBI and SEBI publish new documents frequently (several per week).

Option 1 — Ask Claude: "Pull in the latest regulatory updates" → Claude calls sync_latest.

Option 2 — CLI:

bash
npm run sync

Option 3 — Scheduled (example cron, runs every Sunday at 2am):

0 2 * * 0 cd /path/to/india-regulatory-mcp && npm run sync >> ~/.india-reg-mcp/sync.log 2>&1

sync_latest and npm run sync are both incremental — they skip documents already in the database.


Project Structure

india-regulatory-mcp/├── src/│   ├── index.ts                  ← MCP server, all 8 tools│   ├── db/│   │   ├── schema.ts             ← SQLite schema + FTS5 setup│   │   └── queries.ts            ← DB read/write functions│   ├── scrapers/│   │   ├── rbi.ts                ← RBI scraper (ASP.NET POST + viewstate)│   │   ├── sebi.ts               ← SEBI scraper (AJAX pagination)│   │   ├── pdf.ts                ← PDF download + text extraction│   │   ├── run-sync.ts           ← CLI full sync runner│   │   └── repair-bodies.ts      ← Utility: backfill missing body text│   └── util/│       ├── http.ts               ← Polite fetch (UA + retry + delay)│       └── format.ts             ← MCP response helpers├── dist/                         ← Compiled output (not in repo)├── package.json└── tsconfig.json

Technical Notes

Scraping approach

RBI uses ASP.NET with viewstate tokens. The scraper fetches viewstate on startup, then POSTs month-by-month to get document listings. Content is extracted from the HTML circular page; PDF fallback for PDF-only documents.

SEBI uses a JSP-based listing with AJAX pagination. Page 1 is a GET request (establishes JSESSIONID). Pages 2+ POST to getnewslistinfo.jsp with the session cookie. Circular content is typically a PDF embedded in an iframe — the scraper extracts the PDF URL and parses it with pdf-parse.

Polite scraping

  • Concurrency capped at 2 parallel requests per host
  • 300ms delay between document fetches
  • 500ms delay between listing pages
  • Exponential backoff on 429/5xx responses
  • Real User-Agent string identifying the tool

Database

  • Location: ~/.india-reg-mcp/regdata.db
  • WAL mode for performance
  • FTS5 with Porter stemmer — handles morphological variants ("lending" matches "lend", "lender")
  • Full-text search terms are quoted per-word to handle hyphens and special characters safely

Stack

PackageVersionPurpose
@modelcontextprotocol/sdk1.29.0MCP server framework
better-sqlite312.10.0SQLite with built-in FTS5
cheerio1.2.0HTML parsing
pdf-parse2.4.5PDF text extraction
turndown7.2.4HTML → Markdown
p-limit7.3.0Concurrency control
zod4.4.3Schema validation

Disclaimer

This tool retrieves and surfaces primary-source regulatory documents from official RBI and SEBI publications. It does not provide legal advice. Always verify against the official linked document. The index is a point-in-time snapshot — use sync_latest to pull recent publications.

來源:README.md,提交 a240bab

工具

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

版本歷史

1
  1. v1.0.1最新Sep 16, 2026

評分

已滿足適用檢查項的 50%

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

  • 近 30 天內可連通25 分

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

  • 已宣告認證方式10 分

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

  • 已列出工具15 分

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

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