legal-mcp
Enables US case law search, citation parsing, practice management via Clio, and federal court filings through PACER.
README
Legal MCP Server
US case law search, citation parsing, practice management, and federal court filings for AI assistants — powered by FastMCP.
Hosted at https://legal-mcp-production.up.railway.app/mcp
Setup
Add the server to your Claude Code settings (~/.claude/settings.json):
{
"mcpServers": {
"legal-mcp": {
"type": "url",
"url": "https://legal-mcp-production.up.railway.app/mcp",
"headers": {
"X-CourtListener-Token": "YOUR_COURTLISTENER_TOKEN"
}
}
}
}
Getting a CourtListener token
- Create a free account at https://www.courtlistener.com/sign-in/
- Go to your profile and copy your API token
- Add it as the
X-CourtListener-Tokenheader above
Optional: Clio practice management
If you have a Clio account with API access, add your OAuth token:
"headers": {
"X-CourtListener-Token": "YOUR_COURTLISTENER_TOKEN",
"X-Clio-Token": "YOUR_CLIO_OAUTH_TOKEN"
}
Available tools
| Tool | Description |
|---|---|
search_case_law |
Search 4M+ US court opinions by topic, court, or date range |
get_case_details |
Get full text and details of a specific opinion |
get_case_record |
Get docket info — parties, attorneys, judges, procedural history |
find_citing_cases |
Find cases that cite a given opinion |
find_cited_cases |
Find cases cited by a given opinion |
parse_legal_citations |
Parse Bluebook-format citations from text |
list_available_courts |
List all US courts and their filter codes |
list_reporter_abbreviations |
Reference for reporter abbreviations (U.S., F.3d, etc.) |
search_federal_cases |
Search PACER for federal cases (requires PACER credentials) |
get_federal_case |
Get federal case details from PACER |
get_court_filings |
Get docket entries for a federal case from PACER |
search_clients |
Search Clio contacts (requires Clio token) |
search_matters |
Search Clio matters/cases |
get_matter_details |
Get full matter details from Clio |
get_time_entries |
Get billable hours from Clio |
get_matter_tasks |
Get tasks for a matter in Clio |
get_matter_documents |
Search documents in Clio |
get_calendar |
Get calendar entries from Clio |
Self-hosting
git clone https://github.com/jscottym/legal-mcp.git
cd legal-mcp
pip install -r requirements.txt
python -m legal_mcp.server
Or with Docker:
docker build -t legal-mcp .
docker run -p 8000:8000 -e COURTLISTENER_TOKEN=your_token legal-mcp
Environment variables
| Variable | Description |
|---|---|
PORT |
Server port (default: 8000) |
COURTLISTENER_TOKEN |
Fallback CourtListener API token |
CLIO_TOKEN |
Fallback Clio OAuth token |
PACER_USERNAME |
PACER login |
PACER_PASSWORD |
PACER password |
LEGAL_MCP_DEMO |
Set to true to use demo data without API keys |
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.