
Wanhe Compliance — Chinese Content Compliance Checker
io.github.Wh-biv1.1.2Updated Oct 8, 2026
Chinese content compliance: ad-law banned terms + AI-labeling rules, citing exact legal provisions.
Overview
Checks Chinese marketing and AI-generated content against advertising-law banned terms and AI-labeling rules, citing the exact legal provisions.
- What it does
- Exposes three tools: check_content flags compliance risks in a text and returns each hit with type, position, matched text, the cited legal provision and a suggested fix; check_ai_label decides whether AI-generated content needs an explicit or implicit label; self_assessment scores a 17-item organizational compliance questionnaire and lists gaps. It cites provisions from China's Advertising Law, the AI-generated content labeling measures, GB 45438-2025, the Food Safety Law and the Anti-Unfair Competition Law. The engine is rule-based, so identical input gives identical output.
- When to use it
- Useful when drafting Chinese commercial copy such as e-commerce detail pages, short-video scripts, WeChat articles or AI-generated images and text, and you want banned-term and AI-labeling checks with legal citations while writing. Also useful for a quick organizational compliance self-check.
- Requirements
- Runs locally with Python; no pip install is required, since it falls back to a built-in stdio JSON-RPC implementation when the official mcp library is absent. Configure it as a local command in the MCP client. No accounts, API keys or network access are needed for the free version.
Installation
In SourceWeft
- Open Wanhe Compliance — Chinese Content Compliance Checker in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Web executable via Streamable HTTP. Remote servers run from the web runtime once configured in a workspace.
Other MCP clients
Add this to your client's mcpServers config.
{
"mcpServers": {
"wanhe-compliance": {
"type": "http",
"url": "https://mcp.wanhetools.top/mcp"
}
}
}README
中文内容合规检查 MCP Server
把中文内容合规检查能力接入 AI Agent —— Claude Desktop / Cursor / Cline 等可直接调用, 无需人工转述。
零外部依赖:有官方 mcp 库时用官方实现;没有则自动降级为内置 stdio JSON-RPC,
功能完全相同。pip install 都不需要就能跑。
它解决什么问题
写中文商业内容(电商详情页、短视频文案、公众号文章、AI 生成图文)时, 最容易踩的三个坑:
- 广告法违禁词 —— 「全网最」「100%」「国家级」「根治」「包过」「稳赚不赔」
- AI 生成内容标识 —— 《人工智能生成合成内容标识办法》要求显式标识 + 隐式元数据标识
- 组织流程缺失 —— 有没有做安全评估、算法备案、单独同意
本 Server 把这三类检查暴露为 3 个 MCP 工具,Agent 可以在你写作时直接调用并给出依据法条。
提供的工具
覆盖的法规依据
- 《中华人民共和国广告法》第 9 条(绝对化用语)、第 13 条(贬低同行)、 第 16 条(治愈率)、第 17 条(疾病治疗功能)、第 18 条(保健食品)、 第 24 条(教育效果承诺)、第 25 条(金融收益承诺)、第 28 条(虚假广告)
- 《人工智能生成合成内容标识办法》第 4、5 条 + 强制性国标 GB 45438-2025
- 《食品安全法》第 73 条 · 《反不正当竞争法》第 11 条
安装
方式一:Claude Desktop
编辑配置文件(Windows:%APPDATA%\Claude\claude_desktop_config.json;
macOS:~/Library/Application Support/Claude/claude_desktop_config.json):
重启 Claude Desktop,在工具列表中即可看到 check_content / check_ai_label /
self_assessment。
方式二:Cursor / Cline / 其他 MCP 客户端
在对应的 MCP 配置里加入同样的 command + args 即可(均为 stdio 传输)。
方式三:直接命令行验证
会输出引擎加载状态、工具清单,并用一段示例文本跑一次检查。
使用示例
装好后直接对 Agent 说:
帮我检查这条短视频文案要不要加 AI 标识: 本店橙子全网最甜,100%无添加,彻底根治失眠,国家级免检产品
Agent 会调用 check_content,返回类似:
设计原则(重要)
1. 宁可漏检,不可误报
合规工具误报一次就会失去信任。所以规则要求语境同现:
- 只有「功效声明 + 疾病名」同时出现才判定(如「适用于高血压」)
- 单独的疾病名不报(如「高血压患者请在医师指导下用药」是正当提示)
- 「康复器材」「康复中心」等合法商品与机构名不报
2. 不编造问题
未发现问题时明确返回「未发现上述规则覆盖的问题」,不会为了显得有用而虚报。
3. 可复现
同输入必同输出(规则引擎而非模型判断)。
免费版 vs 云端版
云端版与 API 说明:https://wanhetools.top/compliance-check
边界声明
本工具做规则匹配与法规条款引用,不构成法律意见。 具体合规判断请咨询专业法律人士。
许可
MIT
数据与隐私
- 免费版完全本地运行,内容不出本机
- 不收集任何使用数据
- 无网络请求(除你主动配置的云端版)
Source: README.md at commit 6e0fd63
Tools
0Version history
1- v1.1.2LatestOct 7, 2026