PCI DSS v4.0.1 Compliance Checker

io.github.shyshlakov由 GitHub 账号 shyshlakov 发布v0.7.1更新于 Oct 24, 2026

PCI DSS v4.0.1 compliance scanner for Go payment services, delivered as an MCP server

已验证STDIO仅桌面开发者工具安全与监控

概览

AI 生成的概览

静态分析 MCP 服务器,扫描 Go 支付服务代码库中的 PCI DSS v4.0.1 违规项,并将每个发现映射到具体条款编号。

可以做什么
  • 对 Go 代码库执行完整 triage,附带 AI 分类与文件:行号上下文,或生成按条款的通过/未通过合规报告
  • 扫描 PAN/SAD 存储与日志、弱哈希、硬编码密钥、明文 HTTP、不安全 TLS 以及配置文件中的凭据
  • 检查认证强度、泄露敏感上下文的错误响应、审计日志覆盖、数据保留策略以及支付页面的 CSP/SRI/nonce
  • 通过 OSV 检查 Go 依赖的已知漏洞,并基于 go.mod/go.sum 生成 CycloneDX SBOM
  • 按条款编号查询 PCI DSS v4.0.1 条款内容
适用场景
适合维护 Go 支付服务、希望在代码上线前让助手标出支付相关的 PCI DSS 问题并产出按条款归类的发现或合规报告的团队。它是对通用 SAST 工具、LLM 代码审查和 QSA 签署的补充,而非替代。
运行要求
以 stdio 在本地运行。可通过 Go 1.25+(建议 1.26.9 或更新)安装,或用 Docker 运行已发布的容器镜像;Docker 方式需以只读方式挂载源码路径。未声明任何环境变量、请求头或账号。依赖检查会访问 OSV.dev。
安装前请注意
服务器会读取源码目录,请只挂载或指向目标代码库。依赖漏洞检查会向 OSV.dev 发送数据,README 称不会发送模块名。项目处于 v1.0 之前的活跃开发阶段,且仅覆盖 PCI DSS 条款的一小部分,结果不能当作审计结论。

安装

在 SourceWeft 中

  1. 打开 控制台中的 PCI DSS v4.0.1 Compliance Checker,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

pci-dss-mcp

Static analysis MCP server for Go payment service codebases. Every detected PCI DSS v4.0.1 violation in a Go payment service codebase is mapped to the specific requirement number before the code ships.

[CI] [Go Reference] [License: MIT] [OpenSSF Scorecard] [MCP Registry] [pci-dss-mcp MCP server]


What it does

pci-dss-mcp is a stdio MCP server that runs 12 scanners, an orchestrator, and an AI triage engine over a Go payment service codebase. Each finding carries a requirement_id mapped to a specific PCI DSS v4.0.1 line item; see docs/requirement-mapping.md for the canonical rule-to-requirement table and testdata/vulnerable-payment-service/EXPECTED-FINDINGS.md for live golden output.

What pci-dss-mcp catches today

  • HTTP framework input flow into log / error / 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) ship in v0.7. Tier 2 (kratos, apex/log, charmbracelet/log) lands in v0.8. Tier 3 (fasthttp, beego, iris, httprouter, project-internal) is user-configurable via Phase 25 YAML once shipped. See docs/http_input_taint.md.

What pci-dss-mcp is NOT

  • Not a replacement for broad SAST. Use Semgrep, CodeQL, or gosec for OWASP Top-10 and language-agnostic vulnerabilities.
  • Not a replacement for LLM-based code review. pci-dss-mcp maps payment-specific issues to PCI DSS requirement IDs; LLM agents catch broad bugs via reasoning. The two layers compose.
  • Not Go-agnostic. Go-specific AST patterns and taint flow tracing are what make the precision possible.
  • Not a QSA replacement. Static analysis covers ~6% of PCI DSS v4.0.1 requirements. A Qualified Security Assessor must sign off on the rest.

Install

Go install (primary)

