Serveur MCP

ai-guardrails

io.github.lazymac2x/ai-guardrails
Sécurité Public et accessible MCP 2026-07-28

Ce que fait ce MCP

Detects and redacts PII, checks text for harmful content, and applies heuristic hallucination-risk checks.

check_hallucination
Heuristic scoring of LLM hedge phrases that correlate with hallucinated outputs. Returns score 0–1 and risk level.
Schéma d’entrée
{'type': 'object', 'required': ['text'], 'properties': {'text': {'type': 'string'}}}
check_safety
Check text for harmful content using weighted keyword detection. Returns a 0–1 score and verdict (safe/caution/unsafe).
Schéma d’entrée
{'type': 'object', 'required': ['text'], 'properties': {'text': {'type': 'string'}}}
detect_pii
Detect personally identifiable information (email, phone, SSN, credit card, IP, URL, API key) in a text string.
Schéma d’entrée
{'type': 'object', 'required': ['text'], 'properties': {'text': {'type': 'string', 'description': 'Text to scan for PII'}}}
full_check
Run pii, safety, and/or hallucination checks in one call. Default: pii + safety. Specify checks=["pii","safety","hallucination"] to run all.
Schéma d’entrée
{'type': 'object', 'required': ['text'], 'properties': {'text': {'type': 'string'}, 'checks': {'type': 'array', 'items': {'enum': ['pii', 'safety', 'hallucination'], 'type': 'string'}, 'default': ['pii', 'safety']}}}
redact_pii
Redact PII from text. mode=mask replaces with [REDACTED]; mode=tag uses typed placeholders like [EMAIL].
Schéma d’entrée
{'type': 'object', 'required': ['text'], 'properties': {'mode': {'enum': ['mask', 'tag'], 'type': 'string', 'default': 'mask'}, 'text': {'type': 'string'}}}
Ajouté
full_check
17 September 2026 12:43
Ajouté
check_hallucination
17 September 2026 12:43
Ajouté
check_safety
17 September 2026 12:43
Ajouté
redact_pii
17 September 2026 12:43
Ajouté
detect_pii
17 September 2026 12:43