# MCP ZAP Server

> MCP ZAP Server is an open-source MCP server for security. Self-hosted OWASP ZAP operator that lets AI agents run guided security scans and reports. It runs as a hosted remote server, so there is nothing to install locally.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** self-hosted, API
- **Website:** https://danieltse.org/mcp-zap-server/
- **Repository:** https://github.com/dtkmn/mcp-zap-server
- **MCP Registry name:** io.github.dtkmn/mcp-zap-server
- **Categories:** security
- **Listing updated:** 2026-11-15

## About

This server sits between an AI client and a ZAP scanner you run yourself, and keeps the agent on a guided path rather than handing it raw scanner access. Its default tool surface is `guided`, covering spider and active scans, passive scanning, API imports, findings and report readback. A separate `expert` surface exposes raw ZAP tools for clients that need them.

Scans start through a queue, with in-memory or PostgreSQL storage, and are tracked through status and stop tools. Operators control who can call what with API-key or JWT auth, tool scopes, runtime policy bundles, rate limits and audit events. Correlation IDs and metrics help trace requests, and findings can be compared against reviewed baselines. A form-login option lets ZAP sign in to an authorised target without the password reaching the AI client.

It runs from a Docker image with Docker Compose for local use and Helm for Kubernetes. The README says it is independent of the ZAP project. Check that the matching release and images are published before installing the current source version, since the README warns about this.

## Features

- **Guided scan tools:** Spider, active and passive scans, API imports and reports on a safer default surface.
- **Queue-managed scans:** Scan starts go through a queue with in-memory or PostgreSQL storage.
- **Operator guardrails:** API-key or JWT auth, tool scopes, rate limits and audit events.
- **Findings baselines:** Reads target-scoped findings and compares against reviewed baselines.
- **Form login:** Lets ZAP log in to an authorised target without exposing the password.
- **Docker and Helm:** Deploys locally with Compose or on Kubernetes.

## Good for

- Run a first crawl and get an HTML report against a demo target
- Let an agent scan a staging site within set limits
- Gate CI on findings compared to a baseline
- Keep an audit trail of scans started by AI clients

## Install

### Claude Code (Terminal)

```sh
claude mcp add mcp-zap-server --env ZAP_API_KEY='<ZAP_API_KEY>' --env MCP_API_KEY='<MCP_API_KEY>' -- docker run -i --rm -e ZAP_API_KEY -e MCP_API_KEY ghcr.io/dtkmn/mcp-zap-server:v0.17.1
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "mcp-zap-server": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "ZAP_API_KEY",
        "-e",
        "MCP_API_KEY",
        "ghcr.io/dtkmn/mcp-zap-server:v0.17.1"
      ],
      "env": {
        "ZAP_API_KEY": "<ZAP_API_KEY>",
        "MCP_API_KEY": "<MCP_API_KEY>"
      }
    }
  }
}
```

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "mcp-zap-server": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "ZAP_API_KEY",
        "-e",
        "MCP_API_KEY",
        "ghcr.io/dtkmn/mcp-zap-server:v0.17.1"
      ],
      "env": {
        "ZAP_API_KEY": "<ZAP_API_KEY>",
        "MCP_API_KEY": "<MCP_API_KEY>"
      }
    }
  }
}
```

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "mcp-zap-server": {
      "type": "stdio",
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "ZAP_API_KEY",
        "-e",
        "MCP_API_KEY",
        "ghcr.io/dtkmn/mcp-zap-server:v0.17.1"
      ],
      "env": {
        "ZAP_API_KEY": "<ZAP_API_KEY>",
        "MCP_API_KEY": "<MCP_API_KEY>"
      }
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "mcp-zap-server": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "ZAP_API_KEY",
        "-e",
        "MCP_API_KEY",
        "ghcr.io/dtkmn/mcp-zap-server:v0.17.1"
      ],
      "env": {
        "ZAP_API_KEY": "<ZAP_API_KEY>",
        "MCP_API_KEY": "<MCP_API_KEY>"
      }
    }
  }
}
```

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "mcp-zap-server": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "ZAP_API_KEY",
        "-e",
        "MCP_API_KEY",
        "ghcr.io/dtkmn/mcp-zap-server:v0.17.1"
      ],
      "env": {
        "ZAP_API_KEY": "<ZAP_API_KEY>",
        "MCP_API_KEY": "<MCP_API_KEY>"
      }
    }
  }
}
```

## FAQ

### What licence is it under?

The site says the open-source core is Apache-2.0.

### What do I need to run it?

Docker 20.10 or newer, Docker Compose v2, and an MCP client that supports streamable HTTP and custom headers.

### Is it affiliated with ZAP?

No. The README says it is an independent implementation.

### How do clients authenticate?

Send the key set in `MCP_API_KEY` as an `X-API-Key` header; JWT is also supported.

### Is paid support available?

The site says Agentic Lab offers optional paid support for production adoption, SSO, OAuth2 setup and compliance reporting.

### Is MCP ZAP Server free?

Yes. MCP ZAP Server is open source, so you can use and self-host it for free.

### How do I add MCP ZAP Server to Claude Code?

Run this command in your terminal: claude mcp add mcp-zap-server --env ZAP_API_KEY='<ZAP_API_KEY>' --env MCP_API_KEY='<MCP_API_KEY>' -- docker run -i --rm -e ZAP_API_KEY -e MCP_API_KEY ghcr.io/dtkmn/mcp-zap-server:v0.17.1

### What are the best alternatives to MCP ZAP Server?

The closest alternatives to MCP ZAP Server are REA, Agent Roast, Midplane, Leash and Tinplate Edge AI Safety, Security & EU Compliance.

## Alternatives

- [REA](https://ai-powered.com/mcp/rea): REA is an open-source MCP server for developer tools.
- [Agent Roast](https://ai-powered.com/mcp/agent-roast): Agent Roast is an open-source MCP server for developer tools.
- [Midplane](https://ai-powered.com/mcp/midplane): Midplane is an open-source MCP server for databases.
- [Leash](https://ai-powered.com/mcp/leash): Leash is a free MCP server for security.
- [Tinplate Edge AI Safety, Security & EU Compliance](https://ai-powered.com/mcp/tinplate-edge-ai-safety-security-and-eu-compliance): Tinplate Edge AI Safety, Security & EU Compliance is a freemium MCP server for security.
- [SecureCloud](https://ai-powered.com/mcp/securecloud): SecureCloud is a free MCP server for security.
- [Eikino](https://ai-powered.com/mcp/eikino): Eikino is a freemium MCP server for security.
- [SynomosAI Governance MCP](https://ai-powered.com/mcp/synomosai-governance-mcp-2): SynomosAI Governance MCP is an open-source MCP server for security.

---
Source: https://ai-powered.com/mcp/mcp-zap-server
