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…
Что умеет
- 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
Какие данные видит
Нужен ли аккаунт
Не нужен: сервер работает без входа
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
- Precision Keyword Search: Utilizes exact/BM25 lexical matching to find specific legal terminology without relying on semantic guesswork.
- Context-Aware Fetching: Agents can fetch specific chapters, individual sections, or exact section ranges to prevent blowing out their context windows.
- 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).
- 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.
Как подключить
Как подключить Indian-Legal-MCP к Claude
Адрес сервера, который нужно вставить в настройках Claude:
https://indian-legal-mcp--gsms-b.run.tools
- Откройте Claude (сайт claude.ai или приложение для компьютера).
- Перейдите в Настройки → Коннекторы (в английском интерфейсе: Settings → Connectors).
- Нажмите Добавить пользовательский коннектор (Add custom connector).
- Вставьте адрес сервера, скопированный ниже, в поле URL удалённого MCP-сервера и нажмите Добавить.
- В чате нажмите + → Коннекторы и включите новый коннектор.
Пользовательские коннекторы доступны на тарифах Free, Pro, Max, Team и Enterprise. На Free можно добавить только один. В Team и Enterprise коннектор сначала добавляет владелец организации в Настройки организации → Коннекторы.
Авторизация
После нажатия Добавить откроется окно входа в сервис. Войдите под своим аккаунтом и подтвердите доступ. Пароль Claude не видит.
Как подключить Indian-Legal-MCP к ChatGPT
Адрес сервера, который нужно вставить в настройках ChatGPT:
https://indian-legal-mcp--gsms-b.run.tools
- Откройте ChatGPT в браузере (chatgpt.com). Нужен тариф Plus, Pro, Business, Enterprise или Edu.
- Один раз включите режим разработчика: Настройки → Приложения → Дополнительные настройки → Режим разработчика (Settings → Apps → Advanced settings → Developer mode).
- Откройте Настройки → Коннекторы и нажмите Создать (Create).
- Заполните форму: Название (любое), Описание (одна фраза, что делает сервис), URL MCP-сервера (скопируйте ниже).
- В поле Аутентификация выберите OAuth, если сервис требует вход, иначе Нет. Нажмите Создать.
- В новом чате откройте + → Приложения/Коннекторы и включите коннектор.
Название раздела у OpenAI менялось (Connectors → Apps/Plugins). Если пункт называется иначе, ищите «режим разработчика» в настройках. В рабочих пространствах Business/Enterprise администратор должен разрешить пользовательские коннекторы.
Авторизация
При первом использовании ChatGPT откроет окно входа в сервис. Войдите и подтвердите доступ.
Как подключить Indian-Legal-MCP к Cursor
Адрес сервера, который нужно вставить в настройках Cursor:
https://indian-legal-mcp--gsms-b.run.tools
Быстрый способ: нажмите кнопку Открыть в Cursor ниже, Cursor сам предложит добавить сервер.
Вручную:
- В Cursor откройте Settings → Cursor Settings → MCP и нажмите Add new global MCP server.
- Вставьте JSON, скопированный ниже, в открывшийся файл
~/.cursor/mcp.json(для одного проекта:.cursor/mcp.jsonв корне проекта). - Сохраните файл. Сервер появится в списке MCP; при необходимости пройдите авторизацию по кнопке рядом с ним.
Авторизация
Если сервис требует вход, рядом с сервером в списке MCP появится кнопка авторизации.
Список инструментов сервера (8)
Технические названия из tools/list. Нужны только разработчикам.
| 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 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_sections | List 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_chapter | Get 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_range | Get 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_act | Get 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. |