MCP Guard: Open source MCP Guardrail for Cursor and Claude Code
3 months ago
1
An MCP (Model Context Protocol) guardrail with built-in AI-powered moderation that aggregates multiple MCP servers into one secure interface.
The MCP Guardrail provides AI-powered security and easy configuration for your MCP (Model Context Protocol) setup. It automatically detects your existing MCP configuration files and adds a protective layer with intelligent moderation capabilities.
Key features:
AI-powered moderation to prevent prompt injection attacks
Automatic configuration - CLI tool detects and updates MCP config files for Cursor, Claude Desktop, and Claude Code
Dual connectivity - supports both local and remote MCP servers
Transparent proxying - tools, prompts, and resources are automatically prefixed and made available
The easiest way to get started is using the General Analysis CLI tool:
# Install the CLI tool
pip3 install generalanalysis
# Login to your account
ga login
# Configure MCP settings for Cursor, Claude Desktop, and Claude Code
ga configure
This will automatically update your MCP configuration files with the guardrail setup.
No installation required! Use directly in your Cursor or Claude Desktop MCP configuration: