← Back to all projects

Legal Research AI

Legal Research AI project screenshot

An AI legal assistant grounded in a locally hosted corpus of about 75,000 UK judgments, the full UK statute book, the Civil Procedure Rules and 5,400 professional-conduct provisions. Research with verifiable citations, matter management with a CPR deadline engine, and drafting, with the same legal tools served to the web app and to any MCP client.

Technology

frontendflaskhtmxjinja2
backendpythonflaskmcprest-apitesseract-ocr
databasepostgresqlvector-searchbge-embeddings
devopskubernetesdockernetwork-policies
toolsclaudemcp-httpswiftmacos

Legal Research AI

The problem

General-purpose AI invents case law. Lawyers need answers they can check.

What I built

  • Corpus: about 75,000 UK judgments (UKSC, Court of Appeal, High Court and tribunals), the full UK statute book, 7,047 CPR rules and Practice Directions, and 5,400 professional-conduct provisions, held locally with full-text and vector search.
  • Grounded answers: every authority is checked against the corpus: citation verification, "is it still good law" checks and support checks that a case says what it is cited for.
  • Matter management: documents, deadlines from a CPR deadline engine, drafting and case preparation, built as a module on the multi-tenant framework.
  • MCP: the same legal tools are served to the web app and to any MCP client, so an AI assistant can research with them directly.

Private system: a walkthrough or live demo is available on request.