
Legalithm Mcp Server
io.github.legalithm由 GitHub 账号 legalithm 发布v0.1.2更新于 Oct 24, 2026
EU AI Act compliance in your editor: classify risk, cite obligations, draft Article 50 text.
概览
一个离线 MCP 服务器,帮助助手判定 AI 功能的欧盟 AI 法案风险等级、引用相关义务,并起草第 50 条透明度文本。
- 可以做什么
- 对 AI 系统进行欧盟 AI 法案风险分级,给出引用的条款与附件、命中的规则、置信度和适用期限,不确定时标记需人工复核。解释分级背后的义务,包括义务数量与主要义务标题。起草第 50 条要求的 AI 生成内容披露文本。对照公开 API 检查合规记录。
- 适用场景
- 适合在向欧盟用户发布 AI 功能时,在编辑器内快速获得有引用的风险等级与透明度义务起点,或起草第 50 条披露文本。它只是有引用的起点,不构成法律意见或认证。
- 运行要求
- 以 stdio 在本地运行,通常通过 npx 使用 npm 包 legalithm-mcp-server;离线工具无需 API 密钥。check_record 工具会读取公开 API,因此需要网络访问。独立 CLI 的 mark 与 verify 命令需要可选的原生依赖。
安装
在 SourceWeft 中
- 打开 控制台中的 Legalithm Mcp Server,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
Legalithm — EU AI Act compliance in your coding loop
Shipping an AI feature to EU users? Article 50 transparency duties have applied since 2 August 2026. Content marking for systems placed before that date is due 2 December 2026, and Annex III high-risk obligations follow on 2 December 2027. Catch it where you code, in seconds.
[Source code on the left, connected by four branching lines to a sealed legal document on the right.]This image is AI-generated, and it is marked as such with our own tool: legalithm mark --watermark added a C2PA content credential and a pixel watermark, which is what Article 50(2) asks for. Download it and run legalithm verify on it. The credential is signed with the CLI's test certificate, so it is valid but not trust-listed.
Quickstart
Install the offline server in your editor. No API key, and nothing leaves your machine.
Codex:
Cursor: use the Add to Cursor badge above.
Then ask your agent "does the EU AI Act apply to this feature, and what tier?"
What comes back (real output, CV screening as the provider)
Note matchedRules, asOf and confidenceScore. You can see which rule fired, how old the corpus is, and how sure the engine was. Below the abstention threshold it sets reviewRequired and tells you to get a human instead of guessing.
Content marking for Article 50(2), also no key:
Install it rather than using npx for these two: C2PA and the watermark come from c2pa-node and sharp, which are optional native dependencies that npx does not reliably fetch. Without them mark warns and marks nothing. Everything else in this README works fine under npx.
The compliance record (needs a free key)
init and check talk to the hosted record service, so they need a free API key. Everything above this line does not.
Three surfaces
- Editor — an offline MCP server (
legalithm-mcp-server) exposing 4 tools (classify,explain_obligation,generate_disclosure,check_record). No API key. The first three run fully offline;check_recordreads a public API. - Repo —
legalithm initwrites a dated, citedcompliance/legalithm.jsonthat records your AI system's risk tier and the obligations behind it. - CI —
legalithm checkand the GitHub Action fail the build when the committed record drifts — because your app changed or the law changed under you.
MCP config
Add the offline server to Claude Code, Cursor or Codex manually:
GitHub Action
Honest framing
A cited starting point that tells you when to get a human — not legal advice. When unsure, it flags the result for review instead of guessing. Every output is checked against Regulation (EU) 2024/1689; it is not a certification.
Links
- Full docs: https://www.legalithm.com/en/developers/docs
- Landing: https://www.legalithm.com/en/developers
License
MIT
来源:README.md,提交 4c5717e
工具
0版本历史
1- v0.1.2最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分