UK Case Law
MCP server for UK case law using The National Archives API. Enables LLMs to search, retrieve, and cite UK legal judgments.
What is UK Case Law?
UK Case Law is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to mcp server for uk case law using the national archives api. enables llms to search, retrieve, and cite uk legal judgments.
MCP server for UK case law using The National Archives API. Enables LLMs to search, retrieve, and cite UK legal judgments.
This server falls under the Search & Data Extraction category on MCPgee, the world's largest MCP server directory with 33,000+ servers.
Features
- MCP server for UK case law using The National Archives API.
Use Cases
Maintainer
Works with
Installation
Manual Installation
npx uk-case-lawConfiguration
Configuration Details
claude_desktop_config.json
Performance
Response Metrics
Resource Usage
How to Set Up and Use UK Case Law
The UK Case Law MCP server connects AI assistants to The National Archives' Find Case Law API, giving LLMs the ability to search, retrieve, and cite real UK legal judgments from courts including the UK Supreme Court, Court of Appeal, High Court, and Employment Tribunals. It exposes two focused tools — one for searching by legal area, court, or date range, and one for retrieving full judgment text by neutral citation. Legal researchers, law students, and legal-tech developers can use it to perform accurate, citation-backed case law research through natural language without manually navigating The National Archives website.
Prerequisites
- Bun runtime installed (https://bun.sh) — this server uses Bun instead of Node.js
- Git to clone the repository
- An MCP-compatible client such as Claude Desktop
- No API key required — The National Archives API is publicly accessible
Install Bun
The server requires the Bun JavaScript runtime. Install it if you don't already have it.
curl -fsSL https://bun.sh/install | bashClone the repository
Clone the UK case law MCP server repository.
git clone https://github.com/georgejeffers/uk-case-law-mcp-server.git
cd uk-case-law-mcp-serverInstall dependencies
Install all required packages using Bun.
bun installRun the tests to verify setup
Execute the test suite to confirm the server connects correctly to The National Archives API.
bun testConfigure Claude Desktop
Add the UK case law server to your Claude Desktop configuration file. On macOS the config is at ~/Library/Application Support/Claude/claude_desktop_config.json.
Restart Claude Desktop
Restart Claude Desktop to load the new MCP server. The uklaw_search and uklaw_get_case tools will now be available.
UK Case Law Examples
Client configuration
Configure the UK Case Law MCP server in Claude Desktop using Bun to run the TypeScript server directly.
{
"mcpServers": {
"uk-case-law": {
"command": "bun",
"args": ["run", "/path/to/uk-case-law-mcp-server/src/server.ts"]
}
}
}Prompts to try
Examples of legal research queries you can perform with the UK Case Law server.
- "Search for UK Supreme Court cases on contract frustration from 2020 onwards"
- "Find High Court judgments about software copyright infringement"
- "Get the full text of [2024] UKSC 1"
- "What did the Court of Appeal decide about unfair dismissal in 2023?"
- "Search for patent obviousness cases in the UK and summarize the key principles"Troubleshooting UK Case Law
bun: command not found after installation
After running the Bun installer, restart your terminal or run `source ~/.bashrc` (or `~/.zshrc`) to reload PATH. Verify with `bun --version`.
Search returns no results for a known case
The National Archives API indexes judgments from 2001 onwards. For older cases, results may not be available. Try searching with a broader date range or just the case name without date filters. Neutral citations like [2024] UKSC 1 must match the exact format.
Server fails to start in Claude Desktop
Ensure the absolute path to server.ts in the args array is correct. Run `bun run /path/to/uk-case-law-mcp-server/src/server.ts` directly in your terminal to check for startup errors before configuring Claude Desktop.
Frequently Asked Questions about UK Case Law
What is UK Case Law?
UK Case Law is a Model Context Protocol (MCP) server that mcp server for uk case law using the national archives api. enables llms to search, retrieve, and cite uk legal judgments. It connects AI assistants to external tools and data sources through a standardized interface.
How do I install UK Case Law?
Follow the installation instructions on the UK Case Law GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.
Which AI clients work with UK Case Law?
UK Case Law works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.
Is UK Case Law free to use?
Yes, UK Case Law is open source and available under the NOASSERTION license. You can use it freely in both personal and commercial projects.
UK Case Law Alternatives — Similar Search & Data Extraction Servers
Looking for alternatives to UK Case Law? Here are other popular search & data extraction servers you can use with Claude, Cursor, and VS Code.
TrendRadar
★ 58.0kA real-time hotspot monitoring and news aggregation assistant that provides AI-powered analysis of trending topics across multiple platforms via the Model Context Protocol. It enables users to track news and receive automated notifications through va
Scrapling
★ 52.7k🕷️ An adaptive Web Scraping framework that handles everything from a single request to a full-scale crawl!
PDF Math Translate
★ 33.9k[EMNLP 2025 Demo] PDF scientific paper translation with preserved formats - 基于 AI 完整保留排版的 PDF 文档全文双语翻译,支持 Google/DeepL/Ollama/OpenAI 等服务,提供 CLI/GUI/MCP/Docker/Zotero
GPT Researcher
★ 27.2kAn autonomous agent that conducts deep research on any data using any LLM providers
Agent Reach
★ 20.1kGive your AI agent eyes to see the entire internet. Read & search Twitter, Reddit, YouTube, GitHub, Bilibili, XiaoHongShu — one CLI, zero API fees.
Xiaohongshu
★ 13.7kMCP for xiaohongshu.com
Browse More Search & Data Extraction MCP Servers
Explore all search & data extraction servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.
Set Up UK Case Law in Your Editor
Choose your AI client for step-by-step setup instructions.
Quick Config Preview
Add this to your claude_desktop_config.json or .cursor/mcp.json
Ready to use UK Case Law?
Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.