SuperAPI AI Directory

pci-dss-mcp

PCI DSS static analysis for Go payment code: finds PAN/CVV exposure, weak crypto, missing audit logs and vulnerable deps, each mapped to a PCI requirement.

Open website

About this tool

pci-dss-mcp is a PCI DSS v4.0.1 compliance static analysis tool for Go payment service codebases, delivered as a stdio MCP server. Its goal is to map every detected PCI DSS v4.0.1 violation to a specific requirement number before code is released.

Purpose The tool focuses on compliance checks for payment service codebases, helping developers discover security issues related to PCI DSS requirements before code is committed. It is not a general-purpose security scanner, but a narrow and deep analyzer specialized for the payments domain.

Main capabilities pci-dss-mcp runs 12 scanners, an orchestrator, and an AI triage engine. Each finding carries a requirement_id, mapped to a specific line item of PCI DSS v4.0.1. Currently detectable items include: HTTP framework input flowing into logs, errors, or panic sinks. Tier 1 frameworks (gin, chi, gorilla/mux, net/http (Go 1.22+), echo v4, fiber v2) and Tier 1 loggers (log/slog, logrus, zap, zerolog, logr, klog, hclog) are already available in v0.7. Tier 2 (kratos, apex/log, charmbracelet/log) is planned for v0.8. Tier 3 (fasthttp, beego, iris, httprouter, in-house frameworks) will be user-configurable after the Phase 25 YAML release. In addition, the tool detects PAN/CVV exposure, weak cryptography, missing audit logs, and vulnerable dependencies.

Usage There are two installation methods:

  1. Go install (primary method): requires Go 1.25+. The binary is located at $(go env GOPATH)/bin/pci-dss-mcp.
  2. Docker (alternative method): suitable for CI pipelines, QSA auditors who do not develop Go locally, or any environment without a host Go toolchain. The tool is listed on registry.modelcontextprotocol.io under the identifier io.github.shyshlakov/pci-dss-mcp, automatically published for each tag. It can be added to MCP client configurations (Claude Desktop's claude_desktop_config.json, Cursor's .cursor/mcp.json, or Claude Code's claude mcp add). In the Docker method, the absolute paths of the src= and dst= images are identical, so the container sees the same code paths as the host. Two prompt examples are provided that can be pasted directly into an MCP client:
  • Run pci-dss-mcp triage on /Users/you/payments-service, using min_severity=MEDIUM and grouping findings by PCI DSS requirement.
  • Generate a PCI DSS compliance report in JSON format for /Users/you/payments-service, showing requirement-level pass/fail status and severity counts. All tools declare typed OutputSchema.

Applicable scenarios Suitable for compliance pre-checks of Go payment service codebases, can be integrated into CI/CD processes (GitHub Actions, GitLab CI), and can also be used by QSA auditors as input to the compliance process.

Limitations

  • Does not replace broad SAST tools (such as Semgrep, CodeQL, gosec), which are used for OWASP Top-10 and language-agnostic vulnerabilities.
  • Does not replace LLM-based code review; the two can be used in combination.
  • Not applicable to non-Go codebases; its precision depends on Go-specific AST patterns and taint flow tracking.
  • Does not replace a QSA. Static analysis covers only about 6% of PCI DSS v4.0.1 requirements; the rest must be signed off by a Qualified Security Assessor.
  • The tool itself is a static analysis tool, and its output should be used as input to the compliance process, not as compliance itself.

Project status In active development, pre v1.0 stage. Licensed under MIT.