MCP Hub
Back to servers

legal-mcp

Enables US case law search, citation parsing, practice management via Clio, and federal court filings through PACER.

glama
Updated
May 2, 2026

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

  1. Create a free account at https://www.courtlistener.com/sign-in/
  2. Go to your profile and copy your API token
  3. Add it as the X-CourtListener-Token header 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

ToolDescription
search_case_lawSearch 4M+ US court opinions by topic, court, or date range
get_case_detailsGet full text and details of a specific opinion
get_case_recordGet docket info — parties, attorneys, judges, procedural history
find_citing_casesFind cases that cite a given opinion
find_cited_casesFind cases cited by a given opinion
parse_legal_citationsParse Bluebook-format citations from text
list_available_courtsList all US courts and their filter codes
list_reporter_abbreviationsReference for reporter abbreviations (U.S., F.3d, etc.)
search_federal_casesSearch PACER for federal cases (requires PACER credentials)
get_federal_caseGet federal case details from PACER
get_court_filingsGet docket entries for a federal case from PACER
search_clientsSearch Clio contacts (requires Clio token)
search_mattersSearch Clio matters/cases
get_matter_detailsGet full matter details from Clio
get_time_entriesGet billable hours from Clio
get_matter_tasksGet tasks for a matter in Clio
get_matter_documentsSearch documents in Clio
get_calendarGet 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

VariableDescription
PORTServer port (default: 8000)
COURTLISTENER_TOKENFallback CourtListener API token
CLIO_TOKENFallback Clio OAuth token
PACER_USERNAMEPACER login
PACER_PASSWORDPACER password
LEGAL_MCP_DEMOSet to true to use demo data without API keys

Reviews

No reviews yet

Sign in to write a review