uk-legal — Claude Code MCP server: UK law research and setup
uk-legal wires your assistant into UK case law, statutes, Hansard, bills, divisions, committee evidence and HMRC tax data. Useful when you need the actual provision instead of a summary.
no license 3,099 installs updated 2026-04-02
claude mcp add --transport http uk-legal https://uk-legal--bouch.run.toolsWhat uk-legal does
A remote MCP endpoint that answers questions about British law. Judgments arrive through the TNA Find Case Law API, statutes and statutory instruments through legislation.gov.uk, while Hansard, bills, divisions and committees come from Parliament's services. A separate cluster of tools handles OSCOLA: one pulls citations out of free text, another resolves a single citation to a canonical URL, a third maps every reference inside a judgment and groups them by type.
Nothing runs on your machine. The server sits at https://uk-legal--bouch.run.tools and the client talks to it over HTTP. Reading takes two steps on purpose: list the paragraph index or the table of contents, then fetch one item. For a section of an act, pass the number alone, 47, not section-47.
Output is capped in places. Section text stops at max_chars, 10,000 characters by default, so long definition clauses need a bigger number. Voter lists in votes_get_division keep 100 names per side, and member interests or committee evidence come one page at a time with offset for the rest. Sentiment sorting in parliament_vibe_check depends on sampling; without it you get the raw speeches and no breakdown of who backs what.
What it helps with
- find a judgment by neutral citation and read the relevant paragraph
- check whether a section of an act is still in force
- turn OSCOLA references in a draft into working links
- see how members voted in a specific division
- confirm which VAT rate applies to a service
Example prompts for the agent
- Search case law for “unfair dismissal” and read paragraph 12 of the first hit with
judgment_get_paragraph. - Pull section 47 of the Companies Act 2006 and tell me if it is in force.
- Parse the OSCOLA citations in this draft with
citations_parseand resolve each one.
How to install uk-legal
Platform CLI: remote server
claude mcp add --transport http uk-legal https://uk-legal--bouch.run.toolsPlatform CLI: remote server
codex mcp add uk-legal --url https://uk-legal--bouch.run.toolsConfig file
{
"mcpServers": {
"uk-legal": {
"url": "https://uk-legal--bouch.run.tools"
}
}
}Config file
{
"servers": {
"uk-legal": {
"type": "http",
"url": "https://uk-legal--bouch.run.tools"
}
}
}Platform CLI: remote server
gemini mcp add -t http uk-legal https://uk-legal--bouch.run.toolsStep by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more
Questions about uk-legal
How do I install uk-legal in Claude Code?
Run claude mcp add --transport http uk-legal https://uk-legal--bouch.run.tools. The server is hosted, so there is no local process to start.
What does uk-legal do?
It gives the assistant tools for British law: searching and reading judgments, act sections, Hansard debates, bills, divisions, committees and HMRC tax data. It also parses and resolves OSCOLA citations.
Why does parliament_vibe_check return only speeches?
The tool classifies sentiment through LLM sampling. When sampling is unavailable it falls back to the matching Hansard contributions, with no supporters, opponents or key concerns.