Structured access to 10 major Indian legal texts (BNS, IPC, etc) for AI agents.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent — or use 1-click editor setup below.
One-click editor setup isn’t available for this listing yet — we don’t have a confirmed install command, and we’d rather show nothing than point your editor at the wrong package or host. Follow the project’s own setup instructions, linked above.
title: Indian Legal MCP emoji: ⚖️ colorFrom: yellow colorTo: gray tags:
Structured, sourced access to 10 major Indian legal texts — built for AI agents.
Live Server • Tools • Acts Covered • Credits • License
Indian Legal MCP is a Model Context Protocol server that gives AI assistants — Claude, ChatGPT, or any other MCP-compatible client — exact, structured access to the text of 10 major Indian Acts, instead of relying on the model's memory (and risking hallucination on section numbers, punishments, or repealed law).
Connect it once, and any AI agent using it can pull the real text of a section, browse a chapter, search by keyword, or check whether a law is still in force — all sourced directly from the underlying Act text, not guessed.
Disclaimer: This is not legal advice. Always verify anything that matters against the official Gazette at indiacode.nic.in. Historical Acts (IPC, CrPC, Indian Evidence Act) are clearly marked as repealed in every response — they remain useful for matters predating 1 July 2024, but no longer apply to new cases.
| Act | Full name | Status |
|---|---|---|
| BNS | Bharatiya Nyaya Sanhita, 2023 | ✅ Current |
| BNSS | Bharatiya Nagarik Suraksha Sanhita, 2023 | ✅ Current |
| BSA | Bharatiya Sakshya Adhiniyam, 2023 | ✅ Current |
| COI | Constitution of India | ✅ Current |
| CPC | Code of Civil Procedure, 1908 | ✅ Current |
| MVA | Motor Vehicles Act, 1988 | ✅ Current |
| NIA | Negotiable Instruments Act, 1881 | ✅ Current |
| IPC | Indian Penal Code, 1860 | 🕰️ Repealed → replaced by BNS |
| CRPC | Code of Criminal Procedure, 1973 | 🕰️ Repealed → replaced by BNSS |
| IEA | Indian Evidence Act, 1872 | 🕰️ Repealed → replaced by BSA |
| Tool | What it does |
|---|---|
list_acts() | Lists all 10 Acts, with their current/repealed status |
get_act_info(act_code) | Full name, year, and status of one Act |
get_section(act_code, section_number) | Exact text of one section or Constitution article |
list_sections(act_code) | Every section number + title in an Act, without full text — for browsing |
get_chapter(act_code, chapter_number) | Every section in one chapter, in order |
get_section_range(act_code, start, end) | All sections in a numeric range, inclusive |
get_full_act(act_code) | The entire Act, paginated automatically for large Acts |
search_keyword(query, act_code?) | Ranked keyword search, across one Act or all 10 |
Server URL:
Open Settings → Developer → Edit Config, and add this to claude_desktop_config.json:
Restart Claude Desktop — the tools will appear under the MCP/tools icon in the chat window.
For your MCP client’s setup instructions, use the following server URL:
https://gsms-b-indian-legal-mcp.hf.space/gradio_api/mcp/
The app will print a local URL — open it in a browser to test each tool by hand, or connect a local MCP client to the printed /gradio_api/mcp/ endpoint.
This project would not have been possible without the excellent datasets compiled by GSMS-B and Civictech India ("For the People & By the people"):
Huge thanks to Civictech India for making their data freely and openly available. Please check out and star their repositories if you find this project useful.
This project is licensed under the MIT License — see the LICENSE file for details. The underlying legal texts themselves are public government documents; the credited source datasets carry their own respective licenses, viewable in their original repositories linked above.
Built by GSMS-B · If this project helped you, consider giving it a ⭐
No reviews yet — be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/indian-legal-mcp)<a href="https://allmcps.com/mcp/indian-legal-mcp"><img src="https://allmcps.com/api/badge/indian-legal-mcp?style=directory" alt="Indian Legal MCP on AllMCPs" /></a>