Skip to main content
Glama
jurisatlas-mcp

jurisatlas-mcp

Official
by jurisatlas
README.md
# JurisAtlas Legal Research MCP (`jurisatlas-mcp`)

**Official laws, multi-tier court decisions, and honest citation verification across 43 jurisdictions — inside one clean, read-only assistant extension.**

> **100% Free & Open Source (MIT)** · **Read-Only Official Portals** · **Zero API Keys Required** · **Never Touches Personal Files** · **7 Clean Tools (Not 252)**

---

## Quick Setup for Lawyers & Legal Researchers (No Coding Required)

### Option 1: Claude Desktop — 1-Click `.mcpb` Extension (Fastest)

1. Download **`jurisatlas-mcp.mcpb`** from the [**Latest Release**](https://github.com/jurisatlas/jurisatlas-mcp/releases/latest/download/jurisatlas-mcp.mcpb).
2. Double-click the downloaded `.mcpb` file (or drag and drop it into **Claude Desktop → Settings → Extensions**).
3. Choose which countries to enable (leave `all` for all 43 jurisdictions, or enter codes like `uk,ch,eu` or a preset like `dach`).
4. Click **Install** — you are ready to ask legal questions immediately.

### Option 2: Visual Setup Wizard (Claude Desktop, Cursor, VS Code, Windsurf, Antigravity, LM Studio & Codex CLI)

Prefer a guided point-and-click setup across any AI desktop application on Windows or macOS?

- Open the interactive setup builder at **[jurisatlas.github.io](https://jurisatlas.github.io)**, or
- Download the 1-file auto-bootstrapping visual installer from [**JurisAtlas Installer (`jurisatlas/cli`)**](https://github.com/jurisatlas/cli) — no ZIP extraction required.

**Privacy & Safety Guarantee:** `jurisatlas-mcp` is strictly read-only. It queries public official legislation and court portals on demand and never reads, uploads, or modifies your personal files or client documents.

---

## How to Install via MCP Link (4 Simple Paths)

Depending on your AI application, you can connect `jurisatlas-mcp` directly via an extension file, a 1-click editor link, a local JSON snippet, or a live pasteable `https://.../mcp` URL:

### 1. Claude Desktop (`.mcpb` Extension Link)
- Download [`jurisatlas-mcp.mcpb`](https://github.com/jurisatlas/jurisatlas-mcp/releases/latest/download/jurisatlas-mcp.mcpb) and open it directly in Claude Desktop. Claude configures the isolated `uv` runtime automatically.

### 2. Cursor & VS Code (1-Click Deep Links)
- Visit **[jurisatlas.github.io](https://jurisatlas.github.io)**, pick your countries, select **Cursor** or **VS Code**, and click the generated 1-click install button (`cursor://...` or `vscode:mcp/install?...`). Your editor opens and registers `jurisatlas-mcp` in one click.

### 3. Local `mcpServers` JSON (Claude Desktop, Cursor, Windsurf, Antigravity, LM Studio, VS Code)
- Copy the local `uvx` JSON block from the **Developer & Manual Configuration** section below and paste it into your AI app's MCP configuration file. No `git` installation is required — `uvx` pulls the official GitHub `.zip` archive directly.

### 4. Live Pasteable `https://.../mcp` URL (Claude Web, ChatGPT Connectors & Team Deployments)
Need a remote **`https://.../mcp`** link to paste directly into **Claude Web / Mobile Connectors** or **ChatGPT Connectors** (with zero local software installed)? This repository includes a ready-to-deploy HTTPS hosting kit (`Dockerfile`, `render.yaml`, `fly.toml`, and native FastMCP Cloud entrypoint):

- **FastMCP Cloud (Fastest — Zero Config):**
  1. Sign in to [FastMCP Cloud](https://fastmcp.cloud) and select this GitHub repository (`jurisatlas/jurisatlas-mcp`).
  2. Set the server entrypoint to **`src/jurisatlas_mcp/server.py:mcp`** (optional env var: `JURISATLAS_COUNTRIES=all` or `uk,ch,eu`).
  3. Copy your live HTTPS endpoint (`https://<your-project>.fastmcp.app/mcp`) and paste it into **Claude → Settings → Connectors → Add custom connector** or **ChatGPT → Settings → Connectors**.
- **Render (1-Click Free Blueprint via `render.yaml`):**
  1. Open [**Deploy to Render**](https://render.com/deploy?repo=https://github.com/jurisatlas/jurisatlas-mcp) (Render reads `render.yaml` and `Dockerfile` automatically).
  2. Once deployed, paste **`https://<your-service>.onrender.com/mcp`** into your AI client's Custom Connector URL field.
- **Fly.io (`fly.toml`) or Any Docker Host (`Dockerfile`):**
  - Run `fly launch --no-deploy && fly deploy` to serve **`https://<your-app>.fly.dev/mcp`**, or run the container anywhere with `docker build -t jurisatlas-mcp . && docker run -p 8000:8000 jurisatlas-mcp`.

---

## What It Does

Instead of installing dozens of separate country servers (which can overload AI apps with 250+ duplicate tools), `jurisatlas-mcp` unifies **43 jurisdictions** behind **7 clear, read-only tools** and **3 built-in legal prompt workflows**:

### Honest Citation Verification (Built Against AI Hallucinations)

Every search result is explicitly labeled with its `source_tier` (`official_registry_api` vs `web_search_fallback`), and `verify_citation` enforces three transparent statuses:

| Status | Meaning |
| :--- | :--- |
| **`VERIFIED_OFFICIAL_RECORD`** | Matched directly in an official government or judicial registry API (`source_tier: "official_registry_api"`). |
| **`UNCONFIRMED_WEB_MATCH`** | Matches came **only** from web search fallback (not an official API). Includes an explicit caution advising manual verification at the official portal. |
| **`NOT_FOUND`** | No matching record was found in official registries or indexed web archives. |

### Transparent Portal Availability Warnings

If an official government or court portal times out, rate-limits (`HTTP 429`), denies automated access, or is temporarily down (`HTTP 5xx`), `jurisatlas-mcp` **never hides the error** behind an empty result — it returns plain-language `warnings` explaining exactly what happened.

### Built-In Legal Prompt Templates

- **`verify_citations_in_draft`** — Extracts every statute and case citation from a legal draft, checks each one, and produces a trust-labeled Verification Table.
- **`research_statute_and_precedent`** — Maps the court hierarchy, retrieves governing statutes and binding precedents, reads key passages, and verifies final citations.
- **`map_court_hierarchy`** — Explains Tier 1 (First Instance), Tier 2 (Regional / Appellate), and Tier 3 (Supreme / Constitutional) courts and official portal links.

### Covered Jurisdictions (43 Jurisdictions + Extensible Plugin Registry)

- **Common Law & Supranational (5):** United Kingdom (`uk`), United States (`us`), Australia (`au`), New Zealand (`nz`), European Union & ECHR (`eu`)
- **EFTA / EEA (4):** Switzerland (`ch`), Norway (`no`), Iceland (`is`), Liechtenstein (`li`)
- **EU-27 Member States (27):** Austria (`at`), Belgium (`be`), Bulgaria (`bg`), Croatia (`hr`), Cyprus (`cy`), Czechia (`cz`), Denmark (`dk`), Estonia (`ee`), Finland (`fi`), France (`fr`), Germany (`de`), Greece (`gr`), Hungary (`hu`), Ireland (`ie`), Italy (`it`), Latvia (`lv`), Lithuania (`lt`), Luxembourg (`lu`), Malta (`mt`), Netherlands (`nl`), Poland (`pl`), Portugal (`pt`), Romania (`ro`), Slovakia (`sk`), Slovenia (`si`), Spain (`es`), Sweden (`se`)
- **Western Balkans (6):** Bosnia and Herzegovina (`ba`), Serbia (`rs`), Montenegro (`me`), North Macedonia (`mk`), Kosovo (`xk`), Albania (`al`)
- **Türkiye & Associated (1):** Türkiye (`tr` — UYAP Mevzuat, Resmî Gazete, Yargıtay, Danıştay, Anayasa Mahkemesi, UYAP Emsal & Bedesten; pairs with the dedicated 24-institution [`tr-legal-mcp`](https://github.com/jurisatlas/tr-legal-mcp) server)

---

## Available MCP Tools (7 Total)

| Tool | Purpose |
| :--- | :--- |
| `list_jurisdictions` | Lists enabled country codes, regional groups, official portals, and native API support. |
| `search_legislation` | Searches enacted statutes, codes, regulations, and official gazettes for a `jurisdiction`. |
| `search_case_law` | Searches court decisions and binding precedents for a `jurisdiction`. |
| `get_legal_document_markdown` | Fetches full Markdown text (HTML or PDF) of a statute or judgment with pagination. |
| `list_court_hierarchy` | Returns the 3-tier court hierarchy and official regional sub-portals for a `jurisdiction`. |
| `search_tiered_court_decisions` | Searches decisions filtered by tier (`first_instance`, `appellate_regional`, `supreme_constitutional`) or sub-court. |
| `verify_citation` | Validates citations with honest trust labels (`VERIFIED_OFFICIAL_RECORD` / `UNCONFIRMED_WEB_MATCH` / `NOT_FOUND`). |

---

## For Developers, CLI & Hosted Streamable HTTP

<details>
<summary><b>Manual JSON Configuration (stdio via <code>uvx</code>)</b></summary>

```json
{
  "mcpServers": {
    "jurisatlas": {
      "command": "uvx",
      "args": [
        "--from",
        "https://github.com/jurisatlas/jurisatlas-mcp/archive/refs/heads/main.zip",
        "jurisatlas-mcp",
        "--countries",
        "uk,ch,eu"
      ],
      "env": {
        "PYTHONIOENCODING": "utf-8"
      }
    }
  }
}
```

For **VS Code** (`Code/User/mcp.json`), use `"servers"` with `"type": "stdio"`:

```json
{
  "servers": {
    "jurisatlas": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "--from",
        "https://github.com/jurisatlas/jurisatlas-mcp/archive/refs/heads/main.zip",
        "jurisatlas-mcp",
        "--countries",
        "all"
      ],
      "env": {
        "PYTHONIOENCODING": "utf-8"
      }
    }
  }
}
```

</details>

<details>
<summary><b>CLI Options, Environment Variables, Docker & Streamable HTTP Mode</b></summary>

### Local stdio mode
```bash
jurisatlas-mcp --countries uk,ch,eu
# Or with a regional preset (eu+uk+ch, dach, common-law, nordics, efta, balkans, eu-27, tr+eu)
jurisatlas-mcp --countries dach
# Inspect enabled jurisdictions without starting a server
jurisatlas-mcp --countries dach --list-jurisdictions
```

### Hosted Streamable HTTP mode (ChatGPT / Claude Web / Team Deployment)
```bash
jurisatlas-mcp --transport streamable-http --host 0.0.0.0 --port ${PORT:-8000} --path /mcp --countries all
```

### FastMCP Cloud Entrypoint
```text
src/jurisatlas_mcp/server.py:mcp
```

### Docker Quick Start
```bash
docker build -t jurisatlas-mcp .
docker run -p 8000:8000 -e JURISATLAS_COUNTRIES=all jurisatlas-mcp
# Streamable HTTP MCP endpoint is live at http://localhost:8000/mcp
```

### Supported Environment Variables
- `JURISATLAS_COUNTRIES`: Comma-separated codes, country names, presets, or `all` (default: `all`)
- `JURISATLAS_TRANSPORT`: `stdio` or `streamable-http` (default: `stdio`)
- `JURISATLAS_HOST` / `HOST`: Bind address for HTTP transport (default: `127.0.0.1`, `0.0.0.0` in Docker/Render/Fly)
- `JURISATLAS_PORT` / `PORT`: Bind port for HTTP transport (default: `8000`; automatically honors Render/Fly `$PORT`)
- `JURISATLAS_HTTP_PATH`: Endpoint path for HTTP transport (default: `/mcp`)
- `LOVDATA_API_KEY`: Optional enterprise key for authenticated Norway Lovdata API searches

</details>

<details>
<summary><b>Plugging In External Jurisdiction Providers (e.g., Türkiye / <code>tr</code>)</b></summary>

`jurisatlas-mcp` exposes `register_jurisdiction` and `EXTERNAL_PROVIDERS` so additional national engines can plug in seamlessly:

```python
from jurisatlas_mcp import register_jurisdiction

register_jurisdiction(
    {
        "code": "tr",
        "name": "Türkiye",
        "group": "Türkiye & Associated",
        "citation_example": "Yargıtay HGK, E. 2023/123, K. 2024/456; 6098 sayılı TBK m. 344",
        "leg_name": "UYAP Mevzuat Bilgi Sistemi (mevzuat.gov.tr)",
        "leg_url": "https://www.mevzuat.gov.tr",
        "case_name": "Yargıtay, Danıştay & Anayasa Mahkemesi",
        "case_url": "https://karararama.yargitay.gov.tr",
        "courts": ["Anayasa Mahkemesi", "Yargıtay", "Danıştay", "BAM / BİM"],
    },
    provider=my_external_provider,
    aliases=["turkey", "turkiye"],
)
```

</details>

<details>
<summary><b>Building the Claude Desktop <code>.mcpb</code> Bundle & Running Tests Locally</b></summary>

```bash
uv sync --extra dev
uv run pytest -v
uv run python scripts/build_mcpb.py
```

The validated extension bundle is written to `dist/jurisatlas-mcp.mcpb`.

</details>

---

## License

Released under the [MIT License](LICENSE). Copyright (c) 2026 JurisAtlas.

TDQS

A3.9/5.0

Scored across 7 tools

Disambiguation4/5

Most tools target distinct actions/resources (list jurisdictions, search legislation, retrieve document, verify citation). The main overlap is between search_case_law and search_tiered_court_decisions, which both return court decisions; the tier-filtered variant is differentiated by its judicial-tier parameter but an agent could still hesitate over which to call first.

Naming Consistency5/5

All seven tools follow a consistent snake_case verb_noun pattern (list_, search_, get_, verify_). The only slight deviation is the longer modifier in get_legal_document_markdown, but it still fits the convention and remains readable.

Tool Count5/5

Seven tools is well-scoped for a multi-jurisdiction legal research server. Each tool covers a distinct capability (discovery, legislation search, case law search, document retrieval, hierarchy lookup, tiered filtering, citation verification) without obvious padding.

Completeness4/5

The surface covers the core legal research lifecycle: jurisdiction discovery, legislation and case law search, full-text retrieval, court hierarchy, and citation verification. Minor gaps exist, such as no cross-jurisdiction simultaneous search or citation-graph/related-document traversal, but these are workarounds rather than blockers.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues