MCP Guardian provides a comprehensive solution for managing your LLM assistant's access to MCP servers. It gives you real-time control over your LLM's activity through message logging, approval workflows, and automated scanning capabilities. The tool makes it easy to manage multiple MCP server configurations and quickly switch between server collections without manual configuration management.
MCP Guardian is a powerful tool designed to help you manage, proxy, and secure your Model Context Protocol (MCP) servers. It provides real-time control over your LLM assistant's interactions with MCP servers through comprehensive logging, approval workflows, and automated scanning capabilities.
MCP Guardian can be installed and used on Linux, macOS, and Windows platforms.
Install Nix package manager:
curl -L https://nixos.org/nix/install | sh
Enable Nix flakes:
sudo sh -c 'echo "experimental-features = nix-command flakes" >> /etc/nix/nix.conf'
Clone the repository:
git clone https://github.com/eqtylab/mcp-guardian.git
cd mcp-guardian
Enter the development shell:
nix develop
Build the project:
just build-release
The mcp-guardian
and mcp-guardian-proxy
executables will be available in the _build/bin/
directory.
Install Git with symlink support: https://git-scm.com/downloads/win
Install Rust: https://www.rust-lang.org/tools/install
Install Node.js: https://nodejs.org/en/download
Install Yarn:
npm install --global yarn
Install Visual Studio with C++ development packages: https://visualstudio.microsoft.com/downloads/
Install Just:
cargo install just
Clone the repository:
git clone https://github.com/eqtylab/mcp-guardian.git
cd mcp-guardian
Build the project:
just build-release
After building the project, you can use MCP Guardian to manage your MCP servers. The tool provides two main components:
Start the MCP Guardian proxy server:
mcp-guardian-proxy
Configure MCP Guardian:
mcp-guardian config
View logs of MCP server interactions:
mcp-guardian logs
Approve or deny pending tool call messages:
mcp-guardian approve
MCP Guardian allows you to manage multiple MCP server configurations. You can create different profiles for various use cases and switch between them as needed.
To configure your MCP servers, use the configuration interface provided by the mcp-guardian
command-line tool. This will allow you to specify server endpoints, authentication details, and security policies.
MCP Guardian can intercept messages between LLMs and MCP servers, allowing you to:
The upcoming automated scanning feature will allow you to set up rules to automatically check messages for:
MCP Guardian simplifies the management of multiple MCP server configurations, making it easy to: