qualys-cli-mcp

v0.3.1
qualys-cli-mcp Checked 3 hours ago Published 19 days ago

Model Context Protocol (MCP) server giving any LLM secure, audited access to the Qualys Cloud Platform (VM, PM, WAS, TotalCloud, Container Security, CSAM, and…

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

qualys_cli Qualys Cli

Execute a qualys-cli command and return the results as JSON. This tool provides access to the entire Qualys Cloud Security Platform via the qualys-cli command-line interface. Pass any valid qualys-cli command (without the 'qualys-cli' prefix) and receive structured JSON.

ParameterTypeDescription
command *stringThe qualys-cli command to execute (e.g. "vm scan list --state Running"). Do NOT include 'qualys-cli' itself -- just the subcommand and flags. Always include '--format json' for structured ou…

qualys_cli_help Qualys Cli Help

Get the full qualys-cli command reference -- modules, resources, actions, and patterns. Returns the complete command reference including all modules, resources, actions, filter syntax, output formats, and common usage patterns. Call this FIRST if you are unsure which command to use or need to look up filter operators, flag names, or module-specific syntax.

qualys_status Qualys Status

Check Qualys connectivity and authentication status.

vm_scan_list Vm Scan List

List vulnerability scans, optionally filtered by state.

ParameterTypeDescription
limitinteger
state

vm_host_list Vm Host List

List scanned hosts, optionally filtered by IP range.

ParameterTypeDescription
ipsIP address, range, or CIDR (e.g. "10.0.0.1", "10.0.0.0/24")
limitinteger

vm_host_detection Vm Host Detection

Get vulnerability detections, scoped by IP, QID, and/or severity. At least one of ips/qids/severities is required — an unscoped pull forces the server to evaluate the entire subscription. For population-level aggregates (MTTR, backlog age, counts), use vm_detection_stats instead of pulling raw detections.

ParameterTypeDescription
detection_updated_sinceOnly detections updated since YYYY-MM-DD[THH:MM:SSZ] — large server-side speedup
include_resultsbooleanInclude full RESULTS evidence text (large; off by default because it dominates response size and server time)
ipsIP address, range, or CIDR (e.g. "10.0.0.1", "10.0.0.0/24")
limitinteger
qidsComma-separated QIDs (e.g. "91541,91345")
severitiesComma-separated severity levels (e.g. "4,5")
statusstringDetection statuses to include (default: live detections only)

vm_detection_stats Vm Detection Stats

Aggregate detection statistics in ONE call: MTTR or backlog age. The CLI paginates the full matching detection population internally and returns compact JSON: count, mean/median/p25/p75/min/max days, an age histogram, and the top QIDs by instance count. Use this for questions like "what's our KEV MTTR", "how old is our backlog", or "are we meeting our 30-day SLA" — never pull raw detections and aggregate them yourself. Example: "MTTR for CISA KEV vulns over the last year" maps to metric="mttr", kev=True, detection_updated_since=<12 months ago> (fixes dated before the window are excluded an…

ParameterTypeDescription
detection_updated_sinceOnly detections updated since YYYY-MM-DD[THH:MM:SSZ] — use for windowed metrics like "fixed in the last 12 months"
ipsOptional IP/range/CIDR scope
kevbooleanRestrict to CISA KEV vulnerabilities (the CLI resolves the full KEV QID set via the KB, cached)
metricstring"mttr" (remediated: last-fixed minus first-found; defaults to status Fixed) or "age" (open: days since first-found; defaults to status Active,New,Re-Opened)
qidsOptional comma-separated QIDs
severitiesOptional severity filter (e.g. "4,5")
statusOverride the metric's default status filter

vm_kev_qids Vm Kev Qids

Enumerate all QIDs covering the CISA KEV catalog (~9,700 QIDs). Cached after first resolution (sub-second when warm). Prefer vm_detection_stats(kev=True) for KEV metrics — it applies this set automatically; call this only when you need the raw QID list.

vm_kb_by_cve Vm Kb By Cve

Look up Qualys KB entries by CVE ID (e.g. CVE-2024-3400).

ParameterTypeDescription
cve *string
limitinteger

vm_kb_by_qid Vm Kb By Qid

Look up Qualys KB entries by QID (e.g. "91041" or "91041,91668").

ParameterTypeDescription
qids *stringOne or more QIDs, comma-separated.

pc_posture_list Pc Posture List

List policy compliance posture for a specific policy.

ParameterTypeDescription
policy_id *stringThe policy ID (numeric).
limitinteger

pm_job_list Pm Job List

List patch management jobs.

ParameterTypeDescription
limitinteger

pm_patch_list Pm Patch List

List available patches in the patch catalog.

ParameterTypeDescription
limitinteger

was_finding_list Was Finding List

List web application scan findings, optionally filtered by severity.

ParameterTypeDescription
limitinteger
severitySeverity level (1=info, 5=urgent).

tc_connector_list Tc Connector List

List TotalCloud connectors for a cloud provider.

ParameterTypeDescription
provider *string

tc_cdr_findings Tc Cdr Findings

List Cloud Detection and Response (CDR) findings.

ParameterTypeDescription
limitinteger

cs_image_vulns Cs Image Vulns

Get vulnerabilities for a specific container image.

ParameterTypeDescription
image_id *stringThe container image ID (numeric).

csam_riskiest_assets Csam Riskiest Assets

Find the riskiest assets by TruRisk score.

ParameterTypeDescription
limitinteger
min_risk_scoreintegerMinimum risk score threshold (default 900).

csam_asset_count Csam Asset Count

Get total count of assets in the subscription.

ca_agent_list Ca Agent List

List deployed cloud agents.

ParameterTypeDescription
limitinteger

etm_finding_list Etm Finding List

List findings from the ETM findings inventory.

ParameterTypeDescription
page_sizeinteger
qqlFindings QQL query, e.g. "finding.severity:5"

etm_asset_list Etm Asset List

List assets from the ETM asset inventory.

ParameterTypeDescription
page_sizeinteger
qqlAsset QQL query, e.g. "asset.criticalityScore:5"

cs_k8s_namespace_list Cs K8S Namespace List

List Kubernetes namespaces tracked by Container Security.

ParameterTypeDescription
page_sizeinteger
query

cs_k8s_pod_list Cs K8S Pod List

List Kubernetes pods tracked by Container Security.

ParameterTypeDescription
page_sizeinteger
query