courtlistener-mcp
MCP (Model Context Protocol) integration for Claude to conduct legal research on CourtListener with case law search and citation verification
GitHub Stars
5
User Rating
Not Rated
Favorites
0
Views
19
Forks
2
Issues
0
CourtListener MCP Integration
AI-powered legal research using CourtListener API with Model Context Protocol (MCP) integration for Claude
Project Overview
A comprehensive legal research tool that combines:
- MCP Server: Enables Claude to conduct legal research via CourtListener API
- Judicial Writing Analysis: AI model training for judge-specific opinion generation
- Citation Verification: Bluebook citation validation and formatting
๐ Features
MCP Integration (In Development)
- Case Law Search: Full-text search across millions of court opinions
- Citation Verification: Validate case citations and Bluebook formatting
- Docket Access: Retrieve detailed docket information
- Smart Filtering: Filter by jurisdiction, date, and precedential status
- Natural Language: Claude interprets natural language legal queries
Judicial Writing Analysis (Complete โ )
- Judge Style Profiles: Analyze individual judicial writing patterns
- Training Data Generation: Create AI training datasets from real opinions
- Citation Pattern Analysis: Extract citation integration styles
- Bluebook Compliance: Ensure proper legal citation formatting
๐ Repository Structure
courtlistener-mcp/
โโโ mcp-server/ # MCP server implementation
โ โโโ index.js # Main server entry point
โ โโโ tools/ # CourtListener API tools
โโโ judge-analysis/ # Judicial writing analysis
โ โโโ comprehensive_foley_training.txt
โ โโโ style-analyzer.js
โโโ docs/ # Documentation
โโโ examples/ # Usage examples
๐ ๏ธ Installation
# Clone the repository
git clone https://github.com/open-legal-tools/courtlistener-mcp.git
cd courtlistener-mcp
# Install dependencies
npm install
# Configure API credentials
cp .env.example .env
# Edit .env with your CourtListener API key
๐ Usage
MCP Server with Claude Desktop
- Add to your Claude desktop configuration:
{
"mcpServers": {
"courtlistener": {
"command": "node",
"args": ["path/to/courtlistener-mcp/mcp-server/index.js"],
"env": {
"COURTLISTENER_API_KEY": "your-api-key"
}
}
}
}
- Use natural language queries:
- "Find recent Supreme Court cases about AI and copyright"
- "Check if Miranda v. Arizona is still good law"
- "Show me 9th Circuit cases on qualified immunity from 2023"
Judge Writing Analysis
# Analyze a judge's writing style
node judge-analysis/style-analyzer.js --judge "Foley" --court "ind"
# Generate training data
node judge-analysis/training-generator.js --input opinions/ --output training.txt
๐ง API Reference
Available MCP Tools
search_opinions
{
query: string; // Search query
court?: string; // Court identifier
after?: string; // Date after (YYYY-MM-DD)
before?: string; // Date before (YYYY-MM-DD)
precedential?: boolean; // Only precedential opinions
}
verify_citation
{
citation: string; // Full citation string
}
get_citing_cases
{
id: string; // Opinion ID
limit?: number; // Maximum results
}
๐ฏ Current Status
- Phase 1 Complete โ : Judge writing style analysis and training data
- Phase 2 In Progress ๐: MCP server implementation
- Phase 3 Planned ๐: Advanced citation network analysis
๐ค Contributing
Contributions welcome! See CONTRIBUTING.md for guidelines.
๐ License
MIT License - see LICENSE for details.
๐ Acknowledgments
- CourtListener by the Free Law Project
- Model Context Protocol by Anthropic
- Indiana Court of Appeals for publicly available opinions
๐ Support
- Issues: GitHub Issues
- CourtListener API: Documentation
- MCP Docs: Anthropic MCP Guide
0
Followers
0
Repositories
0
Gists
0
Total Contributions
An end-to-end Model Context Protocol (MCP) solution that streamlines the entire UI/UX design workflow - from gathering inspiration to development handoff. This suite integrates multiple specialized MCP servers to automate and enhance the design process through AI assistance.