Indonesia Law

io.github.pipeworx-iov0.1.0更新於 Oct 1, 2026

Indonesian law — national statutes and regulations, and Constitutional Court

已驗證Streamable HTTP可網頁執行Web Search & ScrapingKnowledge & Memory

概覽

AI 產生的概覽

讓助理檢索印尼國家法規以及憲法法院司法審查結果,資料來自官方 JDIH 入口網站。

功能
提供工具,可依印尼語標題詞、法規類型(UU、PERPU、PP、PERPRES 等)、年份與法律狀態檢索國家法規登記冊,回傳引註、日期、狀態與簽署版 PDF 連結。詳情工具回傳公報編號、修正與廢止關係、DPR 起草說明、逐條實施條例,以及帶案件編號的憲法法院審查結果。另有工具取得司法審查文件的中繼資料與摘要 PDF。
適用情境
適合助理查詢印尼立法、判斷某法規是否仍然有效或已被修正廢止、追蹤實施條例,或查找憲法法院司法審查結果。適用於印尼國家法律的法律研究、合規與政策問題。
執行需求
以遠端 streamable HTTP 端點形式執行於提供方閘道;基本使用無需帳號、API 金鑰或環境變數。文件亦描述本機 stdio 方式,需要 Node.js 與 npx。需要能存取閘道及底層政府入口網站的網路。
安裝前請注意
司法審查資料來自 DPR 摘要而非法院全文;建置時部分印尼官方法律入口網站無法存取或需要認證,因此涵蓋範圍有限。遠端端點還會暴露本套件工具之外的共享閘道中繼工具,可能增加上下文負擔。不要求任何憑證。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Indonesia Law,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。

其他 MCP 客戶端

把它新增到你客戶端的 mcpServers 設定中。

{
  "mcpServers": {
    "indonesia-law": {
      "type": "http",
      "url": "https://gateway.pipeworx.io/indonesia-law/mcp"
    }
  }
}

README

@pipeworx/indonesia-law

Indonesian national law — statutes (Undang-Undang), Perpu, government and presidential regulations, and Constitutional Court (Mahkamah Konstitusi) judicial-review outcomes — from two official government legal-documentation portals (JDIH): the State Secretariat (jdih.setneg.go.id) and the House of Representatives (jdih.dpr.go.id). Keyless; every tool is a live call.

Part of Pipeworx — an MCP gateway connecting AI agents to 1686+ live data sources.

Tools

  • idn_search_regulations(query?, type?, year?, status?, limit?, offset?) — search the national register by Indonesian title words, instrument type (UU, PERPU, PP, PERPRES, KEPPRES, INPRES, PERMENSESNEG, KEPMENSESNEG) and year. Returns citation, title, legal status (berlaku in force / sebagian partially amended or revoked / tidak berlaku), enactment and promulgation dates, and the signed-copy PDF link.
  • idn_regulation_detail(type, number, year) — one instrument's register record: state-gazette (LN/TLN) numbers, dates, legal status, PDF files, and its relations (amended by / amends / revoked by / revokes / related implementing regulations / judicial review).
  • idn_list_statutes(type?, year, query?, limit?) — DPR's per-year list of statutes and executive instruments (uu, perpu, pp, perpres, keppres, inpres, perdpr, peraturanbersama) with the DPR id and a direct PDF.
  • idn_statute_detail(type?, dpr_id) — DPR's record: Indonesian abstract with drafting notes, responsible commission, the Status list (what it amends or revokes, what amends it, and which ARTICLES the Constitutional Court struck down, with case numbers), the implementing-regulation table per article, and the PDF.
  • idn_mk_review_search(query?, category?, year?, limit?) — Constitutional Court statute-review outcomes as documented by DPR: petitions granted (granted), rejected or inadmissible (rejected), DPR's post-ruling analyses (analysis) and DPR's statements in the case (dpr_statement). Search by case number (91/PUU-XVIII/2020), Indonesian statute words, or year.
  • idn_mk_review_detail(url) — metadata and the resume PDF for one of those documents.

Auth

Keyless.

Data sources

  • https://jdih.setneg.go.id/api/hukumproduk/produkhukum (POST JSON) — search the register. Body: {tentang, p_lihan:"semua", jns:[…], thn:[…], status, terx:"All", sortOrder:"desc", length, start}. tentang matches words in the Indonesian TITLE only — "tax" finds nothing, "pajak" does.
  • https://jdih.setneg.go.id/api/hukumproduk/detaildata (POST {jns,no,thn,k:""}) — the record plus its file list; /api/hukumproduk/status (POST the record's relation id lists) — answers with HTML <label> chips whose data-jns/data-no/data-thn/ data-original-title attributes are the related instruments. The PDF is served at /api/hukumproduk/pdf?l=uploads&f=<realName>&fl=<idperaturan>.
  • https://jdih.dpr.go.id/setjen/index/id/<Type>-BAGIAN-PERTIMBANGAN-DAN-DOKUMENTASI-INFORMASI-HUKUM/year/<yyyy> — per-year statute lists (server-rendered HTML; without /year/ only the newest handful is shown). Detail pages: /setjen/detail-dokumen/tipe/<uu|pp|perpres|…>/id/<n>; PDFs on berkas.dpr.go.id/jdih/document/<type>/<n>.pdf.
  • https://jdih.dpr.go.id/setjen/index/id/Info-Judicial-Review-Putusan-MK---Menyatakan-Mengabulkan-…, Resume-Putusan-MK---Menyatakan-Menolak,-Tidak-Dapat-Diterima-…, Analisis-dan-Evaluasi-UU-Berdasarkan-Putusan-MK-…, Keterangan-DPR-mengenai-Pengujian-UU-Terhadap-UUD-1945-… — the four MK judicial-review collections (~820 documents on 2026-09-30), each list complete in one page; resume PDFs on berkas.dpr.go.id/puspanlakuu/resume/.

