1. Conduid
  2. Search
  3. Indian Legal Research Assistant
MCP server · Search

Indian Legal Research Assistant

Automate and accelerate Indian legal research with intelligent tools that search precedents, extract legal principles, build research memos, format citations, and verify citation accuracy. Reduce research time from hours to minutes while ensuring professional and error-free legal outputs. Enhance productivity for legal practitioners with comprehensive and accurate legal data access.

Unclaimed last commit a year ago search
34Low

Scored 7 months ago · breakdown

About Indian Legal Research Assistant

Indian Legal Research Assistant is an MCP server published by Stoops0311 in the Search category: automate and accelerate Indian legal research with intelligent tools that search precedents, extract legal principles, build research memos, format citations, and verify citation accuracy. Reduce research time from hours to minutes while ensuring professional and error-free legal outputs. Enhance productivity for legal practitioners with comprehensive and accurate legal data access.

Six months or more without a commit doesn't mean the server is broken, but check the open issues before depending on it in production.

Install

From source
git clone https://github.com/Stoops0311/legalmcp

This server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.

Tools (5)

build_case_compilationAutomatically compile comprehensive legal research memos with organized cases and citations

Parameters not published.

extract_legal_principlesExtract specific legal principles and relevant paragraphs from cases with pinpoint citations

Parameters not published.

format_citationsGenerate properly formatted legal citations in various Indian citation styles

Parameters not published.

search_legal_precedentsIntelligently search IndianKanoon for relevant cases with smart ranking and filtering

Parameters not published.

verify_citationsValidate citation accuracy and find missing information

Parameters not published.

Ask AI

✦

Ask AI about Indian Legal Research Assistant

Powered by Claude · Grounded in docs

I know everything about Indian Legal Research Assistant. Ask me about installation, configuration, usage, or troubleshooting.

Security checks

  • ✓README presentThe repository ships documentation.

5 checks have not been run yet.

README

LegalMCP - Indian Legal Research Assistant

An MCP (Model Context Protocol) server that provides intelligent legal research tools for Indian law practitioners, leveraging the IndianKanoon API to automate citation work and case law research.

🎯 Overview

LegalMCP transforms legal research from hours of manual work to minutes of automated analysis. It provides five specialized tools that work together to search precedents, extract legal principles, build research memos, format citations, and verify citation accuracy.

Key Benefits

  • Reduce research time from 3-4 hours to 30 minutes
  • Eliminate citation errors with automated formatting
  • Comprehensive coverage with intelligent search strategies
  • Professional output with properly structured legal memos

🛠️ Tools

1. search_legal_precedents

Search IndianKanoon for relevant cases with intelligent ranking based on:

  • Court hierarchy (Supreme Court > High Courts)
  • Recency and citation metrics
  • Multiple search variants for comprehensive coverage

2. extract_legal_principles

Extract specific legal principles from cases with:

  • Pinpoint paragraph-level citations
  • Context windows around key principles
  • Distinction between ratio decidendi and obiter dicta

3. build_case_compilation

Create comprehensive legal research memos featuring:

  • Multi-stage search strategy
  • Automatic organization by legal principles
  • Professional memo structure with citations

4. format_citations

Generate properly formatted citations in Indian legal styles:

  • AIR, SCC, Neutral, and SCC OnLine formats
  • Parallel citation discovery
  • Multiple output formats (full, short, footnote, bibliography)

5. verify_citations

Validate and correct citations with:

  • Accuracy verification against IndianKanoon database
  • Error detection and correction suggestions
  • Cross-reference validation

🚀 Installation

Prerequisites

  • Node.js 18+
  • npm or yarn
  • IndianKanoon API key

Setup

  1. Clone the repository:
git clone https://github.com/Stoops0311/LegalMCP.git
cd LegalMCP
  1. Install dependencies:
npm install
  1. Configure your API key (see Configuration section)

  2. Start development server:

npm run dev

⚙️ Configuration

The server requires an IndianKanoon API key. Configuration can be provided via:

Option 1: Environment Variables

export INDIANKANOON_API_KEY="your-api-key-here"

Option 2: Session Configuration

When using with Smithery or MCP clients, provide configuration:

