Skip to main content
Glama
README.md
# New Zealand Legal Research MCP Server (`nz-legal-mcp`)

## English Documentation

Model Context Protocol (MCP) server providing live, read-only access to **New Zealand (NZ)** legislation, official gazettes, multi-tier judicial decisions (First Instance, Regional/Cantonal/Appellate, and Supreme/Constitutional courts, including HTML and PDF full-text extraction), and statutory citation verification across all major AI clients (**ChatGPT Desktop, OpenAI Codex CLI, Claude Desktop, Claude Code CLI, Cursor, Windsurf, VS Code / GitHub Copilot / Cline / Roo Code, Google Antigravity / Gemini CLI, Perplexity, and Continue.dev**).

---

### Interactive Desktop Setup (Select Your AI Assistant)

This package includes a graphical installer for legal practitioners and non-technical users that lets you select which AI application(s) you use:

1. **Download:** Click **`<> Code`** at the top right of this repository, select **`Download ZIP`**, and extract the folder to your computer.
2. **Run the Setup Utility:**
   - **Windows:** Double-click `Click_Here_To_Install_Windows.bat`
   - **macOS:** Double-click `Click_Here_To_Install_Mac.command`
3. **Select Your AI Client(s) & Connect:** Check the box(es) for the AI assistant(s) installed on your computer (**ChatGPT Desktop & OpenAI Codex CLI**, **Claude Desktop & Claude Code CLI**, **Cursor**, **Windsurf**, **VS Code / GitHub Copilot / Cline / Roo Code**, **Google Antigravity / Gemini CLI**, or **Perplexity / Continue.dev**), click **Install to Selected AI Clients**, and restart your selected AI application.

**System Integrity Note:** The setup utility operates strictly in read-only mode with respect to your personal files and documents. It installs an isolated Python runtime inside the extracted folder and registers the server entry only in the AI client configuration files you select.

---

### Multi-Tier Judicial Hierarchy & Live Indexed National Archives

This server performs live queries across the full judicial hierarchy and official legal archives of **New Zealand**, extracting full text from both HTML pages and official court/gazette PDF judgments:

| Judicial Tier | Covered Courts & Tribunals |
|:---|:---|
| **Tier 1 — First Instance** | District Court of New Zealand (NZDC), Family Court, Employment Court & Environment Court |
| **Tier 2 — Regional / Cantonal / Appellate** | High Court of New Zealand (NZHC) & Court of Appeal of New Zealand (NZCA) |
| **Tier 3 — Supreme & Constitutional** | Supreme Court of New Zealand / Te Kōti Mana Nui (NZSC) |

#### Official Portals & Live Indexed Domains

- **National Legislation & Official Gazette:** New Zealand Legislation (legislation.govt.nz) — [https://www.legislation.govt.nz](https://www.legislation.govt.nz)
  - *Indexed Legislation Domains:* `legislation.govt.nz`, `nzlii.org`
- **Court Decisions & Jurisprudence Archives:** Judicial Decisions Online (courtsofnz.govt.nz / districtcourts.govt.nz / nzlii.org) — [https://www.courtsofnz.govt.nz](https://www.courtsofnz.govt.nz)
  - *Indexed Judicial & Open Case Law Domains:* `courtsofnz.govt.nz`, `districtcourts.govt.nz`, `nzlii.org`, `justice.govt.nz`

---

### Available MCP Tools

| Tool | Description |
|:---|:---|
| `search_legislation` | Searches enacted statutes, codes, decrees, and official gazette publications in New Zealand. |
| `search_case_law` | Searches national jurisprudence and open judicial archives for New Zealand. |
| `search_tiered_court_decisions` | Filters case law specifically by judicial instance (`first_instance`, `appellate_regional`, `supreme_constitutional`) or specific regional/cantonal/district court. |
| `list_court_hierarchy` | Returns the complete 3-tier court structure and supported regional court filters for New Zealand. |
| `get_legal_document_markdown` | Retrieves full statutory or judicial texts (both HTML and official `.pdf` court judgments) and converts them into clean Markdown. |
| `verify_citation` | Validates statutory and case law citations against official registries. |

---

<details>
<summary><b>Manual Configuration for Developers (Optional)</b></summary>

```json
{
  "mcpServers": {
    "nz-legal-mcp": {
      "command": "uvx",
      "args": [
        "--from",
        "https://github.com/jurisatlas/nz-legal-mcp/archive/refs/heads/main.zip",
        "nz-legal-mcp"
      ]
    }
  }
}
```
</details>

TDQS

A3.8/5.0

Scored across 6 tools

Disambiguation4/5

Each tool has a clear primary action, but search_case_law and search_tiered_court_decisions both search court decisions, differing only by tier filtering, which could prompt misselection. The descriptions do clarify the distinction (general vs faceted search), keeping it mostly distinct. get_legal_document_markdown, list_court_hierarchy, and verify_citation are unambiguous.

Naming Consistency5/5

All six tools follow a consistent snake_case verb_noun pattern (search_*, get_*, list_*, verify_*). Extension suffixes like _markdown and _tiered_court_decisions remain readable and predictable.

Tool Count5/5

Six tools is well within the ideal 3-15 range for a legal research server. Each tool covers a distinct capability (case search, tiered search, legislation search, document retrieval, hierarchy lookup, citation verification) with no filler.

Completeness4/5

The surface covers the core legal research lifecycle: finding case law and legislation, retrieving full text, understanding court structure, and verifying citations. Minor gaps exist—no citator/note-up (which cases cite a case) or legislation amendment/history tracking—but agents can work around these via document retrieval.