My Eli Mcp

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

MCP server for Laws of Malaysia Online: fetch and cite Malaysian principal Acts.

概览

AI 生成的概览

从马来西亚官方法律门户获取并引用马来西亚主要法案,返回元数据、全文和覆盖范围说明。

可以做什么
针对总检察署门户提供三个工具:my_get_act 按数字法案坐标返回主要法案的元数据,my_get_text 返回从官方 PDF 提取的法案全文,my_coverage 说明该连接器覆盖的内容并明确列出未覆盖的内容。每个响应都带有引用契约,包括稳定的法案页面链接、人类可读的引用和来源链接。该服务为只读,并以署名方式转发官方公开立法信息。
适用场景
当助手需要查询或引用马来西亚联邦主要法案并生成可核验的引用时使用。适用于法律研究、合规检查以及依赖马来西亚官方法律的起草工作。不适用于修订案、附属立法或全文检索,这些内容该连接器未覆盖。
运行要求
作为本地 Python 包运行,可通过 uvx 或 python -m my_eli_mcp 启动。无需 API 密钥,门户不要求密钥。可选环境变量 MY_ELI_BASE_URL、MY_ELI_CACHE_DIR 和 MY_ELI_AUDIT_DIR 分别设置基础网址、缓存目录和审计目录。需要访问 lom.agc.gov.my 的网络连接。在启用 Smart App Control 的 Windows 11 上,应通过 python -m 运行,而非被阻止的启动器。
安装前请注意
对政府公开门户为只读操作,不发送客户端数据。每次工具调用都会在配置的审计目录下追加一行 JSON 审计日志,因此工具使用情况会被本地记录。响应依赖外部门户可访问以及 PDF 提取,引用应通过来源链接核对。覆盖范围仅限主要法案,不含修订案和附属立法。

安装

在 SourceWeft 中

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

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

其他 MCP 客户端

参照 仓库 中的启动说明。

README

my-eli-mcp

An MCP server for Laws of Malaysia Online (lom.agc.gov.my), the Attorney-General's Chambers' official portal for Malaysian federal legislation. It fetches and cites principal Acts, with a verifiable citation on every response.

Part of the MateMatic eu-legal-mcp production line, extended into Asia alongside jp-eli-mcp and sg-eli-mcp. Same citation contract (a stable identifier + a human-readable citation + a source URL), adapted for a jurisdiction with no ELI, no confirmed search API, and a source that publishes only PDF.

Scope. This MVP covers principal Acts only, addressed by their numeric act coordinate (e.g. 883). No free-text search API was found on this portal during discovery; amendments and subsidiary legislation (P.U. (A)/(B) notices) are not yet covered. Every response carries a dataset_note.

Licence. lom.agc.gov.my legislation is official public information published by the Attorney-General's Chambers of Malaysia. This connector relays it with attribution and a source_url.

The tools

ToolWhat it does
my_get_actMetadata for a principal Act by its numeric act coordinate.
my_get_textThe full text of an Act, extracted from the official PDF.
my_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 the contract: eli_uri (Malaysia has no ELI - this is the durable lom.agc.gov.my act page URL, e.g. https://lom.agc.gov.my/act-detail.php?language=BI&act=883, see eli_note), human_readable_citation (derived from the official PDF's own filename, since the portal carries no separate title metadata), and source_url.

Install

Not yet on PyPI - install from source until the first release ships:

bash
git clone https://github.com/matematicsolutions/my-eli-mcpcd my-eli-mcppip install -e .

Once released, this will be uvx my-eli-mcp.

Configuration via env:

  • MY_ELI_BASE_URL - default https://lom.agc.gov.my
  • MY_ELI_CACHE_DIR - default ~/.matematic/cache/my-eli
  • MY_ELI_AUDIT_DIR - default ~/.matematic/audit

No API key. lom.agc.gov.my is keyless.

Configure (Claude Code / any MCP client)

json
{  "mcpServers": {    "my-eli-mcp": { "command": "my-eli-mcp" }  }}

Windows 11 with Smart App Control

Smart App Control blocks unsigned executables, which covers uvx.exe, pip.exe and the my-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 my-eli-mcppython -m my_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 my_eli_mcp.

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

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

Governance

  • Public data only - read-only against lom.agc.gov.my; no client data leaves the machine.
  • Audit log - every tool call appends one JSON line to ~/.matematic/audit/my-eli-mcp.jsonl.
  • Vendor-neutral - talks only to lom.agc.gov.my; no LLM provider, no telemetry.
  • Verifiable citations - every response is independently checkable via source_url.

See CONSTITUTION.md and DISCOVERY.md.

Tests

bash
pip install -e ".[dev]"pytest tests/test_instructions_drift.py -v   # offlinepytest tests/test_smoke.py -v                # hits live lom.agc.gov.my

Licence

Apache-2.0. © Matematic Solutions / Wieslaw Mazur.

来源:README.md,提交 6df3091

工具

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

版本历史

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

评分

已满足适用检查项的 50%

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

  • 近 30 天内可连通25 分

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

  • 已声明认证方式10 分

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

  • 已列出工具15 分

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

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