eu.ansvar/indonesian-law-mcp

平台与服务

by ansvar-systems

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

什么是 eu.ansvar/indonesian-law-mcp

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

README

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://mcp.ansvar.eu/law-id/mcp

ClientHow to Connect
Claude.aiSettings > Connectors > Add Integration > paste URL
Claude Codeclaude mcp add indonesian-law --transport http https://mcp.ansvar.eu/law-id/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://mcp.ansvar.eu/law-id/mcp"
    }
  }
}

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

json
{
  "github.copilot.chat.mcp.servers": {
    "indonesian-law": {
      "type": "http",
      "url": "https://mcp.ansvar.eu/law-id/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:

code
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


<p align="center"> <sub>Built with care in Stockholm, Sweden</sub> </p>

常见问题

eu.ansvar/indonesian-law-mcp 是什么?

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

相关 Skills

MCP构建

by anthropics

Universal
热门

聚焦高质量 MCP Server 开发,覆盖协议研究、工具设计、错误处理与传输选型,适合用 FastMCP 或 MCP SDK 对接外部 API、封装服务能力。

想让 LLM 稳定调用外部 API,就用 MCP构建:从 Python 到 Node 都有成熟指引,帮你更快做出高质量 MCP 服务器。

平台与服务
未扫描123.0k

Slack动图

by anthropics

Universal
热门

面向Slack的动图制作Skill,内置emoji/消息GIF的尺寸、帧率和色彩约束、校验与优化流程,适合把创意或上传图片快速做成可直接发送的Slack动画。

帮你快速做出适配 Slack 的动图,内置约束规则和校验工具,少踩上传与播放坑,做表情包和演示都更省心。

平台与服务
未扫描123.0k

邮件模板

by alirezarezvani

Universal
热门

快速搭建生产可用的事务邮件系统:生成 React Email/MJML 模板,接入 Resend、Postmark、SendGrid 或 AWS SES,并支持本地预览、i18n、暗色模式、反垃圾优化与追踪埋点。

面向营销与服务场景,快速搭建高质量邮件模板,省去反复设计与切图成本,成熟度和社区认可都很高。

平台与服务
未扫描12.5k

相关 MCP Server

Slack 消息

编辑精选

by Anthropic

热门

Slack 是让 AI 助手直接读写你的 Slack 频道和消息的 MCP 服务器。

这个服务器解决了团队协作中需要 AI 实时获取 Slack 信息的痛点,特别适合开发团队让 Claude 帮忙汇总频道讨论或发送通知。不过,它目前只是参考实现,文档有限,不建议在生产环境直接使用——更适合开发者学习 MCP 如何集成第三方服务。

平台与服务
84.2k

by netdata

热门

io.github.netdata/mcp-server 是让 AI 助手实时监控服务器指标和日志的 MCP 服务器。

这个工具解决了运维人员需要手动检查系统状态的痛点,最适合 DevOps 团队让 Claude 自动分析性能数据。不过,它依赖 NetData 的现有部署,如果你没用过这个监控平台,得先花时间配置。

平台与服务
78.5k

by d4vinci

热门

Scrapling MCP Server 是专为现代网页设计的智能爬虫工具,支持绕过 Cloudflare 等反爬机制。

这个工具解决了爬取动态网页和反爬网站时的头疼问题,特别适合需要批量采集电商价格或新闻数据的开发者。不过,它依赖外部浏览器引擎,资源消耗较大,不适合轻量级任务。

平台与服务
38.1k

评论