Bailii
FreeNot checkedSearch UK case law on BAILII — court judgments with section extraction. Runs locally (BAILII blocks cloud IPs).
About
Search UK case law on BAILII — court judgments with section extraction. Runs locally (BAILII blocks cloud IPs).
README
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.
Install Bailii in Claude Desktop, Claude Code & Cursor
unyly install bailiiInstalls into Claude Desktop, Claude Code, Cursor & VS Code — handles npx, uvx and build-from-source repos for you.
First time? Get the CLI: curl -fsSL https://unyly.org/install | sh
Or configure manually
Run in your terminal:
claude mcp add bailii -- uvx bailii-mcpStep-by-step: how to install Bailii
FAQ
Is Bailii MCP free?
Yes, Bailii MCP is free — one-click install via Unyly at no cost.
Does Bailii need an API key?
No, Bailii runs without API keys or environment variables.
Is Bailii hosted or self-hosted?
Self-hosted: the server runs locally on your machine via the install command above.
How do I install Bailii in Claude Desktop, Claude Code or Cursor?
Open Bailii on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install — the config is generated automatically, no JSON editing.
Related MCPs
GitHub
PRs, issues, code search, CI status
by GitHubFilesystem
Secure file operations with configurable access controls.
Memory
Knowledge graph-based persistent memory system.
Template MCP Server
A CLI tool to create a new Model Context Protocol server project with TypeScript support, dual transport options, and an extensible structure
by mcpdotdirectAmap Maps Mcp Server
MCP server for using the AMap Maps API
by duxiaohuiSupabase
Database, auth and storage
by SupabaseEverything
Reference / test server with prompts, resources, and tools.
Git
Tools to read, search, and manipulate Git repositories.
Sequential Thinking
Dynamic and reflective problem-solving through thought sequences.
Time
Time and timezone conversion capabilities.
Compare Bailii with
Not sure what to pick?
Find your stack in 60 seconds
Author?
Embed badge for your README
Browse similar
All development MCPs
