Independent by design · no pay-to-rank placements  · How we evaluate tools →
Anclum Submit
T

thu-lawyer/china-law-mcp

Before you install: a copy-paste command is available · no license recorded · link reachable

no SECURITY.md
View on GitHub ↗Link checked 2026-11-12 · HTTP 200 · redirects to github.com
Install & config
  1. Copy the command above
  2. Paste it as one entry under mcpServers in claude_desktop_config.json — local servers take command + args (example: clients)
  3. Restart your client
Client config (built from the install command this repo gives)
{
  "mcpServers": {
    "thu-lawyer-china-law-mcp": {
      "command": "uvx",
      "args": ["china-law-mcp"]
    }
  }
}

Parsed from the README we fetched on 2026-10-26; we have not executed it.

command/args come from the install command the repository states. When it is ambiguous, the project README wins.
VS Code (.vscode/mcp.json - the key is servers)
{
  "servers": {
    "thu-lawyer-china-law-mcp": {
      "command": "uvx",
      "args": ["china-law-mcp"]
    }
  }
}
Same server, but VS Code keeps it under <code>servers</code>.
Claude Code (command line)
claude mcp add --transport stdio thu-lawyer-china-law-mcp -- uvx china-law-mcp
Claude Code does not read a config file; add the server with this command.
Key names differ by client: Clients & CLI
Star count
2 ★ · thu-lawyer/china-law-mcp · read from the repository page · (checked 2026-11-13 20:00:50)
Source
collected from the punkpeye/awesome-mcp-servers list · type: MCP server
Harvest history
first seen 2026-10-23 · last seen 2026-11-14 · seen 26× · listed by 23 sources
Score
score 2,300 · 2 ★ · 23 sources · mcp
Install
uvx china-law-mcp
FAQ (answers come from our records)
How do I install it?
The repository provides this install command: uvx china-law-mcp. It comes from the repository itself; we cannot guarantee it runs as-is in your client.
Who is it for?
We filed it under these tags: MCP 服务. The tags come from the entry itself, not a taxonomy we imposed.
Who maintains it?
repository thu-lawyer/china-law-mcp;first catalogued 2026-10-23;last seen 2026-11-14。There is no official certification or quality rating here — we record sources and dates only.

# ⚖️ china-law-mcp

以下摘录自该仓库的 README(片段) · 在 GitHub 读完整 README →

