A newer version of the Gradio SDK is available: 6.13.0
metadata
title: Simple Security Scanner
emoji: π
colorFrom: red
colorTo: yellow
sdk: gradio
sdk_version: 5.32.0
app_file: app.py
pinned: false
license: mit
short_description: Scan Python code for security vulnerabilities with MCP.
tags:
- building-mcp-track-consumer
π Simple Security Scanner MCP
An MCP server that scans Python code for security vulnerabilities and provides beginner-friendly explanations.
- Link to demo : https://youtu.be/ztuoQJjGu1U?si=NtcwfTDb76RkRD8V
- X Post: https://x.com/GaribongMan/status/1994962586878841171
Features
- Pattern-based Detection: Hardcoded secrets, path traversal, insecure deserialization, and more
- SQL Injection Detection: Precise detection using AST analysis
- Beginner-friendly Explanations: Easy-to-understand descriptions of what's wrong, why it's dangerous, and how to fix it
MCP Tool
scan_security
Analyzes Python code for security vulnerabilities.
Inputs:
code(string): Python source code to analyzeseverity_threshold(string): Minimum severity level to report (CRITICAL, HIGH, MEDIUM, LOW)
Output:
- Beginner-friendly explanation of found vulnerabilities
Usage
Web UI
Visit this Space and enter your code to scan.
MCP Client
Connect from MCP clients like Claude Desktop with the following configuration:
{
"mcpServers": {
"security-scanner": {
"command": "npx",
"args": ["mcp-remote", "https://mcp-1st-birthday-simple-security-scanner.hf.space/gradio_api/mcp/sse"]
}
}
}
License
This project is licensed under the MIT License