ai-guardrails
Cloudflare Workers MCP server: ai-guardrails
Should I use this
Quality & Safety
Findings (5)
- HIGH
- MEDIUMin redact_pii
- LOWin redact_pii
- LOWin check_hallucination
- INFOin redact_pii
Based on automated analysis of tool definitions and protocol compliance.
Context Cost
This is the approximate number of tokens consumed each time the server's tools are loaded into a model's context. Higher counts reduce the attention available for other tasks.
Install
One-Click Install
Add this to your `claude_desktop_config.json` file:
{
"mcpServers": {
"ai-guardrails": {
"url": "https://api.lazy-mac.com/ai-guardrails/mcp"
}
}
}Remote endpoints
https://api.lazy-mac.com/ai-guardrails/mcpstreamable-httpWhat it can do
Tool inventory
Tools (5)
⚪detect_pii(text)
Detect personally identifiable information (email, phone, SSN, credit card, IP, URL, API key) in a text string.
Input Schema
{
"type": "object",
"properties": {
"text": {
"type": "string",
"description": "Text to scan for PII"
}
},
"required": [
"text"
]
}⚪redact_pii(text, mode)
Redact PII from text. mode=mask replaces with [REDACTED]; mode=tag uses typed placeholders like [EMAIL].
Input Schema
{
"type": "object",
"properties": {
"text": {
"type": "string"
},
"mode": {
"type": "string",
"enum": [
"mask",
"tag"
],
"default": "mask"
}
},
"required": [
"text"
]
}🟢check_safety(text)
Check text for harmful content using weighted keyword detection. Returns a 0–1 score and verdict (safe/caution/unsafe).
Input Schema
{
"type": "object",
"properties": {
"text": {
"type": "string"
}
},
"required": [
"text"
]
}🟢check_hallucination(text)
Heuristic scoring of LLM hedge phrases that correlate with hallucinated outputs. Returns score 0–1 and risk level.
Input Schema
{
"type": "object",
"properties": {
"text": {
"type": "string"
}
},
"required": [
"text"
]
}🟢full_check(text, checks)
Run pii, safety, and/or hallucination checks in one call. Default: pii + safety. Specify checks=["pii","safety","hallucination"] to run all.
Input Schema
{
"type": "object",
"properties": {
"text": {
"type": "string"
},
"checks": {
"type": "array",
"items": {
"type": "string",
"enum": [
"pii",
"safety",
"hallucination"
]
},
"default": [
"pii",
"safety"
]
}
},
"required": [
"text"
]
}Community
Evidence