ClauseKeeper Compliance Scanner

io.github.mityda由 GitHub 帳號 mityda 發布v0.1.1更新於 Oct 24, 2026

Scan website legal docs for missing or stale compliance clauses. Rule-based, no LLM.

概覽

AI 產生的概覽

在本機執行的規則式掃描器,讓助理檢查網站法律或政策文字中缺少或過期的合規條款。

可以做什麼
  • 掃描貼上的政策或法律文字,回傳評分、等級、計數、分類以及缺少或過期條款清單
  • 抓取指定網址、去除 HTML 後以相同方式掃描可見文字
  • 列出內建的條款規則及其分類
適用情境
適合需要快速、確定性地檢查隱私政策、服務條款等法律文件是否缺少或過時條款的情況,可直接使用貼上的文字或線上頁面網址,而不依賴大型語言模型判斷。
執行需求
以本機 stdio 程序執行,從 PyPI 安裝 clausekeeper-mcp 並以 uvx 或 uv 啟動;README 的宿主設定指向本機 mcp 目錄的絕對路徑。未宣告需要 API 金鑰、帳號或環境變數。只有網址掃描工具需要網路存取。
安裝前請注意
網址工具會抓取所給的位址,頁面內容由本機程序取得。結果來自固定規則庫,不構成法律意見,應把發現當作檢查清單而非合規結論。README 說明內建掃描器是複製自上游專案的版本,需與主專案保持同步。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 ClauseKeeper Compliance Scanner,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

ClauseKeeper MCP Server

mcp-name: io.github.mityda/clausekeeper

clausekeeper-mcp exposes ClauseKeeper's deterministic compliance scanner as Model Context Protocol (MCP) tools for Claude Desktop, Cursor, and other MCP hosts.

It is a thin wrapper around a vendored copy of the real ClauseKeeper scanner in clausekeeper_core/scanner.py and rule library in clausekeeper_core/clause_rules.py:

  • no LLM calls
  • no API keys
  • no paid services
  • stdio transport via the official Python mcp SDK

Tools

  • scan_policy_text(text: str) — scans pasted policy/legal text with the vendored ClauseKeeper scanner and returns the score, grade, counts, categories, and missing/stale clause checklist.
  • scan_policy_url(url: str) — fetches a URL, strips HTML with ClauseKeeper's html_to_text, then scans the visible text.
  • list_clause_rules() — returns the vendored clause rules and categories.

Run locally

From the main ClauseKeeper repository:

bash
cd mcpuv run clausekeeper-mcp

uv run creates/uses the local project environment and installs the mcp SDK dependency automatically. Because this is a stdio MCP server, uv run clausekeeper-mcp waits for an MCP client on stdin/stdout.

You can also install it into an explicit virtual environment:

bash
cd mcpuv venvuv pip install --python .venv/bin/python -e ..venv/bin/clausekeeper-mcp

Or run it directly:

bash
cd /path/to/clausekeeper/mcpuv run python server.py

MCP host configuration

Use an absolute path to this mcp directory.

Claude Desktop

Add this to your Claude Desktop MCP configuration file:

json
{  "mcpServers": {    "clausekeeper": {      "command": "uv",      "args": [        "--directory",        "/absolute/path/to/clausekeeper/mcp",        "run",        "clausekeeper-mcp"      ]    }  }}

Cursor or other MCP hosts

Use the same server definition in your MCP settings:

json
{  "mcpServers": {    "clausekeeper": {      "command": "uv",      "args": [        "--directory",        "/absolute/path/to/clausekeeper/mcp",        "run",        "clausekeeper-mcp"      ]    }  }}

If your host does not support uv --directory, use the installed console script from a virtual environment instead:

json
{  "mcpServers": {    "clausekeeper": {      "command": "/absolute/path/to/clausekeeper/mcp/.venv/bin/clausekeeper-mcp",      "args": []    }  }}

Keeping the vendored scanner in sync

The clausekeeper_core/ package is vendored from the main app's app/scanner.py and app/clause_rules.py so the MCP package is self-contained for PyPI/registry installs. When the scanner or clause rules change in app/, update the matching vendored files here and re-run the MCP self-containment and parity checks.

Publishing metadata

No server.json is included here because the current OSS MCP Community Registry / GitHub MCP Registry metadata format should be confirmed against the registry documentation at publication time. When publishing, add the registry-required metadata file with the package name, description, license, repository URL, runtime command, and tool list.

Main project

See the main ClauseKeeper project at ../README.md.

來源:mcp/README.md,提交 7e78caa

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v0.1.1最新Sep 16, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分