# Indiakanoon Mcp

> MCP server that connects Claude Desktop to IndiaKanoon — search and retrieve Indian case law directly within your Claude conversation

- **Type:** MCP server
- **Install:** `agentstack add mcp-beral-lab-indiakanoon-mcp`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [beral-lab](https://agentstack.voostack.com/s/beral-lab)
- **Installs:** 0
- **Category:** [Search](https://agentstack.voostack.com/c/search)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [beral-lab](https://github.com/beral-lab)
- **Source:** https://github.com/beral-lab/indiakanoon-mcp

## Install

```sh
agentstack add mcp-beral-lab-indiakanoon-mcp
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# indiakanoon-mcp

A Model Context Protocol (MCP) server that connects Claude Desktop to 
IndiaKanoon, allowing Claude to search and retrieve Indian case law directly 
within your conversation.

## What it does

- **Search IndiaKanoon** — Run natural language legal queries and get back 
  case titles, URLs, and snippets from IndiaKanoon's database
- **Fetch full judgments** — Retrieve the complete text of any judgment 
  directly from IndiaKanoon by URL

## Demo

Ask Claude things like:
> "Search IndiaKanoon for Supreme Court cases on the last seen theory under 
  Section 302 IPC"

> "Fetch the full judgment in Trimukh Maroti Kirkan v. State of Maharashtra"

> "Find cases where the Delhi High Court has interpreted Article 21 in the 
  context of undertrial prisoners"

## Prerequisites

- [Node.js](https://nodejs.org) (LTS version)
- [Claude Desktop](https://claude.ai/download)

## Installation

**1. Clone the repository**
```bash
git clone https://github.com/YOUR_USERNAME/indiakanoon-mcp.git
cd indiakanoon-mcp
```

**2. Install dependencies**
```bash
npm install
npx playwright install chromium
```

**3. Add to Claude Desktop config**

Find your Claude Desktop config file:
- Windows: `%APPDATA%\Claude\claude_desktop_config.json`

Add the following to your `mcpServers` section:
```json
{
  "mcpServers": {
    "indiakanoon-mcp": {
      "command": "cmd",
      "args": ["/c", "node", "C:\\path\\to\\indiakanoon-mcp\\index.js"]
    }
  }
}
```

Replace `C:\\path\\to\\` with the actual path where you cloned the repo.

**4. Restart Claude Desktop**

The IndiaKanoon MCP will appear under Settings → Developer.

## Usage

Once installed, just ask Claude naturally:

- *"Search IndiaKanoon for cases on anticipatory bail under Section 438 CrPC"*
- *"Find Supreme Court judgments on the basic structure doctrine"*
- *"Get the full text of [IndiaKanoon URL]"*

Claude will automatically use the MCP to search and retrieve results.

## Limitations

- IndiaKanoon may rate-limit rapid successive requests
- Full text retrieval works best for judgments under 50,000 characters
- No login required — works entirely on IndiaKanoon's public database

## Disclaimer

This tool uses IndiaKanoon's publicly accessible website for personal legal 
research purposes. It is not affiliated with or endorsed by IndiaKanoon. Use 
responsibly and in accordance with IndiaKanoon's terms of service.

## Built with

- [Model Context Protocol SDK](https://github.com/anthropics/anthropic-sdk)
- [Playwright](https://playwright.dev)
- [IndiaKanoon](https://indiankanoon.org)

## Contributing

Pull requests welcome. Particularly interested in:
- Rate limiting improvements
- Better text extraction for older judgment formats
- Support for filtering by court, year, or bench

## License

MIT

## Source & license

This open-source MCP server is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [beral-lab](https://github.com/beral-lab)
- **Source:** [beral-lab/indiakanoon-mcp](https://github.com/beral-lab/indiakanoon-mcp)
- **License:** MIT

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/mcp-beral-lab-indiakanoon-mcp
- Seller: https://agentstack.voostack.com/s/beral-lab
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
