courtlistener-mcp
v1.3.2Official MCP server for CourtListener
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
search Search
Search for case law, dockets, judges, and oral arguments. `absolute_url` is a relative path; prefix it with `https://www.courtlistener.com`. Pass IDs, not URLs, to other tools.
get_endpoint_schema Get Endpoint Schema
Get the schema for a CourtListener API endpoint. Use this for additional API endpoints which do not have a dedicated MCP tool. These endpoints are distinct from the search endpoint and often include more detailed metadata.
| Parameter | Type | Description |
|---|---|---|
endpoint_id * | string | The endpoint to get the schema for. Search is not an endpoint here; use the `search` tool. |
call_endpoint Call API Endpoint
Call CourtListener API endpoint. Use this for additional API endpoints which do not have a dedicated MCP tool. These endpoints are distinct from the search endpoint and often include more detailed metadata.
| Parameter | Type | Description |
|---|---|---|
endpoint_id * | string | The endpoint to call. Search is not an endpoint here; use the `search` tool. |
num_results | integer | Number of results to return (1-100). Defaults to 20. |
query | object | Should match the endpoint schema returned by the `get_endpoint_schema` tool. Every endpoint parameter goes in here, including `fields` — unlike the `search` tool, this tool takes no top-level `field… |
get_endpoint_item Get Item by ID
Get an item by ID from a CourtListener API endpoint.
| Parameter | Type | Description |
|---|---|---|
endpoint_id * | string | The endpoint to get an item from. Search is not an endpoint here; use the `search` tool. |
item_id * | The ID of the item to get. | |
fields | Filter which fields are returned. Use the field names from the endpoint's own schema (see the `get_endpoint_schema` tool), not the field names returned by the `search` tool. |
get_choices Get Field Choices
List every valid value for a field whose choices are too long to include in its schema. Only the fields named in `field_name` need this; every other choice field lists its values in the schema where it appears.
| Parameter | Type | Description |
|---|---|---|
field_name * | string | The field to list choices for: `court` (search), `dob_state` (people, search), `dod_state` (people), `location_state` (positions), `position_type` (positions), `source` (dockets). |
get_counts Get Result Count
Get the number of results from a previous query. Some endpoints return the count lazily. Use this tool to retrieve the count from a previous query if it is not available.
| Parameter | Type | Description |
|---|---|---|
query_id * | string | The query ID (short UUID) to get the count from. |
get_more_results Get More Results
Get more results from a previous query. Use this tool to continue paginating through results returned by the `search` or `call_endpoint` tools.
| Parameter | Type | Description |
|---|---|---|
query_id * | string | The query ID (short UUID) from a previous search or call_endpoint result. |
num_results | integer | Number of results to return (1-100). Defaults to 20. |
read_document Read Document
Read the full text of a court opinion or RECAP document. Fetches the document text and either returns it in full or as one or more paginated chunks. For opinions, uses the ``html_with_citations`` field (the most complete text representation), falling back to the opinion's other text fields when it is empty. For RECAP documents, uses ``plain_text``. The response's ``text_source`` names the field the text came from. **Usage patterns** - *Full read*: omit ``chunk_index`` to receive the entire document along with its ``total_chars``. - *Single chunk*…
| Parameter | Type | Description |
|---|---|---|
chunk_index | 0-based index (or list of indexes) of the chunk(s) to return. Omit to receive the full document text. | |
chunk_size | integer | Characters per chunk (default 8000). Only relevant when chunk_index is supplied. |
cluster_id | integer | ID of an opinion cluster (the `cluster_id` in search results). Reads the case's main opinion; every opinion in the cluster (with type and author) is listed in `cluster_opinions`, so concurrences and… |
opinion_id | integer | ID of the opinion to read. |
recap_document_id | integer | ID of the RECAP document to read. |
search_document Search Document
Search for snippets within one or more court opinions or RECAP documents. Performs a case-insensitive literal search (similar to grep) and returns up to 20 matching excerpts per document with surrounding context. Use this to locate specific language—a party name, a statutory citation, a key phrase—without reading whole documents. Pass a list of IDs (up to 10) to search several documents in a single call. Results are returned as a list; errors on individual documents are included as an ``error`` field so one unavailable document does not abort the rest.…
| Parameter | Type | Description |
|---|---|---|
query * | string | Literal phrase to search for (case-insensitive). Up to 20 matches are returned per document. |
cluster_id | integer | ID of an opinion cluster (the `cluster_id` in search results). Searches the case's main opinion; every opinion in the cluster (with type and author) is listed in `cluster_opinions`, so concurrences a… |
opinion_id | ID or list of IDs of opinions to search (up to 10). | |
recap_document_id | ID or list of IDs of RECAP documents to search (up to 10). | |
snippet_size | integer | Characters of context to show on each side of a match (default 300). |
extract_citations Extract Citations
Extract and resolve legal citations from text using eyecite. Runs locally with no API calls or rate limits. Handles all citation types: full case citations, id., supra, short cites, and statutes. Use this tool to understand the citation structure of a document before selectively verifying citations with analyze_citations.
| Parameter | Type | Description |
|---|---|---|
text * | string | Legal text to extract citations from, up to 1,000,000 characters. |
resolve | boolean | Whether to resolve id./supra/short cites to their antecedents. Defaults to true. |
analyze_citations Analyze Citations
Analyze and verify legal citations against CourtListener. Extracts all citations locally using eyecite, then verifies each unique case citation against CourtListener's database via the citation-lookup API. Returns case name, date, citation count, and verification status for each citation. For documents with more than 250 unique case citations, the first batch is verified immediately and a job_id is returned. Use resume_citation_analysis to continue verifying remaining citations. Terminology in the output: * **citation occurrence** — each citation as it…
| Parameter | Type | Description |
|---|---|---|
cluster_id | integer | ID of an opinion cluster (the `cluster_id` in search results). Analyzes the case's main opinion; ids for any concurrences or dissents are named in the output so they can be analyzed separately. |
opinion_id | integer | Alternatively, if the opinion is available in CourtListener, you can provide the opinion ID |
text | string | Legal text to analyze. Citations will be extracted locally and verified against CourtListener. Up to 1,000,000 characters. |
resume_citation_analysis Resume Citation Analysis
Resume verifying citations from a previous analysis. Use this after analyze_citations returns with pending citations due to rate limiting (more than 250 unique case citations). Takes the job_id and verifies the next batch.
| Parameter | Type | Description |
|---|---|---|
job_id * | string | The job ID (short UUID) from a previous analyze_citations call. |
wait | boolean | If true, the server sleeps through the upstream rate-limit window (capped at ~90s) and retries automatically. Use this after a previous call reported a short wait_until. Default false: the tool return… |
create_search_alert Create Search Alert
Create a search alert on CourtListener. Use `call_endpoint` with endpoint_id "alerts" to list existing alerts.
| Parameter | Type | Description |
|---|---|---|
name * | string | A name for the alert. |
query * | Search query as a URL query string (e.g. "q=test&court=scotus") or a structured dict (e.g. {"q": "test", "court": "scotus"}). | |
rate * | string | Alert frequency: "rt" (real time), "dly" (daily), "wly" (weekly), "mly" (monthly), or "off" (disabled). |
alert_type | string | Optional alert type matching the search `type` in the query: "o" (opinion), "r" (recap), "d" (docket), or "oa" (oral argument). If omitted, the server infers it from the query. |
delete_search_alert Delete Search Alert
Delete a search alert on CourtListener. Use `call_endpoint` with endpoint_id "alerts" to list existing alerts.
| Parameter | Type | Description |
|---|---|---|
id * | integer | The ID of the search alert to delete. |
subscribe_to_docket_alert Subscribe to Docket Alert
Subscribe to alerts for a docket on CourtListener. Use `call_endpoint` with endpoint_id "docket-alerts" to list existing subscriptions.
| Parameter | Type | Description |
|---|---|---|
docket * | integer | The docket ID to subscribe to. |
unsubscribe_from_docket_alert Unsubscribe from Docket Alert
Unsubscribe from alerts for a docket on CourtListener. Looks up the alert by docket ID and deletes it, so you only need the docket ID (not the alert ID). Use `call_endpoint` with endpoint_id "docket-alerts" to list existing subscriptions.
| Parameter | Type | Description |
|---|---|---|
docket * | integer | The docket ID to unsubscribe from. |
pray_for_document Pray for Document
Request a RECAP document that is not yet available on CourtListener through Pray and Pay. Prayers are pooled across users: when anyone buys the document from PACER, it is added to CourtListener for free and everyone praying for it is emailed. Nothing is charged to the user, but fulfillment is not immediate and not guaranteed. Only documents whose `is_available` is false need a prayer. This tool checks first and, if the document is already available, tells you to read it with `read_document` instead. Prayers count against a daily per-user limit, so only pra…
| Parameter | Type | Description |
|---|---|---|
recap_document_id * | integer | ID of the RECAP document to pray for (the `id` of a `recap_documents` record, not a docket entry or docket ID). |
withdraw_prayer Withdraw Prayer
Withdraw a pending Pray and Pay request for a RECAP document. Looks up the user's pending prayer by RECAP document ID and deletes it, so you only need the document ID (not the prayer ID). Prayers that have already been granted cannot be withdrawn and do not need to be: the document is available. Use `call_endpoint` with endpoint_id "prayers" to list the user's pending prayers.
| Parameter | Type | Description |
|---|---|---|
recap_document_id * | integer | ID of the RECAP document whose prayer to withdraw. |
create_tag Create Tag
Create a tag on CourtListener: a named collection of dockets. Tags are private unless published. Returns the new tag; pass its `id` to `add_docket_to_tag` to add dockets to it. Use `call_endpoint` with endpoint_id "tags" to list tags. The list includes other users' published tags, which can be read but not changed; `published=false` lists only the user's own private tags.
| Parameter | Type | Description |
|---|---|---|
name * | string | Short name, unique among the user's tags: letters, numbers, hyphens and underscores only, e.g. `patent-cases`. It appears in the tag's URL. |
description | string | What the tag collects, in Markdown. |
published | boolean | Whether anyone can see the tag and its dockets. Tags are private unless published. |
title | string | A longer, readable title. |
update_tag Update Tag
Change one of the user's tags on CourtListener: rename it, retitle or redescribe it, or publish or unpublish it. Only the fields you pass change. Publishing a tag lets anyone see it and its dockets. Use `call_endpoint` with endpoint_id "tags" to list tags.
| Parameter | Type | Description |
|---|---|---|
tag_id * | integer | ID of one of the user's tags (the `id` from `create_tag`, or from `call_endpoint` with endpoint_id "tags"). |
description | string | What the tag collects, in Markdown. |
name | string | Short name, unique among the user's tags: letters, numbers, hyphens and underscores only, e.g. `patent-cases`. It appears in the tag's URL. |
published | boolean | Whether anyone can see the tag and its dockets. Tags are private unless published. |
title | string | A longer, readable title. |
delete_tag Delete Tag
Delete one of the user's tags on CourtListener. This removes the tag from every docket in it; the dockets themselves are untouched. To take a single docket out of a tag, use `remove_docket_from_tag` instead. Use `call_endpoint` with endpoint_id "tags" to list tags.
| Parameter | Type | Description |
|---|---|---|
tag_id * | integer | ID of one of the user's tags (the `id` from `create_tag`, or from `call_endpoint` with endpoint_id "tags"). |
add_docket_to_tag Add Docket to Tag
Add a docket to one of the user's tags on CourtListener. Does nothing if the docket is already in the tag. To start a new tag, use `create_tag` first. Use `call_endpoint` with endpoint_id "docket-tags" to see which dockets are in a tag (filter by `tag`).
| Parameter | Type | Description |
|---|---|---|
docket_id * | integer | ID of the docket. |
tag_id * | integer | ID of one of the user's tags (the `id` from `create_tag`, or from `call_endpoint` with endpoint_id "tags"). |
remove_docket_from_tag Remove Docket from Tag
Remove a docket from one of the user's tags on CourtListener. Looks the docket up in the tag by docket ID, so you don't need the docket tag's own ID. The tag and the docket themselves are untouched. Use `call_endpoint` with endpoint_id "docket-tags" to see which dockets are in a tag (filter by `tag`).
| Parameter | Type | Description |
|---|---|---|
docket_id * | integer | ID of the docket. |
tag_id * | integer | ID of one of the user's tags (the `id` from `create_tag`, or from `call_endpoint` with endpoint_id "tags"). |
get_api_usage Get API Usage
Check the user's CourtListener API usage and rate limits. Returns live usage per throttle scope, daily request counts for the last 14 days, and membership status. The `user` scope is the one that matters: it is the main API quota and governs nearly every endpoint and tool. When the user asks about their rate limit, remaining requests, or 429 errors, answer from the `user` scope; `summary` states it in plain language. The other scopes are narrow: `citations` counts citation lookups, `fetch` counts PACER fetch requests, and `api_usage` only limits this usage…
wiki_list_pages List Wiki Pages
List the Free Law Project wiki pages you can read. Returns each page's `path` (pass it to `wiki_read_page`), title, description, `updated_at` and `url`, ordered by directory, then title. Public pages are always listed; pages for FLP staff and pages shared with you appear when your CourtListener account's email has access to them on the wiki. Pages come 50 at a time; the response gives the `total` and, when there are more, the `next_page` to pass as `page`. To find pages on a topic, `wiki_search` is usually better.
| Parameter | Type | Description |
|---|---|---|
page | integer | Page of results to return (default 1). |
wiki_search Search Wiki
Search the Free Law Project wiki pages you can read. Full-text search over page titles and content. The query supports quoted phrases, `-word` to exclude a word, `title:word`, and `in:<directory path>` to search one directory. Each result carries the page's `path` (pass it to `wiki_read_page`), title, description, `updated_at`, a `snippet` of the matching text and a `url` to open it. Results come 20 to a page, best first; the response gives the `total` and, when there are more, the `next_page` to pass as `page`.
| Parameter | Type | Description |
|---|---|---|
q * | string | The search query. |
page | integer | Page of results to return (default 1). |
wiki_read_page Read Wiki Page
Read one Free Law Project wiki page as Markdown. `path` is the page's `path` from `wiki_list_pages` or `wiki_search`, e.g. `engineering/deploys`. The page's `url` works too, as do links found in page content, such as `/c/engineering/deploys/`. An `#anchor` on any of them is ignored. Returns the page's path, title, description, `updated_at`, `url` and its `content` as Markdown, with data placeholders filled in and wiki links resolved. Directories aren't pages: to see a directory's pages, search it with `in:<directory path>`.
| Parameter | Type | Description |
|---|---|---|
path * | string | The page's path, e.g. `engineering/deploys`, its wiki URL, or a link from page content (`#...` or `/c/...`). |
raw | boolean | Return the page's source instead, including wiki syntax such as `#path` links and `[[ placeholders ]]`. Use it to see exactly how a page is written; leave it off to read the page. |