
Sg Eli Mcp
io.github.matematicsolutions由 GitHub 账号 matematicsolutions 发布v0.3.3更新于 Oct 27, 2026
MCP server for Singapore Statutes Online: browse, fetch, and cite Singapore Acts.
概览
只读的 MCP 服务器,让助手浏览、获取并引用新加坡法规在官方新加坡法规在线门户上的内容。
- 可以做什么
- 分页浏览当前的新加坡法令列表
- 按法令代码和条文编号获取某一条文的正文
- 获取整部法令的全文,超长法令会被截断
- 说明覆盖范围:包含哪些内容、何时采集,以及明确不覆盖的部分及替代方案
- 每次响应都附带引用信息:持久法令链接、可读引用和来源链接
- 适用场景
- 适合助手需要查阅或引用新加坡法规并给出可核验引用的场景,例如法律检索、合规问答或引用法令的文书起草。发现方式仅为浏览法令列表,因此更适合已知法令,而非开放式关键词检索。
- 运行要求
- 以本地 Python 包运行(uvx sg-eli-mcp,Windows 上可用 python -m sg_eli_mcp)。需要访问 sso.agc.gov.sg 的网络。无需 API 密钥或账号。可选环境变量 SG_ELI_BASE_URL、SG_ELI_CACHE_DIR、SG_ELI_AUDIT_DIR 分别设置基础地址、缓存目录和审计目录。
安装
在 SourceWeft 中
- 打开 控制台中的 Sg Eli Mcp,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
sg-eli-mcp
An MCP server for Singapore Statutes Online (SSO, sso.agc.gov.sg), the Attorney-General's
Chambers' official portal for Singapore legislation. It browses, fetches, and cites Acts, with
a verifiable citation on every response.
Part of the MateMatic eu-legal-mcp production line, extended into Asia alongside jp-eli-mcp.
Same citation contract (a stable identifier + a human-readable citation + a source URL),
adapted for a jurisdiction with no ELI and no public search API.
Scope. SSO's
robots.txtdisallows/search; discovery here is by browsing the current Acts listing (sg_list_acts, paginated), not by title or keyword query. Fetch a specific section (sg_get_provision) or the full text (sg_get_full_text, truncated for very large Acts). Every response carries adataset_note.Licence. SSO legislation is official public information published by the Singapore government. This connector relays it with attribution and a
source_url, respectsrobots.txt(no/searchcalls), and does not cache more aggressively than a normal browser visit would.
The tools
Every response carries the contract: eli_uri (Singapore has no ELI - this is the durable SSO
act URL, e.g. https://sso.agc.gov.sg/Act/CoA1967, see eli_note), human_readable_citation
(the Act title as SSO itself renders it, e.g. Companies Act 1967), and source_url.
Install
As a Claude plugin (Claude Code or the desktop app, needs uv); see plugin/README.md for what it sends and stores:
As a standalone server, from PyPI:
Configuration via env:
SG_ELI_BASE_URL- defaulthttps://sso.agc.gov.sgSG_ELI_CACHE_DIR- default~/.matematic/cache/sg-eliSG_ELI_AUDIT_DIR- default~/.matematic/audit
No API key. SSO is keyless.
Configure (Claude Code / any MCP client)
Windows 11 with Smart App Control
Smart App Control blocks unsigned executables, which covers uvx.exe, pip.exe
and the sg-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:
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 sg_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 SSO; no client data leaves the machine.
- Robots-compliant - never calls
/search(disallowed by SSO'srobots.txt); discovery uses only the allowed/Browselisting. - Audit log - every tool call appends one JSON line to
~/.matematic/audit/sg-eli-mcp.jsonl. - Network - the server talks to
sso.agc.gov.sgand the local filesystem. Once, on first use, it also fetches a small configuration file (sg-runtime.json.gz, updated source addresses) from this repository's GitHub Releases. That request carries no query content; GitHub's download counter for the file is the only usage signal we see.SG_ELI_RUNTIME_URL=""turns it off; the Claude plugin ships with it off. No LLM provider, no other telemetry. - Verifiable citations - every response is independently checkable via
source_url.
See CONSTITUTION.md and DISCOVERY.md.
Tests
Licence
Apache-2.0. © Matematic Solutions / Wieslaw Mazur.
来源:README.md,提交 3bb2cd1
工具
0版本历史
1- v0.3.3最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分