Malaysian legislation via MCP — full-text search across statutes and provisions
Malaysian legislation via MCP — full-text search across statutes and provisions
Valid MCP server (3 strong, 3 medium validity signals). 2 known CVEs in dependencies (1 critical, 1 high severity) Package registry verified. Imported from the Official MCP Registry. Trust signals: trusted author (202/205 approved).
5 files analyzed · 3 issues found
Security scores are indicators to help you make informed decisions, not guarantees. Always review permissions before connecting any MCP server.
This plugin requests these system permissions. Most are normal for its category.
Add this to your MCP configuration file:
{
"mcpServers": {
"eu-ansvar-malaysian-law-mcp": {
"args": [
"-y",
"@ansvar/malaysian-law-mcp"
],
"command": "npx"
}
}
}From the project's GitHub README.
The Laws of Malaysia alternative for the AI age.
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 -- Stockholm, Sweden
Malaysian legal research is scattered across the AGC portal (lom.agc.gov.my), CommonLII, and various government gazettes. Whether you're:
...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.
Connect directly to the hosted version -- zero dependencies, nothing to install.
Endpoint: https://mcp.ansvar.eu/law-my/mcp
| Client | How to Connect |
|---|---|
| Claude.ai | Settings > Connectors > Add Integration > paste URL |
| Claude Code | claude mcp add malaysian-law --transport http https://mcp.ansvar.eu/law-my/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:
{
"mcpServers": {
"malaysian-law": {
"type": "url",
"url": "https://mcp.ansvar.eu/law-my/mcp"
}
}
}
GitHub Copilot -- add to VS Code settings.json:
{
"github.copilot.chat.mcp.servers": {
"malaysian-law": {
"type": "http",
"url": "https://mcp.ansvar.eu/law-my/mcp"
}
}
}
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
{
"mcpServers": {
"malaysian-law": {
"command": "npx",
"args": ["-y", "@ansvar/malaysian-law-mcp"]
}
}
}
Cursor / VS Code:
{
"mcp.servers": {
"malaysian-law": {
"command": "npx",
"args": ["-y", "@ansvar/malaysian-law-mcp"]
}
}
}
Once connected, just ask naturally:
| 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 enacted after that date (e.g., PDPA 2010, Companies Act 2016) are not yet available from this source. A future update will supplement from AGC (lom.agc.gov.my) for post-2010 legislation.
Verbatim Source Text (No LLM Processing):
Smart Context Management:
Technical Architecture:
CommonLII Index --> Census --> Ingest --> Parse --> SQLite --> FTS5 snippet() --> MCP response
| | |
664 Acts enumerated Section parser Verbatim database query
| Tool | Description |
|---|---|
search_legislation | FTS5 search on 24,514 provisions with BM25 ranking |
get_provision | Retrieve specific provision by act title + section number |
search_case_law | FTS5 search on case law (reserved for future expansion) |
get_preparatory_works | Get linked preparatory documents (reserved) |
validate_citation | Validate citation against database (zero-hallucination check) |
build_legal_stance | Aggregate citations from statutes and cross-references |
format_citation | Format citations per Malaysian conventions |
check_currency | Check if statute is in force, amended, or repealed |
| Tool | Description |
|---|---|
get_eu_basis | Get EU directives/regulations referenced in Malaysian statutes |
get_malaysian_implementations | Find Malaysian laws implementing international frameworks |
search_eu_implementations | Search EU documents with Malaysian implementation counts |
get_provision_eu_basis | Get international law references for specific provision |
validate_eu_compliance | Check implementation status |
| Domain | Acts | Significance |
|---|---|---|
| Cybercrime | Computer Crimes Act 1997 (Act 563) | Unauthorised access, modification, interception |
| Telecom | Communications and Multimedia Act 1998 (Act 588) | MCMC, licensing, content regulation |
| Finance | Anti-Money Laundering Act 2001, Income Tax Act 1967 | AML/CFT obligations, fiscal compliance |
| Employment | Employment Act 1955 | Labour rights, minimum standards |
| Evidence | Evidence Act 1950 | Admissibility of electronic evidence (s90A-90C) |
| Criminal | Penal Code (Revised 1997) | General criminal offences including cyber-related |
| Consumer | Consumer Protection Act 1999 | E-commerce consumer protection |
All content is sourced from authoritative legal databases:
The ingestion pipeline uses a census-first approach:
| Step | Script | Output |
|---|---|---|
| Census | npm run census | data/census.json -- enumerates all 664 Acts |
| Ingest | npm run ingest | data/seed/*.json -- fetches and parses all provisions |
| Build | npm run build:db | data/database.db -- SQLite with FTS5 |
This project uses multiple layers of automated security scanning:
| Scanner | What It Does | Schedule |
|---|---|---|
| CodeQL | Static analysis for security vulnerabilities | Weekly + PRs |
| Semgrep | SAST scanning (OWASP top 10, secrets, TypeScript) | Every push |
| Gitleaks | Secret detection across git history | Every push |
| Trivy | CVE scanning on filesystem and npm dependencies | Daily |
| Docker Security | Container image scanning + SBOM generation | Daily |
| Socket.dev | Supply chain attack detection | PRs |
| OSSF Scorecard | OpenSSF best practices scoring | Weekly |
| Dependabot | Automated dependency updates | Weekly |
See SECURITY.md for the full policy and vulnerability reporting.
THIS TOOL IS NOT LEGAL ADVICE
Statute text is sourced from CommonLII's consolidated collection. However:
- This is a research tool, not a substitute for professional legal counsel
- Coverage is limited to pre-2010 legislation -- PDPA 2010 and later Acts are not yet included
- Verify critical citations against primary sources (lom.agc.gov.my) for court filings
- The Malay text prevails in case of conflict between English and Malay versions
Before using professionally, read: DISCLAIMER.md | PRIVACY.md
Queries go through the Claude API. For privileged or confidential matters, use on-premise deployment. See PRIVACY.md for professional compliance guidance.
git clone https://github.com/Ansvar-Systems/malaysian-law-mcp
cd malaysian-law-mcp
npm install
npm run build
npm test
npm run dev # Start MCP server
npx @anthropic/mcp-inspector node dist/index.js # Test with MCP Inspector
npm run census # Enumerate all Acts from CommonLII
npm run ingest # Full census-driven ingestion
npm run ingest -- --limit 10 # Test with 10 acts
npm run ingest -- --resume # Resume interrupted ingestion
npm run ingest -- --skip-fetch # Reuse cached HTML
npm run build:db # Rebuild SQLite database
npm run check-updates # Check for amendments
npm run drift:detect # Detect data drift
This MCP includes 12 golden contract tests covering:
Run with: npm run test:contract
This server is part of Ansvar's Compliance Suite -- MCP servers that work together for end-to-end compliance coverage:
Query 49 EU regulations directly from Claude -- GDPR, AI Act, DORA, NIS2, MiFID II, eIDAS, and more. Full regulatory text with article-level search. npx @ansvar/eu-regulations-mcp
Query US federal and state compliance laws -- HIPAA, CCPA, SOX, GLBA, FERPA, and more. npm install @ansvar/us-regulations-mcp
Query 589 Malaysian federal statutes directly from Claude -- Computer Crimes Act, AML Act, Evidence Act, Employment Act, and more. Full provision text with FTS5 search. npx @ansvar/malaysian-law-mcp
Offline-capable sanctions screening -- OFAC, EU, UN sanctions lists. pip install ansvar-sanctions-mcp
If you use this MCP server in academic research:
@software{malaysian_law_mcp_2026,
author = {Ansvar Systems AB},
title = {Malaysian Law MCP Server: Production-Grade Legal Research Tool},
year = {2026},
url = {https://github.com/Ansvar-Systems/malaysian-law-mcp},
note = {Comprehensive Malaysian legal database with 589 statutes and 24,514 provisions}
}
Apache License 2.0. See LICENSE for details.
We build AI-accelerated compliance and legal research tools for the global market. This MCP server started as part of our coverage of ASEAN jurisdictions -- Malaysian law is critical for cross-border compliance in Southeast Asia.
So we're open-sourcing it. Navigating 589 statutes shouldn't require manual PDF searching.
ansvar.eu -- Stockholm, Sweden
Be the first to review this server!
by Modelcontextprotocol · Developer Tools
Read, search, and manipulate Git repositories programmatically
by Toleno · Developer Tools
Toleno Network MCP Server — Manage your Toleno mining account with Claude AI using natural language.
by mcp-marketplace · Developer Tools
Create, build, and publish Python MCP servers to PyPI — conversationally.
by Microsoft · Content & Media
Convert files (PDF, Word, Excel, images, audio) to Markdown for LLM consumption
by mcp-marketplace · Developer Tools
Scaffold, build, and publish TypeScript MCP servers to npm — conversationally
by mcp-marketplace · Finance
Free stock data and market news for any MCP-compatible AI assistant.