{
  "markdown": "# BAILII MCP Server\n\n<!-- mcp-name: io.github.paulieb89/bailii-mcp -->\n\n[![PyPI](https://img.shields.io/pypi/v/bailii-mcp)](https://pypi.org/project/bailii-mcp/)\n[![Install in VS Code](https://img.shields.io/badge/VS_Code-Install_Local-0098FF?style=flat-square&logo=visualstudiocode&logoColor=white)](https://vscode.dev/redirect/mcp/install?name=bailii&config=%7B%22command%22%3A%22uvx%22%2C%22args%22%3A%5B%22bailii-mcp%22%5D%7D)\n\nSearch UK case law on BAILII. Retrieve judgments with automatic section extraction (summary, conclusions, discussion, background). Runs locally — BAILII blocks cloud IPs.\n\n## Install\n\n### Using uv (recommended)\n\nNo install needed — [`uvx`](https://docs.astral.sh/uv/) runs it directly from PyPI:\n\n```bash\nuvx bailii-mcp\n```\n\n### Using pip\n\n```bash\npip install bailii-mcp\nbailii-mcp\n```\n\nRequires Python 3.10+.\n\n## Configuration\n\n### Claude Desktop\n\nAdd to your `claude_desktop_config.json`:\n\n```json\n{\n  \"mcpServers\": {\n    \"bailii\": {\n      \"command\": \"uvx\",\n      \"args\": [\"bailii-mcp\"]\n    }\n  }\n}\n```\n\n### Claude Code\n\n```bash\nclaude mcp add bailii -- uvx bailii-mcp\n```\n\n### VS Code\n\nAdd to `.vscode/settings.json` or use the MCP panel:\n\n```json\n{\n  \"mcp\": {\n    \"servers\": {\n      \"bailii\": {\n        \"command\": \"uvx\",\n        \"args\": [\"bailii-mcp\"]\n      }\n    }\n  }\n}\n```\n\n### Using pip instead of uvx\n\nIf you installed via `pip install bailii-mcp`, use `\"command\": \"bailii-mcp\"` and `\"args\": []` instead.\n\n### From source\n\n```bash\ngit clone https://github.com/paulieb89/bailii-mcp.git\ncd bailii-mcp\npip install -e .\n```\n\n## What You Can Ask\n\nOnce connected, just ask Claude naturally:\n\n- \"Search BAILII for cases about HMO licensing\"\n- \"Find recent whistleblowing employment tribunal cases\"\n- \"Get the summary of Chinn v Hoilund-Carlsen\"\n- \"What did the court hold in that case?\"\n- \"Show me the discussion section\"\n\n## Tools\n\n| Tool | What it does |\n|------|-------------|\n| `bailii_search` | Full-text search across all BAILII courts. Returns titles, citations, and links. |\n| `bailii_get_judgment` | Retrieve judgment text. Defaults to summary + conclusions (~5000 chars). |\n| `bailii_list_courts` | List available UK courts (UKSC, EWCA, EWHC, UKUT, EAT, etc). |\n\n### Section Extraction\n\nJudgments are large (30-100KB). By default, only the summary and conclusions are returned. Ask for more if you need it:\n\n- **Default**: summary + conclusions (5000 chars)\n- **Specific section**: \"show me the discussion\" → pulls just that section\n- **Full text**: \"get the complete judgment\" → returns everything\n\nSections detected: `summary`, `conclusions`, `held`, `discussion`, `background`\n\n## Why Local?\n\nBAILII blocks requests from cloud servers and datacenters. This server runs on your machine, so requests go through your residential IP.\n\nFor case law that doesn't need BAILII specifically, [uk-legal-mcp](https://github.com/paulieb89/uk-legal-mcp) provides case law via the National Archives API — hosted on Fly.io, no local setup needed.\n\nThis BAILII server is useful when you need:\n- Employment tribunal decisions (EAT coverage is stronger on BAILII)\n- Older cases not yet in the TNA database\n- Specific tribunals with better BAILII indexing\n\n## Notes\n\n- BAILII terms prohibit bulk downloading — use for targeted research only\n- Be reasonable with request rate\n- Section extraction depends on judgment formatting — not all judgments have clear section headers\n\n## Licence\n\nApache 2.0\n\n## Author\n\n[Paul Boucherat](https://bouch.dev) — building MCP servers for UK property, legal, and project controls.\n",
  "bytes": 3543,
  "sha": "18e520dbeb036adbc6e8ee35cd6d9b57e3af8635a5e3b6e08ee21eb63bba44d0",
  "repo_slug": "paulieb89/bailii-mcp",
  "fonte": "repo",
  "truncated": false,
  "api": "https://agentalog.com/api/listings/mcp_io_github_paulieb89_bailii_mcp_d53a4273/readme"
}