GnistAI GnistAI
Log in

Court Listener

U.S. court opinions, oral arguments, and judicial records.

Overview   |   MCP Docs   |   API Docs   |   OpenAPI   |   Playground   |   Tutorial   |   Toolkits   |   Home
status: healthy status status healthy healthy tools: 6 tools tools 6 6 Legal

Data source: CourtListener / Free Law Project

MCP MCP Protocol

Endpoint https://context.gnist.ai/mcp/court-listener/
claude_desktop_config.json
{
  "mcpServers": {
    "gnist-court-listener": {
      "url": "https://context.gnist.ai/mcp/court-listener/",
      "headers": {
        "Gnist-API-Key": "YOUR_API_KEY"
      }
    }
  }
}
Shell
curl -X POST "https://context.gnist.ai/mcp/court-listener/" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -H "Gnist-API-Key: YOUR_API_KEY" \
  -d '{"jsonrpc": "2.0", "method": "tools/call", "id": 1, "params": {"name": "search_opinions", "arguments": {"query": "example"}}}'

API REST API

API Root https://context.gnist.ai/rest/court-listener/

6 endpoints available:

Shell
curl "https://context.gnist.ai/rest/court-listener/search_opinions?query=example" \
  -H "Gnist-API-Key: YOUR_API_KEY"
Python
import httpx

resp = httpx.get(
    "https://context.gnist.ai/rest/court-listener/search_opinions",
    headers={"Gnist-API-Key": "YOUR_API_KEY"},
    params={
        "query": "example"
},
)
print(resp.json())

OpenAPI Spec  ·  Full API Docs

CLI Command Line

Command gc court-listener

CLI documentation will be available when the GnistAI SDK is published.

Install
pip install gnistai

Available Tools (6)

search_opinions
Search US court opinions by keyword, phrase, or party name.
ParameterTypeRequiredDescription
querystringrequiredSearch query — keyword, phrase, party name, or legal concept (e.g. "Apple Samsung patent", "qualified immunity", "securities fraud"). Use quotes for exact phrase matching (e.g. '"tortious in...
courtanyoptionalJurisdiction filter — CourtListener court code. Common values: "scotus" (Supreme Court), "ca9" (9th Circuit), "ca2" (2nd Circuit), "cadc" (DC Circuit), "dcd" (DC District), "nysd" (SDNY...
date_fromanyoptionalReturn only opinions filed on or after this date (YYYY-MM-DD).
date_toanyoptionalReturn only opinions filed on or before this date (YYYY-MM-DD).
limitintegeroptionalMaximum results to return (1–100, default 20). (default: 20)
get_opinion
Retrieve full details for a court opinion cluster by ID.
ParameterTypeRequiredDescription
cluster_idintegerrequiredCourtListener opinion cluster ID (from search_opinions results).
search_dockets
Search court dockets by party name to find litigation history.
ParameterTypeRequiredDescription
party_namestringrequiredParty name to search for — company, person, or organization (e.g. "Theranos", "Elizabeth Holmes", "Meta Platforms"). Exact phrase matching is applied automatically.
courtanyoptionalJurisdiction filter — CourtListener court code (e.g. "ca9", "nysd"). If omitted, searches all courts.
year_fromanyoptionalInclude only cases filed in this year or later.
year_toanyoptionalInclude only cases filed in this year or earlier.
limitintegeroptionalMaximum results to return (1–100, default 20). (default: 20)
get_docket
Retrieve full details for a court docket by ID.
ParameterTypeRequiredDescription
docket_idintegerrequiredCourtListener docket ID (from search_dockets results).
get_citations
Retrieve the citation graph for a court opinion.
ParameterTypeRequiredDescription
cluster_idintegerrequiredCourtListener opinion cluster ID.
report_feedback
Report a bug, feature request, or general feedback for this data source.
ParameterTypeRequiredDescription
feedbackstringrequired
feedback_typestringoptional (default: "general")

Related