eu.ansvar/uae-law-mcp

UAE legislation via MCP — full-text search across federal laws, DIFC laws, and ADGM regulations

0Apache-2.0cloud

Install

Config snippet generator goes here (5 client tabs)

README

# UAE Law MCP Server

**The MOHRE / UAE Legislation Portal alternative for the AI age.**

[![npm version](https://badge.fury.io/js/@ansvar%2Fuae-law-mcp.svg)](https://www.npmjs.com/package/@ansvar/uae-law-mcp)
[![MCP Registry](https://img.shields.io/badge/MCP-Registry-blue)](https://registry.modelcontextprotocol.io)
[![License](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)
[![GitHub stars](https://img.shields.io/github/stars/Ansvar-Systems/uae-law-mcp?style=social)](https://github.com/Ansvar-Systems/uae-law-mcp)
[![CI](https://github.com/Ansvar-Systems/uae-law-mcp/actions/workflows/ci.yml/badge.svg)](https://github.com/Ansvar-Systems/uae-law-mcp/actions/workflows/ci.yml)
[![Database](https://img.shields.io/badge/database-pre--built-green)](https://github.com/Ansvar-Systems/uae-law-mcp)
[![Provisions](https://img.shields.io/badge/provisions-113%2C230-blue)](https://github.com/Ansvar-Systems/uae-law-mcp)

Query **4,797 UAE federal laws and regulations** -- from the Personal Data Protection Law and Cybercrimes Law to the Federal Penal Code, Commercial Companies Law, and Electronic Transactions Law -- directly from Claude, Cursor, or any MCP-compatible client.

If you're building legal tech, compliance tools, or doing UAE legal research, this is your verified reference database.

Built by [Ansvar Systems](https://ansvar.eu) -- Stockholm, Sweden

---

## Why This Exists

UAE legal research means navigating mohre.gov.ae, legislation.gov.ae, uaelegislation.gov.ae, and free-zone portals like DIFC and ADGM separately. Whether you're:

- A **lawyer** validating citations in a brief or contract
- A **compliance officer** checking PDPL obligations or DIFC Data Protection Law requirements
- A **legal tech developer** building tools on UAE federal or free-zone law
- A **researcher** tracing provisions across 4,797 federal instruments

...you shouldn't need dozens of browser tabs and manual cross-referencing across Arabic and English sources. Ask Claude. Get the exact provision. With context.

This MCP server makes UAE law **searchable, cross-referenceable, and AI-readable**.

---

## Quick Start

### Use Remotely (No Install Needed)

> Connect directly to the hosted version -- zero dependencies, nothing to install.

**Endpoint:** `https://uae-law-mcp.vercel.app/mcp`

| Client | How to Connect |
|--------|---------------|
| **Claude.ai** | Settings > Connectors > Add Integration > paste URL |
| **Claude Code** | `claude mcp add uae-law --transport http https://uae-law-mcp.vercel.app/mcp` |
| **Claude Desktop** | Add to config (see below) |
| **GitHub Copilot** | Add to VS Code settings (see below) |

**Claude Desktop** -- add to `claude_desktop_config.json`:

```json
{
  "mcpServers": {
    "uae-law": {
      "type": "url",
      "url": "https://uae-law-mcp.vercel.app/mcp"
    }
  }
}
```

**GitHub Copilot** -- add to VS Code `settings.json`:

```json
{
  "github.copilot.chat.mcp.servers": {
    "uae-law": {
      "type": "http",
      "url": "https://uae-law-mcp.vercel.app/mcp"
    }
  }
}
```

### Use Locally (npm)

```bash
npx @ansvar/uae-law-mcp
```

**Claude Desktop** -- add to `claude_desktop_config.json`:

**macOS:** `~/Library/Application Support/Claude/claude_desktop_config.json`
**Windows:** `%APPDATA%\Claude\claude_desktop_config.json`

```json
{
  "mcpServers": {
    "uae-law": {
      "command": "npx",
      "args": ["-y", "@ansvar/uae-law-mcp"]
    }
  }
}
```

**Cursor / VS Code:**

```json
{
  "mcp.servers": {
    "uae-law": {
      "command": "npx",
      "args": ["-y", "@ansvar/uae-law-mcp"]
    }
  }
}
```

---

## Example Queries

Once connected, just ask naturally:

- *"البحث عن 'حماية البيانات الشخصية' في قانون رقم 45 لعام 2021"* (Search for "personal data protection" in Federal Decree-Law No. 45 of 2021)
- *"ما الذي يقوله قانون العقوبات الاتحادي بشأن جرائم المعلوماتية؟"* (What does the Federal Penal Code say about information crimes?)
- *"البحث عن أحكام قانون العمل الاتحادي بشأن عقود العمل"* (Search for provisions in the Federal Labour Law on employment contracts)
- *"What does the UAE PDPL (Federal Decree-Law No. 45 of 2021) say about data subject rights?"*
- *"Find provisions in the Cybercrimes Law about unauthorized access"*
- *"Is the Electronic Transactions Law still in force?"*
- *"Search for DIFC Data Protection Law provisions on consent"*
- *"Validate the citation Federal Decree-Law No. 45 of 2021, Article 12"*
- *"Build a legal stance on data localization requirements in UAE law"*

---

## What's Included

| Category | Count | Details |
|----------|-------|---------|
| **Federal Laws & Regulations** | 4,797 instruments | Federal decrees, laws, cabinet resolutions |
| **Provisions** | 113,230 sections | Full-text searchable with FTS5 |
| **Coverage** | Federal + DIFC/ADGM | Federal law plus key free-zone data protection frameworks |
| **Data Source** | moj.gov.ae | UAE Ministry of Justice official source |
| **Database Size** | Optimiz