Back to Directory/Search & Knowledge

eu.ansvar/indonesian-law-mcp

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

Search & KnowledgeTypeScriptv1.0.1

Indonesian Law MCP Server

The JDIH BPK (Jaringan Dokumentasi dan Informasi Hukum) alternative for the AI age.

npm version MCP Registry License GitHub stars CI Database Provisions

Cari 1.924 Undang-Undang (UU) Indonesia -- dari UU Pelindungan Data Pribadi (UU PDP No. 27/2022) dan Kitab Undang-Undang Hukum Pidana (KUHP) hingga UU Ketenagakerjaan, UU ITE, dan lebih banyak lagi -- langsung dari Claude, Cursor, atau klien MCP apa pun.

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

Built by Ansvar Systems -- Stockholm, Sweden


Mengapa alat ini ada

Penelitian hukum Indonesia tersebar di peraturan.go.id, jdih.kemenkumham.go.id, BPK RI, dan portal JDIH kementerian yang berbeda-beda. Baik Anda:

  • Seorang pengacara memvalidasi kutipan dalam dokumen hukum atau kontrak
  • Seorang profesional kepatuhan memeriksa kewajiban UU PDP atau peraturan OJK
  • Seorang pengembang legaltech membangun alat berdasarkan hukum Indonesia
  • Seorang peneliti melacak peraturan perundang-undangan Indonesia di 1.924 UU

...Anda seharusnya tidak memerlukan puluhan tab browser dan pencarian PDF manual. Tanyakan kepada Claude. Dapatkan ketentuan yang tepat. Dengan konteks.

Server MCP ini membuat hukum Indonesia dapat dicari, dapat direferensikan, dan dapat dibaca oleh AI.


Quick Start

Use Remotely (No Install Needed)

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

Endpoint: https://indonesian-law-mcp.vercel.app/mcp

ClientHow to Connect
Claude.aiSettings > Connectors > Add Integration > paste URL
Claude Codeclaude mcp add indonesian-law --transport http https://indonesian-law-mcp.vercel.app/mcp
Claude DesktopAdd to config (see below)
GitHub CopilotAdd to VS Code settings (see below)

Claude Desktop -- add to claude_desktop_config.json:

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

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

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

Use Locally (npm)

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

Cursor / VS Code:

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

Contoh Kueri

Setelah terhubung, tanyakan secara alami:

  • "Cari 'pelindungan data pribadi' dalam UU PDP No. 27/2022"
  • "Apa isi Pasal 30 KUHP tentang pidana denda?"
  • "Temukan ketentuan tentang pemutusan hubungan kerja dalam UU Ketenagakerjaan"
  • "Apakah UU ITE No. 11/2008 masih berlaku?"
  • "Cari kewajiban keamanan data dalam UU PDP"
  • "Apa persyaratan persetujuan dalam UU Perlindungan Konsumen?"
  • "Bagaimana UU PDP Indonesia selaras dengan kerangka perlindungan data ASEAN?"
  • "Validasi kutipan: UU No. 27 Tahun 2022, Pasal 16"
  • "Bangun argumen hukum tentang hak subjek data dalam hukum Indonesia"

What's Included

CategoryCountDetails
Undang-Undang1,924 lawsComplete Indonesian legislative corpus from BPK RI
Provisions (Pasal)2,225 sectionsFull-text searchable with FTS5
Database Size~2 MBOptimized SQLite, portable
LanguageIndonesian (Bahasa Indonesia)Official language of Indonesian law
Freshness ChecksAutomatedDrift detection against JDIH BPK

Key Laws Included

LawDescription
UU No. 27/2022 (UU PDP)Undang-Undang Pelindungan Data Pribadi
UU No. 11/2008 jo. 19/2016 (UU ITE)Informasi dan Transaksi Elektronik
KUHP (Kitab UU Hukum Pidana)Criminal Code
UU No. 13/2003 (Ketenagakerjaan)Employment / Labour Law
UU No. 8/1999 (Perlindungan Konsumen)Consumer Protection
UU No. 40/2007 (Perseroan Terbatas)Limited Liability Companies
UU No. 4/2023 (P2SK)Financial Sector Development

Verified data only -- every citation is validated against official sources (peraturan.bpk.go.id, jdih.kemenkumham.go.id). Zero LLM-generated content.


Why This Works

Verbatim Source Text (No LLM Processing):

  • All statute text is ingested from peraturan.go.id and jdih.kemenkumham.go.id official sources using a census-first full corpus approach (BPK RI + JDIH Nasional)
  • Provisions are returned unchanged from SQLite FTS5 database rows
  • Zero LLM summarization or paraphrasing -- the database contains law text, not AI interpretations

