氛围编码,😈哈哈
概览
通过模型上下文协议(MCP)实现了OWASP ZAP与AI模型的强大集成。该项目通过允许AI模型直接与ZAP扫描功能交互,实现AI驱动的安全测试。 ZAP-MCP 为 AI 模型(如 Claude)与 OWASP ZAP 之间提供了桥梁,实现自动化的安全测试和分析。它采用客户端-服务器架构,ZAP-MCP 作为服务器,开放标准化功能,AI 模型可通过 MCP 协议调用。 - : 使AI模型能够执行安全扫描和分析 - : 跟踪扫描进展并获得即时警报 - : 生成安全报告和建议 - : 通过MCP协议与各种AI模型协作 - : 实时更新和交互 - Python 3.8+ - 本地或远程运行的OWASP ZAP- Claude桌面应用(或其他兼容MCP的客户端) 4. 配置ZAP-MCP:- 复制claude_desktop_config。
概述(AI 翻译)
通过模型上下文协议(MCP)实现了OWASP ZAP与AI模型的强大集成。该项目通过允许AI模型直接与ZAP扫描功能交互,实现AI驱动的安全测试。
星级历史
概述
ZAP-MCP 为 AI 模型(如 Claude)与 OWASP ZAP 之间提供了桥梁,实现自动化的安全测试和分析。它采用客户端-服务器架构,ZAP-MCP 作为服务器,开放标准化功能,AI 模型可通过 MCP 协议调用。
特色
- AI驱动的安全测试:使AI模型能够执行安全扫描和分析
- 实时扫描监控:跟踪扫描进度并获得即时警报
- 自动分析:生成安全报告和建议
- 灵活集成:通过MCP协议支持多种AI模型
- WebSocket 通信:实时更新和交互
先修条件
- Python 3.8+
- 本地或远程运行的OWASP ZAP
- Claude桌面应用(或其他兼容MCP的客户端)
安装
-
克隆仓库:
-
安装依赖:
-
搭建MCP服务器:
-
配置ZAP-MCP:
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
ZAP-MCP: Model Context Protocol for OWASP ZAP
A powerful integration between OWASP ZAP and AI models through the Model Context Protocol (MCP). This project enables AI-driven security testing by allowing AI models to directly interact with ZAP’s scanning capabilities.
Star History
Overview
ZAP-MCP provides a bridge between AI models (like Claude) and OWASP ZAP, enabling automated security testing and analysis. It uses a client-server architecture where ZAP-MCP acts as the server, exposing standardized functions that can be called by AI models through the MCP protocol.
Features
- AI-Driven Security Testing: Enable AI models to perform security scans and analysis
- Real-time Scan Monitoring: Track scan progress and get instant alerts
- Automated Analysis: Generate security reports and recommendations
- Flexible Integration: Works with various AI models through the MCP protocol
- WebSocket Communication: Real-time updates and interactions
Prerequisites
- Python 3.8+
- OWASP ZAP running locally or remotely
- Claude Desktop App (or other MCP-compatible client)
Installation
- Clone the repository:
git clone https://github.com/tazer/ZAP-MCP.git
cd ZAP-MCP
- Install dependencies:
pip install -r requirements.txt
- Set up the MCP server:
./setup_mcp.sh
- Configure ZAP-MCP:
- Copy
claude_desktop_config.jsonto your Claude app’s config directory - Update the ZAP API key and URL in the config file
- Copy
Usage
- Start the MCP server:
mcp-server --config claude_desktop_config.json --model-dir ./models
-
Configure your Claude desktop app:
- Open Claude app settings
- Enable MCP server integration
- Set the WebSocket URL to:
ws://localhost:7456/ws
-
Start using ZAP-MCP:
- The Claude app will now have access to ZAP scanning tools
- You can request security scans, get alerts, and generate reports
Available Tools
The MCP server exposes these ZAP-specific tools:
start_scan: Start a new ZAP scan on a target URLget_scan_status: Check the status of a running scanget_alerts: Get all alerts from the current scanget_scan_summary: Get a summary of the current scan
Configuration
The claude_desktop_config.json file contains all necessary settings:
{
"mcp_server": {
"host": "localhost",
"port": 7456,
"model": "claude-instant-v1",
"max_tokens": 1000,
"temperature": 0.7,
"zap_api_key": "your-zap-api-key",
"zap_url": "http://localhost:8080"
},
"local_models": {
"path": "./models",
"prefer_local": true
},
"zap_settings": {
"scan_timeout": 300,
"max_concurrent_scans": 5,
"alert_threshold": "HIGH",
"scan_policy": "default"
}
}
Development
安装
This server does not publish a one-line install command.
Open the repository installation guide 新手?先看 mcpskill.org 教程 →