Skip to main content

Security scanner for MCP (Model Context Protocol) servers

Project description

GuardFive 🛡️

The security scanner for AI agent tools (MCP servers)

GuardFive scans the apps/tools that AI agents use to make sure they're safe and not secretly malicious.

What It Does

  1. SCAN → Find all MCP servers your AI uses
  2. ANALYZE → Check for hidden threats
  3. MONITOR → Watch for changes over time
  4. ALERT → Tell you when something's wrong
  5. REPORT → Give you proof for compliance

Threats We Detect

Threat Description
🎭 Tool Poisoning Hidden instructions in tool descriptions
🔄 Rug Pull Tools that change after you trust them
👯 Shadowing Malicious tools pretending to be legitimate ones
💉 Command Injection Vulnerable code that hackers can exploit

Quick Start

# Install
pip install -e .

# Scan your MCP config
guardfive scan ~/.cursor/mcp.json

# Or scan a specific server
guardfive scan --server "npx -y @modelcontextprotocol/server-filesystem /"

Installation

# Clone the repo
git clone https://github.com/yourusername/guardfive.git
cd guardfive

# Create virtual environment
python -m venv venv
source venv/bin/activate  # On Windows: venv\Scripts\activate

# Install dependencies
pip install -e .

Project Structure

guardfive/
├── guardfive/
│   ├── cli.py              # Command line interface
│   ├── scanner.py          # Main scanning logic
│   ├── models.py           # Data structures
│   ├── detectors/          # Threat detection modules
│   │   ├── tool_poisoning.py
│   │   ├── rug_pull.py
│   │   └── shadowing.py
│   └── connectors/
│       └── mcp_client.py   # Connect to MCP servers
└── tests/

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

guardfive-0.1.0.tar.gz (6.0 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

guardfive-0.1.0-py3-none-any.whl (7.2 MB view details)

Uploaded Python 3

File details

Details for the file guardfive-0.1.0.tar.gz.

File metadata

  • Download URL: guardfive-0.1.0.tar.gz
  • Upload date:
  • Size: 6.0 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.5

File hashes

Hashes for guardfive-0.1.0.tar.gz
Algorithm Hash digest
SHA256 82a8280562d99cf4cb7587ec77041f71dbab2c2d960b806d07cf55bc05b05186
MD5 ca735309bc8de6d4ff2ef1862cec68c6
BLAKE2b-256 94a8ffc3d1c74ffab957080b7f574860f5df429925b5259df708bdc0f361c3cd

See more details on using hashes here.

File details

Details for the file guardfive-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: guardfive-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 7.2 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.5

File hashes

Hashes for guardfive-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ef85a4a9ac8f495691b7e02e18c53cfccd81fe639e06366a8b0f3d3c9ccda2e0
MD5 1c3d4a32c2a33a97852b808c49d9b150
BLAKE2b-256 a34a0aa256bf161b2a3148602b5f9cbdbe0403d00634dfcd44db5627500a0976

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page