Guardrails

io.github.ExpertVagabondPublished by GitHub account ExpertVagabondv1.0.1Updated Oct 24, 2026

AI Agent Guardrails MCP server - security layer

VerifiedSTDIODesktop onlyDeveloper ToolsSecurity & Monitoring

Overview

AI-generated overview

A local MCP server that adds a security guardrail layer to AI agents: input validation, prompt-injection detection, PII redaction, policy checks and audit logs.

What you can do
Validate and sanitize incoming requests through all guardrail checks, including prompt-injection detection and malicious code blocking. Filter and redact sensitive data such as PII, secrets and credentials from responses. Evaluate requests against security policies covering RBAC, resource access and quotas. Query audit logs by type, user and time range, and read engine statistics such as active users, block rate and request counts. Update guardrail configuration at runtime.
When to use it
Useful when an assistant or agent handles untrusted input and you want a local checkpoint that screens requests, redacts sensitive output and keeps an audit trail. Suited to setups that need policy enforcement, rate limiting or a record of blocked requests.
Requirements
Runs as a local stdio process on the user's machine, installed from the npm package guardrails-mcp-server and started with Node.js. The README shows a manual configuration pointing at the server's index.js path. No authentication, environment variables or headers are declared.
Before you install
The server inspects and redacts sensitive content, so it may process PII, credentials and private keys in transit; review where logs are stored. The update_config tool changes guardrail settings at runtime, and audit logs record user activity. Detection is regex-based, so it can miss novel attacks or flag legitimate content.

Installation

In SourceWeft

  1. Open Guardrails in the dashboard and add it to a workspace.
  2. Enable the server for the chats that should use its tools.

Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.

Other MCP clients

Follow the launch instructions in the repository.

README

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.

Tools

ToolDescription
validate_inputValidate and sanitize incoming requests through all guardrail checks
filter_outputFilter and redact sensitive data (PII, secrets, credentials) from responses
check_policyEvaluate a request against security policies (RBAC, resource access, quotas)
get_audit_logsQuery the audit log with filtering by type, user, time range
get_statsGet engine statistics including active users, block rate, request counts
update_configUpdate guardrail configuration at runtime

Security Features

  • Prompt Injection Detection -- 12 regex patterns for jailbreak, DAN mode, system prompt override
  • PII Detection and Redaction -- SSN, credit card, email, phone, IP, API keys, AWS keys, JWT, passwords, private keys, connection strings
  • Malicious Code Blocking -- eval, exec, subprocess, child_process, shell injection
  • Policy Engine -- Block sensitive paths, dangerous tools, unauthenticated destructive ops, URL allowlist, maintenance windows
  • Rate Limiting -- Per-user sliding window (configurable requests/minute)
  • Audit Logging -- Timestamped events with metrics, log rotation, external handler support

Install

bash
npm install

Configuration

json
{  "mcpServers": {    "guardrails": {      "type": "stdio",      "command": "node",      "args": ["/path/to/guardrails-mcp-server/index.js"]    }  }}

Project Structure

src/engine/GuardrailsEngine.js    # Core orchestrationsrc/validators/InputValidator.js   # Prompt injection and PII detectionsrc/filters/OutputFilter.js        # Redaction and harmful content blockingsrc/policies/PolicyEngine.js       # RBAC, quotas, maintenance windowssrc/audit/AuditLogger.js           # Event logging and metrics

License

MIT

Source: README.md at commit 2ecb5e7

Tools

0
SourceWeft has not started this package in its sandbox yet, so its tools are not known.

Version history

1
  1. v1.0.1LatestSep 16, 2026

Score

50% of the applicable checks met

How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.

  • Reached in the last 30 days25 pts

    Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.

  • Auth declared10 pts

    Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.

  • Tools listed15 pts

    Answer tools/list without a credential, or ship a package that starts in a sandbox without one.

  • DescriptionRequired15 pts
  • Logo10 pts
  • Documentation15 pts
  • License10 pts