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.
Limited trust
34 of 100 from six public signals. Nobody can buy a point.
- No license recorded.
License, quality and maintenance
Quality: Grade A
86/100 for listing completeness. Lost points: short README, short summary.
How quality is graded
Where the 34 comes from
0 + 20 + 3 + 0 + 4 + 7 = 34. Each factor is capped, so no single signal can carry a listing.
Active in the official MCP registry, plus a known vendor namespace.
Registry: 0 of 30 points.How recently the repository saw a commit or release.
Maintenance: 20 of 20 points.GitHub stars and weekly downloads, on a log scale.
Popularity: 3 of 20 points.A clear, OSI-style open-source license.
License: 0 of 10 points.Not archived, a secure install path, a pinned version.
Security: 4 of 10 points.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.
{ "mcpServers": { "paulieb89-bailii-mcp": { "command": "uvx", "args": [ "bailii-mcp" ] } }}
Environment variables
This server does not declare environment variables.
Tools3Tool docs quality grade C
All capabilitiesRetrieve judgment text. Defaults to summary + conclusions (~5000 chars).
List available UK courts (UKSC, EWCA, EWHC, UKUT, EAT, etc).
bailii_searchtoolFull-text search across all BAILII courts. Returns titles, citations, and links.
About
BAILII MCP Server
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
| Tool | What it does |
|---|---|
bailii_search | Full-text search across all BAILII courts. Returns titles, citations, and links. |
bailii_get_judgment | Retrieve judgment text. Defaults to summary + conclusions (~5000 chars). |
bailii_list_courts | List 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
No published reviews yet. Used it? Tell the next person how it went.
Sign inA verified email is required to review this server.
Add badge to your README
Paste either snippet into the repository README. The image links to this listing.