MCP.Market

China Law MCP server

by thu-lawyer·io.github.thu-lawyer/china-law-mcp·v0.1.1·2 stars

Search 23,995 Chinese statutes and verify citations to catch LLM-fabricated references.

A92/100grade A
What users say
No reviews yet
Be the first
Safety scan
A92/100

full report

Adoption
Growing

2 stars66 downloads/wk

Reviews

Write one

Nobody has reviewed China Law MCP yet.

If you have run it, two minutes of your experience saves the next person an afternoon.

China Law MCP tools (5)

write = sends, deletes, buys or posts

Read from the package source without running it. The installed server may list more.

  • check_citations_in_text

    抽取一段文本中的所有《法律》第 N 条引用并逐条核验,返回不存在的引用清单。

  • get_article

    按法律名与条号取条文原文。

  • list_laws

    浏览库内法律目录(可按名称关键词或部门法筛选)。

  • search_statutes

    按自然语言问题检索中国现行法律条文。

  • verify_citation

    核验一条法律引用是否真实存在(防幻觉)。

Public scan report

scanner v0.1.10 · 2026-10-14 · same rubric, same numbers if you re-run it

no findings
  • Code scan5 source files scanned25/25
  • –Live reliabilityno gateway calls yet and no remote to proben/a
  • –Tool poisoningtools not inspected (local package is not executed); not countedn/a
  • Auth qualitylocal package, no credentials required12/15
  • Maintenancelast push 7 days ago15/15
  • Maintainer identityregistry namespace matches repository owner; GitHub account older than a year8/10
Overall 92/100. Components that don't apply are left out of the denominator. Any critical finding is an F.RubricAppeal a findingJSON

How China Law MCP compares

Against every graded AI and agents MCP server, from our own scans and uptime checks. Updated after each scan run.

Safety score
92/100
higher than 90% of 4,460 AI and agents servers
Tools
5
the typical AI and agents server has 6
Tools that change things
0%
typical: 0%. Fewer write tools means less an agent can break
GitHub stars
2
more than 65% of 2,711 AI and agents servers
Downloads a week
66
more than 52% of 1,538 AI and agents servers with a package

What its tools let an agent do: 5 read

Install China Law MCP in Claude Code, Cursor or VS Code

claude mcp add china-law-mcp -- uvx china-law-mcp
Add to Cursor

What the publisher says

From the China Law MCP repository's README, as published. We do not edit it. Read it on GitHub

⚖️ china-law-mcp

中国法律条文 MCP 服务器 · 让 AI 引用法条不再编造

免费 · 免注册 · 免 API key · 本地运行

English · 中文

<!-- mcp-name: io.github.thu-lawyer/china-law-mcp -->

解决什么问题

直接问大模型中国法律问题,有两个后果:引用的条文可能根本不存在或已废止,你无法核实。法律是最不能容忍编造的领域。

china-law-mcp 给 AI 装上一个离线法条库 + 引用核验器:

  • 模型要引用《民法典》第 1254 条?先调 verify_citation 查一下,不存在就换掉
  • 模型写了一整段分析?checkcitationsintext 会把里面所有**《某法》第 N 条抽出来逐条核验,列出编造的引用
  • 不知道适用哪条?search_statutes 用自然语言检索(支持「同事借我钱不还」这种口语)

数据在本地,不联网、不注册、不需要 API key。

快速开始

方式一:一行命令(推荐)

uvx china-law-mcp

方式二:pip 安装

pip install china-law-mcp
china-law-mcp

方式三:克隆运行

git clone https://github.com/thu-lawyer/china-law-mcp
cd china-law-mcp
pip install -r requirements.txt
python -m china_law_mcp        # 首次运行自动构建 BM25 索引,约 6 秒

方式四:Docker(镜像已发布到 ghcr.io)

docker run -i --rm ghcr.io/thu-lawyer/china-law-mcp:latest
{
  "mcpServers": {
    "china-law": {
      "command": "docker",
      "args": ["run", "-i", "--rm", "ghcr.io/thu-lawyer/china-law-mcp:latest"]
    }
  }
}

接入你的客户端

标准 stdio 服务器,任何 MCP 客户端都能接。先确定 uvx 在 PATH 里(uv 随附)。

把 uvx 换成 Docker 也可以,见上一节。

{
  "mcpServers": {
    "china-law": {
      "command": "uvx",
      "args": ["china-law-mcp"]
    }
  }
}

工具

效果示例

下图为真实工具调用返回结果的渲染(终端样式,非截图):

自然语言检索(口语直接问):

search_statutes("同事借我钱不还怎么办")
→ 中华人民共和国民法典 第六百七十五条  借款人应当按照约定的期限返还借款…
→ 中华人民共和国民法典 第六百七十四条  借款人应当按照约定的期限支付利息…

search_statutes("外卖吃出异物能退吗")
→ 中华人民共和国食品安全法 第一百四十八条  消费者因不符合食品安全标准的食品受到损害的,
                                            可以向经营者要求赔偿损失,也可以向生产者要求赔偿…

引用核验(防止 AI 编造):

Shortened. The full README is on GitHub.

Nothing above is checked by us. What we check is on the safety report.

China Law MCP: common questions

Is China Law MCP server safe?
Yes, by our scan: it is graded A (92/100). Read the China Law MCP safety report
How do I install China Law MCP?
It runs on your machine. Copy the Claude Code, Cursor, VS Code or Claude Desktop config from the install section.
Does China Law MCP need an API key?
Not as far as the registry entry and our scan can tell: no credentials are declared or required.
Is China Law MCP maintained?
The last commit was 28 days ago (2026-10-07). The latest release is v0.1.1.
What can I use instead of China Law MCP?
Servers from other publishers that do the same job: Watch Skill MCP server, OpenWorkProof MCP server and Emilia Protocol MCP server.
How does China Law MCP compare with other AI and agents MCP servers?
safety score 92/100 (higher than 90% of 4,460 AI and agents servers); tools 5 (the typical AI and agents server has 6); tools that change things 0% (typical: 0%. Fewer write tools means less an agent can break). Full comparison.

Alternatives to China Law MCP

Same job from other publishers: the closest match first, then the best rated.

  • Watch Skill
    Watch video and live sessions, keep timestamped evidence, and verify an agent's own work.
    B
  • OpenWorkProof
    Verifiable agent evidence; opt-in Codex guard and reference SOC alert review.
    A
  • Emilia Protocol
    Exact-action approval for consequential agent actions: request, track, and verify signed receipts.
    B
  • Mockserver
    Mock, record/replay, verify and chaos-test any HTTP, REST, gRPC or LLM dependency over MCP.
    A
  • DataSinking
    Full-text financial reports (US, China, Japan, Korea, Taiwan, UK) as clean Markdown for RAG agents.
    A