Indian-Legal-MCP

Indian Legal MCP: The Definitive Legal Protocol for AI Agents The Indian Legal MCP Server provides AI agents with high-speed, structured, and strictly sourced…

Community: Submitted by a user or imported; check the owner before granting accessOnlineNo sign-inGlobalFreeRead-only

What it can do

  • Indian Legal Mcp List Acts: List all available Acts in the database, with metadata and descriptions. Use this to see which legal codes are supported or find short codes.
  • Indian Legal Mcp Get Act Info: Get metadata about one specific Act: its full name, year enacted, and whether it is still current law or has been repealed and replaced by something newer.
  • Indian Legal Mcp Get Section: [AI TOOL ORCHESTRATION INSTRUCTION: Only use this tool AFTER you have found the exact section number via search_keyword, or if the user explicitly provided it.] Get the e

What data it sees

Do you need an account

No: the server works without sign-in

Indian Legal MCP: The Definitive Legal Protocol for AI Agents

The Indian Legal MCP Server provides AI agents with high-speed, structured, and strictly sourced access to the 10 major Indian legal texts. Designed specifically to eliminate AI hallucinations in legal research, this tool connects LLMs directly to an authoritative SQLite database, ensuring that every legal response is grounded in exact, verifiable statutory text.

Supported Legal Texts (Current & Repealed)

  • BNS (Bharatiya Nyaya Sanhita, 2023)
  • BNSS (Bharatiya Nagarik Suraksha Sanhita, 2023)
  • BSA (Bharatiya Sakshya Adhiniyam, 2023)
  • IPC (Indian Penal Code, 1860 - Repealed)
  • CrPC (Code of Criminal Procedure, 1973 - Repealed)
  • IEA (Indian Evidence Act, 1872 - Repealed)
  • COI (Constitution of India)
  • CPC (Code of Civil Procedure, 1908)
  • MVA (Motor Vehicles Act, 1988)
  • NIA (Negotiable Instruments Act, 1881)

Key Features for AI Agents

  1. Precision Keyword Search: Utilizes exact/BM25 lexical matching to find specific legal terminology without relying on semantic guesswork.
  2. Context-Aware Fetching: Agents can fetch specific chapters, individual sections, or exact section ranges to prevent blowing out their context windows.
  3. Repeal Awareness: Automatically detects when an agent queries repealed laws (like the IPC or CrPC) and attaches mandatory structural notes guiding the AI to the modern replacements (BNS, BNSS).
  4. Smart Pagination: Built-in safeguards allow agents to read entire acts in 50-section paginated chunks without crashing.

Why use this MCP?

Standard AI models guess what the law says based on training data. By equipping your agent with the Indian Legal MCP, it transforms from a predictive text engine into a precise legal researcher that cites exact section numbers, respects historical legal transitions, and delivers uncompromised accuracy for the Indian judicial system.

How to connect

How to connect Indian-Legal-MCP to Claude

The server address to paste into Claude settings:

https://indian-legal-mcp--gsms-b.run.tools

  1. Open Claude (claude.ai or the desktop app).
  2. Go to Settings → Connectors.
  3. Click Add custom connector.
  4. Paste the server address copied below into Remote MCP server URL and click Add.
  5. In a chat, click + → Connectors and switch the new connector on.

Custom connectors are available on Free, Pro, Max, Team and Enterprise plans (Free is limited to one). On Team and Enterprise an organization Owner adds the connector first under Organization settings → Connectors.

Authorization

After you click Add, a sign-in window for the service opens. Sign in with your own account and approve access. Claude never sees your password.

How to connect Indian-Legal-MCP to ChatGPT

The server address to paste into ChatGPT settings:

https://indian-legal-mcp--gsms-b.run.tools

  1. Open ChatGPT in a browser (chatgpt.com). A Plus, Pro, Business, Enterprise or Edu plan is required.
  2. Turn on developer mode once: Settings → Apps → Advanced settings → Developer mode.
  3. Open Settings → Connectors and click Create.
  4. Fill in the form: Name (anything), Description (one line about what the service does), MCP server URL (copy it below).
  5. Under Authentication choose OAuth if the service requires sign-in, otherwise None. Click Create.
  6. In a new chat open + → Apps/Connectors and enable the connector.

OpenAI has renamed this section before (Connectors → Apps/Plugins). If the label differs, search settings for "developer mode". On Business/Enterprise workspaces an admin must allow custom connectors first.

Authorization

On first use ChatGPT opens the service's sign-in window. Sign in and approve access.

How to connect Indian-Legal-MCP to Cursor

The server address to paste into Cursor settings:

https://indian-legal-mcp--gsms-b.run.tools

Fastest: click Open in Cursor below and confirm the prompt.

Manually:

  1. In Cursor open Settings → Cursor Settings → MCP and click Add new global MCP server.
  2. Paste the JSON copied below into ~/.cursor/mcp.json (per project: .cursor/mcp.json in the repo root).
  3. Save the file. The server appears in the MCP list; authorize it there if asked.

Authorization

If the service needs sign-in, an authorize button appears next to the server in the MCP list.

Server tool list (8)

Raw names from tools/list. Only developers need these.

indian_legal_mcp_list_actsList all available Acts in the database, with metadata and descriptions. Use this to see which legal codes are supported or find short codes.
indian_legal_mcp_get_act_infoGet metadata about one specific Act: its full name, year enacted, and whether it is still current law or has been repealed and replaced by something newer.
indian_legal_mcp_get_section[AI TOOL ORCHESTRATION INSTRUCTION: Only use this tool AFTER you have found the exact section number via search_keyword, or if the user explicitly provided it.] Get the exact text of ONE section (or Constitution article) by its number. Use this when someone asks about a specific, known section number, e.g. 'what does BNS Section 103 say' or 'show me IPC 302'. If the Act is repealed (IPC, CRPC, or IEA), the result includes a note that it no longer applies to new cases and names what replaced it.
indian_legal_mcp_list_sectionsList every section NUMBER and TITLE in one Act, without the full body text. Use this to browse what exists in an Act before deciding which specific section or chapter to fetch in full -- much shorter than get_full_act.
indian_legal_mcp_get_chapterGet every section within one chapter of an Act, with full text. Only meaningful for BNS, BNSS, BSA, IPC, CRPC, IEA. For CPC, MVA, and COI, which lack chapter grouping in this dataset, it returns a clear message instead of empty data.
indian_legal_mcp_get_section_rangeGet all sections between a start and end number (inclusive) with full text. Numeric comparison handles letter-suffixed numbers (like '108A'). If start and end are provided in reverse order, it silently corrects them and includes a note in the response.
indian_legal_mcp_get_full_actGet an entire Act, in full, returned in paginated chunks (50 sections/page). Use only when genuinely needing the whole Act. If a page beyond the total pages is requested, it gracefully returns empty sections with a note.
indian_legal_mcp_search_keyword[AI TOOL ORCHESTRATION INSTRUCTION: ALWAYS use this tool FIRST when the specific section number is unknown. Never guess section numbers.] Search section titles and text. Exact title matches are ranked #1, partial title matches are #2, and body text matches are #3 (via BM25). This is exact/near-exact word matching, NOT meaning-based search.