home / mcp / courtlistener legal research mcp server
An mcp for courtlistener
Configuration
View docs{
"mcpServers": {
"khizar-anjum-courtlistener-mcp": {
"url": "https://your-mcp-endpoint.example.com/mcp",
"headers": {
"COURTLISTENER_API_KEY": "YOUR_API_KEY"
}
}
}
}You run a CourtListener-based MCP server that enables legal research across thousands of courts. This server exposes Core Legal Research tools and integrates with CourtListener data, giving you programmatic access to case searches, case details, precedents, and PACER-related data through an MCP client.
Set up your MCP client to connect to the CourtListener MCP server and use the Core Legal Research tools to search cases, retrieve case details, find similar precedents, analyze outcomes, and track trends. You will provide an API key to access CourtListener data and then run the server locally to start querying through your MCP client. Use the clientβs workflow to build research pipelines, automate repetitive searches, and assemble comprehensive case insights.
Prerequisites you need on your machine: Node.js and npm. You may also use a Git client if you prefer to clone from source.
# Install from npm
npm install @khizar-anjum/courtlistener-mcp
# Or install from source
git clone https://github.com/khizar-anjum/courtlistener-mcp.git
cd courtlistener-mcp
npm install
# Setup API key for CourtListener access
echo 'COURTLISTENER_API_KEY="your_api_key"' > .env
# Generate the list of courts
npm run generate-courts
# Build and run the server
npm run build
npm run devThe server uses a CourtListener API key you must obtain and supply. You can get a free API key from CourtListener. After setup, you will run the server in development mode and connect your MCP client to the local runtime to perform searches, fetch case details, and analyze outcomes.
Find relevant cases using natural language legal problems
Deep dive into specific cases with full opinion text
Discover cases with similar legal reasoning
Analyze outcome patterns for success prediction
Understand judge's ruling patterns for strategy
Verify and expand legal citations
Find filing requirements and court rules
Identify trends in case law
Search federal PACER dockets via RECAP data
Track attorney representation patterns
Monitor case status and recent activity
Detailed timeline of filings and orders
In-depth case progression analysis
Access court documents with full-text extraction