dtkmn/mcp-zap-server
Give AI agents a safe, self-hosted ZAP operator for guided web security scans, findings, reports, and production guardrails.
3e776ae64e46mcp-zap-connect-claude-desktop0.18.0 in packaging/claude-desktop/package.jsonio.github.dtkmn/mcp-zap-serverPaths from tool input into commands, SQL, files and URLs
How much power the tools give an agent over the machine
Hidden instructions and poisoning in text for the model
Known vulnerabilities in the packages the server uses
How the server reads credentials and where they can go
Whether the tools do only what their descriptions say
How far the analysis went
The scanner traces each tool from its input to the operations its code performs, and here it could not follow every path. Code Safety is shown as partly traced instead of a score: no finding there is not a clean result. The score of Capability Exposure counts only what it could follow.
- In 415 places a tool's input is handed to a function whose name matches several definitions in the code; the scanner could not tell which one runs, so it stopped there
- 3 places in the code register tools whose names are computed at run time; how many tools that makes cannot be read from the code
- 3 tools, prompts and resources registered only in the repository's tests are not counted on this page
Top risks in plain words
- INFONo published risk: no tool declared to run commands, files, addresses or queries of the caller's choice, no known vulnerability in a production package, no advisory. Not every path through the code could be followed. Code findings appear here only after a person has verified them.
How to use it safely
Practical steps from what we found in this server. They lower the risk; they do not replace a review of the code.
- Keep confirmations on
Leave your MCP client's confirmation prompt on for tools that change files, run commands or send data.
What its tools can do on your machine
The server offers 31 tools, 1 prompt. When an AI agent calls them, this is what their code can do on the machine where the server runs, as traced in the source. Tools that call code the scanner could not follow may do more.
zap_target_importNo tool was seen to: start other programs on the machine; connect to the internet or other hosts; read passwords, tokens or keys; read environment variables; touch sensitive locations.
Where its requests and secrets go
Read from the names along each tool's calls, not from a run: what the code says, not every address it may reach at run time.
The literal addresses the tools' requests name.
- None: no request names a fixed host.
Constants or settings that start an address; the value comes from configuration.
- None seen.
Credential-like environment variables. Give the server a key with the least access it needs.
- None: no credential-like variable is read by the tools.
Text it brings in from outside
Text that reaches the model from outside: an instruction hidden in it can steer the agent (prompt injection). Treat what these tools return as data, not as orders.
- files1 tool · zap_target_import
Not all three are present in the tools the scanner traced.
Tool annotations
No tool declares MCP annotations (readOnlyHint, destructiveHint and the rest). Clients use them to decide what to confirm; directories such as Anthropic's and OpenAI's ask for them.
Tools, prompts and resources (32: 31 tools, 1 prompt)
Open a row for its full description. Chips show what its code can reach, and which risky capability its own description declares.
setup-local-scannerprompt Guide local scanner setup while preserving existing installations and other clients.
Guide local scanner setup while preserving existing installations and other clients.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
zap_addon_inspecttool Inspect loaded ZAP engine/add-on versions, cached Marketplace candidate and optional passive rule enabled states before scanning. Read-only; no prior target sca
Inspect loaded ZAP engine/add-on versions, cached Marketplace candidate and optional passive rule enabled states before scanning. Read-only; no prior target scan is needed.
zap_addon_updatetool Operator-only update of one approved installed add-on through ZAP Marketplace. Disabled by default. Requires exact inspected current/candidate versions and expl
Operator-only update of one approved installed add-on through ZAP Marketplace. Disabled by default. Requires exact inspected current/candidate versions and explicit dependency-change acknowledgment. Refuses busy/shared engines. Verifies actual loaded results; ambiguous completion quarantines engine actions. Never restarts ZAP.
zap_addon_update_statustool Read fresh loaded add-on and requested passive-rule readiness against an exact expected version, with the last local update result when available. Does not retr
Read fresh loaded add-on and requested passive-rule readiness against an exact expected version, with the last local update result when available. Does not retry installs, clear quarantine or restart ZAP.
zap_attack_starttool Queue an active scan of an authorized target host or base URL after crawling or importing the target. All storage backends use the protected scan queue. Keep th
Queue an active scan of an authorized target host or base URL after crawling or importing the target. All storage backends use the protected scan queue. Keep the returned operation ID to check status or stop the scan. If you supply authSessionId, it must be a prepared form-login session.
zap_attack_statustool Get the status of an active scan.
Get the status of an active scan.
zap_attack_stoptool Stop an active scan using its operation ID.
Stop an active scan using its operation ID.
zap_auth_session_preparetool Prepare an authentication session from an operator-managed profile. Use a kind=browser profile for Client Spider, or kind=form for HTTP spider and active scans.
Prepare an authentication session from an operator-managed profile. Use a kind=browser profile for Client Spider, or kind=form for HTTP spider and active scans. The requested target must remain on the profile's authorized origin.
zap_auth_session_validatetool Validate a prepared authentication session before an authenticated crawl or active scan.
Validate a prepared authentication session before an authenticated crawl or active scan.
zap_crawl_starttool Queue a crawl of a target host or root URL. All storage backends use the protected scan queue. Keep the returned operation ID to check status or stop the crawl.
Queue a crawl of a target host or root URL. All storage backends use the protected scan queue. Keep the returned operation ID to check status or stop the crawl. Use strategy=http for traditional server-rendered sites, strategy=client for JavaScript-driven apps using Client Spider, or strategy=browser for the existing AJAX Spider API. strategy=auto selects HTTP Spider without automatic fallback. Auto does not detect JavaScript coverage. Client Spider requires the Client Side Integration add-on and headless Firefox. Prepared browser authentication sessions require strategy=client; prepared HTTP form-login sessions require http or auto.
zap_crawl_statustool Get the status of a crawl.
Get the status of a crawl.
zap_crawl_stoptool Stop a crawl using its operation ID.
Stop a crawl using its operation ID.
zap_findings_detailstool Drill into findings after reading the summary. Requires a nonblank target baseUrl covered by scan evidence visible to the caller. By default this returns groupe
Drill into findings after reading the summary. Requires a nonblank target baseUrl covered by scan evidence visible to the caller. By default this returns grouped details for matching alerts. Set includeInstances=true when you need bounded raw alert occurrences with concrete URLs, params, evidence, or attack samples.
zap_findings_difftool Compare current findings for a required target baseUrl covered by scan evidence visible to the caller against a previously exported findings snapshot. New/resol
Compare current findings for a required target baseUrl covered by scan evidence visible to the caller against a previously exported findings snapshot. New/resolved counts require matching complete scanner inventories; otherwise only informational observed changes are reported. Matching inventory does not prove application remediation or equal scan coverage.
zap_findings_snapshottool Export a normalized findings snapshot with measured ZAP version and installed add-on inventory as JSON for a required target baseUrl covered by scan evidence vi
Export a normalized findings snapshot with measured ZAP version and installed add-on inventory as JSON for a required target baseUrl covered by scan evidence visible to the caller, so CI or release workflows can save a baseline. Unavailable scanner identity is explicitly marked incomplete.
zap_findings_summarytool Read currently recorded alerts, including while scan work is in progress, as a concise grouped risk summary for fast triage. Alert counts do not establish scan
Read currently recorded alerts, including while scan work is in progress, as a concise grouped risk summary for fast triage. Alert counts do not establish scan completion, coverage, or safety. Requires a nonblank target baseUrl covered by scan evidence visible to the caller.
zap_passive_scan_statustool Get passive scan backlog and completion status.
Get passive scan backlog and completion status.
zap_passive_scan_waittool Wait for the passive scan backlog to drain before reading findings or generating reports.
Wait for the passive scan backlog to drain before reading findings or generating reports.
zap_report_generatetool Generate an HTML (default) or JSON report once the passive scan queue is empty. To explore findings interactively, use zap_findings_summary or zap_findings_deta
Generate an HTML (default) or JSON report once the passive scan queue is empty. To explore findings interactively, use zap_findings_summary or zap_findings_details.
zap_report_readtool Preview a generated report artifact through MCP after zap_report_generate. If truncated, use zap_report_read_chunk to retrieve the complete artifact in bounded
Preview a generated report artifact through MCP after zap_report_generate. If truncated, use zap_report_read_chunk to retrieve the complete artifact in bounded pages.
zap_report_read_chunktool Retrieve a generated UTF-8 report in bounded JSON pages. Append content in order, follow nextOffset until endOfFile=true, and supply the first page's artifactSh
Retrieve a generated UTF-8 report in bounded JSON pages. Append content in order, follow nextOffset until endOfFile=true, and supply the first page's artifactSha256 as expectedSha256 on later pages. Offsets and maxChars count Unicode code points. Artifacts are limited to 50 MiB; the SHA-256 identifies the full original UTF-8 file.
zap_scan_history_customer_handofftool Generate a customer-safe Markdown handoff summary from scan history without raw internal IDs, backend references, workspace IDs, or metadata.
Generate a customer-safe Markdown handoff summary from scan history without raw internal IDs, backend references, workspace IDs, or metadata.
zap_scan_history_exporttool Export scan history as inline JSON text for internal evidence processing; no export file is created.
Export scan history as inline JSON text for internal evidence processing; no export file is created.
Use zap_scan_history_list for a readable listing, zap_scan_history_release_evidence for a summary bundle,
or zap_scan_history_customer_handoff for a customer-facing summary.
Returns version, generatedAt, retentionDays, entryCount, and entries containing scan/job/artifact records,
including internal IDs, paths, and metadata; review before sharing.
Only records accessible to the caller in the current workspace are included, newest first.
Omitted or blank filters select all accessible records; supplied filters combine with AND.
The snapshot is capped by limit, has no pagination, and returns an empty entries array when nothing matches.
It does not start scans or contact targets. Querying may delete expired stored ledger entries under
the configured retention policy; it does not refresh scan outcomes from ZAP.zap_scan_history_gettool Read one scan history or release-evidence entry by ID.
Read one scan history or release-evidence entry by ID.
zap_scan_history_listtool List recent scan history and release-evidence entries, including queued scans, retained historical direct-scan records, and generated report artifacts.
List recent scan history and release-evidence entries, including queued scans, retained historical direct-scan records, and generated report artifacts.
zap_scan_history_release_evidencetool Export a release or pilot handoff evidence bundle with summary counts, target coverage, warnings, and bounded ledger entries.
Export a release or pilot handoff evidence bundle with summary counts, target coverage, warnings, and bounded ledger entries.
zap_scan_policies_listtool List the active-scan policies currently configured in ZAP so you can inspect a policy before choosing it for zap_attack_start. This reads policy names without s
List the active-scan policies currently configured in ZAP so you can inspect a policy before choosing it for zap_attack_start. This reads policy names without starting a scan or changing policy rules. Requires zap:scan:policy:read. Policy inspection does not reserve or freeze the configuration for a later scan.
zap_scan_policy_viewtool Inspect a currently configured active-scan policy: category and rule counts, enabled state, attack strength and alert threshold. Rule details honor ruleFilter a
Inspect a currently configured active-scan policy: category and rule counts, enabled state, attack strength and alert threshold. Rule details honor ruleFilter and limit; the summary still describes the whole policy. This reads configuration without starting a scan or changing policy rules. Requires zap:scan:policy:read. Policy inspection does not reserve or freeze the configuration for a later scan.
zap_target_importtool Import an OpenAPI/Swagger definition, GraphQL schema, or SOAP WSDL to prepare API endpoints for testing.Filesoutside text
Import an OpenAPI/Swagger definition, GraphQL schema, or SOAP WSDL to prepare API endpoints for testing.
Use when you have an API definition; use zap_crawl_start to discover ordinary web pages.
Requires a reachable, configured ZAP instance with the matching OpenAPI, GraphQL, or SOAP add-on.
Import changes the current ZAP session and may send requests to the definition source and API targets;
use only authorized targets. It does not start an active scan: after reviewing import messages,
call zap_attack_start with the API target URL only when active testing is permitted and approved.
Content mode accepts actual OpenAPI JSON/YAML text with a required full HTTP(S) hostOverride
and an explicitly enabled shared filesystem; it cannot read chat attachments automatically.
Returns plain text containing definition type, source kind, and import status. URL/file mode
also includes source and engine messages; content mode withholds contents, internal paths,
and raw engine warning text. Review warnings before proceeding.
Invalid inputs, blocked URLs, and ZAP API failures raise errors.Text the model reads (35)
Every tool, prompt and resource description as written in the code: the model sees all of it, the user usually does not.
(name computed at run time) tool
(name computed at run time) tool
(name computed at run time) tool
zap_addon_inspect tool
Inspect loaded ZAP engine/add-on versions, cached Marketplace candidate and optional passive rule enabled states before scanning. Read-only; no prior target scan is needed.
zap_addon_update tool
Operator-only update of one approved installed add-on through ZAP Marketplace. Disabled by default. Requires exact inspected current/candidate versions and explicit dependency-change acknowledgment. Refuses busy/shared engines. Verifies actual loaded results; ambiguous completion quarantines engine actions. Never restarts ZAP.
zap_addon_update_status tool
Read fresh loaded add-on and requested passive-rule readiness against an exact expected version, with the last local update result when available. Does not retry installs, clear quarantine or restart ZAP.
zap_auth_session_prepare tool
Prepare an authentication session from an operator-managed profile. Use a kind=browser profile for Client Spider, or kind=form for HTTP spider and active scans. The requested target must remain on the profile's authorized origin.
zap_auth_session_validate tool
Validate a prepared authentication session before an authenticated crawl or active scan.
zap_passive_scan_status tool
Get passive scan backlog and completion status.
zap_passive_scan_wait tool
Wait for the passive scan backlog to drain before reading findings or generating reports.
zap_scan_history_list tool
List recent scan history and release-evidence entries, including queued scans, retained historical direct-scan records, and generated report artifacts.
zap_scan_history_get tool
Read one scan history or release-evidence entry by ID.
zap_scan_history_export tool
Export scan history as inline JSON text for internal evidence processing; no export file is created.
Use zap_scan_history_list for a readable listing, zap_scan_history_release_evidence for a summary bundle,
or zap_scan_history_customer_handoff for a customer-facing summary.
Returns version, generatedAt, retentionDays, entryCount, and entries containing scan/job/artifact records,
including internal IDs, paths, and metadata; review before sharing.
Only records accessible to the caller in the current workspace are included, newest first.
Omitted or blank filters select all accessible records; supplied filters combine with AND.
The snapshot is capped by limit, has no pagination, and returns an empty entries array when nothing matches.
It does not start scans or contact targets. Querying may delete expired stored ledger entries under
the configured retention policy; it does not refresh scan outcomes from ZAP.
zap_scan_history_release_evidence tool
Export a release or pilot handoff evidence bundle with summary counts, target coverage, warnings, and bounded ledger entries.
zap_scan_history_customer_handoff tool
Generate a customer-safe Markdown handoff summary from scan history without raw internal IDs, backend references, workspace IDs, or metadata.
zap_target_import tool
Import an OpenAPI/Swagger definition, GraphQL schema, or SOAP WSDL to prepare API endpoints for testing.
Use when you have an API definition; use zap_crawl_start to discover ordinary web pages.
Requires a reachable, configured ZAP instance with the matching OpenAPI, GraphQL, or SOAP add-on.
Import changes the current ZAP session and may send requests to the definition source and API targets;
use only authorized targets. It does not start an active scan: after reviewing import messages,
call zap_attack_start with the API target URL only when active testing is permitted and approved.
Content mode accepts actual OpenAPI JSON/YAML text with a required full HTTP(S) hostOverride
and an explicitly enabled shared filesystem; it cannot read chat attachments automatically.
Returns plain text containing definition type, source kind, and import status. URL/file mode
also includes source and engine messages; content mode withholds contents, internal paths,
and raw engine warning text. Review warnings before proceeding.
Invalid inputs, blocked URLs, and ZAP API failures raise errors.
zap_crawl_start tool
Queue a crawl of a target host or root URL. All storage backends use the protected scan queue. Keep the returned operation ID to check status or stop the crawl. Use strategy=http for traditional server-rendered sites, strategy=client for JavaScript-driven apps using Client Spider, or strategy=browser for the existing AJAX Spider API. strategy=auto selects HTTP Spider without automatic fallback. Auto does not detect JavaScript coverage. Client Spider requires the Client Side Integration add-on and headless Firefox. Prepared browser authentication sessions require strategy=client; prepared HTTP form-login sessions require http or auto.
zap_crawl_status tool
Get the status of a crawl.
zap_crawl_stop tool
Stop a crawl using its operation ID.
zap_scan_policies_list tool
List the active-scan policies currently configured in ZAP so you can inspect a policy before choosing it for zap_attack_start. This reads policy names without starting a scan or changing policy rules. Requires zap:scan:policy:read. Policy inspection does not reserve or freeze the configuration for a later scan.
zap_scan_policy_view tool
Inspect a currently configured active-scan policy: category and rule counts, enabled state, attack strength and alert threshold. Rule details honor ruleFilter and limit; the summary still describes the whole policy. This reads configuration without starting a scan or changing policy rules. Requires zap:scan:policy:read. Policy inspection does not reserve or freeze the configuration for a later scan.
zap_attack_start tool
Queue an active scan of an authorized target host or base URL after crawling or importing the target. All storage backends use the protected scan queue. Keep the returned operation ID to check status or stop the scan. If you supply authSessionId, it must be a prepared form-login session.
zap_attack_status tool
Get the status of an active scan.
zap_attack_stop tool
Stop an active scan using its operation ID.
zap_findings_snapshot tool
Export a normalized findings snapshot with measured ZAP version and installed add-on inventory as JSON for a required target baseUrl covered by scan evidence visible to the caller, so CI or release workflows can save a baseline. Unavailable scanner identity is explicitly marked incomplete.
zap_findings_diff tool
Compare current findings for a required target baseUrl covered by scan evidence visible to the caller against a previously exported findings snapshot. New/resolved counts require matching complete scanner inventories; otherwise only informational observed changes are reported. Matching inventory does not prove application remediation or equal scan coverage.
zap_findings_summary tool
Read currently recorded alerts, including while scan work is in progress, as a concise grouped risk summary for fast triage. Alert counts do not establish scan completion, coverage, or safety. Requires a nonblank target baseUrl covered by scan evidence visible to the caller.
zap_findings_details tool
Drill into findings after reading the summary. Requires a nonblank target baseUrl covered by scan evidence visible to the caller. By default this returns grouped details for matching alerts. Set includeInstances=true when you need bounded raw alert occurrences with concrete URLs, params, evidence, or attack samples.
zap_report_generate tool
Generate an HTML (default) or JSON report once the passive scan queue is empty. To explore findings interactively, use zap_findings_summary or zap_findings_details.
zap_report_read tool
Preview a generated report artifact through MCP after zap_report_generate. If truncated, use zap_report_read_chunk to retrieve the complete artifact in bounded pages.
zap_report_read_chunk tool
Retrieve a generated UTF-8 report in bounded JSON pages. Append content in order, follow nextOffset until endOfFile=true, and supply the first page's artifactSha256 as expectedSha256 on later pages. Offsets and maxChars count Unicode code points. Artifacts are limited to 50 MiB; the SHA-256 identifies the full original UTF-8 file.
zap_report_read tool
zap_passive_scan_status tool
zap_auth_session_prepare tool
setup-local-scanner prompt
Guide local scanner setup while preserving existing installations and other clients.
What we checked
The same checks run on every server. Each line below has one of these marks:
- 8 checks: command injection, argument injection, path traversal, server-side request forgery, SQL injection, code execution, unsafe deserialization, template injectionChecked on every scan. Results in this category are published only after a person has verified them.
- Runs programs the caller choosesNo tool runs a command or program the caller supplies — 32 tool handlers traced. Not every path could be followed, so this is not a clean pass.
- Executes caller-supplied codeNo tool evaluates code the caller supplies — 32 tool handlers traced. Not every path could be followed, so this is not a clean pass.
- Reads or writes any file pathNo tool works on a file path the caller supplies without a root check — 32 tool handlers traced. Not every path could be followed, so this is not a clean pass.
- Requests any addressNo tool sends a request to an address the caller supplies — 32 tool handlers traced. Not every path could be followed, so this is not a clean pass.
- Runs caller-supplied SQLNo tool executes a query the caller supplies — 32 tool handlers traced. Not every path could be followed, so this is not a clean pass.
- Tools that start processesNot seen in the traced code of 32 capabilities; 14 more call code the scanner could not follow, where it may happen
- Tools that touch files1 of 32 capabilities touch files; 13 more call code the scanner could not follow, where it may happen
- Tools that call the networkNot seen in the traced code of 32 capabilities; 14 more call code the scanner could not follow, where it may happen
Where the code is: 32 handlers in 6 files at commit 3e776ae64e46
packaging/claude-desktop/server/mcp.js(name computed at run time), (name computed at run time), (name computed at run time), setup-local-scannersrc/main/java/mcp/server/zap/core/service/AddonMaintenanceMcpToolsService.javazap_addon_inspect, zap_addon_update, zap_addon_update_statussrc/main/java/mcp/server/zap/core/service/AuthSessionMcpToolsService.javazap_auth_session_prepare, zap_auth_session_validatesrc/main/java/mcp/server/zap/core/service/PassiveScanMcpToolsService.javazap_passive_scan_status, zap_passive_scan_waitsrc/main/java/mcp/server/zap/core/service/ScanHistoryMcpToolsService.javazap_scan_history_list, zap_scan_history_get, zap_scan_history_export, zap_scan_history_release_evidence, zap_scan_history_customer_handoffsrc/main/java/mcp/server/zap/core/service/SecurityMcpToolsService.javazap_target_import, zap_crawl_start, zap_crawl_status, zap_crawl_stop, zap_scan_policies_list, zap_scan_policy_view, zap_attack_start, zap_attack_status, zap_attack_stop, zap_findings_snapshot, zap_findings_diff, zap_findings_summary +4
- 5 checks: tool poisoning, instruction override, hidden content, exfiltration requests, metadata integrityChecked on every scan. Results in this category are published only after a person has verified them.
- Dependency manifests3 manifests: docs/package.json, packaging/claude-desktop/package.json, tools/healthcheck/go.mod
- Lockfiles checked against OSV3 files resolved and checked against the OSV database
- Known vulnerabilities in production dependenciesNo production dependency with a known advisory
- Known vulnerabilities in other dependenciesNo package used only for development, tests or examples has a known advisory
- MCP SDK version@modelcontextprotocol/sdk 1.32.1
- 3 checks: credential harvesting, undeclared credential access, credentials sent over the networkChecked on every scan. Results in this category are published only after a person has verified them.
- Tools that read credentialsNot seen in the traced code of 32 capabilities; 14 more call code the scanner could not follow, where it may happen
- Authentication declaredNot checked: needs the live server's tools/list (a remote server declares how clients authenticate)
- 3 checks: undeclared network access, undeclared file access, undeclared process executionChecked on every scan. Results in this category are published only after a person has verified them.
- Tool descriptions presentEvery tool has a description the model and the user can read (4 only in code no tool reaches)
- Statically known namesEvery tool's name could be read from the code
- Input schemasNot checked: needs the live server's tools/list (every tool declares an input schema)
- Destructive tools annotatedNot checked: needs the live server's tools/list (tools that write, delete or run commands carry destructivehint)
Dependencies with known vulnerabilities (0 in production)
No known vulnerabilities in the production dependencies that could be checked.
Past security advisories
Vulnerabilities published for this server itself, from the GitHub Advisory Database.
No security advisories have been published for this server in the GitHub Advisory Database.
How it runs
| Where it runs | On your machine, started by your MCP client from this repository or its package |
|---|---|
| Transport | stdio |
| Sign-in | not checked needs the live server |
| MCP SDK | @modelcontextprotocol/sdk 1.32.1 |
| Servers in the code | 1 (mcp-zap-connect) |
The project's own security
| Security policy | yes SECURITY.md |
|---|---|
| Private reporting | mentioned the policy names a private channel |
| Past advisories | none in the GitHub Advisory Database |
| Last push | 2026-11-13 |
| Signed releases | not checked yet |
Where it is published
| MCP Registry | io.github.dtkmn/mcp-zap-server |
|---|---|
| Listed in | 6 catalogs (awesome_tensorblock, github_search, glama, mcp_registry, mcp_toplist, mcpservers_org) |
| License | Apache-2.0 |
| Created | 2025-04-20 |
| Topics | ai java llm mcp mcp-server owasp security security-automation security-scanner security-tools |
Attack map
How the server is built and where its risky tools lead: servers, their tools, what the tools' code can do, and the traced route from a declared risky tool's argument to the operation it reaches. Click a node for details.