
India Regulatory Mcp
io.github.Akhilgovind02Published by GitHub account Akhilgovind02v1.0.1Updated Oct 24, 2026
Search RBI & SEBI circulars, master directions and regulations. Offline SQLite index, no API keys.
Overview
A local MCP server that lets an assistant search and retrieve RBI and SEBI regulatory documents from an offline SQLite index, with official citations.
- What you can do
- Search RBI and SEBI circulars, master directions, master circulars, notifications and regulations by keyword, regulator or document type, or by topic to get consolidated rules plus recent circulars together. Retrieve the full text of a document by ID with its official source link. List recent documents, all master directions and master circulars, or SEBI documents by department. Check index status and document counts, and run an incremental sync that pulls newly published documents from the regulators' sites.
- When to use it
- Useful when you need sourced answers on Indian banking and securities rules, such as current RBI rules on a subject or this month's SEBI circulars, and want primary-source text with citations rather than summaries. It is a retrieval tool, not legal advice.
- Requirements
- Runs locally over stdio as an npm package (india-reg-mcp) and needs Node.js 18+ plus an MCP client such as Claude Code or Claude Desktop. No API keys or accounts. The first sync scrapes RBI and SEBI sites and takes roughly 5 to 15 minutes; the database is stored under the user's home directory. Network access is needed only for syncing.
Installation
In SourceWeft
- Open India Regulatory Mcp in the dashboard and add it to a workspace.
- 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
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)
Architecture
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:
Or use without installing via npx:
First-run sync
After adding the server, ask Claude to sync:
Or run directly:
Option B — from source
First-run sync (populates the database)
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:
Configuration
Claude Code (CLI)
Via npm (global install):
Via npx (no install):
Via source build:
Or add to ~/.claude.json manually:
Claude Desktop
Edit %APPDATA%\Claude\claude_desktop_config.json (Windows) or ~/Library/Application Support/Claude/claude_desktop_config.json (macOS):
Restart Claude Desktop fully after editing the config.
Usage Examples
Once connected, ask Claude naturally:
→ Claude calls search_by_topic("digital lending") — returns the Master Direction on Digital Lending plus recent amending circulars, each with official source links.
→ Claude calls get_recent(regulator="SEBI", limit=10).
→ Claude calls list_master_directions(regulator="RBI").
→ Claude calls search_regulations("KYC mutual fund", doc_type="master_direction").
→ 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
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:
Option 3 — Scheduled (example cron, runs every Sunday at 2am):
sync_latest and npm run sync are both incremental — they skip documents already in the database.
Project Structure
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
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.
Source: README.md at commit a240bab
Tools
0Version history
1- v1.0.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