{
  "indianKanoonApiKey": "your-api-key",
  "defaultCourt": "supremecourt",
  "maxSearchResults": 20,
  "citationStyle": "SCC OnLine",
  "enableCaching": true,
  "cacheTimeout": 60
}

Configuration Options

Option Type Description Default
indianKanoonApiKey string Required - Your IndianKanoon API key -
defaultCourt string Preferred court for searches "supremecourt"
maxSearchResults number Maximum search results (10-100) 20
citationStyle string Default citation format "SCC OnLine"
enableCaching boolean Cache search results true
cacheTimeout number Cache timeout in minutes 60

📖 Usage Examples

Basic Search

// Search for trademark infringement cases
await search_legal_precedents({
  query: "trademark infringement",
  court: "delhi",
  dateRange: { from: "2015", to: "2024" }
})

Extract Legal Principles

// Extract principles about consumer confusion
await extract_legal_principles({
  documentId: "178980348",
  searchTerms: ["consumer confusion", "deceptive similarity"]
})

Build Research Memo

// Create comprehensive research on a legal issue
await build_case_compilation({
  issue: "Criminal defamation under Section 499 IPC",
  subIssues: ["public interest defense", "truth as justification"],
  jurisdiction: ["supremecourt", "delhi"]
})

🏗️ Architecture

Technology Stack

  • TypeScript - Type-safe development
  • MCP SDK - Model Context Protocol implementation
  • Zod - Schema validation
  • Smithery - MCP server scaffold and deployment

API Integration

  • Uses IndianKanoon API v1.0
  • POST requests with token authentication
  • Intelligent error handling and retry logic
  • Response caching for performance

Performance Optimizations

  • Parallel API requests for search variants
  • Smart caching (metadata: 24h, search: 1h)
  • Fragment API prioritization over full documents
  • Result deduplication across searches

📚 Documentation

Project Documentation

  • analysis.md - Comprehensive IndianKanoon API analysis
  • plan.md - Detailed implementation plan for each tool
  • prompt.md - System prompt for AI assistants using the tools
  • CLAUDE.md - Development guidelines for Claude Code

Smithery Documentation

🚢 Deployment

Local Development

npm run dev

Production Deployment

Deploy via Smithery for easy client access:

  1. Build the Docker image
  2. Configure smithery.yaml
  3. Deploy to Smithery platform

See deployments.md for detailed instructions.

🤝 Integration

With AI Assistants

LegalMCP is designed to work with AI assistants that support MCP:

  • Claude (via Claude Desktop or API)
  • Other MCP-compatible LLMs

With Legal Tech Stack

Can be integrated with:

  • Document management systems
  • Legal practice management software
  • Citation management tools

📈 Performance Metrics

  • Search Speed: < 2 seconds for multi-variant searches
  • Extraction Accuracy: 95%+ for principle identification
  • Citation Validation: 98%+ accuracy for format verification
  • Cache Hit Rate: 60%+ for common searches

🔒 Security

  • API keys are never logged or exposed
  • Stateless design with no data persistence
  • Secure token-based authentication
  • Input validation on all parameters

📝 License

This project is licensed under the MIT License - see the LICENSE file for details.

🙏 Acknowledgments

  • IndianKanoon for providing comprehensive legal database access
  • Anthropic for MCP SDK and Smithery platform
  • Indian legal community for inspiration and use cases

📞 Support

For issues, questions, or contributions:

🚦 Status

Current Version: 1.0.0
Status: Active Development
API Compatibility: IndianKanoon API v1.0


Built with ❤️ for the Indian legal community

README copy captured when this server was indexed; it may lag the repository. The original is authoritative.

Questions

About Indian Legal Research Assistant

How do I install Indian Legal Research Assistant?

No package has been published for this server, so install it from source: clone the repository and follow its README.

Is Indian Legal Research Assistant safe to use with an AI agent?

Its trust score is 34 out of 100 (low). It passes 1 of the 1 static security checks run so far. It has no ConduID identity yet, so agent calls to it are not receipted.

Is Indian Legal Research Assistant still maintained?

The last commit was a year ago. That's long enough that you should check whether the maintainer is responding to issues before depending on it.