Smart Context Management:

  • Search returns ranked provisions with BM25 scoring (safe for context)
  • Provision retrieval gives exact text by law number + pasal (article)
  • Cross-references help navigate without loading everything at once

Technical Architecture:

text
JDIH BPK / peraturan.go.id --> Parse --> SQLite --> FTS5 snippet() --> MCP response
                                  ^                        ^
                           Provision parser         Verbatim database query

Traditional Research vs. This MCP

Pendekatan TradisionalServer MCP ini
Cari di peraturan.go.id berdasarkan nomor UUCari dalam Bahasa Indonesia: "pelindungan data pribadi"
Navigasi manual UU multi-pasalDapatkan ketentuan yang tepat dengan konteks
Referensi silang manual antar UUbuild_legal_stance mengagregasi dari berbagai sumber
"Apakah UU ini masih berlaku?" -- periksa manualAlat check_currency -- jawaban dalam hitungan detik
Temukan kerangka ASEAN -- cari manualget_eu_basis -- kerangka internasional terkait langsung
Tanpa API, tanpa integrasiProtokol MCP -- native AI

Tradisional: Cari di JDIH --> Unduh PDF --> Ctrl+F dalam Bahasa Indonesia --> Referensi silang UU lain --> Periksa kerangka ASEAN secara terpisah --> Ulangi

MCP ini: "Apa kewajiban pemrosesan data berdasarkan UU PDP No. 27/2022 dan bagaimana selarasnya dengan standar internasional?" --> Selesai.


Available Tools (13)

Core Legal Research Tools (8)

ToolDescription
search_legislationFTS5 full-text search across 2,225 provisions with BM25 ranking. Supports Bahasa Indonesia queries
get_provisionRetrieve specific provision by law number + pasal (article)
check_currencyCheck if a law is in force, amended, or repealed
validate_citationValidate citation against database -- zero-hallucination check
build_legal_stanceAggregate citations from multiple laws for a legal topic
format_citationFormat citations per Indonesian conventions (full/short/pinpoint)
list_sourcesList all available laws with metadata, coverage scope, and data provenance
aboutServer info, capabilities, dataset statistics, and coverage summary

International Law Integration Tools (5)

ToolDescription
get_eu_basisGet international frameworks (ASEAN, G20, WTO) that an Indonesian law aligns with
get_indonesian_implementationsFind Indonesian laws implementing a specific international instrument
search_eu_implementationsSearch international documents with Indonesian implementation counts
get_provision_eu_basisGet international law references for a specific provision
validate_eu_complianceCheck alignment status of Indonesian laws against international frameworks

International Law Alignment

Indonesia is not an EU member state. Indonesian law aligns with international frameworks through:

  • ASEAN framework -- Indonesia is a founding ASEAN member and the largest economy; digital economy and data protection laws (UU PDP) align with ASEAN frameworks
  • G20 -- Indonesia holds G20 membership; financial regulation and data governance align with G20 commitments
  • WTO -- Trade, intellectual property, and e-commerce law follows WTO commitments
  • UNCITRAL -- Electronic transactions framework follows UNCITRAL model law principles
  • Perhimpunan Advokat Indonesia (PERADI) / Kongres Advokat Indonesia (KAI) -- Professional legal practice regulated by PERADI and KAI

The international bridge tools allow you to explore these alignment relationships -- checking which Indonesian provisions correspond to ASEAN or G20 requirements, and vice versa.

Note: International cross-references reflect alignment and treaty obligation relationships. Indonesia adopts its own legislative approach, and the tools help identify where Indonesian and international law address the same domains.


Data Sources & Freshness

All content is sourced from authoritative Indonesian legal databases:

Data Provenance

FieldValue
AuthorityBPK RI (Badan Pemeriksa Keuangan) / JDIH Nasional
LanguageIndonesian (Bahasa Indonesia)
Coverage1,924 Undang-Undang across all legislative areas
Ingestion methodCensus-first full corpus from BPK RI + JDIH Nasional
Last ingested2026-02-28

Automated Freshness Checks

A GitHub Actions workflow monitors all data sources:

CheckMethod
Law amendmentsDrift detection against known pasal anchors
New lawsComparison against JDIH BPK index
Repealed lawsStatus change detection

Verified data only -- every citation is validated against official sources. Zero LLM-generated content.


Security

This project uses multiple layers of automated security scanning:

