OWASP MCP Server
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@OWASP MCP Serverscan example.com for security issues"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
OWASP MCP Server
A WebSocket-based Mission Control Protocol (MCP) server for OWASP ZAP security scanning, enabling real-time control and monitoring of security assessments.
Prerequisites
Python 3.8+
OWASP ZAP 2.12.0+
Java Runtime Environment (JRE) 8+
Sudo/Administrator privileges (required for ZAP)
Related MCP server: ZAP MCP Server
Why MCP Server?
Feature | MCP Server | ZAP UI | ZAP API |
Automation | ✅ Full | ❌ Limited | ✅ Basic |
Real-time Updates | ✅ WebSocket | ✅ Visual | ❌ Polling |
CI/CD Integration | ✅ Native | ❌ Manual | ✅ Complex |
Batch Processing | ✅ Yes | ❌ No | ✅ Limited |
Learning Curve | 🟡 Medium | 🟢 Easy | 🔴 Hard |
Progress Tracking | ✅ Real-time | ✅ Visual | ❌ Manual |
Multiple Domains | ✅ Concurrent | ❌ Sequential | 🟡 Limited |
Error Handling | ✅ Robust | ✅ Basic | ❌ Manual |
Core Components
mcp_server.py- The engine that powers everything. Start this first - it's your security scanning powerhouse that connects to OWASP ZAP.mcp_client.py- The brains behind the operation. A powerful SDK that other components use to talk to the server (you won't use this directly).mcp_cli.py- Your go-to command line tool for scanning. Think of it as your Swiss Army knife for security scanning - simple to use, yet powerful.test_client.py- A learning tool that shows you the ropes. Perfect for understanding how everything works or testing your setup.
Quick Start
Install OWASP ZAP: Download from https://www.zaproxy.org/download/
Setup Project:
git clone https://github.com/shadsidd/Owasp-Zap-MCP-Server-Demo.git cd Owasp-Zap-MCP-Server-Demo python -m venv venv source venv/bin/activate # Windows: .\venv\Scripts\activate pip install -r requirements.txtStart ZAP (requires sudo/admin privileges):
# macOS/Linux sudo /Applications/ZAP.app/Contents/Java/zap.sh -daemon -port 8080 # Windows (as Administrator) "C:\Program Files\OWASP\Zed Attack Proxy\zap.bat" -daemon -port 8080Start MCP Server:
python mcp_server.pyUse the CLI:
# Quick spider scan (passive) python mcp_cli.py scan example.com # Full active scan (comprehensive) python mcp_cli.py fullscan example.com # Specific scan type with HTML report python mcp_cli.py scan --scan-type=active --output=html example.com # Multiple domains scan python mcp_cli.py scan domain1.com domain2.com # Scan from file python mcp_cli.py scan -f domains.txt
Example Files
The examples/ directory contains scripts demonstrating key features:
Security Scanning
basic_scan.py- Core scanning with error handlingauthenticated_scan.py- Form-based and other authentication methodsscan_domains.py- Concurrent scanning of multiple domainscustom_scan_policy.py- Custom rules and thresholds
Integration & Monitoring
ci_cd_integration.py- CI/CD pipeline integrationreal_time_monitor.py- Live progress and alert monitoringteam_notifications.py- Email, Slack, and Teams notificationscustom_rules.py- Specialized security rules
Important Notes
Sudo Requirements:
OWASP ZAP requires sudo/administrator privileges to run
You will be prompted for your password when starting ZAP
Port Configuration:
ZAP uses port 8080 by default
MCP Server uses port 3000
Ensure these ports are not in use before starting
Common Issues:
If you see "Address already in use" error:
# Check what's using port 8080 sudo lsof -i :8080 # Kill the process if needed sudo kill -9 <PID>If ZAP fails to start, try:
# Clear any existing ZAP processes pkill -f zap
Scan Types
The MCP Server supports multiple scan types:
Spider Scan (Default): Crawls the website to discover content, fastest but finds fewer issues
Active Scan: Performs security testing with actual attacks, finds more vulnerabilities
Full Scan: Comprehensive scanning (spider + active), provides the most thorough results
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Flicense-qualityDmaintenanceA WebSocket server that provides MCP interface for searching and retrieving information about internet-connected devices, IP addresses, DNS data, and CVE vulnerabilities through the Shodan API.Last updated3
- Alicense-qualityCmaintenanceIntegrates OWASP ZAP security testing with AI assistants through MCP, enabling automated vulnerability scanning and AI-powered security analysis during development. Supports multiple scan types including active, passive, and AJAX spider scans with real-time status updates.Last updated5MIT
- AlicenseAqualityAmaintenanceOWASP Agentic - MCP server providing AI-powered tools and automation by MEOK AI LabsLast updated5MIT
- Flicense-qualityBmaintenanceA Model Context Protocol server for automated security vulnerability assessment, combining OWASP Dependency-Check dependency scanning with custom code vulnerability detection, and generating detailed HTML and JSON reports.Last updated
Related MCP Connectors
Security scanner for MCP servers. Detect vulnerabilities, prompt injection, and tool poisoning.
MCP server for Pentest-Tools.com: run scans, manage findings and reports via your preffered LLM.
MCP server for ScanMalware.com URL scanning, malware detection, and analysis.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/shadsidd/Owasp-Zap-MCP-Server-Demo'
If you have feedback or need assistance with the MCP directory API, please join our Discord server