UK Case Law

v1.0.0Search & Data Extractionstable

MCP server for UK case law using The National Archives API. Enables LLMs to search, retrieve, and cite UK legal judgments.

ai-toolscase-lawcaselawlegal-ailegal-tech
Share:
23
Stars
0
Downloads
0
Weekly
0/5

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

Search and retrieve UK legal judgments from The National Archives.
Cite and analyze case law with AI assistance for legal research.
georgejeffers

Maintainer

LicenseNOASSERTION
Languagetypescript
Versionv1.0.0
UpdatedMay 12, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

Manual Installation

npx uk-case-law

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

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
1

Install Bun

The server requires the Bun JavaScript runtime. Install it if you don't already have it.

curl -fsSL https://bun.sh/install | bash
2

Clone 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-server
3

Install dependencies

Install all required packages using Bun.

bun install
4

Run the tests to verify setup

Execute the test suite to confirm the server connects correctly to The National Archives API.

bun test
5

Configure 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.

6

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.

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.

Quick Config Preview

{ "mcpServers": { "uk-case-law": { "command": "npx", "args": ["-y", "uk-case-law"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

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.

33,000+ ServersFree & Open SourceStep-by-Step Guides