freelawproject/courtlistener-api-client ? reverse-engineered prompt

Reverse engineered prompt

Build me a Python client for the CourtListener API so I can easily search and pull legal data like opinions, dockets, judges, attorneys, and RECAP documents from code.

I want it to be simple to use, with a clean way to set an API token and then call things like get a single record or list records with filters. For list results, make pagination easy so I can loop through everything without having to manually manage pages. It should also feel good for LLM tools, so if there’s a way to include support for an MCP server that Claude Desktop or Cursor can connect to, please set that up too or make it easy to run locally.

Use the current CourtListener API docs if you need to check endpoint details or filters, and make sure the package is polished enough to install and use right away.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab