Skip to main content
Glama
chuance-policy-mcp

chuance-policy-mcp

chuance-policy-mcp — 川策智行 · 权威政策检索 MCP

为「川策智行 — 公共数据政策仿真与公共价值评估智能体」定制的 MCP 服务器, 让智能体具备实时权威政策检索与法条引用核验能力,补齐静态知识库的时效性短板。

全部走公开渠道(中国政府网政策文件库官方接口、gov.cn 各站点、Bing/百度检索), 无需任何 API Key,可在女娲智能体沙箱内以 stdio 方式直接运行。

工具清单

工具

用途

search_gov_policy

权威政策检索:中国政府网政策文件库(含文号/发文机关/日期/时效性)+ 定向站点(国家数据局/四川省/发改委/财政部/人行/成都)

fetch_page_text

抓取任意政策页面正文(自动解析发布日期;兼容 gov.cn 新旧版 CMS)

verify_law_article_tool

法条原文核验:给定法名+条号,返回该条完整原文与来源(三级匹配防误抽)

batch_verify_citations

批量核验 《法名》第X条 引用列表,输出逐项核验表

check_freshness

政策页面时效性检查(发布日期距今天数 + 引用提示)

source_catalog

数据源清单与强制使用声明

核验引擎特点:

  • 三级匹配(标题含法名 → 全文页签名 → 宽松提及),杜绝在"引用了该法的无关文件"里误抽条文;

  • 法名后缀消歧(《政府采购法》≠《政府采购法**实施条例》》);

  • 行首条文边界解析,不受条文内"第X条"交叉引用干扰;

  • 支持国家法律、行政法规与省级地方性法规(如《四川省数据条例》)。

Related MCP server: savantcat-ai-compliance-mcp

部署到女娲Nuwax

进入 空间 → 组件资源 → MCP管理 → 创建MCP服务,安装方式选择 uvx, MCP服务配置填:

{
  "command": "uvx",
  "args": [
    "--from",
    "git+https://github.com/wenyi3370-lgtm/chuance-policy-mcp.git",
    "chuance-policy-mcp"
  ],
  "env": {}
}

服务名称建议:权威政策检索;描述可写:

实时检索中国政府网政策文件库(文号/日期/时效性)、国家数据局、四川省政府网等权威来源,核验《法名》第X条引用原文。用于正式合规审查的证据双源校验。

若沙箱访问 GitHub 缓慢,可改用 PyPI 安装(发布后):{"command":"uvx","args":["chuance-policy-mcp"],"env":{}}。

本地运行 / 调试

pip install -e .            # 或 uv pip install -e .
chuance-policy-mcp          # stdio 模式(供智能体平台调用)
chuance-policy-mcp --http --host 127.0.0.1 --port 8931   # Streamable HTTP 模式(端点 /mcp)

