
BAILII UK Case Law
io.github.paulieb89由 GitHub 账号 paulieb89 发布v1.0.1更新于 Oct 24, 2026
Search UK case law on BAILII — court judgments with section extraction. Runs locally.
概览
让助手在 BAILII 上检索英国判例法,并自动提取判决书章节,在本地运行。
- 可以做什么
- 提供三个工具:bailii_search 在所有 BAILII 法院中进行全文检索,返回标题、引注和链接;bailii_get_judgment 获取判决书文本;bailii_list_courts 列出可用的英国法院,如 UKSC、EWCA、EWHC、UKUT、EAT 等。判决书篇幅较大,因此默认只返回摘要和结论(约 5000 字符),也可按需获取特定章节或全文。可识别的章节包括 summary、conclusions、held、discussion 和 background。
- 适用场景
- 适合需要 BAILII 覆盖范围的定向英国法律检索,例如就业法庭裁决、尚未收录于其他数据库的旧案,或 BAILII 索引更完善的特定法庭。它面向定向研究,而非批量采集。
- 运行要求
- 作为本地进程在用户机器上运行,仅限桌面端。需要 Python 3.10+,可用 uvx 直接从 PyPI 运行,或用 pip 安装。未声明任何身份验证、环境变量或请求头。需要访问 BAILII 的网络连接,并且必须在住宅 IP 上运行,因为 BAILII 会阻止来自云服务器和数据中心的请求。
安装
在 SourceWeft 中
- 打开 控制台中的 BAILII UK Case Law,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
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:
Using pip
Requires Python 3.10+.
Configuration
Claude Desktop
Add to your claude_desktop_config.json:
Claude Code
VS Code
Add to .vscode/settings.json or use the MCP panel:
Using pip instead of uvx
If you installed via pip install bailii-mcp, use "command": "bailii-mcp" and "args": [] instead.
From source
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.
来源:README.md,提交 b1b9f51
工具
0版本历史
1- v1.0.1最新Sep 16, 2026
评分
已满足适用检查项的 40%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分
请在仓库或注册中心条目中声明许可证。