Indian Legal MCP

Structured access to 10 major Indian legal texts (BNS, IPC, etc) for AI agents.

我該用這個嗎

品質與安全性

A
說明品質
100%
結構描述完整度
91%
命名品質
75%
汙染風險
100%
權限相符程度
100%
協定合規性
100%

發現項目(2)

  • LOWTool 'indian_legal_mcp_get_section_range' name length outside 3-30 range在 indian_legal_mcp_get_section_range 中
  • LOWTool 'indian_legal_mcp_search_keyword' name length outside 3-30 range在 indian_legal_mcp_search_keyword 中

根據工具定義與協定合規性的自動化分析。

上下文成本

~1,042Token(工具定義)
~557 B典型回應大小
中等的注意力影響(128k 上下文的 0.81%)

這是每次將伺服器的工具載入模型上下文時所消耗的約略 token 數量。數量越高,可用於其他工作的注意力就越少。

安裝

一鍵安裝

將以下內容加入你的 `claude_desktop_config.json` 檔案:

{
  "mcpServers": {
    "indian-legal-mcp": {
      "url": "https://gsms-b-indian-legal-mcp.hf.space/gradio_api/mcp/"
    }
  }
}

遠端端點

https://gsms-b-indian-legal-mcp.hf.space/gradio_api/mcp/streamable-http

它能做什麼

工具清單

工具(8)

🟢 唯讀🟡 寫入🔴 刪除⚪ 未知
🟢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.

輸入結構描述

{
  "type": "object",
  "properties": {}
}
🟢indian_legal_mcp_get_act_info(act_code)

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.

輸入結構描述

{
  "type": "object",
  "properties": {
    "act_code": {
      "type": "string",
      "description": "short code, one of BNS, BNSS, BSA, IPC, CRPC, IEA, COI, CPC, MVA, NIA."
    }
  },
  "required": [
    "act_code"
  ]
}
🟢indian_legal_mcp_get_section(act_code, section_number)

[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.

輸入結構描述

{
  "type": "object",
  "properties": {
    "act_code": {
      "type": "string",
      "description": "e.g. 'BNS', 'IPC', 'COI'."
    },
    "section_number": {
      "type": "string",
      "description": "e.g. '103', '25A', '0' (Preamble), '394A'. Always given as a string."
    }
  },
  "required": [
    "act_code",
    "section_number"
  ]
}
🟢indian_legal_mcp_list_sections(act_code)

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.

輸入結構描述

{
  "type": "object",
  "properties": {
    "act_code": {
      "type": "string",
      "description": "e.g. 'BNS', 'MVA'."
    }
  },
  "required": [
    "act_code"
  ]
}
🔴indian_legal_mcp_get_chapter(act_code, chapter_number)

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.

輸入結構描述

{
  "type": "object",
  "properties": {
    "act_code": {
      "type": "string",
      "description": "e.g. 'BNS'."
    },
    "chapter_number": {
      "type": "string",
      "description": "e.g. '1', '16'."
    }
  },
  "required": [
    "act_code",
    "chapter_number"
  ]
}
🟢indian_legal_mcp_get_section_range(act_code, start_section, end_section)

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.

輸入結構描述

{
  "type": "object",
  "properties": {
    "act_code": {
      "type": "string",
      "description": "e.g. 'BNS'."
    },
    "start_section": {
      "type": "string",
      "description": "e.g. '100'."
    },
    "end_section": {
      "type": "string",
      "description": "e.g. '110'."
    }
  },
  "required": [
    "act_code",
    "start_section",
    "end_section"
  ]
}
🟢indian_legal_mcp_get_full_act(act_code, page)

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.

輸入結構描述

{
  "type": "object",
  "properties": {
    "act_code": {
      "type": "string",
      "description": "e.g. 'BNS'."
    },
    "page": {
      "type": "integer",
      "description": "The page number to fetch. Default is 1.",
      "default": 1
    }
  },
  "required": [
    "act_code"
  ]
}
🟢indian_legal_mcp_search_keyword(query, act_code)

[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.

輸入結構描述

{
  "type": "object",
  "properties": {
    "query": {
      "type": "string",
      "description": "search term(s), e.g. 'punishment for murder'."
    },
    "act_code": {
      "type": "string",
      "description": "optional -- restrict search to one Act."
    }
  },
  "required": [
    "query"
  ]
}

社群

為此伺服器評分

證據

近期觀測

已驗證未記錄版本8 個工具
已驗證未記錄版本8 個工具
已驗證未記錄版本8 個工具