UK legal research — case law, legislation, Hansard, bills, votes, committees, HMRC, citations
Config is the same across clients — only the file and path differ.
{
"mcpServers": {
"uk-legal": {
"url": "https://uk-legal-mcp.fly.dev/mcp",
"type": "streamable-http"
}
}
}Are you the author?
Add this badge to your README to show your security score and help users find safe servers.
A Model Context Protocol server for UK legal research. Connects AI assistants to case law, legislation, parliamentary debates, bills, votes, committees, OSCOLA citation parsing, and HMRC tax data through a single endpoint.
Run this in your terminal to verify the server starts. Then let us know if it worked — your result helps other developers.
uvx 'pytest' 2>&1 | head -1 && echo "✓ Server started successfully"
After testing, let us know if it worked:
Five weighted categories — click any category to see the underlying evidence.
pytest has vulnerable tmpdir handling
pytest through 9.0.2 on UNIX relies on directories with the `/tmp/pytest-of-{user}` name pattern, which allows local users to cause a denial of service or possibly gain privileges.
Click any tool to inspect its schema.
judgment_headerMetadata header (parties, judges, citation). ~1k tokens.
judgment://{slug}/header
judgment_indexParagraph eId + first-line per row. ~4k tokens. Walk this to discover paragraphs.
judgment://{slug}/index
judgment_paragraphA single paragraph including its sub-paragraphs. 400–1700 tokens.
judgment://{slug}/para/{eId}
legislation_fullFull Act/SI as CLML XML.
legislation://{type}/{year}/{number}
legislation_sectionA specific section as CLML XML.
legislation://{type}/{year}/{number}/section/{section}
legislation_tocFlat id: title lines for the table of contents.
legislation://{type}/{year}/{number}/toc
legislation_point_in_timePoint-in-time CLML for a YYYY-MM-DD date.
legislation://{type}/{year}/{number}/{date}
Be the first to review
Have you used this server?
Share your experience — it helps other developers decide.
Sign in to write a review.
Others in legal / search
Web and local search using Brave Search API
Production ready MCP server with real-time search, extract, map & crawl.
The official MCP server implementation for the Perplexity API Platform
mini cli search engine for your docs, knowledge bases, meeting notes, whatever. Tracking current sota approaches while being all local
MCP Security Weekly
Get CVE alerts and security updates for io.github.paulieb89/uk-legal-mcp and similar servers.
Start a conversation
Ask a question, share a tip, or report an issue.
Sign in to join the discussion.
UK legal research sources for your AI assistant.
uk-legal-mcp connects ChatGPT, Claude, VS Code, Cursor, and other MCP-aware clients to UK case law, legislation, Hansard, bills, votes, committees, OSCOLA citation parsing, and HMRC guidance. It returns primary source text and citation metadata so your agent can build evidence packs you can check and footnote.
No API keys are required for the legal sources. HMRC's authenticated Making Tax Digital endpoint is optional.
For best results, tell your assistant to use the uk-legal-mcp server and not to answer from memory when a UK legal source can be checked.
Use the hosted MCP endpoint:
https://uk-legal-mcp.fly.dev/mcp
For clients that use mcpServers JSON:
{
"mcpServers": {
"uk-legal": {
"type": "http",
"url": "https://uk-legal-mcp.fly.dev/mcp"
}
}
}
For local stdio use:
uvx uk-legal-mcp
Claude Desktop local config:
{
"mcpServers": {
"uk-legal": {
"command": "uvx",
"args": ["uk-legal-mcp"]
}
}
}
If a hosted tool stops responding, refresh the server from your client's Apps / Customise menu. For very large Acts, local mode can be more reliable because it uses your own IP rather than a shared cloud IP.
After connecting the server, start a fresh chat and ask:
I am checking a UK legal source. Only use uk-legal-mcp. Find the source, give me the source URL, and tell me what metadata I should check before relying on it.
For legal work, ask for an evidence pack rather than a bare answer:
Only use uk-legal-mcp. Give me the source text or source summary, the source URL, citation metadata, and any caveats about jurisdiction, version, or uncertainty.
See the lawyer guide for ready-to-run prompts.
| Source area | What your assistant can check |
|---|---|
| Case law | UK judgments from TNA Find Case Law, including neutral citations, court, date, judgment metadata, paragraph reads, and in-judgment search. |
| Legislation | Acts and Statutory Instruments from legislation.gov.uk, including tables of contents, sections, territorial extent, in-force signals, and point-in-time reads. |
| Parliament | Hansard debates and contributions, debate-to-division chains, member biographies, column references, and petitions. |
| Bills | Parliamentary Bills, stages, sponsors, publications, and bill history. |
| Votes | Commons and Lords divisions, counts, results, and per-member voting records. |