中国法律条文 MCP 服务器 · 让 AI 引用法条不再编造
免费 · 免注册 · 免 API key · 本地运行
English · 中文
## 解决什么问题
直接问大模型中国法律问题,有两个后果:引用的条文可能根本不存在或已废止,你无法核实。法律是最不能容忍编造的领域。
china-law-mcp 给 AI 装上一个离线法条库 + 引用核验器:
模型要引用《民法典》第 1254 条?先调 verifycitation 查一下,不存在就换掉
模型写了一整段分析?checkcitationsintext 会把里面所有《某法》第 N 条抽出来逐条核验,列出编造的引用
不知道适用哪条?searchstatutes 用自然语言检索(支持「同事借我钱不还」这种口语)
数据在本地,不联网、不注册、不需要 API key。
## 快速开始
方式一:一行命令(推荐)
bash
uvx china-law-mcp
方式二:pip 安装
bash
pip install china-law-mcp
china-law-mcp
方式三:克隆运行
bash
git clone https://github.com/thu-lawyer/china-law-mcp
cd china-law-mcp
pip install -r requirements.txt
python -m chinalawmcp # 首次运行自动构建 BM25 索引,约 6 秒
方式四:Docker(镜像已发布到 ghcr.io)
bash
docker run -i --rm ghcr.io/thu-lawyer/china-law-mcp:latest
json
"mcpServers": {
"china-law": {
"command": "docker",
"args": ["run", "-i", "--rm", "ghcr.io/thu-lawyer/china-law-mcp:latest"]
### 接入你的客户端
标准 stdio 服务器,任何 MCP 客户端都能接。先确定 uvx 在 PATH 里(uv 随附)。
| 客户端 | 接入方式 |
| Claude Code | 一条命令:claude mcp add china-law -- uvx china-law-mcp |
| Claude Desktop | 编辑 claudedesktopconfig.json(macOS:~/Library/Application Support/Claude/;Windows:%APPDATA%\Claude\),粘入下面的 JSON 后重启 |
| Cursor | 项目级 .cursor/mcp.json 或全局 ~/.cursor/mcp.json,粘入下面的 JSON |
| VS Code(Copilot Chat) | .vscode/mcp.json,注意顶层键是 servers 而不是 mcpServers |
| 国内客户端(Cherry Studio、ChatWise、LobeChat、DeepChat 等) | 在各自的 MCP 设置页粘贴同一段 JSON |
把 uvx 换成 Docker 也可以,见上一节。
json
"mcpServers": {
"china-law": {
"command": "uvx",
"args": ["china-law-mcp"]
## 工具
| 工具 | 作用 |
| searchstatutes(query, topk, law?) | 自然语言问题 → 相关法条(口语自动扩展为法言法语) |
| getarticle(law, articleno) | 法律 + 条号 → 条文原文,支持「民法典」「1254」「第一千二百五十四条」 |
| listlaws(keyword?, department?) | 浏览库内法律目录 |
| verifycitation(law, articleno) | 核验单条引用是否真实存在 |
| checkcitationsintext(text) | 抽取文本中全部引用并逐条核验,列出编造的 |
## 效果示例
下图为真实工具调用返回结果的渲染(终端样式,非截图):
自然语言检索(口语直接问):
text
searchstatutes("同事借我钱不还怎么办")
→ 中华人民共和国民法典 第六百七十五条 借款人应当按照约定的期限返还借款…
→ 中华人民共和国民法典 第六百七十四条 借款人应当按照约定的期限支付利息…
searchstatutes("外卖吃出异物能退吗")
→ 中华人民共和国食品安全法 第一百四十八条 消费者因不符合食品安全标准的食品受到损害的,
可以向经营者要求赔偿损失,也可以向生产者要求赔偿…
引用核验(防止 AI 编造):
text
verifycitation("民法典", "1254") → verified=True (真实存在)
verifycitation("民法典", "9999") → verified=False 中华人民共和国民法典 没有第 9999 条
checkcitationsintext("根据《民法典》第1254条…依据《劳动合同法》第99条和《民法典》第88888条…")
→ 共 3 条,有效 1,无效 2
→ invalid: ['《劳动合同法》第99条', '《民法典》第88888条']
## 作为 Agent Skill 使用(不用 MCP)
如果你用的 Agent 还不支持 MCP,或者只想在命令行里快速查一条法条,仓库里的 skills/china-law/ 提供了等价能力:
skills/china-law/SKILL.md —— Agent Skill 定义(何时用、怎么用、铁律)
skills/china-law/law.py —— 零依赖 CLI,不需要 mcp 包,只依赖 chinalawmcp 的检索与数据库模块
bash
pip install china-law-mcp
python skills/china-law/law.py search "外卖吃出异物能退吗"
python skills/china-law/law.py verify 民法典 1254
python skills/china-law/law.py get 民法典 1254
python skills/china-law/law.py list 劳动
echo "根据《民法典》第1254条,另依据《民法典》第88888条。" | python skills/china-law/law.py check -
# 每个子命令都支持 --json
python skills/china-law/law.py verify 民法典 1254 --json
把 skills/china-law/ 整个目录放进对应 Agent 的技能目录即可:Claude Code 用户级 ~/.claude/skills/ 或项目级 .claude/skills/;Codex ~/.codex/skills/;Kimi CLI 通过 --skills-dir 指定。
Listed badge (optional)
Copy this line into the README if you want the listing mark. Optional, and it does not affect being listed.
[![Listed on Anclum](https://anclum.com/badge/listed.svg)](https://anclum.com/en/s/thu-lawyer-china-law-mcp/)
Source
awesome · https://github.com/thu-lawyer/china-law-mcp
Browse by field
MCP servers
Traction
2 ★
Listed by
23 independent sources
added
today
Security policy
no SECURITY.md at the repository root (which does not mean it is unsafe)

More like this

All 6,229 →

Filed under

Every tag opens the full list for that filter. Counts are the live catalogue figures.

Browse all fields →

← Back to index