Back to Browse

Wanhe Compliance MCP Server

by Wh Bi
SecurityLow Risk10.0MCP RegistryRemote
Free

Server data from the Official MCP Registry

Chinese content compliance: ad-law banned terms + AI-labeling rules, citing exact legal provisions.

About

Chinese content compliance: ad-law banned terms + AI-labeling rules, citing exact legal provisions.

Remote endpoints: streamable-http: https://mcp.wanhetools.top/mcp

Security Report

10.0
Low Risk10.0Low Risk

Valid MCP server (1 strong, 3 medium validity signals). No known CVEs in dependencies. Imported from the Official MCP Registry.

2 tools verified · Open access · No issues found

Security scores are indicators to help you make informed decisions, not guarantees. Always review permissions before connecting any MCP server.

Permissions Found in Source Code

Found by scanning the linked source code. This listing connects to a hosted endpoint, so none of this runs on your machine: it describes what the server software does where it is hosted.

HTTP Network Access

Connects to external APIs or services over the internet.

env_vars

Applies to the server that hosts this plugin, not to your machine.

How to Connect

Remote Plugin

No local installation needed. Your AI client connects to the remote endpoint directly.

Add this to your MCP configuration to connect:

{
  "mcpServers": {
    "io-github-wh-bi-wanhe-compliance": {
      "url": "https://mcp.wanhetools.top/mcp"
    }
  }
}

Documentation

View on GitHub

From the project's GitHub README.

中文内容合规检查 MCP Server

把中文内容合规检查能力接入 AI Agent —— Claude Desktop / Cursor / Cline 等可直接调用, 无需人工转述。

零外部依赖:有官方 mcp 库时用官方实现;没有则自动降级为内置 stdio JSON-RPC, 功能完全相同。pip install 都不需要就能跑。


它解决什么问题

写中文商业内容(电商详情页、短视频文案、公众号文章、AI 生成图文)时, 最容易踩的三个坑:

  1. 广告法违禁词 —— 「全网最」「100%」「国家级」「根治」「包过」「稳赚不赔」
  2. AI 生成内容标识 —— 《人工智能生成合成内容标识办法》要求显式标识 + 隐式元数据标识
  3. 组织流程缺失 —— 有没有做安全评估、算法备案、单独同意

本 Server 把这三类检查暴露为 3 个 MCP 工具,Agent 可以在你写作时直接调用并给出依据法条。


提供的工具

工具作用输入
check_content检查文本合规风险,返回逐条:类型 / 位置 / 命中文本 / 依据法条 / 修改建议text
check_ai_label判断是否需按《AI 生成合成内容标识办法》加标识(显式 / 隐式)text
self_assessment17 项组织级合规自查问卷 → 覆盖率评分 + 待整改清单answers

覆盖的法规依据

  • 《中华人民共和国广告法》第 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):

{
  "mcpServers": {
    "wanhe-compliance": {
      "command": "python",
      "args": ["/绝对路径/mcp_compliance_server.py"]
    }
  }
}

重启 Claude Desktop,在工具列表中即可看到 check_content / check_ai_label / self_assessment。

方式二:Cursor / Cline / 其他 MCP 客户端

在对应的 MCP 配置里加入同样的 command + args 即可(均为 stdio 传输)。

方式三:直接命令行验证

python mcp_compliance_server.py --selftest

会输出引擎加载状态、工具清单,并用一段示例文本跑一次检查。


使用示例

装好后直接对 Agent 说:

帮我检查这条短视频文案要不要加 AI 标识: 本店橙子全网最甜,100%无添加,彻底根治失眠,国家级免检产品

Agent 会调用 check_content,返回类似:

{
  "ok": true,
  "verdict": "存在高风险问题",
  "summary": "共 7 条(高风险 7 · 待确认 0 · 提示 0)",
  "issues": [
    {"type": "广告法·绝对化用语", "matched": "全网最",
     "position": "第 5 字符起",
     "basis": "《广告法》第9条第(三)项",
     "suggestion": "删去范围性绝对表述"},
    {"type": "广告法·医疗功效宣传·功效声明+疾病名同现",
     "matched": "根治失眠", "position": "第 20 字符起",
     "basis": "《广告法》第17条:除医疗、药品、医疗器械广告外,禁止涉及疾病治疗功能",
     "suggestion": "非医疗类商品必须删去全部疾病治疗表述"}
  ]
}

设计原则(重要)

1. 宁可漏检,不可误报

合规工具误报一次就会失去信任。所以规则要求语境同现:

  • 只有「功效声明 + 疾病名」同时出现才判定(如「适用于高血压」)
  • 单独的疾病名不报(如「高血压患者请在医师指导下用药」是正当提示)
  • 「康复器材」「康复中心」等合法商品与机构名不报

2. 不编造问题

未发现问题时明确返回「未发现上述规则覆盖的问题」,不会为了显得有用而虚报。

3. 可复现

同输入必同输出(规则引擎而非模型判断)。


免费版 vs 云端版

免费版(本 MCP Server)云端版
规则库高频规则子集,离线可用、无次数限制全量规则库,云端持续更新
多法规交叉判定—✓
结果按位置去重—✓
17 项自查问卷✓✓
法规变化时需重新拉取无需操作

云端版与 API 说明:https://wanhetools.top/compliance-check


边界声明

本工具做规则匹配与法规条款引用,不构成法律意见。 具体合规判断请咨询专业法律人士。


许可

MIT

数据与隐私

  • 免费版完全本地运行,内容不出本机
  • 不收集任何使用数据
  • 无网络请求(除你主动配置的云端版)

Reviews

No reviews yet

Be the first to review this server!