Skip to content
MCP server
Registry

BAILII UK Case Law MCP Server

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

BAILII UK Case Law scores 34 (Limited), with no SPDX license recorded and written in Python. It installs as a local process. It declares 3 tools. Filed under Search. GitHub shows 7 stars. Install configs are generated for 10 clients. Being listed in the registry is not the same as being vendor-official.

by paulieb89No licensePython7 stars
Trust score
34Limited
Trust score 34 of 100, Limited

Limited trust

34 of 100 from six public signals. Nobody can buy a point.

  • No license recorded.
How we score trust
Scorecard

License, quality and maintenance

How grades work
Trust breakdown

Where the 34 comes from

0 + 20 + 3 + 0 + 4 + 7 = 34. Each factor is capped, so no single signal can carry a listing.

Registry0 / 30

Active in the official MCP registry, plus a known vendor namespace.

Registry: 0 of 30 points.
Maintenance20 / 20

How recently the repository saw a commit or release.

Maintenance: 20 of 20 points.
Popularity3 / 20

GitHub stars and weekly downloads, on a log scale.

Popularity: 3 of 20 points.
License0 / 10

A clear, OSI-style open-source license.

License: 0 of 10 points.
Security4 / 10

Not archived, a secure install path, a pinned version.

Security: 4 of 10 points.
Docs7 / 10

A real summary, a README with depth, listed tools.

Docs: 7 of 10 points.

Install

Pick your client, copy the config, paste it in.

Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.

~/Library/Application Support/Claude/claude_desktop_config.json
{  "mcpServers": {    "paulieb89-bailii-mcp": {      "command": "uvx",      "args": [        "bailii-mcp"      ]    }  }}

Environment variables

This server does not declare environment variables.

Tools3Tool docs quality grade C

All capabilities
  • Retrieve judgment text. Defaults to summary + conclusions (~5000 chars).

  • List available UK courts (UKSC, EWCA, EWHC, UKUT, EAT, etc).

  • Full-text search across all BAILII courts. Returns titles, citations, and links.

About

BAILII MCP Server

PyPI Install in VS Code

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 claude_desktop_config.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

ToolWhat it does
bailii_searchFull-text search across all BAILII courts. Returns titles, citations, and links.
bailii_get_judgmentRetrieve judgment text. Defaults to summary + conclusions (~5000 chars).
bailii_list_courtsList available UK courts (UKSC, EWCA, EWHC, UKUT, EAT, etc).

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.

Frequently asked questions

What is BAILII UK Case Law MCP Server?

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

How do I install BAILII UK Case Law MCP Server in Claude Desktop, Cursor, or VS Code?

Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. BAILII UK Case Law MCP Server runs locally from the PyPI package bailii-mcp with the command uvx bailii-mcp.

Does BAILII UK Case Law MCP Server support remote (HTTP) connections?

No remote endpoint is listed for BAILII UK Case Law MCP Server. It runs locally on your machine over stdio, started by your MCP client.

What tools does BAILII UK Case Law MCP Server provide?

BAILII UK Case Law MCP Server provides 3 tools: bailii_get_judgment, bailii_list_courts, and bailii_search. See the full tool list for descriptions and parameters.

How is BAILII UK Case Law MCP Server's trust score calculated?

BAILII UK Case Law MCP Server scores 34 out of 100 (Limited). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.

Reviews

No reviews yet

—Be the first to review

5 star0 reviews at 5 stars
4 star0 reviews at 4 stars
3 star0 reviews at 3 stars
2 star0 reviews at 2 stars
1 star0 reviews at 1 stars

No published reviews yet. Used it? Tell the next person how it went.

Add badge to your README

Paste either snippet into the repository README. The image links to this listing.

Listed on MCPpedia

Top 5 MCP servers

Daily or weekly. Confirm by email, unsubscribe any time.

How often

Manage this listing

Claim this server