正在自动登录…
lexifina/ global-law
将全球多国法律整理为一个可搜索的Git历史仓库,每个国家的法律作为子模块,每次提交代表一部法律生效,支持按日期查询法律文本。 提供命令行工具和MCP服务器,便于法律专业人士、研究人员或AI模型查询特定日期的法律条文及其变更历史。
AI 中文解读 · 根据仓库描述与 README 生成 · 2026/10/30 20:52:06 · 查看原文
- 累计 Stars
- 989
- 当前热度
- 1~7 天 · 小火
- 仓库创建时间
选用指南
AI 根据 README 整理 · 2026/10/30 20:52:06
- 使用方式
通过命令行工具(如law.py)或MCP服务器(mcp_server.py)使用,支持查询、比较、搜索法律文本。
查看 README 依据
`tools/mcp_server.py` is a Model Context Protocol server for this tree. It lets Claude or any other MCP client ask the law what it said on a date, and every answer states where its record starts and ends. It uses only Python 3.10+ and git, runs on your machine over stdio, reads the repository and changes nothing. It makes no network calls. ```sh git clone --recurse-submodules https://github.com/lexifina/global-law && cd global-law claude mcp add global-law -- python tools/mcp_server.py # Claude Code; or approve the project's .mcp.json ```
python tools/law.py world 2022-05-01 what every corpus looked like that day python tools/law.py show 2022-05-01 united-states/federal/usc/title-11/1182.md python tools/law.py blame 2022-07-01 united-states/federal/usc/title-11/1182.md python tools/law.py words 2022-07-01 united-states/federal/usc/title-11/1182.md python tools/law.py diff 2022-05-01 2022-07-01 united-states/federal/usc/title-11/1182.md python tools/law.py laws 1990-01-01 1990-12-31 germany ``` Dates must be written YYYY-MM-DD. When a date falls before a record starts or after it ends, the tools say so on
- 部署要求
需要Python 3.10+和git,MCP服务器通过stdio运行,不进行网络调用。
查看 README 依据
`tools/mcp_server.py` is a Model Context Protocol server for this tree. It lets Claude or any other MCP client ask the law what it said on a date, and every answer states where its record starts and ends. It uses only Python 3.10+ and git, runs on your machine over stdio, reads the repository and changes nothing. It makes no network calls. ```sh git clone --recurse-submodules https://github.com/lexifina/global-law && cd global-law claude mcp add global-law -- python tools/mcp_server.py # Claude Code; or approve the project's .mcp.json ```
- 已知限制
各语料库覆盖范围不同,部分国家仅有少量法律或样本;Git无法存储1970年前的日期,早期法律使用1970年提交日期,但以In-force trailer为准。
查看 README 依据
Corpora differ widely in reach. Some hold a country's whole statute book (Czechia, Spain, Switzerland, Georgia, Malta); others hold a few acts, or a sample: the US corpus is nine titles of the United States Code, and the UK corpus is the special educational needs law. `manifest.json` gives each corpus's `coverage`, and `history` says how its past is known: `in-force` (dated official versions), `replayed` (rebuilt by applying each amending act; its `verification` says which dates were checked) or `current-only` (today's text only). ## Using it from an AI model (MCP)
trailers name the corpus, the corpus commit, the law and the in-force date. - The order is the in-force date, keeping each corpus's own order. - The last commit adds this README, the tools and the tests. - The build is deterministic. When a corpus is rebuilt, for example after a correction, this repository is rebuilt from scratch and force-pushed. ## Dates Git cannot store dates before 1970, so changes to the Grundgesetz that took effect earlier carry 1970 commit dates, one second apart, in the right order. The `In-force` trailer is authoritative and the tools use it, so
README
正在加载 README…
收录信息
- 仓库创建时间
- 2026/10/28 21:34:16
- 首次达标收录
- 2026/10/30 20:47:22
- 统计更新时间
- 2026/10/31 09:30:54
按创建时长与累计 Stars 判断等级。首次达标收录后,即使未达当前门槛仍保留;累计 Stars 和仓库状态会定期更新。确认只有 README 及辅助文件的仓库会停止公开。
模型评估
值得看加权总分 4.2 / 5
由 Jev 模型根据仓库描述与 README 评估,2026/10/30 20:47:22 生成。评分仅供参考,不是代码、安全或许可证审查;热度等级另按创建时长与累计 Stars 计算。
仓库信息
- 最近推送
- 2026/10/31 09:28:25
- 许可证标识
- NOASSERTION
- Fork 数
- 78
- 当前状态
- 未归档
收录记录
按创建时长与累计 Stars 首次收录:小火
首次发现项目