/ 目录 / 演练场 / pasal
● 社区 ilhamfp ⚡ 即开即用

pasal

作者 ilhamfp · ilhamfp/pasal

向 Claude 询问印尼法律问题,获得基于 40k+ 法规和 pasal.id 中 937k+ 结构化条文的答案——并附带引用。

Pasal.id 是第一个开放的、原生 AI 的印尼法律平台。这个 MCP 提供 4 个工具用于法律搜索、条文检索、状态查询和浏览——所有数据来自 1945 年至 2026 年的官方印尼政府出版物。读取无需认证。

为什么要用

核心特性

实时演示

实际使用效果

pasal.replay ▶ 就绪
0/0

安装

选择你的客户端

~/Library/Application Support/Claude/claude_desktop_config.json  · Windows: %APPDATA%\Claude\claude_desktop_config.json
{
  "mcpServers": {
    "pasal": {
      "command": "npx",
      "args": [
        "-y",
        "pasal"
      ],
      "_inferred": true
    }
  }
}

打开 Claude Desktop → Settings → Developer → Edit Config。保存后重启应用。

~/.cursor/mcp.json · .cursor/mcp.json
{
  "mcpServers": {
    "pasal": {
      "command": "npx",
      "args": [
        "-y",
        "pasal"
      ],
      "_inferred": true
    }
  }
}

Cursor 使用与 Claude Desktop 相同的 mcpServers 格式。项目级配置优先于全局。

VS Code → Cline → MCP Servers → Edit
{
  "mcpServers": {
    "pasal": {
      "command": "npx",
      "args": [
        "-y",
        "pasal"
      ],
      "_inferred": true
    }
  }
}

点击 Cline 侧栏中的 MCP Servers 图标,然后选 "Edit Configuration"。

~/.codeium/windsurf/mcp_config.json
{
  "mcpServers": {
    "pasal": {
      "command": "npx",
      "args": [
        "-y",
        "pasal"
      ],
      "_inferred": true
    }
  }
}

格式与 Claude Desktop 相同。重启 Windsurf 生效。

~/.continue/config.json
{
  "mcpServers": [
    {
      "name": "pasal",
      "command": "npx",
      "args": [
        "-y",
        "pasal"
      ]
    }
  ]
}

Continue 使用服务器对象数组,而非映射。

~/.config/zed/settings.json
{
  "context_servers": {
    "pasal": {
      "command": {
        "path": "npx",
        "args": [
          "-y",
          "pasal"
        ]
      }
    }
  }
}

加入 context_servers。Zed 保存后热重载。

claude mcp add pasal -- npx -y pasal

一行命令搞定。用 claude mcp list 验证,claude mcp remove 卸载。

使用场景

实战用法: pasal

通过引用来研究印尼法律问题

👤 律师、法律系学生、合规人士 ⏱ ~15 min intermediate

何时使用: 当你需要回答具体的印尼法律问题并引用实际的法规文本时。

步骤
  1. 搜索
    Cari regulasi tentang perlindungan data pribadi. Berikan UU/PP yang paling relevan.✓ 已复制
    → 匹配的法律列表及其编号和年份
  2. 获取条文
    Ambil pasal 26 dari UU 27/2022. Jelaskan konteksnya.✓ 已复制
    → 条文文本 + 说明
  3. 验证状态
    Apakah UU ini masih berlaku? Ada amendemen?✓ 已复制
    → 当前状态 + 修订链

结果: 以官方文本引用为基础的答案。

注意事项
  • LLM 对印尼法律术语的翻译不够严谨 — 从事法律工作时,务必引用原始印尼文本并要求逐字翻译
搭配使用: notion

检查商业活动是否需要特定许可证

👤 创始人、合规官 ⏱ ~30 min intermediate

何时使用: 当你在印尼开设或修改业务,并对法规要求不确定时。

步骤
  1. 界定问题范围
    I'm running a fintech app offering peer-to-peer lending in Indonesia. Which regulations are most relevant?✓ 已复制
    → 具有范围的 POJK / UU 列表
  2. 深入分析
    For each, fetch the specific article requiring license/registration. Quote the text.✓ 已复制
    → 引用的义务

结果: 初步的法规地图——最终意见不要跳过律师咨询。

注意事项
  • LLM 法律建议不是真正的法律建议 — 这是研究;决策需要获得许可的律师咨询

追踪旧法规是否已被取代

👤 引用印尼法律的研究人员 ⏱ ~5 min beginner

何时使用: 当你引用了 2010 年的 PP,想知道它是否仍然有效时。

步骤
  1. 检查状态
    Get status of PP 23/2010. Is it still in force? What amended or replaced it?✓ 已复制
    → 状态 + 到当前版本的链

结果: 安全的引用——不是已失效的法律。

组合

与其他 MCP 搭配,撬动十倍杠杆

pasal + notion

构建合规知识库

对于我的合规范围内的每项法规,获取条文 + 状态,为每项法规创建一个 Notion 页面。✓ 已复制

工具

此 MCP 暴露的能力

工具输入参数何时调用成本
search_laws query: str (ID), limit? 通过关键词发现相关法律 free
get_pasal law_id or name, pasal_number 检索特定条文 free
get_law_status law_id or name 检查是否仍然有效 free
list_laws type?, year?, status? 按类别浏览 free

成本与限制

运行它的成本

API 配额
公开读取——无明确限制;请礼貌使用
每次调用 Token 数
完整条文每个约 500-5000 tokens
费用
免费
提示
先搜索再获取具体条文;不要尝试列出全部 40k 法规。

安全

权限、密钥、影响范围

凭据存储:
数据出站: 查询发送到 pasal-mcp-server-production.up.railway.app

故障排查

常见错误与修复

对于你预期应该匹配的查询没有返回结果

印尼词根——尝试根词(如 'lindung' 而非 'perlindungan')。也可以尝试英文同义词。

在法律中未找到条文编号

条文在修订过程中可能已被重新编号。先检查 get_law_status。

MCP 连接断开

远程 HTTP 服务器——检查你的网络 / Railway 状态。

替代方案

pasal 对比其他方案

替代方案何时用它替代权衡
peraturan.go.id(官方政府门户)当你需要一手资源、以 UI 为中心时无 LLM 集成;手动搜索
Hukumonline(商业数据库)当你需要判例法 + 评论时需要订阅;范围更广

更多

资源

📖 阅读 GitHub 上的官方 README

🐙 查看未解决的 issue

🔍 浏览全部 400+ MCP 服务器和 Skills