pypi bailii-mcpstdioupdated 5mo ago
Search UK case law on BAILII. Retrieve judgments with automatic section extraction (summary, conclusions, discussion, background). Runs locally — BAILII blocks cloud IPs.
BAILII UK Case Law で何ができる?
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.
インストール
BAILII UK Case Law をクライアントに追加します。お使いのものを選んでください。
claude mcp add bailii-mcp -- uvx bailii-mcpcodex mcp add bailii-mcp -- uvx bailii-mcpamp mcp add bailii-mcp -- uvx bailii-mcp{
"mcpServers": {
"bailii-mcp": {
"command": "uvx",
"args": [
"bailii-mcp"
]
}
}
}Add to `claude_desktop_config.json`, then restart Claude Desktop.
{
"mcpServers": {
"bailii-mcp": {
"command": "uvx",
"args": [
"bailii-mcp"
]
}
}
}Add to `~/.cursor/mcp.json`, or `.cursor/mcp.json` for a single project.
code --add-mcp '{"name":"bailii-mcp","command":"uvx","args":["bailii-mcp"]}'Or add the block manually to `.vscode/mcp.json` under `servers`.
{
"mcpServers": {
"bailii-mcp": {
"command": "uvx",
"args": [
"bailii-mcp"
]
}
}
}Add to `~/.codeium/windsurf/mcp_config.json`.
{
"mcpServers": {
"bailii-mcp": {
"command": "uvx",
"args": [
"bailii-mcp"
]
}
}
}Add to `cline_mcp_settings.json` via the MCP Servers panel.
{
"mcpServers": {
"bailii-mcp": {
"command": "uvx",
"args": [
"bailii-mcp"
]
}
}
}Add to `~/.gemini/settings.json`.
{
"mcpServers": {
"bailii-mcp": {
"type": "local",
"command": "uvx",
"args": [
"bailii-mcp"
],
"tools": [
"*"
]
}
}
}Add to `~/.copilot/mcp-config.json`, or run `/mcp add` inside the CLI.
{
"context_servers": {
"bailii-mcp": {
"command": {
"path": "uvx",
"args": [
"bailii-mcp"
]
}
}
}
}Add to your Zed `settings.json`.
uvx bailii-mcpRun `goose configure`, choose **Add Extension → Command-line Extension**, and paste this command.
3 個のツール
BAILII UK Case Law は接続したエージェントに 3 個のツールを提供します。
- 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).
スコア
57 / 100
及第
- ドキュメント22/25
- メンテナンス13/25
- 信頼性6/20
- 機能4/15
- 導入のしやすさ12/15
- Documents what it does and how to connect
- Has a resolvable package or endpoint
- Exposes at least one tool, prompt or resource
- README has substantive content
- Includes a code example
- Documents its configuration
- Mentions credentials or security posture
- Last commit 152 days ago
- Has a release history
- Repository is not archived
- No licence detected
- Namespace verified in the official MCP registry
- Claimed by its owner
- Published under an organisation
- 3 tool(s) documented
- Provides prompt templates
- Provides resources
- 12 documented install method(s)
- Published to a package registry
- Offers a hosted endpoint — no local install
バージョン履歴
| バージョン | 公開日 |
|---|---|
| 1.0.1最新 | 2026年4月1日 |