npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@iflow-mcp/georgejeffers-uk-case-law-mcp

v1.0.1

Published

Model Context Protocol (MCP) server for searching UK case law via The National Archives API

Readme

UK Case Law MCP Server

A Model Context Protocol (MCP) server that provides Claude with tools to search and retrieve UK case law from The National Archives.

Features

  • Search UK Case Law: Query across all courts and tribunals (2003+)
  • Retrieve Full Judgments: Get complete case text with numbered paragraphs
  • Filter by Court/Legal Area: Focus on specific jurisdictions or practice areas
  • Pagination Support: Access results beyond the first page
  • Rate Limited: Respects TNA API limits (1,000 requests per 5 minutes)

Tools

uklaw_search

Search UK case law with optional filters:

  • query - Search terms (legal concepts, party names, keywords)
  • legal_area - Filter by area (IP, commercial, employment, etc.)
  • court - Filter by court level (Supreme Court, Court of Appeal, etc.)
  • year_from / year_to - Date range filtering
  • limit - Max results (1-50)
  • page - Pagination

uklaw_get_case

Retrieve full case text:

  • citation - Neutral citation (e.g., [2024] UKSC 1) or document URI
  • paragraphs - Optional range (e.g., 1-50)
  • include_metadata - Include judges, court, date

Supported Courts

| Court Level | Examples | |-------------|----------| | Supreme Court | UKSC | | Court of Appeal | EWCA Civ, EWCA Crim | | High Court | EWHC (Ch, QB/KB, Admin, Comm, Patents, IPEC, TCC, Fam) | | Tribunals | EAT, UKUT (IAC, LC, AAC) |

Installation

Prerequisites

Setup

# Clone the repository
git clone https://github.com/georgejeffers/uk-case-law-mcp-server.git
cd uk-case-law-mcp-server

# Install dependencies
bun install

# Run tests
bun test

# Start the server
bun start

Claude Desktop Configuration

Add to your Claude Desktop config (~/Library/Application Support/Claude/claude_desktop_config.json on macOS):

{
  "mcpServers": {
    "uk-case-law": {
      "command": "bun",
      "args": ["run", "/path/to/uk-case-law-mcp/src/server.ts"]
    }
  }
}

Usage Examples

Once configured, you can ask Claude questions like:

  • "Search for patent obviousness cases in the High Court"
  • "Find recent unfair dismissal tribunal decisions"
  • "Get the full text of [2024] UKSC 1"
  • "What did the Court of Appeal say about breach of fiduciary duty in 2023?"

API

This server uses the TNA Find Case Law API, which:

  • Covers judgments from 2003 onwards
  • Requires no authentication
  • Returns results in Atom/XML format
  • Provides full text in LegalDocML (Akoma Ntoso) format

License

This project is licensed under the PolyForm Noncommercial License 1.0.0.

You may use this software for personal, educational, and non-commercial purposes only. Commercial use requires a separate license.

Contributing

Contributions are welcome for non-commercial purposes. Please open an issue or PR.

Acknowledgments