qualys-mcp
Enables AI assistants to interact with Qualys security data via 7 workflow tools for vulnerability management, cloud security, containers, compliance, and remediation.
README
Qualys MCP Server
ā ļø Unofficial project. This is a personal project to showcase the viability of connecting AI assistants to Qualys via the Model Context Protocol. It is not affiliated with, endorsed by, or supported by Qualys, Inc.
An MCP server that connects AI assistants to Qualys security data. 7 workflow tools covering vulnerability management, cloud security, containers, compliance, remediation, and more. Pure Python, zero config beyond credentials.
Setup
Add to ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"qualys": {
"command": "uvx",
"args": ["qualys-mcp"],
"env": {
"QUALYS_USERNAME": "your-username",
"QUALYS_PASSWORD": "your-password",
"QUALYS_POD": "US2"
}
}
}
}
Set QUALYS_POD to your platform POD ā the server derives the correct API and gateway URLs automatically.
Supported pods: US1 US2 US3 US4 EU1 EU2 EU3 IN1 CA1 AE1 UK1 AU1 KSA1
Advanced: If you need to override the auto-derived URLs, set
QUALYS_BASE_URLandQUALYS_GATEWAY_URLexplicitly instead ofQUALYS_POD. Explicit URLs take priority.
Requires uv: brew install uv or curl -LsSf https://astral.sh/uv/install.sh | sh
Alternative
pip install qualys-mcp
qualys-mcp
Self-Signed Certificates
For environments with self-signed certs, add "QUALYS_SSL_VERIFY": "false" to the env block.
Tools
7 workflow tools that intelligently dispatch to 42 internal aggregators across all Qualys modules. Each tool handles routing, concurrent API calls, cross-domain correlation, and response synthesis automatically.
| Tool | What it answers |
|---|---|
investigate |
Deep-dive any security topic ā CVEs, threat actors, assets, EDR/FIM events, KB searches |
assess_risk |
Cross-domain risk ā VMs, cloud (AWS/Azure/GCP/OCI), containers, web apps, certificates, assets |
check_compliance |
Compliance posture ā PCI, HIPAA, CIS, NIST, SOC2 pass/fail, failing controls, exceptions |
plan_remediation |
Patch priorities, deployment status, mitigation coverage, program gap analysis |
security_overview |
Daily/weekly/monthly briefing ā scanner health, scan status, vulnerability findings |
reports |
Generate, list, download, and manage Qualys reports |
cache_status |
View and clear API caches |
Key Parameters
investigate
targetā CVE ID, threat actor, hostname, IP, or free-text topicdepthāquick(~10s) /standard(~20s) /deep(~45s)scopeāall/vulns/threats/assets/edr/fim
assess_risk
scopeāall/cloud/containers/web/certs/assetstag/asset_groupā filter by business groupproviderāaws/azure/gcp(cloud scope)asset_idā single asset deep-dive
check_compliance
frameworkāPCI/HIPAA/CIS/NIST/SOC2include_exceptionsā include risk acceptances
plan_remediation
scopeāall/patches/mitigations/programseverityācritical/high/moderatecves/qidsā check mitigation coverage for specific vulns
security_overview
periodātoday/week/monthquickā fast snapshot (~2s) vs full briefing
Example Conversations
Daily Operations
"Give me a security overview" ā security_overview(quick=True)
"What happened this week?" ā security_overview(period="week")
"What should we patch first?" ā plan_remediation(scope="patches", severity="critical")
"How's our compliance?" ā check_compliance()
Investigation
"Tell me about CVE-2024-3400" ā investigate(target="CVE-2024-3400")
"Are we exposed to ransomware?" ā investigate(target="ransomware")
"What do we know about Iranian threats?" ā investigate(target="iran")
"Investigate this host: 10.0.0.1" ā investigate(target="10.0.0.1", scope="edr")
Risk Assessment
"What's our overall risk?" ā assess_risk(scope="all")
"How's our cloud security?" ā assess_risk(scope="cloud")
"Any container vulnerabilities?" ā assess_risk(scope="containers")
"Web app security status?" ā assess_risk(scope="web")
"Show me risk for Production assets" ā assess_risk(tag="Production")
Compliance & Remediation
"Are we PCI compliant?" ā check_compliance(framework="PCI")
"What's our patch coverage?" ā plan_remediation(scope="patches")
"Is there a mitigation for CVE-2024-3400?" ā plan_remediation(cves=["CVE-2024-3400"])
"What security gaps do we have?" ā plan_remediation(scope="program")
Multi-Step Workflows
"New critical CVE dropped ā what do I need to know?"
ā investigate(target="CVE-...") ā plan_remediation(cves=["CVE-..."]) ā check_compliance()
"Prepare me for the weekly security standup"
ā security_overview(period="week") ā assess_risk(scope="all") ā plan_remediation(scope="patches")
"PCI audit prep"
ā check_compliance(framework="PCI", include_exceptions=True) ā assess_risk(scope="all") ā plan_remediation()
Architecture
AI Assistant ā qualys_mcp.py (7 tools) ā workflows/ (dispatch + synthesis) ā aggregators.py (42 functions) ā api.py (HTTP + caching) ā Qualys APIs
Each workflow tool:
- Builds a dispatch plan based on parameters
- Runs selected aggregators concurrently
- Merges results into a unified response envelope
- Applies cross-domain correlation
- Returns prioritized findings and recommended actions
Performance
Tested on an 89,000-asset environment (US2 POD):
| Workflow | Time |
|---|---|
security_overview(quick=True) |
1.7s |
assess_risk(scope="cloud") |
1.3s |
assess_risk(scope="containers") |
3.1s |
check_compliance() |
<1ms (cached) |
plan_remediation(scope="patches") |
2.6s |
investigate(target="CVE-2024-3400") |
~33s |
assess_risk(scope="all") |
4.9s |
Cold start: The first query after launching takes 2-10s longer while the bearer token is acquired and caches warm up. A background thread pre-fetches VMDR detections on startup. After the first query, responses are significantly faster. Ask
security_overview(quick=True)first to warm caches.
Eval Harness
300 routing test questions + 900 variants + 30 multi-turn conversation workflows for automated evaluation.
# Install eval dependencies
pip install anthropic mcp python-dotenv pyyaml
# Run eval
python -m eval --quick
Testing
# Unit tests (282 tests)
pip install pytest
pytest tests/ --ignore=tests/conversations -q
# Smoke test
bash test_tools.sh fast
Qualys PODs
| POD | BASE_URL | GATEWAY_URL |
|---|---|---|
| US1 | qualysapi.qualys.com | gateway.qg1.apps.qualys.com |
| US2 | qualysapi.qg2.apps.qualys.com | gateway.qg2.apps.qualys.com |
| US3 | qualysapi.qg3.apps.qualys.com | gateway.qg3.apps.qualys.com |
| US4 | qualysapi.qg4.apps.qualys.com | gateway.qg4.apps.qualys.com |
| EU1 | qualysapi.qualys.eu | gateway.qg1.apps.qualys.eu |
| EU2 | qualysapi.qg2.apps.qualys.eu | gateway.qg2.apps.qualys.eu |
| EU3 | qualysapi.qg3.apps.qualys.eu | gateway.qg3.apps.qualys.eu |
| IN1 | qualysapi.qg1.apps.qualys.in | gateway.qg1.apps.qualys.in |
| CA1 | qualysapi.qg1.apps.qualys.ca | gateway.qg1.apps.qualys.ca |
| AE1 | qualysapi.qg1.apps.qualys.ae | gateway.qg1.apps.qualys.ae |
| UK1 | qualysapi.qg1.apps.qualys.co.uk | gateway.qg1.apps.qualys.co.uk |
| AU1 | qualysapi.qg1.apps.qualys.com.au | gateway.qg1.apps.qualys.com.au |
| KSA1 | qualysapi.qg1.apps.qualysksa.com | gateway.qg1.apps.qualysksa.com |
License
MIT - Copyright (c) 2026 Andrew Nelson
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.