SuperAPIAI Directory

mcp-zap-server

github.com · AI developer platforms

Self-hosted OWASP ZAP integration with guided security scans, findings summaries and report generation.

Open website Alternatives
PricingOpen source开源项目(可免费自部署)
PlatformsmacOS · Linux

About this tool

Purpose

mcp-zap-server is designed to provide AI agents with a secure, self-hosted ZAP operator for guided web security scanning, findings review, report generation, and production guardrails. It exposes ZAP capabilities through MCP over streamable HTTP, enabling agent tools to run operator-controlled security workflows without fragile glue scripts or insecure scanner access.

This project is an independent implementation and is not affiliated with or endorsed by the ZAP project.

Key Capabilities

  • Guided scanning: Intent-oriented tools covering spider, active scan, passive scan, API import, findings, reports, and scan history.
  • Expert-level ZAP control: Optional low-level tools for advanced ZAP contexts, users, scans, and reporting workflows.
  • Authentication: API key mode by default, with optional JWT mode supporting refresh and revocation.
  • Runtime policy packs: Dry-run and enforcement support via zap_policy_dry_run and policy mode configuration.
  • Scan queue and history: Support for queued active scans, traditional Spider, AJAX Spider, and Client Spider tasks, with claim-based recovery, persistent Postgres state, and evidence export.
  • Extension contracts: Experimental policy, guardrail, evidence metadata, and extension metadata APIs, with example extension packaging.
  • Operational guardrails: Request body limits, rate limiting, workspace quotas, tool-scope authorization, structured logging, metrics, and audit events.
  • Deployment paths: Local Docker Compose, published JVM container images, and a Helm chart for Kubernetes.

Usage

Requirements

  • Docker Compose v2 or later (docker compose), with support for --wait and --wait-timeout.
  • Your own MCP client, which must support Streamable HTTP and custom request headers.

Quick Start

These source files prepare v0.16.0; release and image publication are still pending. Before running --start, confirm in GitHub Releases and the release workflowthe release status. To use a published version, run ./bin/bootstrap-local.sh without --start, set IMAGE_TAG in .env to a verified published version, then run the start command. Existing settings and the selected version are preserved.

The script creates missing settings, preserves existing secrets and workspace data, and starts the versioned release image. It reports readiness after the container health check and authenticated MCP check pass.

Connect an MCP Client

  • MCP endpoint for host-side clients:http://localhost:7456/mcp
  • Authentication: Send the MCP_API_KEY from .env in the X-API-Key request header

The stack runs the MCP server, ZAP, and a demo target. Install and configure your preferred MCP client separately.

Once connected, try the following first prompt:

The expected result is a completed crawl, a findings summary, and a report the client can read. For this scan, use the container URL http://juice-shop:3000;主机预览 http://localhost:3001 For browser use. Discovery counts will vary; connection or scan errors do not represent a clean result.

The default tech stack binds published ports to the loopback address. Before changing access or scan target settings, review Quick Start Security.

Discovery Metadata

The repository contains MCP Registry metadata in .mcp/server.json. This metadata is prepared for 0.16.0; mirror and Registry publication are still pending. Use metadata for the same version as the image you deploy. The image contains the MCP server name expected by registry and directory tooling. Before installing a versioned image or publishing its package metadata, check GitHub Releases and the release workflow; repository metadata alone does not prove the image is available.

Docker Compose remains the simplest installation path because the MCP server is designed to run alongside a ZAP sidecar and an explicit authentication key. OCI package metadata is suitable for advanced standalone installations where ZAP is already running and reachable from the MCP container.

When to Use

  • Teams that want AI agents to perform web security scans in a safe, controlled manner.
  • Scenarios requiring self-hosted deployment with authentication, policy, and auditing capabilities.
  • Local development testing can use Docker Compose; for production or shared deployments, refer to documentation such as JWT authentication, optional target form login, authenticated scanning reference, abuse protection, production readiness checklist, and security policy.
  • For multi-replica queues, persistent Postgres state, claim recovery, and ingress affinity, refer to the operations documentation.

Limitations

  • Version v0.16.0 has been prepared locally; publication, container images, and MCP Registry publication are still pending. Check GitHub Releases and the release workflow before deploying its image.
  • Apple Silicon packaging and private ChatGPT connection work remain previews with separate distribution and installation checks; their appearance here does not mean they are publicly available.
  • The default security posture is conservative: api-key mode is the basic runtime default; none mode is only for explicit local development/testing; Docker Compose binds published ports to the loopback address by default; URL validation blocks localhost, private networks, and link-local targets by default.
  • Target authentication is optional; the configuration file defaults to an empty list. When enabled, guided authentication binds exact server-side credential references and login settings to one approved origin; callers provide only profileId and targetUrl.
  • Public authentication exchange endpoints are rate limited.
  • MCP request bodies have a hard early size limit.
  • There is currently no runtime multi-engine support. Additional scanner engines require adapter design and explicit fail-closed capability boundaries before they can become a product claim.
  • The current public extension model is intentionally kept small; private or enterprise capabilities can be built as separate extensions, but enterprise implementation code is not provided in this repository.

License and Support

mcp-zap-server is an Apache-2.0 licensed open source core, intended for independent use in self-hosted MCP and ZAP workflows. Agentic Lab offers optional paid support for teams adopting the public core in production; commercial support is separate from the Apache-2.0 licensed OSS distribution, and the public core should be usable without private extensions or paid services.

Up/Down to navigate · Enter to open · ESC to closeBrowse all tools