
Security News
Anthropic Identifies Biased Reasoning and Recklessness as Drivers of Claude’s PyPI Attack
Anthropic found biased reasoning and recklessness drove Claude Mythos 5 to publish malware on PyPI and compromise a security vendor.
@ansvar/indonesian-law-mcp
Advanced tools
Complete Indonesian Undang-Undang (law) database with census-first full corpus ingestion from BPK RI and JDIH Nasional. Full-text search across all provisions with FTS5.
The peraturan.go.id alternative for the AI age.
Query 1,924 Indonesian Undang-Undang (laws) -- from the PDP Law and ITE Law to the Constitution and Company Law -- directly from Claude, Cursor, or any MCP-compatible client.
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
Indonesian legal research is scattered across peraturan.go.id, peraturan.bpk.go.id, JDIH Nasional, and individual ministry databases. Whether you're:
...you shouldn't need to parse government PDFs and navigate fragmented databases. Ask Claude. Get the exact provision. With context.
This MCP server makes Indonesian law searchable, cross-referenceable, and AI-readable.
Connect directly to the hosted version -- zero dependencies, nothing to install.
Endpoint: https://indonesian-law-mcp.vercel.app/mcp
| Client | How to Connect |
|---|---|
| Claude.ai | Settings > Connectors > Add Integration > paste URL |
| Claude Code | claude mcp add indonesian-law --transport http https://indonesian-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:
{
"mcpServers": {
"indonesian-law": {
"type": "url",
"url": "https://indonesian-law-mcp.vercel.app/mcp"
}
}
}
GitHub Copilot -- add to VS Code settings.json:
{
"github.copilot.chat.mcp.servers": {
"indonesian-law": {
"type": "http",
"url": "https://indonesian-law-mcp.vercel.app/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"]
}
}
}
Once connected, just ask naturally:
| Category | Count | Details |
|---|---|---|
| Laws (Undang-Undang) | 1,924 | Full census of Indonesian national legislation |
| Provisions (Pasal) | 2,225 | Full-text searchable with FTS5 |
| Legal Definitions | 65 | Extracted from Pasal 1 (Ketentuan Umum) |
| Full-text Laws | 8 | PDP, ITE, Company, Consumer Protection, Telecom, Trade, Fund Transfer |
| Metadata-only Laws | 1,916 | Title, year, number, status, source URL |
| Database Size | ~2.1 MB | Optimized SQLite, portable |
| Coverage Period | 1946--2026 | 80 years of Indonesian legislation |
Verified data only -- every law is enumerated from peraturan.go.id (JDIH Nasional), with full text sourced from peraturan.bpk.go.id (BPK RI). Zero LLM-generated content.
| Law | Articles | Description |
|---|---|---|
| UU 27/2022 (PDP Law) | 76 | Personal Data Protection -- Indonesia's GDPR equivalent |
| UU 11/2008 (ITE Law) | 54 | Electronic Information and Transactions |
| UU 36/1999 (Telecom) | 37 | Telecommunications |
| UU 8/1999 (Consumer) | 36 | Consumer Protection |
| UU 3/2011 (Fund Transfer) | 35 | Fund Transfer |
| UU 7/2014 (Trade) | 32 | Trade |
| UU 40/2007 (Company) | 26 | Limited Liability Companies (PT) |
| UU 19/2016 (ITE Amdt) | 13 | ITE Law Amendment |
| Tool | Description |
|---|---|
search_legislation | FTS5 search on 2,225 provisions with BM25 ranking |
get_provision | Retrieve specific provision by law identifier + Pasal number |
list_documents | List all 1,924 laws with status and metadata |
validate_citation | Validate citation against database (zero-hallucination check) |
check_currency | Check if statute is in force, amended, or repealed |
get_definitions | Get legal term definitions from Pasal 1 (Ketentuan Umum) |
format_citation | Format citations per Indonesian conventions |
build_legal_stance | Aggregate citations across multiple statutes |
| Tool | Description |
|---|---|
get_eu_basis | Get EU directives/regulations referenced in Indonesian law |
get_indonesian_implementations | Find Indonesian laws implementing EU acts |
search_eu_implementations | Search EU documents with Indonesian implementation counts |
get_provision_eu_basis | Get EU references for specific provision |
validate_eu_compliance | Check implementation status |
This MCP uses a census-first approach:
scripts/census.ts): Enumerates all 1,924 Undang-Undang from peraturan.go.id paginated listingscripts/ingest.ts): For each law, fetches full text from BPK RI (when accessible), falls back to metadata-only seedscripts/build-db.ts): Compiles all seeds into optimized SQLite with FTS5peraturan.go.id (census) --> peraturan.bpk.go.id (full text) --> SQLite + FTS5 --> MCP response
|
geo-blocked? --> metadata-only seed
| Decade | Laws |
|---|---|
| 1940s | 113 |
| 1950s | 421 |
| 1960s | 191 |
| 1970s | 82 |
| 1980s | 101 |
| 1990s | 185 |
| 2000s | 367 |
| 2010s | 216 |
| 2020s | 248 |
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 |
See SECURITY.md for the full policy and vulnerability reporting.
THIS TOOL IS NOT LEGAL ADVICE
Statute text is sourced from official Indonesian government databases. However:
- This is a research tool, not a substitute for professional legal counsel
- Full article text is available for 8 key laws only -- most laws have metadata only
- Verify critical citations against primary sources (peraturan.go.id or peraturan.bpk.go.id)
- Bahasa Indonesia is the legally binding language -- no English translations are official
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 guidance.
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 census # Enumerate all 1,924 laws from peraturan.go.id
npm run ingest # Fetch full text from BPK RI + generate seeds
npm run ingest -- --resume # Resume (skip existing seed files)
npm run ingest -- --limit 10 # Test with first 10 laws
npm run build:db # Rebuild SQLite database from seeds
npm run check-updates # Check for new legislation
| Step | Script | Output |
|---|---|---|
| Census | scripts/census.ts | data/census.json (1,924 laws) |
| Ingest | scripts/ingest.ts | data/seed/*.json (per-law JSON) |
| Build | scripts/build-db.ts | data/database.db (2.1 MB SQLite) |
This server is part of Ansvar's Compliance Suite:
Query 49 EU regulations directly from Claude -- GDPR, AI Act, DORA, NIS2, and more. npx @ansvar/eu-regulations-mcp
Query US federal and state compliance laws -- HIPAA, CCPA, SOX, and more. npx @ansvar/us-regulations-mcp
Query 2,415 Swedish statutes -- DSL, BrB, ABL, MB, and more. npx @ansvar/swedish-law-mcp
Query 261 security frameworks -- SCF, ISO 27001, NIST CSF, SOC 2. npx @ansvar/security-controls-mcp
Contributions welcome! 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: Census-First Legal Research Tool},
year = {2026},
url = {https://github.com/Ansvar-Systems/indonesian-law-mcp},
note = {1,924 Indonesian Undang-Undang with full-text search}
}
Apache License 2.0. See LICENSE for details.
We build AI-accelerated compliance and legal research tools. This MCP server covers the Indonesian legal system -- the largest economy in ASEAN with 270M+ people and a rapidly evolving regulatory landscape.
ansvar.eu -- Stockholm, Sweden
Built with care in Stockholm, Sweden
FAQs
Complete Indonesian Undang-Undang (law) database with census-first full corpus ingestion from BPK RI and JDIH Nasional. Full-text search across all provisions with FTS5.
We found that @ansvar/indonesian-law-mcp demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.

Security News
Anthropic found biased reasoning and recklessness drove Claude Mythos 5 to publish malware on PyPI and compromise a security vendor.

Research
/Security News
Malicious Chrome and Firefox extensions target Axiom Trade and Padre users, stealing session tokens and wallet data.

Security News
GPT-6 Astra hits 100% on ExploitBench and finds zero-days autonomously, while independent tests reveal scope violations and monitoring gaps.