Things the next person would otherwise rediscover

  • DPR answers HTTP 403 to a browser-shaped User-Agent sent by a non-browser client, and 200 to an honest bot UA. Send ours; never spoof a browser.
  • DPR's keyword search form (POST /cari) renders no results server-side, so the pack does not use it — list by type+year and filter titles instead, or search the Setneg register.
  • Setneg's /api/putusan/* endpoints (court decisions) hold only Bawaslu material; its MK and MA categories return zero rows. The judicial-review coverage here comes from DPR's resumes, which name the case and the statute but are summaries, not the Court's full text.
  • Setneg's detaildata record carries no status_hukum; the pack takes it from the search endpoint for the same type+year.
  • status="diluar" on a relation chip means the related instrument is outside the Setneg register (in_register:false); it still has a full citation.

Official sources checked and NOT usable (2026-09-30)

  • peraturan.go.id and jdihn.go.id (Kemenkumham / BPHN national portals, 103.145.96.x): connection timed out from a US residential IP and ECONNREFUSED from a second US egress — not reachable from outside Indonesia at the time of building.
  • www.mkri.id (Constitutional Court), jdih.mkri.id, putusan3.mahkamahagung.go.id and jdih.mahkamahagung.go.id (Supreme Court decision directory), peraturan.bpk.go.id (BPK): HTTP 403 "Just a moment" Cloudflare JavaScript challenge for every non-browser client, bot UA or browser UA alike. Not solved on purpose.
  • api-jdih.perpusnas.go.id: documented JSON API but GET /token answers 401 Application Key tidak ditemukan — an application key issued by the National Library is required, so it is behind an authentication wall.
  • data.go.id: reachable, but the Constitutional Court datasets there are case-count statistics, not decisions.

Quick Start

Add to your MCP client (Claude Desktop, Cursor, Windsurf, etc.):

json
{  "mcpServers": {    "indonesia-law": {      "url": "https://gateway.pipeworx.io/indonesia-law/mcp"    }  }}

What this endpoint actually serves

tools/list at https://gateway.pipeworx.io/indonesia-law/mcp returns the tools in the table above plus the shared Pipeworx meta-tools — ask_pipeworx, discover_tools, search_within, remember/recall and the rest of the gateway-wide set. So the tool count you see is larger than this table: a single-pack endpoint currently lists roughly 30 shared tools alongside the pack's own. The connection's initialize response states its exact scope, and is the authoritative answer for a given day.

This is deliberate, not multiplexing by accident. The meta-tools are what let a scoped connection answer a question this pack does not cover — via ask_pipeworx, which routes across the whole catalog — without you adding a second MCP server. There is currently no way to mount a pack endpoint without them; if the extra schemas cost you more context than the routing is worth, connect to the full gateway once rather than to several pack endpoints.

Or connect to the full Pipeworx gateway to get every pack's tools listed directly, instead of just this one's:

json
{  "mcpServers": {    "pipeworx": {      "url": "https://gateway.pipeworx.io/mcp"    }  }}

Both URLs reach the same gateway and the same 1686+ data sources. The only difference is which pack's tools are listed directly; ask_pipeworx reaches all of them from either one.

No MCP client? Call it over HTTP

bash
curl -X POST https://gateway.pipeworx.io/v1/tools/idn_search_regulations \  -H 'Content-Type: application/json' \  -d '{"query":"cipta kerja","limit":5}'

No account needed for the first calls. Inspect any tool: GET https://gateway.pipeworx.io/v1/tools/idn_search_regulations. Find one: POST https://gateway.pipeworx.io/v1/tools/search_packs with {"query":"..."}.

Standalone (no gateway account)

This package also runs as a local stdio MCP server — no Pipeworx account, no gateway round-trip:

json
{  "mcpServers": {    "indonesia-law": {      "command": "npx",      "args": ["-y", "@pipeworx/mcp-indonesia-law"]    }  }}

Or run it directly to confirm it starts:

bash
npx -y @pipeworx/mcp-indonesia-law

It speaks MCP over stdin/stdout and answers initialize/tools/list/tools/call for only this pack's tools — none of the shared meta-tools the gateway connection above adds. Same source, same tools, no ask_pipeworx routing.

Using with ask_pipeworx

Instead of calling tools directly, you can ask questions in plain English — this works on the pack endpoint above as well as on the full gateway:

ask_pipeworx({ question: "your question about Indonesia Law data" })

The gateway picks the right tool and fills the arguments automatically.

More

License

MIT

來源:README.md,提交 60865f1

工具

0
工具後設資料尚未被收錄。

版本歷史

1
  1. v0.1.0最新Oct 1, 2026