MCP.Market

BAILII UK Case Law MCP server

by paulieb89·io.github.paulieb89/bailii-mcp·v1.0.1·5 stars

Search UK case law on BAILII — court judgments with section extraction. Runs locally.

B82/100grade B
What users say
No reviews yet
Be the first
Safety scan
B82/100

full report

Adoption
New

5 stars

Reviews

Write one

Nobody has reviewed BAILII UK Case Law yet.

If you have run it, two minutes of your experience saves the next person an afternoon.

BAILII UK Case Law tools (3)

write = sends, deletes, buys or posts

Read from the package source without running it. The installed server may list more.

  • bailii_get_judgment

    Retrieve a BAILII judgment, optionally filtered to a specific section.

  • bailii_list_courts

    List the main UK courts and tribunals available on BAILII.

  • bailii_search

    Search BAILII for UK case law by keyword or phrase.

Public scan report

scanner v0.1.9 · 2026-09-27 · same rubric, same numbers if you re-run it

no findings
  • Code scan5 source files scanned25/25
  • –Live reliabilityno gateway calls yet and no remote to proben/a
  • –Tool poisoningtools not inspected (local package is not executed); not countedn/a
  • Auth qualitylocal package, no credentials required12/15
  • Maintenancelast push 150 days ago8/15
  • Maintainer identityregistry namespace matches repository owner; GitHub account older than a year8/10
Overall 82/100. Components that don't apply are left out of the denominator. Any critical finding is an F.RubricAppeal a findingJSON

How BAILII UK Case Law compares

Against every graded Web search MCP server, from our own scans and uptime checks. Updated after each scan run.

Safety score
82/100
higher than 68% of 3,471 Web search servers
Tools
3
the typical Web search server has 5
Tools that change things
0%
typical: 0%. Fewer write tools means less an agent can break
GitHub stars
5
more than 80% of 1,788 Web search servers

What its tools let an agent do: 3 read

Install BAILII UK Case Law in Claude Code, Cursor or VS Code

claude mcp add bailii-mcp -- uvx bailii-mcp
Add to Cursor

What the publisher says

From the BAILII UK Case Law repository's README, as published. We do not edit it. Read it on GitHub

BAILII MCP Server

<!-- mcp-name: io.github.paulieb89/bailii-mcp -->

Search UK case law on BAILII. Retrieve judgments with automatic section extraction (summary, conclusions, discussion, background). Runs locally — BAILII blocks cloud IPs.

Install

Using uv (recommended)

No install needed — uvx runs it directly from PyPI:

uvx bailii-mcp

Using pip

pip install bailii-mcp
bailii-mcp

Requires Python 3.10+.

Configuration

Claude Desktop

Add to your claudedesktopconfig.json:

{
  "mcpServers": {
    "bailii": {
      "command": "uvx",
      "args": ["bailii-mcp"]
    }
  }
}

Claude Code

claude mcp add bailii -- uvx bailii-mcp

VS Code

Add to .vscode/settings.json or use the MCP panel:

{
  "mcp": {
    "servers": {
      "bailii": {
        "command": "uvx",
        "args": ["bailii-mcp"]
      }
    }
  }
}

Using pip instead of uvx

If you installed via pip install bailii-mcp, use "command": "bailii-mcp" and "args": [] instead.

From source

git clone https://github.com/paulieb89/bailii-mcp.git
cd bailii-mcp
pip install -e .

What You Can Ask

Once connected, just ask Claude naturally:

  • "Search BAILII for cases about HMO licensing"
  • "Find recent whistleblowing employment tribunal cases"
  • "Get the summary of Chinn v Hoilund-Carlsen"
  • "What did the court hold in that case?"
  • "Show me the discussion section"

Tools

Section Extraction

Judgments are large (30-100KB). By default, only the summary and conclusions are returned. Ask for more if you need it:

  • Default: summary + conclusions (5000 chars)
  • Specific section: "show me the discussion" → pulls just that section
  • Full text: "get the complete judgment" → returns everything

Sections detected: summary, conclusions, held, discussion, background

Why Local?

BAILII blocks requests from cloud servers and datacenters. This server runs on your machine, so requests go through your residential IP.

For case law that doesn't need BAILII specifically, uk-legal-mcp provides case law via the National Archives API — hosted on Fly.io, no local setup needed.

This BAILII server is useful when you need:

  • Employment tribunal decisions (EAT coverage is stronger on BAILII)
  • Older cases not yet in the TNA database
  • Specific tribunals with better BAILII indexing

Notes

  • BAILII terms prohibit bulk downloading — use for targeted research only
  • Be reasonable with request rate
  • Section extraction depends on judgment formatting — not all judgments have clear section headers

Licence

Apache 2.0

Author

Paul Boucherat — building MCP servers for UK property, legal, and project controls.

Nothing above is checked by us. What we check is on the safety report.

BAILII UK Case Law: common questions

Is BAILII UK Case Law MCP server safe?
Mostly: it is graded B (82/100). Read the BAILII UK Case Law safety report
How do I install BAILII UK Case Law?
It runs on your machine. Copy the Claude Code, Cursor, VS Code or Claude Desktop config from the install section.
Does BAILII UK Case Law need an API key?
Not as far as the registry entry and our scan can tell: no credentials are declared or required.
Is BAILII UK Case Law maintained?
The last commit was 189 days ago (2026-05-01). The latest release is v1.0.1.
What can I use instead of BAILII UK Case Law?
Servers from other publishers that do the same job: Legal Data Hunter MCP server, Eur Lex MCP server and webclaw MCP server.
How does BAILII UK Case Law compare with other Web search MCP servers?
safety score 82/100 (higher than 68% of 3,471 Web search servers); tools 3 (the typical Web search server has 5); tools that change things 0% (typical: 0%. Fewer write tools means less an agent can break). Full comparison.

Alternatives to BAILII UK Case Law

Same job from other publishers: the closest match first, then the best rated.

  • Legal Data Hunter
    Search 18M+ legal documents worldwide — case law, legislation, and doctrine across 110+ countries.
    A
  • Eur Lex
    Search EU legislation, CJEU case law, and treaties; traverse CELLAR graph; browse EuroVoc concepts.
    A
  • webclaw
    Web scraping, search, crawling, structured extraction and research for AI agents.
    A
  • jDocmunch MCP
    Section-level doc search for .md, .rst, .adoc, .org, .ipynb, .html, .yaml, .json, and OpenAPI specs.
    A

More from paulieb89 →