qualys-pci-mcp
A read-only MCP server for the Qualys PCI Merchant API that lets LLM assistants answer questions about PCI compliance posture, such as which hosts are failing PCI or listing high findings.
README
qualys-pci-mcp
A read-only MCP server for the Qualys PCI Merchant API. It lets an LLM assistant answer questions about your PCI compliance posture, so that weekly compliance chores stop being a manual trawl through the Qualys console.
Description
This project exposes the PCI Merchant API's read endpoints as MCP tools, so you can ask questions in plain language instead:
- "Which hosts are failing PCI right now?"
- "List the confirmed-high findings that aren't already accepted false positives."
AI Disclosure
This project is very much vibe-coded in anger, to solve particular needs. As always, inspect the source code.
Requirements
- Python 3.11+
uv- A Qualys PCI merchant account with API access
Installation
Not published to PyPI yet, so install from a clone:
git clone https://github.com/RobotDisco/qualys-pci-mcp && cd qualys-pci-mcp
uv tool install .
Or run it straight from the checkout without installing:
uv sync && uv run qualys-pci-mcp
Then register it with your MCP client. For Claude Desktop on MacOS, place it in
~/Library/Application Support/Claude/claude_desktop_config.json.
{
"mcpServers": {
"qualys-pci": {
"command": "/Users/you/.local/bin/qualys-pci-mcp",
"env": {
"QUALYS_PCI_USERNAME": "your-pci-username",
"QUALYS_PCI_PASSWORD": "your-pci-password"
}
}
}
}
Configuration
| Variable | Required | Default |
|---|---|---|
QUALYS_PCI_USERNAME |
yes | — |
QUALYS_PCI_PASSWORD |
yes | — |
QUALYS_PCI_BASE_URL |
no | https://pci-api.qualys.com |
QUALYS_PCI_DOWNLOAD_DIR |
no | ~/.local/share/qualys-pci-mcp/downloads — where scan-report PDFs are saved |
Missing or partial credentials fail at startup, not mid-request — so you find out when you launch, not halfway through a compliance report.
Usage
As an MCP server
Once registered, ask your assistant directly:
Which hosts are currently failing PCI?
Tools
| Tool | What it returns |
|---|---|
pci_list_assets |
Declared in-scope IPs, DNS hostnames, and virtual hosts |
pci_compliance_summary |
Per-host PCI Pass/Fail — the main way to iterate hostnames |
pci_list_vulns |
Vulnerability detections, compact rows |
pci_get_vuln |
One detection in full |
pci_list_scans / pci_get_scan |
Scan history and per-scan metadata |
pci_download_scan_report |
Saves a scan's PDF report; returns the path. Usually 404s — reports must be generated in the Qualys console first, and generation is a write operation this server does not perform |
Support
Open an issue on the repository. When reporting an API problem, please include the endpoint, the parameters you used, and the HTTP status — never your credentials, and note that Qualys error bodies can echo request parameters.
Contributing
Contributions welcome. Before opening a PR:
- Read
CLAUDE.md. Its invariants are not style preferences — two of them (never retry a 401, never write to stdout) prevent a locked audit account and a silently corrupted MCP stream respectively. - Read the relevant ADR. If your change contradicts one, that's fine, but it needs a superseding ADR rather than an edit to the existing one.
just checkmust pass — lint, formatting,mypy --strict, and tests. CI runs the same recipe.justrecipes are listed withjust; see thejustfileif you would rather run the underlying commands directly.- Never add an endpoint path that hasn't been verified against live documentation. Guessed paths are
the single most likely source of confidently-broken code in this codebase.
docs/reference/pci-api.mdrecords which paths are verified, which are documentation-only, and which documented details turned out to be wrong.
Acknowledgements
The API reference was reconstructed from Qualys's published documentation at
docs.qualys.com/en/pci/api/. Qualys is a trademark of Qualys, Inc.; this project is unaffiliated.
License
Chosen over MIT for its explicit patent grant and contributor terms, which matter for a tool that wraps a commercial vendor's API, and over GPLv3 because MCP's process boundary means copyleft could not reach the integrations it would most plausibly be intended to govern.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。