eu.ansvar/india-law-mcp

Indian legislation via MCP — full-text search across statutes and provisions

0Apache-2.0search

Install

Config snippet generator goes here (5 client tabs)

README

# Indian Law MCP Server

**The India Code alternative for the AI age.**

[![npm version](https://badge.fury.io/js/%40ansvar/india-law-mcp.svg)](https://www.npmjs.com/package/@ansvar/india-law-mcp)
[![MCP Registry](https://img.shields.io/badge/MCP-Registry-blue)](https://registry.modelcontextprotocol.io)
[![License](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)
[![GitHub stars](https://img.shields.io/github/stars/Ansvar-Systems/India-law-mcp?style=social)](https://github.com/Ansvar-Systems/India-law-mcp)
[![CI](https://github.com/Ansvar-Systems/India-law-mcp/actions/workflows/ci.yml/badge.svg)](https://github.com/Ansvar-Systems/India-law-mcp/actions/workflows/ci.yml)
[![Database](https://img.shields.io/badge/database-pre--built-green)]()
[![Provisions](https://img.shields.io/badge/provisions-31%2C198-blue)]()

Query **846 Indian Acts** -- from the Digital Personal Data Protection Act and Information Technology Act to the Companies Act, Aadhaar Act, and more -- directly from Claude, Cursor, or any MCP-compatible client.

If you're building legal tech, compliance tools, or doing Indian legal research, this is your verified reference database.

Built by [Ansvar Systems](https://ansvar.eu) -- Stockholm, Sweden

---

## Why This Exists

Indian legal research is scattered across India Code, the Gazette of India, and commercial platforms like SCC Online and Manupatra. Whether you're:
- A **lawyer** validating citations under the IT Act or DPDPA in a brief or contract
- A **compliance officer** checking CERT-In incident reporting obligations or DPDPA consent requirements
- A **legal tech developer** building tools on Indian Central Acts
- A **researcher** tracing legislative history from pre-independence statutes to the 2023 DPDPA

...you shouldn't need dozens of browser tabs and manual PDF cross-referencing. Ask Claude. Get the exact provision. With context.

This MCP server makes Indian law **searchable, cross-referenceable, and AI-readable**.

---

## Quick Start

### Use Remotely (No Install Needed)

> Connect directly to the hosted version -- zero dependencies, nothing to install.

**Endpoint:** `https://india-law-mcp.vercel.app/mcp`

| Client | How to Connect |
|--------|---------------|
| **Claude.ai** | Settings > Connectors > Add Integration > paste URL |
| **Claude Code** | `claude mcp add india-law --transport http https://india-law-mcp.vercel.app/mcp` |
| **Claude Desktop** | Add to config (see below) |
| **GitHub Copilot** | Add to VS Code settings (see below) |

**Claude Desktop** -- add to `claude_desktop_config.json`:

```json
{
  "mcpServers": {
    "india-law": {
      "type": "url",
      "url": "https://india-law-mcp.vercel.app/mcp"
    }
  }
}
```

**GitHub Copilot** -- add to VS Code `settings.json`:

```json
{
  "github.copilot.chat.mcp.servers": {
    "india-law": {
      "type": "http",
      "url": "https://india-law-mcp.vercel.app/mcp"
    }
  }
}
```

### Use Locally (npm)

```bash
npx @ansvar/india-law-mcp
```

**Claude Desktop** -- add to `claude_desktop_config.json`:

**macOS:** `~/Library/Application Support/Claude/claude_desktop_config.json`
**Windows:** `%APPDATA%\Claude\claude_desktop_config.json`

```json
{
  "mcpServers": {
    "india-law": {
      "command": "npx",
      "args": ["-y", "@ansvar/india-law-mcp"]
    }
  }
}
```

**Cursor / VS Code:**

```json
{
  "mcp.servers": {
    "india-law": {
      "command": "npx",
      "args": ["-y", "@ansvar/india-law-mcp"]
    }
  }
}
```

---

## Example Queries

Once connected, just ask naturally:

- *"What does the IT Act say about data protection and intermediary liability?"*
- *"Find provisions about consent under the Digital Personal Data Protection Act 2023"*
- *"Is the Companies Act 2013 still in force?"*
- *"What does the Aadhaar Act say about authentication and data protection?"*
- *"Search for cybersecurity requirements in Indian legislation"*
- *"What are the CERT-In incident reporting obligations?"*
- *"Validate this legal citation"*
- *"Build a legal stance on personal data processing under DPDPA"*

---

## Laws Covered

| Law | Year | Key Topic |
|-----|------|-----------|
| **Digital Personal Data Protection Act (DPDPA)** | 2023 | India's comprehensive data protection law |
| **Information Technology Act** | 2000 (amended 2008) | Cybercrime, intermediary liability, electronic records |
| **IT (SPDI) Rules** | 2011 | Sensitive personal data protection for body corporates |
| **IT (Intermediary Guidelines) Rules** | 2021 | Platform obligations, content moderation, grievance redressal |
| **Companies Act** | 2013 | Corporate governance, director duties, compliance |
| **Consumer Protection Act** | 2019 | Consumer rights, e-commerce, unfair trade practices |
| **Aadhaar Act** | 2016 | Biometric identity system, authentication, data protection |
| **Constitution (selected provisions)** | 1950 (amended) | Fundamental rights, Article 21 (right to privacy) |

Additionally