ClauseKeeper MCP server
✓ VerifiedScans website legal documents and policy text for missing or stale compliance clauses using a deterministic rule-based engine.
Also known as mityda/ClauseKeeper, clausekeeper, clausekeeper-mcp
- Stars
- 1
- Tools
- 3
- Downloads, 30 days
- 82
- Latest version
- 0.1.1
- Last commit
- Jun 23, 2026
- License
- AGPL-3.0
What is ClauseKeeper MCP?
ClauseKeeper scans website legal documents and policy text for missing or stale compliance clauses using a deterministic rule-based engine. It exposes 3 tools, such as scan_policy_text, scan_policy_url, list_clause_rules.
Summary generated from the project's README
About ClauseKeeper MCP server
ClauseKeeper Compliance Scanner provides a deterministic rule-based engine for analyzing legal documents and policy text. It identifies missing or outdated compliance clauses without relying on LLM calls, API keys, or paid services. Developers can integrate this tool into MCP hosts like Claude Desktop or Cursor using stdio transport via the official Python SDK.
The server includes three specific tools to facilitate audits. The scan_policy_text tool processes pasted text to return scores, grades, and checklists, while scan_policy_url fetches and strips HTML from a specific web address to scan visible content. Users can also call list_clause_rules to view the available categories and rules. This setup is designed to run locally using uv to manage environments and dependencies.
What you can do with it
- 1Audit pasted legal textProvide a block of policy text to receive a compliance score and a checklist of missing clauses.
- 2Scan live website policiesAnalyze the legal content of a specific URL by fetching and stripping its HTML.
- 3Review compliance rule setsRetrieve the full list of internal clause rules and categories used by the scanner.
Written from the project's README. Every use case is checked against a quote from it.
How to install ClauseKeeper MCP
Formats verified 10 Nov 2026Add to CursorAdd to GooseInstall ClauseKeeper MCP in Claude Code
$ claude mcp add clausekeeper -- uvx clausekeeper-mcpInstall ClauseKeeper MCP in Cursor
~/.cursor/mcp.json
{
"mcpServers": {
"clausekeeper": {
"command": "uvx",
"args": [
"clausekeeper-mcp"
]
}
}
}Install ClauseKeeper MCP in VS Code
.vscode/mcp.json
{
"servers": {
"clausekeeper": {
"type": "stdio",
"command": "uvx",
"args": [
"clausekeeper-mcp"
]
}
}
}Install ClauseKeeper MCP in VS Code CLI
$ code --add-mcp '{"name":"clausekeeper","type":"stdio","command":"uvx","args":["clausekeeper-mcp"]}'Install ClauseKeeper MCP in Claude Desktop
claude_desktop_config.json
{
"mcpServers": {
"clausekeeper": {
"command": "uvx",
"args": [
"clausekeeper-mcp"
]
}
}
}Install ClauseKeeper MCP in Codex
$ codex mcp add clausekeeper -- uvx clausekeeper-mcpInstall ClauseKeeper MCP in Codex config.toml
~/.codex/config.toml
[mcp_servers.clausekeeper] command = "uvx" args = ["clausekeeper-mcp"]
Install ClauseKeeper MCP in Gemini CLI
$ gemini mcp add -s user clausekeeper uvx -- clausekeeper-mcpInstall ClauseKeeper MCP in Gemini settings.json
~/.gemini/settings.json
{
"mcpServers": {
"clausekeeper": {
"command": "uvx",
"args": [
"clausekeeper-mcp"
]
}
}
}ClauseKeeper MCP tools 3
Detected from the READMEscan_policy_textscan_policy_urllist_clause_rules
| scan_policy_text | — | |
| scan_policy_url | — | |
| list_clause_rules | — |
Automated checks
Ran Nov 14, 2026Full report →Passed our automated checks. That is not a security audit: read the code and give the server the narrowest access it needs. How checks work
- Source repository linked and reachablemityda/clausekeeper is public and reachablegithub.com/mityda/clausekeeper ↗Pass
- Package names this repository as its sourceNot checked
- Build provenance (Sigstore attestation)No build attestation published for this releaseNot checked
- Open source license (OSI)AGPL-3.0spdx.org/licenses/AGPL-3.0.html ↗Pass
- Commit or release in the last yearLast commit or release 2026-06-23github.com/mityda/clausekeeper ↗Pass
- OpenSSF ScorecardNot checked
- Package name not close to a popular packageNo popular package one edit away from clausekeeper-mcpPass
- No critical advisory in the package or its dependencies29 resolved dependencies checked; no critical advisoryosv.dev ↗Pass
- No hidden instructions to the model3 tool descriptions and the README read; no override phrases, credential paths or hidden charactersPass
- Destructive tools are labelledNo tool named like delete, drop or execPass
- Remote endpoint answers the MCP handshakeNot checked
README
View on GitHubClauseKeeper 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
mcpSDK
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'shtml_to_text, then scans the visible text.list_clause_rules()— returns the vendored clause rules and categories.
Run locally
From the main ClauseKeeper repository:
cd mcp
uv 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:
cd mcp
uv venv
uv pip install --python .venv/bin/python -e .
.venv/bin/clausekeeper-mcp
Or run it directly:
cd /path/to/clausekeeper/mcp
uv 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:
{
"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:
{
"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:
{
"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.
ClauseKeeper MCP questions
How do I add ClauseKeeper MCP to Claude Code?
Run claude mcp add clausekeeper -- uvx clausekeeper-mcp in your terminal. Add --scope user to make it available in every project.
How do I add ClauseKeeper MCP to Cursor?
Open ~/.cursor/mcp.json and add the server under mcpServers, using the Cursor config shown in the install section above.
What tools does ClauseKeeper MCP provide?
It exposes 3 tools, including scan_policy_text, scan_policy_url, list_clause_rules.
Does this server use LLMs for scanning?
No, the scanner is deterministic and rule-based without any LLM calls.
Do I need an API key to use ClauseKeeper?
No API keys are required to run the server.