GUARDRAIL: Security Framework for Large Language Model Applications
GUARDRAIL - MCP Security - Gateway for Unified Access, Resource Delegation, and Risk-Attenuating Information Limits
Overview
GUARDRAIL is a security framework designed to protect Large Language Model (LLM) applications, particularly those utilizing the Model Context Protocol (MCP). It addresses critical security vulnerabilities, focusing on preventing data exfiltration, unauthorized access, and resource abuse.
To use GUARDRAIL, developers can integrate its components into their LLM applications, starting with basic security measures and progressively enhancing security through its modular architecture.
- Comprehensive information flow control to prevent unauthorized data access. - Contextual security that adapts to the execution environment. - Incremental adoption allowing for gradual implementation of security measures. - Compatibility with existing MCP implementations. - Auditability for compliance and security investigations.
- Securing LLM applications against common vulnerabilities like prompt injection.
- Implementing fine-grained access control in autonomous agent systems.
- Enhancing security in cloud-native and microservices architectures.
Add to your AI client
Use these steps to connect GUARDRAIL: Security Framework for Large Language Model Applications in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.
Cursor
Add this to your .cursor/mcp.json file in your project root, then restart Cursor.
.cursor/mcp.json
{
"mcpServers": {
"guardrail-nshkrdotcom": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-guardrail-nshkrdotcom"
]
}
}
}Claude Desktop
Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.
~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
{
"mcpServers": {
"guardrail-nshkrdotcom": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-guardrail-nshkrdotcom"
]
}
}
}Claude Code
Add this to your project's .mcp.json file. Claude Code will detect it automatically.
.mcp.json (project root)
{
"mcpServers": {
"guardrail-nshkrdotcom": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-guardrail-nshkrdotcom"
]
}
}
}VS Code (Copilot)
Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.
.vscode/mcp.json
{
"servers": {
"guardrail-nshkrdotcom": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-guardrail-nshkrdotcom"
]
}
}
}Windsurf
Add this to your Windsurf MCP config file, then restart Windsurf.
~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"guardrail-nshkrdotcom": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-guardrail-nshkrdotcom"
]
}
}
}Cline
Open Cline settings, navigate to MCP Servers, and add this server configuration.
Cline MCP Settings (via UI)
{
"mcpServers": {
"guardrail-nshkrdotcom": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-guardrail-nshkrdotcom"
]
}
}
}