eu.ansvar/malaysian-law-mcp

Malaysian legislation via MCP — full-text search across statutes and provisions

0NOASSERTIONsearch

Install

Config snippet generator goes here (5 client tabs)

README

# Malaysian Law MCP Server

**The Laws of Malaysia alternative for the AI age.**

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

Query **589 Malaysian federal statutes** -- from the Computer Crimes Act and Anti-Money Laundering Act to the Employment Act, Income Tax Act, and more -- directly from Claude, Cursor, or any MCP-compatible client.

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

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

---

## Why This Exists

Malaysian legal research is scattered across the AGC portal (lom.agc.gov.my), CommonLII, and various government gazettes. Whether you're:
- A **lawyer** validating citations in a brief or contract
- A **compliance officer** checking data protection or AML obligations
- A **legal tech developer** building tools on Malaysian law
- A **researcher** tracing legislative provisions

...you shouldn't need to navigate multiple sources and PDFs manually. Ask Claude. Get the exact provision. With context.

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

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

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

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

### Use Locally (npm)

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

**Cursor / VS Code:**

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

## Example Queries

Once connected, just ask naturally:

- *"What does the Computer Crimes Act 1997 say about unauthorised access?"*
- *"Find provisions about money laundering in Malaysian law"*
- *"What are the penalties under the Anti-Money Laundering Act 2001?"*
- *"Show me Section 2 of the Employment Act 1955 -- the definitions"*
- *"What does the Communications and Multimedia Act say about licensing?"*
- *"Find provisions about evidence and computer documents"*
- *"What are the offences under the Arms Act?"*

---

## What's Included

| Category | Count | Details |
|----------|-------|---------|
| **Statutes** | 589 statutes | Comprehensive Malaysian federal legislation |
| **Provisions** | 24,514 sections | Full-text searchable with FTS5 |
| **Legal Definitions** | 5,830 definitions | Extracted from interpretation sections |
| **Database Size** | ~42 MB | Optimized SQLite, portable |
| **Census Coverage** | 664 Acts enumerated | 589 ingestable, 75 repealed (metadata only) |

**Verified data only** -- every provision is ingested from CommonLII (AustLII), which hosts the official English text of Malaysian consolidated statutes. Zero LLM-generated content.

**Note:** The CommonLII Malaysian legislation database was last updated in March 2010. Acts en