Pasal

v1.0.0Search & Data Extractionstable

Pasal.id - The first open, AI-native Indonesian legal platform. MCP server + REST API + web app giving AI grounded access Indonesian laws.

ai-nativeanthropicclaudecodexfull-text-search
Share:
236
Stars
0
Downloads
0
Weekly
0/5

What is Pasal?

Pasal is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to pasal.id - the first open, ai-native indonesian legal platform. mcp server + rest api + web app giving ai grounded access indonesian laws.

Pasal.id - The first open, AI-native Indonesian legal platform. MCP server + REST API + web app giving AI grounded access Indonesian laws.

This server falls under the Search & Data Extraction category on MCPgee, the world's largest MCP server directory with 33,000+ servers.

Features

  • Pasal.id - The first open, AI-native Indonesian legal platfo

Use Cases

Search Indonesian legal documents
Access Indonesian laws
Enable AI-native legal research
ilhamfp

Maintainer

LicenseAGPL-3.0
Languagetypescript
Versionv1.0.0
UpdatedMay 15, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

Manual Installation

npx pasal

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

How to Set Up and Use Pasal

Pasal connects Claude and other AI assistants to Pasal.id, the first open AI-native platform for Indonesian law. It exposes four grounded MCP tools that search over 40,000 regulations and 937,000 structured articles, retrieve specific pasal (articles) with exact citations, check amendment status, and browse regulation types — eliminating AI hallucination of Indonesian legal content. Researchers, lawyers, and developers working with Indonesian legislation use this server to get source-verified answers instead of fabricated articles.

Prerequisites

  • An MCP-capable client such as Claude Desktop or Claude Code
  • No API key required — the server is hosted publicly on Railway
  • Internet access to reach https://pasal-mcp-server-production.up.railway.app/mcp
  • Basic familiarity with the Indonesian legal system is helpful but not required
1

Add the remote MCP server to Claude Code

Pasal runs as a hosted HTTP/MCP server, so no local installation is needed. Run the single command below to register it with Claude Code.

claude mcp add --transport http pasal-id https://pasal-mcp-server-production.up.railway.app/mcp
2

Add to Claude Desktop (alternative)

If you are using Claude Desktop instead of Claude Code, open the claude_desktop_config.json file (macOS: ~/Library/Application Support/Claude/claude_desktop_config.json) and add an HTTP-transport entry pointing to the public server.

3

Verify the connection

Ask Claude a simple Indonesian legal question to confirm the server is reachable and returning grounded data with citations.

4

Search for a specific regulation

Use the search_laws tool via natural language. The server performs a 3-tier full-text search (works FTS → websearch_to_tsquery → ILIKE fallback) against the database and returns ranked results with article citations.

5

Retrieve a specific article

Use the get_pasal tool to fetch an exact article by regulation identifier and article number, getting the verbatim text with its verification badge status.

6

Check amendment history

Use the get_law_status tool to determine whether a regulation has been amended, partially revoked, or superseded, including the full amendment chain.

Pasal Examples

Claude Code registration command

One-line command to register the public Pasal MCP server with Claude Code using HTTP transport.

claude mcp add --transport http pasal-id https://pasal-mcp-server-production.up.railway.app/mcp

Prompts to try

Example prompts that exercise the four grounded tools: search_laws, get_pasal, get_law_status, and list_laws.

- "Apa saja hak pekerja kontrak menurut UU Ketenagakerjaan?"
- "Jelaskan pasal tentang perlindungan data pribadi dalam UU PDP"
- "Apakah UU Perkawinan 1974 masih berlaku atau sudah diamandemen?"
- "List all regulations of type Peraturan Pemerintah about the environment"
- "What does Article 28H of the Indonesian Constitution say?"

Troubleshooting Pasal

Claude returns hallucinated articles instead of grounded ones

Confirm the server was added with --transport http (not stdio). Run 'claude mcp list' to verify pasal-id appears. The server must be reachable; check internet connectivity to pasal-mcp-server-production.up.railway.app.

Search returns no results for a known regulation

Try the regulation's official identifier (e.g. 'UU No. 13 Tahun 2003') rather than a colloquial name. The 3-tier search falls back to ILIKE but still requires Indonesian-language terms matching the database content.

HTTP transport is not supported in my MCP client

Older MCP clients only support stdio. Check if your client has been updated to support streamable-HTTP transport, or use Claude Code (which natively supports HTTP transport) as your client.

Frequently Asked Questions about Pasal

What is Pasal?

Pasal is a Model Context Protocol (MCP) server that pasal.id - the first open, ai-native indonesian legal platform. mcp server + rest api + web app giving ai grounded access indonesian laws. It connects AI assistants to external tools and data sources through a standardized interface.

How do I install Pasal?

Follow the installation instructions on the Pasal GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.

Which AI clients work with Pasal?

Pasal works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.

Is Pasal free to use?

Yes, Pasal is open source and available under the AGPL-3.0 license. You can use it freely in both personal and commercial projects.

Browse More Search & Data Extraction MCP Servers

Explore all search & data extraction servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.

Quick Config Preview

{ "mcpServers": { "pasal": { "command": "npx", "args": ["-y", "pasal"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

Ready to use Pasal?

Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.

33,000+ ServersFree & Open SourceStep-by-Step Guides