About Pasal
Pasal is an MCP server published by ilhamfp in the Data category: pasal.id - The first open, AI-native Indonesian legal platform. MCP server + REST API + web app giving AI grounded access Indonesian laws. Conduid read 5 tools from its source: get_law_status, get_pasal, list_laws, ping and search_laws. No package is published for it, so it installs from a source checkout.
The repository has 290 stars and 54 forks, is licensed AGPL-3.0, and its last commit was on 1 Mar 2026. Conduid has no tagged release on record for it. It passes 5 of the 6 static checks Conduid ran on the repository; it does not pass Scoped permissions. Its topics include data, indonesia, indonesian-law, ai-native, fastmcp and full-text-search.
Install
git clone https://github.com/ilhamfp/pasalTools (5)
get_law_statusCheck if a law is in force, amended, or revoked with full amendment chain| Parameter | Type | Description |
|---|---|---|
| law_number * | string | The number of the law, e.g., "1" |
| law_type * | string | Regulation type code, e.g., "UU" |
| year * | integer | Year the law was enacted, e.g., 1974 |
get_pasalGet the exact text of a specific article (Pasal) by law and number| Parameter | Type | Description |
|---|---|---|
| law_number * | string | The number of the law, e.g., "13" |
| law_type * | string | Regulation type code, e.g., "UU", "PP", "PERPRES" |
| pasal_number * | string | Article number, e.g., "81" or "81A" |
| year * | integer | Year the law was enacted, e.g., 2003 |
list_lawsBrowse available regulations with type, year, and status filters| Parameter | Type | Description |
|---|---|---|
| page | integer | Page number (default 1) |
| per_page | integer | Results per page (default 20) |
| regulation_type | string | Filter by type — UU, PP, PERPRES, PERMEN, PERPPU, KEPPRES, INPRES, PENPRES, PERBAN, PERMENKUMHAM, PERMENKUM, PERDA, KEPMEN, SE, TAP_MPR, PERMA, PBI, UUDRT, UUDS, etc. |
| search | string | Keyword filter on law title |
| status | string | Filter by status — "berlaku" (in force), "dicabut" (revoked), "diubah" (amended) |
| year | integer | Filter by year enacted |
pingHealth check — verify the MCP server is running and connected to the database.search_lawsFull-text keyword search across all legal provisions with Indonesian stemming| Parameter | Type | Description |
|---|---|---|
| language | string | Language filter — "id" (Indonesian, default) or "en" (English translations) |
| limit | integer | Maximum number of results (default 10) |
| query * | string | Search query in Indonesian (e.g., "upah minimum pekerja", "korupsi", "perkawinan") |
| regulation_type | string | Filter by type code — UU, PP, PERPRES, PERMEN, PERPPU, KEPPRES, INPRES, PENPRES, PERBAN, PERMENKUMHAM, PERMENKUM, PERDA, PERDA_PROV, PERDA_KAB, KEPMEN, SE, TAP_MPR, PERMA, PBI, UUDRT, UUDS |
| year_from | integer | Only return laws enacted after this year |
| year_to | integer | Only return laws enacted before this year |
Security checks
Static checks derived from the repository yesterday. Heuristics on the source, not an audit.
- ✓README presentThe repository's README runs to about 1.3K words.
- ✓License declaredThe repository declares the AGPL-3.0 license.
- ✓Tests presentA test suite exists in the repository.
- ✓Dependencies pinnedDependency versions are pinned by apps/web/package-lock.json.
- ✓No dynamic code executionScanned 128 source files and found no eval, dynamic Function or shell execution.
- !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.
What the source scan found
- Transport
- Streamable HTTPapps/mcp-server/server.py:715
- Starts other programs
- No calls that start other programs
- Outbound network calls
- 15 callsapps/web/src/app/[locale]/api/page.tsx:348, apps/web/src/app/[locale]/peraturan/[type]/[slug]/koreksi/[nodeId]/KoreksiEditor.tsx:91, apps/web/src/app/admin/peraturan/[id]/AdminActions.tsx:43
- Writes or deletes files
- No file writes or deletes
- Lockfile
- apps/web/package-lock.json
Pattern matches on the source text of 128 files: places to read, not proof of what the code does at run time.
README
The repository's README runs to about 1.3K words, fetched yesterday. The original in the repository is authoritative.
Read full README