Clotr Guard — Claude Code MCP server: features and setup
Clotr Guard is an MCP server for Claude Code that scans text for credentials and personal details before it is sent. Hooks can check prompts and file reads.
AGPL-3.0 ★ 9 updated 2026-10-29
claude mcp add clotr-guard -- npx -y clotr-guardWhat Clotr Guard does
Clotr Guard scans text on the computer running the AI client. Hooks can pause prompts and file reads, while the MCP tools run checks when an assistant calls them. Medium- and high-severity results pause a prompt and show the finding category with a masked sample. Low-severity results pass with a brief message on stderr.
The server communicates through standard input and output, and does not send scanned text to Clotr. Node.js 20 or newer is required. A paused prompt can be sent again within two minutes; a fresh finding pauses it again. Shell-command scanning is a preview feature, and an unrecognised command can still print text.
What it helps with
- scan a prompt for credentials before sending it
- spot personal details in file reads
- pause prompts that contain sensitive findings
- run a text check through an assistant-called MCP tool
Example prompts for the agent
- Scan this prompt for credentials and personal details.
- Check this file's contents before using them.
- Run Clotr Guard on this text and show masked findings.
How to install Clotr Guard
Platform CLI
claude mcp add clotr-guard -- npx -y clotr-guardPlatform CLI
codex mcp add guard -- npx -y clotr-guardConfig file
{
"mcpServers": {
"guard": {
"command": "npx",
"args": [
"-y",
"clotr-guard"
]
}
}
}Config file
{
"servers": {
"guard": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"clotr-guard"
]
}
}
}Platform CLI
gemini mcp add guard npx -y clotr-guardStep by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more
Questions about Clotr Guard
How do I install Clotr Guard in Claude Code?
Run claude mcp add clotr-guard -- npx -y clotr-guard to add the MCP server.
What does Clotr Guard do?
It scans text locally for credentials and personal details. Hooks can check prompts and file reads, while the MCP server checks text when the assistant calls it.
What does Clotr Guard need to run?
It requires Node.js 20 or newer.