Indonesian legislation via MCP — full-text search across statutes and provisions
Indonesian legislation via MCP — full-text search across statutes and provisions
Valid MCP server (2 strong, 2 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 (119/119 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-indonesian-law-mcp": {
"args": [
"-y",
"@ansvar/indonesian-law-mcp"
],
"command": "npx"
}
}
}From the project's GitHub README.
The JDIH BPK (Jaringan Dokumentasi dan Informasi Hukum) alternative for the AI age.
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
Penelitian hukum Indonesia tersebar di peraturan.go.id, jdih.kemenkumham.go.id, BPK RI, dan portal JDIH kementerian yang berbeda-beda. Baik Anda:
...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.
Connect directly to the hosted version -- zero dependencies, nothing to install.
Endpoint: https://mcp.ansvar.eu/law-id/mcp
| Client | How to Connect |
|---|---|
| Claude.ai | Settings > Connectors > Add Integration > paste URL |
| Claude Code | claude mcp add indonesian-law --transport http https://mcp.ansvar.eu/law-id/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": {
"indonesian-law": {
"type": "url",
"url": "https://mcp.ansvar.eu/law-id/mcp"
}
}
}
GitHub Copilot -- add to VS Code settings.json:
{
"github.copilot.chat.mcp.servers": {
"indonesian-law": {
"type": "http",
"url": "https://mcp.ansvar.eu/law-id/mcp"
}
}
}
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
{
"mcpServers": {
"indonesian-law": {
"command": "npx",
"args": ["-y", "@ansvar/indonesian-law-mcp"]
}
}
}
Cursor / VS Code:
{
"mcp.servers": {
"indonesian-law": {
"command": "npx",
"args": ["-y", "@ansvar/indonesian-law-mcp"]
}
}
}
Setelah terhubung, tanyakan secara alami:
| Category | Count | Details |
|---|---|---|
| Undang-Undang | 1,924 laws | Complete Indonesian legislative corpus from BPK RI |
| Provisions (Pasal) | 2,225 sections | Full-text searchable with FTS5 |
| Database Size | ~2 MB | Optimized SQLite, portable |
| Language | Indonesian (Bahasa Indonesia) | Official language of Indonesian law |
| Freshness Checks | Automated | Drift detection against JDIH BPK |
| Law | Description |
|---|---|
| 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.
Verbatim Source Text (No LLM Processing):
Smart Context Management:
Technical Architecture:
JDIH BPK / peraturan.go.id --> Parse --> SQLite --> FTS5 snippet() --> MCP response
^ ^
Provision parser Verbatim database query
| Pendekatan Tradisional | Server MCP ini |
|---|---|
| Cari di peraturan.go.id berdasarkan nomor UU | Cari dalam Bahasa Indonesia: "pelindungan data pribadi" |
| Navigasi manual UU multi-pasal | Dapatkan ketentuan yang tepat dengan konteks |
| Referensi silang manual antar UU | build_legal_stance mengagregasi dari berbagai sumber |
| "Apakah UU ini masih berlaku?" -- periksa manual | Alat check_currency -- jawaban dalam hitungan detik |
| Temukan kerangka ASEAN -- cari manual | get_eu_basis -- kerangka internasional terkait langsung |
| Tanpa API, tanpa integrasi | Protokol 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.
| Tool | Description |
|---|---|
search_legislation | FTS5 full-text search across 2,225 provisions with BM25 ranking. Supports Bahasa Indonesia queries |
get_provision | Retrieve specific provision by law number + pasal (article) |
check_currency | Check if a law is in force, amended, or repealed |
validate_citation | Validate citation against database -- zero-hallucination check |
build_legal_stance | Aggregate citations from multiple laws for a legal topic |
format_citation | Format citations per Indonesian conventions (full/short/pinpoint) |
list_sources | List all available laws with metadata, coverage scope, and data provenance |
about | Server info, capabilities, dataset statistics, and coverage summary |
| Tool | Description |
|---|---|
get_eu_basis | Get international frameworks (ASEAN, G20, WTO) that an Indonesian law aligns with |
get_indonesian_implementations | Find Indonesian laws implementing a specific international instrument |
search_eu_implementations | Search international documents with Indonesian implementation counts |
get_provision_eu_basis | Get international law references for a specific provision |
validate_eu_compliance | Check alignment status of Indonesian laws against international frameworks |
Indonesia is not an EU member state. Indonesian law aligns with international frameworks through:
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.
All content is sourced from authoritative Indonesian legal databases:
| Field | Value |
|---|---|
| Authority | BPK RI (Badan Pemeriksa Keuangan) / JDIH Nasional |
| Language | Indonesian (Bahasa Indonesia) |
| Coverage | 1,924 Undang-Undang across all legislative areas |
| Ingestion method | Census-first full corpus from BPK RI + JDIH Nasional |
| Last ingested | 2026-02-28 |
A GitHub Actions workflow monitors all data sources:
| Check | Method |
|---|---|
| Law amendments | Drift detection against known pasal anchors |
| New laws | Comparison against JDIH BPK index |
| Repealed laws | Status change detection |
Verified data only -- every citation is validated against official sources. Zero LLM-generated content.
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 |
| Socket.dev | Supply chain attack detection | PRs |
| 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 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
Queries go through the Claude API. For privileged or confidential matters, use on-premise deployment.
git clone https://github.com/Ansvar-Systems/indonesian-law-mcp
cd indonesian-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 ingest # Ingest laws from JDIH BPK
npm run build:db # Rebuild SQLite database
npm run check-updates # Check for amendments and new laws
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 261 security frameworks -- ISO 27001, NIST CSF, SOC 2, CIS Controls, SCF, and more. npx @ansvar/security-controls-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.
Contributions welcome! See CONTRIBUTING.md for guidelines.
Priority areas:
If you use this MCP server in academic research:
@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}
}
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 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
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.