ScannerWhat It DoesSchedule
CodeQLStatic analysis for security vulnerabilitiesWeekly + PRs
SemgrepSAST scanning (OWASP top 10, secrets, TypeScript)Every push
GitleaksSecret detection across git historyEvery push
TrivyCVE scanning on filesystem and npm dependenciesDaily
Socket.devSupply chain attack detectionPRs
DependabotAutomated dependency updatesWeekly

See SECURITY.md for the full policy and vulnerability reporting.


Important Disclaimers

Legal Advice

THIS TOOL IS NOT LEGAL ADVICE

Statute text is sourced from JDIH BPK RI and peraturan.go.id official databases. However:

  • This is a research tool, not a substitute for professional legal counsel
  • Court case coverage is not included -- do not rely solely on this for jurisprudence research
  • Verify critical citations against primary sources (peraturan.go.id) for official proceedings
  • International cross-references reflect alignment relationships, not formal transposition
  • Regional/local regulations (Perda) are not included -- this covers national Undang-Undang only
  • For professional legal advice in Indonesia, consult a member of PERADI (Perhimpunan Advokat Indonesia) or KAI (Kongres Advokat Indonesia)

Before using professionally, read: DISCLAIMER.md | SECURITY.md

Client Confidentiality

Queries go through the Claude API. For privileged or confidential matters, use on-premise deployment.


Development

Setup

bash
git clone https://github.com/Ansvar-Systems/indonesian-law-mcp
cd indonesian-law-mcp
npm install
npm run build
npm test

Running Locally

bash
npm run dev                                       # Start MCP server
npx @anthropic/mcp-inspector node dist/index.js   # Test with MCP Inspector

Data Management

bash
npm run ingest              # Ingest laws from JDIH BPK
npm run build:db            # Rebuild SQLite database
npm run check-updates       # Check for amendments and new laws

Performance

  • Search Speed: <100ms for most FTS5 queries
  • Database Size: ~2 MB (efficient, portable)
  • Reliability: 100% ingestion success rate

Related Projects: Complete Compliance Suite

This server is part of Ansvar's Compliance Suite -- MCP servers that work together for end-to-end compliance coverage:

@ansvar/eu-regulations-mcp

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

@ansvar/security-controls-mcp

Query 261 security frameworks -- ISO 27001, NIST CSF, SOC 2, CIS Controls, SCF, and more. npx @ansvar/security-controls-mcp

@ansvar/sanctions-mcp

Offline-capable sanctions screening -- OFAC, EU, UN sanctions lists. pip install ansvar-sanctions-mcp

70+ national law MCPs covering Australia, Brazil, Canada, China, Denmark, Finland, France, Germany, Ghana, Iceland, India, Ireland, Israel, Italy, Japan, Kenya, Netherlands, Nigeria, Norway, Singapore, Slovenia, South Korea, Sweden, Switzerland, Thailand, UAE, UK, and more.


Contributing

Contributions welcome! See CONTRIBUTING.md for guidelines.

Priority areas:

  • Expanded provision extraction and pasal coverage
  • Court case law (Mahkamah Agung, Mahkamah Konstitusi decisions)
  • Government regulation (Peraturan Pemerintah / PP) coverage
  • Historical law versions and amendment tracking

Roadmap

  • Core law database with FTS5 search
  • Full corpus ingestion (1,924 UU, 2,225 provisions)
  • Census-first full corpus from BPK RI + JDIH Nasional
  • International law alignment tools (ASEAN, G20, WTO)
  • Vercel Streamable HTTP deployment
  • npm package publication
  • Expanded pasal-level provision extraction
  • Court case law expansion
  • PP (Peraturan Pemerintah) and Perpres coverage
  • Historical law versions (amendment tracking)

Citation

If you use this MCP server in academic research:

bibtex
@software{indonesian_law_mcp_2026,
  author = {Ansvar Systems AB},
  title = {Indonesian Law MCP Server: AI-Powered Legal Research Tool},
  year = {2026},
  url = {https://github.com/Ansvar-Systems/indonesian-law-mcp},
  note = {1,924 Indonesian Undang-Undang with 2,225 provisions from BPK RI and JDIH Nasional}
}

License

Apache License 2.0. See LICENSE for details.

Data Licenses

  • Statutes & Legislation: BPK RI / JDIH Nasional (public domain)
  • International References: ASEAN, G20, WTO (public domain)

About Ansvar Systems

We build AI-accelerated compliance and legal research tools for the global market. This MCP server started as our internal reference tool for Indonesian legal research -- turns out everyone building compliance tools for Southeast Asia has the same research frustrations.

So we're open-sourcing it. Navigating 1,924 Undang-Undang across JDIH BPK and peraturan.go.id shouldn't take hours.

ansvar.eu -- Stockholm, Sweden


Learn More