Requires Go 1.25+; use Go 1.26.9 or newer, because Go 1.25 is past end of life:

bash
go install github.com/shyshlakov/pci-dss-mcp@latest

The binary lands at $(go env GOPATH)/bin/pci-dss-mcp. See docs/install-from-source.md for PATH resolution, the macOS codesign provenance fix, cosign verification, and the MCP client JSON config.

Docker (alternative)

bash
docker pull ghcr.io/shyshlakov/pci-dss-mcp:v0.6.2

Useful for CI pipelines, QSA auditors who do not develop Go locally, or any environment without a host Go toolchain.

MCP Registry

Listed as io.github.shyshlakov/pci-dss-mcp at registry.modelcontextprotocol.io. Auto-published on every tag.

Usage

Add to your MCP client config (Claude Desktop claude_desktop_config.json, Cursor .cursor/mcp.json, or claude mcp add for Claude Code):

json
{  "mcpServers": {    "pci-dss-mcp": {      "command": "docker",      "args": ["run", "-i", "--rm",        "--mount", "type=bind,src=/Users/you/go/src,dst=/Users/you/go/src,readonly",        "ghcr.io/shyshlakov/pci-dss-mcp:v0.6.2"]    }  }}

src= and dst= mirror the same absolute path so the container sees your code at the same path your host uses; prompts pass the normal host path with no translation. For the go install variant and per-client examples, see docs/usage.md.

Two prompts to paste into your MCP client:

  1. Run pci-dss-mcp triage on /Users/you/payments-service. Use min_severity=MEDIUM and group findings by PCI DSS requirement.
  2. Generate a PCI DSS compliance report for /Users/you/payments-service in JSON format. Show requirement-level pass/fail status and severity counts.

Tools

ToolPurposeDocs
triage_findingsAll scanners + AI classification + file:line context in one calldocs/triage_findings.md
generate_compliance_reportRaw requirement pass/fail report (orchestrator over all scanners)docs/generate_compliance_report.md
scan_pan_dataPAN/SAD storage and logging (3.3.1, 3.4.1, 3.5.1)docs/scan_pan_data.md
check_encryptionWeak hashing, hardcoded keys, plain HTTP (4.2.1, 6.2.4)docs/check_encryption.md
check_tls_configInsecure TLS configs (4.2.1)docs/check_tls_config.md
check_secrets_in_configsCredentials in config files (8.6.2)docs/check_secrets_in_configs.md
check_error_handlingError responses leaking sensitive context (6.2.4)docs/check_error_handling.md
check_auth_strengthHardcoded passwords, weak policy, missing MFA, webhook signatures (8.3.1, 8.3.6, 8.4.2, 8.6.2)docs/check_auth_strength.md
audit_log_coverageMissing audit logs on payment flows (10.2.1)docs/audit_log_coverage.md
check_data_retentionMissing TTL, sensitive storage, missing zeroing (3.2.1, 3.3.1)docs/check_data_retention.md
check_payment_page_scriptsMissing CSP/SRI/nonce on payment pages (6.4.3, 11.6.1)docs/check_payment_page_scripts.md
check_dependenciesVulnerable Go dependencies via OSV (6.3.3); govulncheck-style privacy: no module names sent to OSV.dev. See docs/check_dependencies.md. Also covers update_vulnerability_db.docs/check_dependencies.md
generate_sbomCycloneDX 1.6 SBOM from go.mod/go.sum (6.3.2)docs/generate_sbom.md
explain_requirementLook up a PCI DSS v4.0.1 requirement by IDdocs/explain_requirement.md

All tools declare typed OutputSchema. See docs/tools.md for the catalog index and migration history.

Documentation

Status

Active development, pre v1.0. See ROADMAP.md and CHANGELOG.md.

License

MIT, see LICENSE.


pci-dss-mcp is a static analysis tool. It cannot replace a Qualified Security Assessor. Use its output as input to your compliance process, not as the compliance itself.

来源:README.md,提交 98bca66

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v0.7.1最新Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分