eu.ansvar/bahraini-law-mcp

Bahrain legislation via MCP -- full-text search across statutes and provisions

0NOASSERTIONsearch

Install

Config snippet generator goes here (5 client tabs)

README

# Bahraini Law MCP Server

**The Bahrain Legislation Portal alternative for the AI age.**

[![npm version](https://badge.fury.io/js/@ansvar%2Fbahraini-law-mcp.svg)](https://www.npmjs.com/package/@ansvar/bahraini-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/Bahraini-law-mcp?style=social)](https://github.com/Ansvar-Systems/Bahraini-law-mcp)
[![CI](https://github.com/Ansvar-Systems/Bahraini-law-mcp/actions/workflows/ci.yml/badge.svg)](https://github.com/Ansvar-Systems/Bahraini-law-mcp/actions/workflows/ci.yml)
[![Daily Data Check](https://github.com/Ansvar-Systems/Bahraini-law-mcp/actions/workflows/check-updates.yml/badge.svg)](https://github.com/Ansvar-Systems/Bahraini-law-mcp/actions/workflows/check-updates.yml)
[![Database](https://img.shields.io/badge/database-pre--built-green)](https://github.com/Ansvar-Systems/Bahraini-law-mcp)
[![Provisions](https://img.shields.io/badge/provisions-14%2C506-blue)](https://github.com/Ansvar-Systems/Bahraini-law-mcp)

Query **1,622 Bahraini laws** -- from Personal Data Protection Law No. 30 of 2018 and the Penal Code to the Labour Law for the Private Sector, Commercial Companies Law, and more -- directly from Claude, Cursor, or any MCP-compatible client.

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

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

---

## Why This Exists

Bahraini legal research means navigating legislation.gov.bh, the Ministry of Justice and Islamic Affairs portal (moj.gov.bh), and the Legal Affairs Directorate (legalaffairs.gov.bh). Whether you're:

- A **lawyer** validating citations in a brief or contract
- A **compliance officer** checking obligations under the Personal Data Protection Law or the Financial Institutions Law
- A **legal tech developer** building tools on Bahraini law
- A **researcher** tracing legislative provisions across royal decrees and law articles

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

This MCP server makes Bahraini 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://bahraini-law-mcp.vercel.app/mcp`

| Client | How to Connect |
|--------|---------------|
| **Claude.ai** | Settings > Connectors > Add Integration > paste URL |
| **Claude Code** | `claude mcp add bahraini-law --transport http https://bahraini-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": {
    "bahraini-law": {
      "type": "url",
      "url": "https://bahraini-law-mcp.vercel.app/mcp"
    }
  }
}
```

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

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

### Use Locally (npm)

```bash
npx @ansvar/bahraini-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": {
    "bahraini-law": {
      "command": "npx",
      "args": ["-y", "@ansvar/bahraini-law-mcp"]
    }
  }
}
```

**Cursor / VS Code:**

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

---

## Example Queries

Once connected, just ask naturally:

- *"What does Personal Data Protection Law No. 30 of 2018 say about data subject rights?"*
- *"Find provisions in the Penal Code about financial fraud and forgery"*
- *"What does the Labour Law for the Private Sector say about termination and end-of-service benefits?"*
- *"Search for company formation requirements under the Commercial Companies Law"*
- *"Is Legislative Decree No. 48 of 2010 (Financial Institutions Law) still in force?"*
- *"Find provisions about anti-money laundering under Decree-Law No. 4 of 2001"*
- *"Build a legal stance on data protection obligations for financial institutions in Bahrain"*
- *"Validate the citation 'Article 5 of Law No. 30 of 2018'"*

**In Arabic (العربية):**

- *"البحث عن أحكام حماية البيانات الشخصية في القانون رقم 30 لسنة 2018"*
  (Search for personal data protection provisions in Law No. 30 of 2018)
- *"ما الذي يقوله قانون العمل في القطاع الأهلي عن إنهاء الخدمة؟"*
  (What does the Labour Law for the Private Sector