Cl Eli Mcp

io.github.matematicsolutions由 GitHub 账号 matematicsolutions 发布v0.3.3更新于 Oct 25, 2026

MCP server for Chilean legislation via BCN Linked Open Data, verifiable citations.

概览

AI 生成的概览

本地 MCP 服务器,让助手通过 BCN 关联开放数据检索智利法律、法令和决议,并返回可核验的引文。

可以做什么
按标题全文检索规范,返回匹配的法律、法令和决议及其 BCN 资源 URI 和人类可读引文(如法律编号与日期)。按持久 BCN 资源 URI 获取单条规范的完整元数据,包括标题、编号、日期和发布机构。说明该连接器覆盖哪些规范类别、各类别的采集时间,并明确列出未覆盖的范围及相应替代方案。每条响应都带有资源 URI、来源链接和引文字符串。
适用场景
当助手需要查询或引用智利立法,且用户希望获得可追溯、可引用的出处而非自由生成的答案时适用。也适合在依赖该连接器前确认某类规范是否已被覆盖。
运行要求
以 Python 包(cl-eli-mcp)在本地运行,通常通过 uvx 或 python -m cl_eli_mcp 启动。需要访问 BCN SPARQL 端点的网络连接。可选环境变量 CL_ELI_CACHE_DIR、CL_ELI_AUDIT_DIR 和 CL_ELI_BASE_URL 用于设置缓存、审计和端点地址。未声明需要身份验证。
安装前请注意
仅返回元数据,不包含法律正文,因此不应用于引用法律条文原文。在启用 Smart App Control 的 Windows 11 上,uvx.exe 和 pip.exe 等未签名启动器会被阻止;README 建议通过已签名的 Python 解释器运行模块,并警告不要关闭 Smart App Control。查询会发送至外部 BCN 端点。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Cl Eli Mcp,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

cl-eli-mcp

MCP server for Chilean legislation via the BCN (Biblioteca del Congreso Nacional de Chile) Linked Open Data SPARQL endpoint. Searches and fetches laws, decrees, and resolutions by their persistent resource URI.

What this is not

BCN's resource URIs are not formally called ELI, but they carry the same idea: jurisdiction, type, issuing body, date, number, all in one dereferenceable URI. This connector returns metadata (title, number, dates, issuing body) - not the operative text of the law. Following source_url (the same URI, content-negotiated) takes you to the human-readable page.

Tools

ToolPurpose
cl_search_normsFull-text search over norm titles
cl_get_normFull detail for one norm by its BCN resource URI
cl_coverageDeclare what this connector covers, when each family was captured, and - explicitly - what it does NOT cover. Every gap carries a fallback.

Every response carries lex_uri and source_url (both the BCN resource URI) and human_readable_citation (e.g. "Ley 18290, de 1984-01-23").

Install

bash
pip install cl-eli-mcp

Windows 11 with Smart App Control

Smart App Control blocks unsigned executables, which covers uvx.exe, pip.exe and the cl-eli-mcp.exe launcher that pip writes at install time. The python.exe and py.exe from the python.org installer are signed by the Python Software Foundation, so running the module through the interpreter works:

bash
python -m pip install cl-eli-mcppython -m cl_eli_mcp

pip.exe is blocked for the same reason, so install with python -m pip, not pip install. If python is not on PATH, use the Windows launcher: py -3 -m cl_eli_mcp.

json
{ "mcpServers": { "cl-eli-mcp": { "command": "python", "args": ["-m", "cl_eli_mcp"] } } }

Do not turn Smart App Control off to work around this - it cannot be re-enabled without reinstalling Windows.

Configuration

Env varDefault
CL_ELI_CACHE_DIR~/.matematic/cache/cl-eli
CL_ELI_AUDIT_DIR~/.matematic/audit
CL_ELI_BASE_URLhttps://datos.bcn.cl/sparql

License

Apache-2.0 (code). BCN Linked Open Data is a public government dataset (see SOURCES.md).

来源:README.md,提交 177ee0f

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v0.3.3最新Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分