环境变量:CHUANCE_TIMEOUT(默认20s)、CHUANCE_MAX_CHARS(默认6000)、 CHUANCE_PROXY(如 http://127.0.0.1:7897,默认**不**使用系统代理)。

使用建议(写给智能体)

  • 正式合规结论先 search_gov_policy 检索 → 命中后用 fetch_page_text 或 verify_law_article_tool 核对原文 → 引用必须带 url + doc_no + pub_date;

  • 检索不到 ≠ 政策不存在,须表述为"本次检索未召回";

  • verify_law_article_tool 的 confidence 为 weak 时必须人工复核。

免责声明

检索与核验结果仅供决策参考,不构成正式法律意见;正式依据以官方公布文本为准。

Available Tools

6 tools
batch_verify_citationsA

批量核验引用,如 ["《中华人民共和国个人信息保护法》第五十五条", "《四川省数据条例》第十二条"]。

每条自动解析法名与条号并逐条核验(最多 8 条,串行防封)。 返回逐项核验表,供引用校验技能生成〔已核实/待核实〕标注。

Inputs: citations (required).

check_freshnessA

检查一个政策页面的发布日期与时效性(距今多少天)。

用于回答"该文件是否仍然现行有效"的辅助判断:返回 publish_date、days_old、 timeliness_note。注意:是否失效以官方时效性标注为准,本工具仅作日期参考。

Inputs: url (required).

fetch_page_textA

抓取政策/法规页面并抽取正文文本,同时尽量解析发布日期。

用于:阅读检索命中页面的完整内容;核对条款上下文;提取发文机关与日期。

Returns: {ok, url, title, publish_date, text, text_truncated, retrieved_at}

Inputs: url (required), max_chars.

search_gov_policyA

在权威渠道检索政策/法规/案例。

Args: keyword: 检索词,如 "公共数据资源授权运营"、"个人信息保护 第五十五条"。 scope: 检索范围,可选: all - 中国政府网政策文件库(官方接口,含文号/时效性)+ 兜底 Bing state_council - 仅中国政府网政策文件库(官方接口) national_law - 国家法律法规数据库/人大网 data_agency - 国家数据局官网 sichuan - 四川省人民政府网 ndrc - 国家发展改革委 mof / pbc - 财政部 / 人民银行 cj_data - 成都市政府站点 limit: 返回条数上限(<=10)。

Returns: {query, scope, count, results:[{title,url,source,doc_no,pub_org,pub_date,validity,snippet}], retrieved_at}

Inputs: keyword (required), limit, scope.

source_catalogA

返回本 MCP 的数据源清单、能力边界与强制使用声明。

Inputs: no named parameters.

verify_law_article_toolA

核验"《某法》第X条":抓取权威全文,返回该条完整原文 + 来源。

Args: law_title: 法律全名,如 "中华人民共和国个人信息保护法"(书名号可省)。 article_no: 条号,支持中文或数字,如 "五十五"、"55"。

Returns: {matched, law_title, article_label, article_text, source_url, source_title, publish_date, disclaimer, retrieved_at}

Inputs: law_title (required), article_no (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.3/5.0

    Scored across 6 tools

    Disambiguation4/5

    Each tool has a distinct primary role: search, fetch full text, verify a single law article, verify citations in batch, check freshness, and list data sources. There is slight functional overlap (fetch_page_text and check_freshness both return publish dates, and verify tools fetch pages), but the descriptions clarify when each should be used.

    Naming Consistency4/5

    Most tools follow a readable verb_noun pattern: search_gov_policy, fetch_page_text, batch_verify_citations, check_freshness. However, verify_law_article_tool adds an unnecessary '_tool' suffix and source_catalog is noun-only, so the pattern is not perfectly uniform.

    Tool Count5/5

    Six tools is well-scoped for a specialized policy/law research MCP. Each tool serves a distinct step in the research workflow—search, fetch, verify, batch verify, freshness check, and source transparency—without redundancy or bloat.

    Completeness5/5

    The toolset covers the full core workflow: searching authoritative policy sources, retrieving page text, verifying individual and batch law citations, and assessing freshness. source_catalog also clarifies boundaries and data-source limitations, leaving no obvious dead ends for the stated purpose.

    Maintenance

    ActivityInactive
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      B
      maintenance
      Provides read-only, citation-grounded Chinese AI compliance and filing Q&A, enabling agents to search regulations, retrieve requirements, generate self-check lists, and determine filing obligations with legal basis.
      8
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      Enables LLMs to search Chinese statutes and verify legal citations locally, including detecting fabricated references in generated text. It supports natural-language queries, article lookup, and citation validation without registration, API keys, or network access.
      5
      9
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables AI agents to search mainland China's national laws, administrative and local regulations, judicial interpretations, and Supreme People's Court guiding cases, and to retrieve metadata plus the original Chinese text of individual articles or full regulations and case narratives. Results carry issuing body, promulgation and effective dates, and in-force status, with keyless access and no fabricated snippets when a document can't be read.
      61 npm
      MIT