Runs on your machine from its package; the steps are below.
At most: creates or changes data: records, files, settings.
Odel charges nothing per call. The publisher may charge for its own service.
Runs locally over stdio
This server isn't hosted — your MCP client launches it from a package registry. Use one of the commands below, or drop the config into your client (e.g. Claude Desktop).
Run
npx -y guardrails-mcp-server
MCP client config
{
"mcpServers": {
"guardrails": {
"command": "npx",
"args": [
"-y",
"guardrails-mcp-server"
]
}
}
}[!License: MIT](https://opensource.org/licenses/MIT) [!MCP](https://modelcontextprotocol.io) [!Node.js](https://nodejs.org)
MCP server for AI agent security guardrails. Provides input validation, prompt injection detection, PII redaction, output filtering, policy enforcement, rate limiting, and comprehensive audit logging.
| Tool | Description |
|---|---|
validate_input | Validate and sanitize incoming requests through all guardrail checks |
filter_output | Filter and redact sensitive data (PII, secrets, credentials) from responses |
check_policy | Evaluate a request against security policies (RBAC, resource access, quotas) |
get_audit_logs | Query the audit log with filtering by type, user, time range |
get_stats | Get engine statistics including active users, block rate, request counts |
update_config | Update guardrail configuration at runtime |
npm install
{
"mcpServers": {
"guardrails": {
"type": "stdio",
"command": "node",
"args": ["/path/to/guardrails-mcp-server/index.js"]
}
}
}
src/engine/GuardrailsEngine.js # Core orchestration
src/validators/InputValidator.js # Prompt injection and PII detection
src/filters/OutputFilter.js # Redaction and harmful content blocking
src/policies/PolicyEngine.js # RBAC, quotas, maintenance windows
src/audit/AuditLogger.js # Event logging and metrics