
Guardrails
io.github.ExpertVagabondPublished by GitHub account ExpertVagabondv1.0.1Updated Oct 24, 2026
AI Agent Guardrails MCP server - security layer
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.
Installation
In SourceWeft
- Open Guardrails in the dashboard and add it to a workspace.
- 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
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
Configuration
Project Structure
License
Source: README.md at commit 2ecb5e7
Tools
0Version history
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