mcp-server-pci-dss-compliance-assistant
An independent, community-maintained open-source MCP server that helps developers check code and configuration for PCI DSS v4.0.1 readiness, and query a PCI DSS knowledge base that you build locally from your own copy of the standard.
⚠️ Disclaimer & Legal Notice
- Experimental Release: This tool is currently released as an experimental, community-maintained open-source project. It is provided "as-is" without warranties of any kind and is under active development.
- Basis of Implementation: The parsing logic, rule mappings, and helper tools in this repository are structured around the PCI DSS v4.0.1 standard documents. However, this repository does not redistribute any copyrighted PCI SSC documents; users must obtain official files directly from the PCI Security Standards Council.
- No Official Affiliation: PCI DSS and PCI Security Standards Council are registered trademarks of PCI Security Standards Council, LLC. This project is an independent developer utility and is not affiliated with, endorsed, sponsored, or certified by PCI SSC.
- Not a Formal Assessment: This tool is intended solely to assist developers and security teams with technical readiness and code/configuration hygiene. It does not constitute legal/compliance advice and does not replace a formal assessment by a Qualified Security Assessor (QSA) or official SAQ/ROC validation.
What it does
- Look up the standard: fetch any of the 280 controls in Requirements 1-12 and Appendix A1-A3, search them in plain language, group testing procedures for audit prep, list periodic tasks and the controls that became mandatory on 31 March 2025, and build SAQ checklists. Frequencies, evidence types, components and the SAQ mapping are the tool's rule-based estimates, so they come back under
derived, apart from the standard's text. - Check your code and config: flag PANs, card-number variables written to logs, CVV/PIN/track data handling, weak crypto, hardcoded secrets and SQL built from strings in source code; root/privileged containers, exposed ports, weak TLS, public or unencrypted storage and disabled audit logging in Dockerfile, docker-compose, Kubernetes, nginx and Terraform (AWS resources); and missing SRI or weak CSP on payment pages (6.4.3 / 11.6.1).
- Audit a whole project:
audit_directorywalks a local folder read-only, sends each file to the right scanner and returns one gap analysis grouped by severity and PCI DSS requirement. - Cover application security too: findings carry the matching OWASP ASVS 5.0.0 requirement IDs, and with the companion OWASP ASVS security assistant connected the two servers work as one; see Working with the OWASP ASVS security assistant.
Quickstart
You need uv (it installs Python 3.11+ for you if needed) and your own copy of the standard.
-
Download the standard. Get
PCI-DSS-v4_0_1.pdffrom the PCI SSC Document Library. This project cannot ship it. -
Build your local dataset (about a minute):
uvx --from "mcp-server-pci-dss-compliance-assistant[build]" pci-dss-mcp-build ~/Downloads/PCI-DSS-v4_0_1.pdf
It parses the PDF on your machine and writes the dataset to your user data folder, where the server looks for it. Nothing is uploaded. No AI model reads the PDF: a fixed parser with pinned library versions does, so the result does not depend on your assistant or model. The build checks every text field against the PDF and writes no dataset if they differ. Rerun it whenever you replace the PDF. For the folder locations and the build options, see Installation.
-
Add the server to your client (below). The client starts it with
uvx mcp-server-pci-dss-compliance-assistant.
Always use the full package name with uvx: the short name pci-dss-mcp on PyPI belongs to an unrelated project.
Connect a client
Ready-made configs are in examples/.
| Client | Example | Where it goes |
|---|---|---|
| Claude Desktop | claude_desktop_config.json |
Settings > Developer > Edit Config |
| Cursor | cursor_mcp.json |
.cursor/mcp.json (project) or ~/.cursor/mcp.json |
| VS Code | vscode_mcp.json |
.vscode/mcp.json (project), or MCP: Open User Configuration for every project |
| Claude Code | claude mcp add pci-dss -- uvx mcp-server-pci-dss-compliance-assistant |
Run it in a terminal |
| Any client, via Docker | docker_mcp.json |
Your client's MCP config; see Docker |
{
"mcpServers": {
"pci-dss": {
"command": "uvx",
"args": ["mcp-server-pci-dss-compliance-assistant"]
}
}
}
VS Code uses "servers" instead of "mcpServers" and adds "type": "stdio" to the entry. Desktop apps may not see your shell's PATH: if the server does not start, replace "uvx" with the full path from which uvx (where uvx on Windows).
Then ask, for example: "Is this Dockerfile OK for our payment service?" or "How must we store card numbers?" If the assistant answers from memory instead of using the tools, see the tips.
Docker, installing from source and configuration are covered in Installation. If something does not work, see Troubleshooting and FAQ.
Tools
| Tool | Returns |
|---|---|
get_requirement_details |
Full record for a control ("6.4.3", "A1.1.1"), or a summary list of the controls under a section ("6.4"), requirement ("6") or appendix ("A1") |
search_pci_controls |
Ranked controls for a plain-language query, with optional filters by requirement, component, frequency and effective date |
get_testing_and_evidence_guide |
Testing procedures grouped by Examine / Interview / Observe / Test, plus estimated evidence types and frequency |
generate_saq_checklist |
Markdown checklist for SAQ-A, SAQ-A-EP or SAQ-D (the SAQ mapping is approximate) |
get_related_controls |
The control, the controls it references, and the controls that reference it |
list_periodic_tasks |
Controls with a given schedule: continuous, upon change, quarterly, semi-annually or annually |
get_post_march_2025_requirements |
Controls that were best practice until 31 March 2025 (51: 47 in Requirements 1-12, 4 in Appendix A) |
scan_code_snippet_for_pci |
Findings for PANs, card numbers written to logs, SAD, weak crypto, hardcoded secrets, SQL built from strings |
audit_infrastructure_config |
Misconfiguration findings for a Dockerfile, docker-compose, Kubernetes, nginx or Terraform (AWS resources) file |
audit_payment_page_html |
SRI and CSP findings, a script inventory, and the effective script-src |
audit_directory |
Gap analysis for a whole project folder, grouped by severity and requirement, with file paths and lines |
Every scanner finding has a severity, a pci_requirement_id, an issue_description and a remediation_step, plus asvs_requirement_ids when an OWASP ASVS 5.0.0 requirement covers the same issue, and a line or location and masked evidence where available:
{
"severity": "high",
"pci_requirement_id": "4.2.1",
"issue_description": "Weak TLS/SSL protocols enabled: TLSv1.",
"remediation_step": "Use 'ssl_protocols TLSv1.2 TLSv1.3;'.",
"asvs_requirement_ids": ["V12.1.1"],
"line": 4,
"evidence": "<scanned_artifact>ssl_protocols TLSv1 TLSv1.2;</scanned_artifact>"
}
Parameters, example output, the resources and the prompts are in the Tools Reference, and every check the scanners run is in Scanner Rules.
Working with the OWASP ASVS security assistant
PCI DSS Requirement 6.2.4 asks you to prevent common software attacks; the OWASP ASVS security assistant is a separate, companion MCP server that spells out what that means for application code. It ships with OWASP ASVS 5.0.0 (no dataset to build) and scans code, HTTP headers and nginx for issues such as unsafe deserialization, JWT signature bypasses, disabled TLS verification and missing security headers. This server works without it; connect both for payment applications. MCP servers do not call each other: the assistant in your client uses both, and each server tells it how to use the other.
Setup, the shared requirement IDs, where the two standards disagree and the combined review are covered in Working with OWASP ASVS.
Security model
The server is read-only and offline: it makes no file writes, network calls or subprocess calls, and tests enforce this. Inputs are size-capped, card numbers and secrets are masked in every result, and anything quoted from scanned input is wrapped in <scanned_artifact> tags so the model treats it as data. audit_directory stays inside the folder you give it: it refuses system folders and your home folder itself, and never follows symlinks. Details are in How It Works.
Documentation
The wiki has the full documentation:
- Installation: uvx, Docker, from source, updating
- Connecting Clients: every client, tips, testing with the MCP Inspector
- Tools Reference and Scanner Rules
- How It Works: architecture, the local dataset, search, security model, configuration
- Working with OWASP ASVS
- Troubleshooting and FAQ
Contributing
Contributions are welcome. Read CONTRIBUTING.md first: it covers the workflow (open an issue, agree on the approach, then send a pull request into develop), setup, the checks to run, how to add a scanner rule, and the one rule every change must follow, which is that no PCI SSC documents, text from them, real card data or secrets may enter the repository. Issues and pull requests use templates that ask you to confirm this.
License
The code in this repository is released under the Apache License 2.0; see also NOTICE. The license does not cover PCI SSC documents or any text extracted from them, which remain the property of PCI Security Standards Council, LLC.
Metadata
Release files for mcp-server-pci-dss-compliance-assistant 1.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| mcp_server_pci_dss_compliance_assistant-1.2.0.tar.gz | 407.7 kB | With provenance | Details for mcp_server_pci_dss_compliance_assistant-1.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mcp_server_pci_dss_compliance_assistant-1.2.0-py3-none-any.whl | Python 3 | none | any | Details for mcp_server_pci_dss_compliance_assistant-1.2.0-py3-none-any.whl |
Total release size: 479.7 kB
Release files / mcp_server_pci_dss_compliance_assistant-1.2.0.tar.gz
| Download URL | mcp_server_pci_dss_compliance_assistant-1.2.0.tar.gz |
|---|---|
| Size | 407.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1755c73feb44925f54e1df3683e8d7285c7266e03057be94c5368d0d05e79059
|
|
BLAKE2b-256 checksum How to use checksums |
147c8a265311ff7b0280293d3163d8246ad8083693a49b70e2c74bf90c58b136
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 3, 2026.
Transparency logRelease files / mcp_server_pci_dss_compliance_assistant-1.2.0-py3-none-any.whl
| Download URL | mcp_server_pci_dss_compliance_assistant-1.2.0-py3-none-any.whl |
|---|---|
| Size | 72.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
688edf6d7c255ee710e3956d074527a085f32bd2a695f981bd3ec1563d62c1a9
|
|
BLAKE2b-256 checksum How to use checksums |
979797e03781b5abb5a8b086321dae84bbb6eb85b569448ddfee9b9097810b00
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 3, 2026.
Transparency logSecurity for mcp-server-pci-dss-compliance-assistant 1.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for mcp_server_pci_dss_compliance_assistant-1.2.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 3, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.