Find RSA and ECDSA usage in your codebase before a quantum computer does

To find where your code uses RSA, ECDSA and the other public-key schemes that Shor's algorithm breaks, run uvx qrp-mcp scan ./your-repo --out result.json on the machine where the code lives. qrp-mcp is a free, open-source (Apache-2.0) scanner that runs offline. It lists each use by file and line, classifies it as quantum-vulnerable, post-quantum or neither, and names every file it did not read, with the reason. The result is the inventory a post-quantum migration starts from, as JSON or as a CycloneDX 1.6 CBOM.

Why a text search is not enough

The same key can be spelled in many places: a library call in source, a signing command in a CI pipeline, a curve in TLS configuration, a PEM file in the tree, a dependency in a lockfile. Some names merely spell like an algorithm: MLDSA1R is a register, not ML-DSA. qrp-mcp reads each of these kinds of file by its own rules, and a name that is not a use is not reported as one. A function called kyber_exchange does not make a file post-quantum ready.

Steps

  1. Install uv (Linux, macOS or Windows; the package requires Python 3.10 or later). uvx fetches and runs the scanner, so there is no separate install step.

  2. Scan the repository and write the result to a file:

    uvx qrp-mcp scan ./your-repo --out result.json

    Nothing is sent anywhere. There is no account and no API key, and the scanner makes zero outbound connections, which a test enforces. It starts one process, a local git, to pin the commit it read.

  3. For a migration inventory in the standard format, write the CycloneDX CBOM:

    uvx qrp-mcp cbom ./your-repo --out cbom.json
  4. After a change, compare two saved scans to see what it closed:

    uvx qrp-mcp closure before.json after.json --out closure.json

To run it from an agent instead, add it to your MCP client and ask the agent to scan a folder for quantum-vulnerable cryptography:

{
  "mcpServers": {
    "qrp": {
      "command": "uvx",
      "args": ["qrp-mcp"]
    }
  }
}

What the output looks like

From the README, on the public project certbot, trimmed: the algorithm families found, by role, and the files not read, by reason.

"summary": {"pqc_readiness": "hybrid_partial", "by_role": {
  "key_establishment": {"families": ["DH", "ECDH", "ML-KEM", "X25519", "X448"], "pqc_readiness": "hybrid_partial"},
  "signature": {"families": ["DSA", "EC", "ECDSA", "Ed25519", "Ed448", "ML-DSA", "RSA"], "pqc_readiness": "hybrid_partial"}}},
"coverage": {"not_examined": [
  {"reason": "type_not_claimed", "count": 352, "by_extension": {"(no extension)": 147, ".rst": 97, ".txt": 24, "...": "..."}},
  {"reason": "symlink_not_followed", "count": 48, "...": "..."}]}

What the fields say:

  • verdict: one sentence on how many of the files present were read, and that the rest are listed with a reason each.
  • summary: total_findings, quantum_vulnerable_count, pqc_ready_count, weak_count and pqc_readiness, overall and in by_role for key establishment and signatures.
  • coverage.not_examined: every file not read, grouped by reason.
  • Each occurrence carries its path, line, algorithm family, role and key size, and a quoted line. The quoted line is masked by default, with everything but the algorithm name starred out.
  • An RSA, EC, ECDSA, EdDSA or DSA line that calls .sign(, .verify(, .encrypt( or .decrypt( on a key carries operation, so verifying an old signature does not read the same as signing a new one.
  • Each quantum-vulnerable finding carries a replacement, a suggested algorithm with its standard. It names what a finding becomes, not when or in what order.

The scanner prints the SHA-256 of the file it wrote, and a findings sha256 that stays the same on every run that finds the same. That fingerprint says the result repeats. It says nothing about whether the result is complete.

Limits

  • It reads the code it was given. It does not see what runs: runtime keys, deployed certificates and hardware are not observed.
  • It does no network or host scanning and does not read a system certificate store.
  • It does not read documentation, binaries or images. They are counted and named, not silently left out.
  • When a key management service or a remote signer makes a signature, the scan records the place, not the algorithm.
  • Symmetric cryptography, hashes, MACs and key derivation are out of scope by design. MD5, SHA-1, DES, 3DES and RC4 are still named where found.
  • It is an inventory tool, not a readiness assessment. It does no risk scoring, prioritisation or migration planning, and it keeps no history between scans.
  • A spelling the libraries' documentation does not list can still be missed. The output says which operations the scanner is tested against.

If you are an EU financial entity under DORA

The same scan, masked, can be mapped to RTS 2024/1774 Articles 6 and 7(4), clause by clause. The first DORA cryptography report on one codebase is free. See also cryptographic inventory for DORA.

Source on GitHub · PyPI · about the scanner