
CourtListener MCP Server
MCPOfficial hosted MCP from the nonprofit Free Law Project: search US federal and state court opinions, dockets and judges, extract and verify case citations in documents, and subscribe to case alerts. Needs a free CourtListener account (browser sign-in); a lawyer should review results.
CourtListener API Client
A Python client for the CourtListener API, providing access to millions of legal opinions, dockets, judges, and more from Free Law Project.
Using an LLM? See the CourtListener MCP and its documentation.
Installation
pip install courtlistener-api-client
Authentication
You'll need a CourtListener API token. You can get one by creating an account and generating a token in your profile settings.
Set it as an environment variable:
export COURTLISTENER_API_TOKEN="your-token-here"
Or pass it directly to the client:
from courtlistener import CourtListener
client = CourtListener(api_token="your-token-here")
Quickstart
from courtlistener import CourtListener
client = CourtListener()
# Get a specific opinion by ID
opinion = client.opinions.get(1)
# Search for opinions
response = client.opinions.list(cluster__date_filed__gte="2020-01-01")
# Access results from the current page
for opinion in response.get_results():
print(opinion)
# Check the total count of matching results
print(response.get_count())
# Iterate through all results across pages
response = client.dockets.list(court="scotus")
for docket in response:
print(docket)
Pagination
List queries return a ResourceIterator that handles pagination automatically:
results = client.dockets.list(court="scotus")
# Iterate through all results across all pages
for docket in results:
print(docket)
# Or navigate pages manually
results = client.dockets.list(court="scotus")
print(results.get_results()) # current page results
if results.has_next():
results.next()
print(results.get_results()) # next page results
Lookups
A field's lookups are the comparisons you can filter it by, beyond an exact match. The endpoint pages list them after each field, as in date_filed: string (date) (lookups: gt, gte, lt, lte, range, …). Add one to a field name with a double underscore, or pass a dict of lookups:
client.clusters.list(date_filed__gte="2020-01-01")
client.clusters.list(date_filed={"gte": "2020-01-01", "lt": "2021-01-01"})
Fields that point at another endpoint take filters on that endpoint the same way, such as client.opinions.list(cluster__date_filed__gte="2020-01-01").
Available Endpoints
For the full list of endpoints and details about their operations, see the documentation.
API usage and rate limits
client.api_usage.get() returns your live throttle usage per scope and rate,
daily request counts for the last 14 days, and membership status. The endpoint
has its own throttle scope, so checking usage never spends the quota being
checked and it stays reachable when you are rate limited.
usage = client.api_usage.get()
for row in usage["current_usage"]:
print(row["scope"], row["rate"], row["remaining"], row["reset_at"])
print(usage["historical_usage"]["total"])
Async
AsyncCourtListener mirrors CourtListener method for method. Anything that
makes a request is awaited, iteration uses async for, and the client is an
async context manager.
from courtlistener import AsyncCourtListener
async with AsyncCourtListener() as client:
opinion = await client.opinions.get(1)
results = client.dockets.list(court="scotus")
async for docket in results:
print(docket)
Ressources associées

LegalMCP
MCPTaps CourtListener's 4M+ US court opinions: search case law by topic, trace citing and cited cases, and parse Bluebook citations; with accounts configured it also queries PACER federal dockets and Clio matters and time entries. Needs Python (uv); a licensed attorney must review results.
Mahender22/legal-mcp69
Legal MCP Server
MCPLocal MCP for paralegal work: analyzes clause risk in Word contracts, compares two contract versions, extracts parties, dates and other key terms, outlines pleadings, and optionally searches US case law via CourtListener. US-focused; needs local Python. A lawyer must review results.
agentic-ops/legal-mcp42
Korean Law MCP
MCPSearches Korean statutes, case law, administrative rules and local ordinances via the Korean Ministry of Government Legislation's Open API, verifies whether cited provisions and cases exist, and compares versions over time. Needs a free API key and Node.js; have a lawyer review results.
chrisryugj/korean-law-mcp2.9k
OpenContracts
MCPSelf-hosted open-source platform for contract and legal document analysis: detects cited laws and builds a citation graph, and its MCP server lets agents search the corpus, read texts and annotations, and follow citations. Deploy your own instance with Docker; have a lawyer review results.
Open-Source-Legal/OpenContracts1.6k
SEC EDGAR MCP
MCPQueries SEC EDGAR 10-K, 10-Q and 8-K filings, XBRL financial statements and insider trades, with links to the source documents for checking; for investment research and compliance due diligence. Free, no API key; needs uv and a SEC_EDGAR_USER_AGENT with your name and email.
stefanoamorelli/sec-edgar-mcp390
Taiwan Legal RAG
MCPFree remote MCP for Taiwan law (no sign-up or key): semantic search over 22M+ court rulings and administrative interpretations, exact statute lookup, and rulings linked across court levels with a citation whitelist to catch fake cites. Browser authorization on first use; have a lawyer review.
aa0101181514/tw-legal-rag359