A local cryptographic inventory for developers and AI agents that carries verifiable coverage and its own limits inside the CBOM.
Every signature in your wallet, contract and validator rests on elliptic-curve cryptography, and a large quantum computer breaks it. Plenty of tools will tell you what they found. This one also tells you what it read, what it could not read, and which question it is not answering — in the document itself, where an auditor can check it rather than take your word.
An MCP server that scans a local directory for cryptography that Shor's algorithm defeats — secp256k1, Ed25519, BLS, Schnorr, RSA — plus weak primitives and CI signing commands, and classifies each one: broken by a quantum computer, post-quantum, or neither.
Everything runs on your machine. No network calls, no account, no API key, nothing
uploaded. A tool that reads your keys' surroundings has no business phoning home, so this one
makes zero outbound connections — enforced by a test, not promised in a paragraph. The only process it
starts is a local git, to pin what it read, with the scanned repository's own hooks and filters disarmed.
flowchart TD
R["Your repository, on your machine, at a commit"] --> Q["qrp-mcp — offline, zero network calls"]
Q --> F["Found<br/>file:line and family"]
Q --> N["Not read<br/>each file with its reason"]
F --> J["scan --out result.json"]
N --> J
J --> O["CBOM (CycloneDX 1.6)<br/>SARIF<br/>closure: what a change closed"]
Need a cryptographic inventory (a CBOM) for a post-quantum migration or an audit, without uploading your code? One command, no install step:
uvx qrp-mcp scan ~/code/my-project --out result.json
What comes back, run on this repository's own test fixtures -- the findings, and next to them what the scan did not read:
"verdict": "This scan read 24 of 27 files (88.89%); the remaining 3 (1 of 1, by extension
— .b64 — being 100.0% of them) are listed with a reason each."
"summary": { "total_findings": 10, "quantum_vulnerable_count": 6, "pqc_ready_count": 1,
"weak_count": 1, "pqc_readiness": "hybrid_partial", ... }
Why this matters for chains and wallets
Bitcoin and Ethereum authenticate with ECDSA over secp256k1. Solana, Cardano and Polkadot use Ed25519. Ethereum's consensus layer aggregates with BLS12-381. Taproot adds Schnorr.
All four are public-key schemes whose security rests on discrete-log hardness — and all four fall to the same quantum algorithm. The practical consequence is specific: once a public key is exposed, the private key becomes derivable. Reused addresses, on-chain public keys, and long-lived validator keys are where that exposure already exists today.
None of this is a prediction about dates. It is an inventory question: which of my code paths sign with what? That question has an answer right now, and this tool gives it.
Quick start
Add it to your MCP client — no installation step, uvx fetches and runs it:
{
"mcpServers": {
"qrp": {
"command": "uvx",
"args": ["qrp-mcp"]
}
}
}
Then ask your agent:
Scan ~/code/my-protocol for quantum-vulnerable cryptography.
As a Claude Code plugin
The same server, packaged with a skill, so there is no config file to edit:
/plugin marketplace add StanimirTenev/qrp-mcp
/plugin install qrp@quantumreadiness
Then /qrp:pqc-scan in any project. Both routes need uv on
your PATH, since uvx is what fetches and runs the server.
Without an agent: write the result to a file
uvx qrp-mcp scan ~/code/my-protocol --out result.json
This produces the same result as the scan_repo tool, written to a file you can read
before it goes anywhere. Nothing is sent. By default (from 0.40.0, as cbom since 0.16.0 and
the tools) the quoted line is masked: everything in it but the algorithm name is starred out.
--level full writes the line as it is, and --level trimmed removes the line altogether; all
three keep each file and line number. The SHA-256 of the written bytes is printed,
so anyone you send the file to can quote back exactly what they received.
That digest is the file's integrity, and the file holds its read times, so two runs over one
commit print different ones. Beside it, findings sha256 is the fingerprint of the findings
alone (findings_fingerprint in the JSON, in SARIF's run properties and in the CBOM as
qrp:findings_fingerprint:sha256): the same on every run and at every --level that finds the
same, different when a finding is added or removed. Its normalisation rules are written into the
output beside it: each finding as family, raw value, classification and severity; each
occurrence as category, path, line, family, role and key size; excerpts, confidence, owners,
baseline state, mandate clauses, suppressed rows, coverage and the read window left out; both
lists sorted, serialised as compact JSON with sorted keys, SHA-256 in hex. It says the result
repeats; it says nothing about whether the result is complete.
uvx qrp-mcp cbom ~/code/my-protocol --out cbom.json
uvx qrp-mcp closure before.json after.json --out closure.json
cbom writes the same CycloneDX document as the export_cbom tool, masked by default because
it is the document built to be sent. closure writes the prove_closure verdict for two saved
scans, and names both inputs by their SHA-256, so the three files can be tied together by
whoever receives them. Both print the SHA-256 of what they wrote.
Tools
| Tool | What it does |
|---|---|
scan_repo(path, level, profile) |
Scans a directory's source, CI/CD configs and infrastructure-as-code; returns findings, a summary, and the coverage block below |
export_cbom(path, level) |
The same reading as a CycloneDX 1.6 CBOM, with the coverage block inside it |
compare_coverage(first, second) |
Whether two scans produced numbers that can be compared at all |
prove_closure(before, after) |
Which findings a change actually closed, from two saved scans of one tree — only if the two runs can be compared for it |
list_algorithms() |
The algorithm families the server recognises and how each is classified |
What it looks at
Chain and wallet code — secp256k1, ecrecover, ethers, web3, bitcoinjs, ECPair,
btcec, tweetnacl, @solana/web3.js, solana_program, bls12-381, blst, @chainsafe/bls,
BIP340/Taproot Schnorr. Solidity (.sol), Rust (.rs), Move and Cairo are scanned alongside
Python, Go, Java, Kotlin, Scala, Groovy, JS/TS, Ruby, PHP, C/C++/C# — headers included — PowerShell,
Perl and shell.
Classical crypto anywhere else — RSA, DSA, DH, ECDSA and elliptic-curve usage, plus MD5,
SHA-1, RC4 and DES/3DES. Not only through library calls: the names the protocols themselves use
(ssh-rsa, rsa-sha2-512, ssh-dss, key types such as rsa-2048 and RSA_4096), the modern
OpenSSL 3 form where the algorithm is a string argument (EVP_PKEY_Q_keygen(libctx, propq, "RSA", bits), the EVP_*_fetch calls), and the hash idioms people actually write
(hashes.MD5(), hashlib.new('md5'), MD5Init, <sha1.h>, Go sha1.Sum). Since 0.26.0 also the
classes a key is loaded through (jose.JWKRSA.load(...), jose.ComparableRSAKey(...)) and the
signature OIDs of Python's cryptography (SignatureAlgorithmOID.RSA_WITH_SHA1): certbot creates
its ACME account key as jose.JWKRSA(...), and that line, with 28 more like it, was no finding.
Since 0.27.0 also RSA without padding -- RSA_private_encrypt, RSA_public_decrypt,
RSA_padding_add_none, RSA_NO_PADDING, the raw oracle the 2026 forgery of 1024-bit signatures
needs (ePrint 2026/2131); until then the four were found only when something else on the line
named RSA. And the type and enum vocabularies of the libraries that carry the algorithm in a name:
Java's RSAPublicKeySpec, DSAPrivateKey, DSAParams; auth0's Algorithm.RSA256; the WebCrypto
and JOSE names "RSASSA-PKCS1-v1_5" and "RSA-PSS"; Mbed TLS's mbedtls_rsa_* and
MBEDTLS_PK_RSA; OPENSSL_KEYTYPE_RSA, TPM_ALG_RSA*, x509.DSAWithSHA256, KeyType.RSA;
Go's *rsa.PublicKey; .NET's RSASignaturePadding.Pss; and a JWK's "kty": "RSA". These are
case-sensitive: rsaKey is a variable, RSAKey is a type.
From 0.32.0 also OpenSSL's RSA signing calls — RSA_sign, RSA_verify, their
_ASN1_OCTET_STRING forms, RSA_verify_PKCS1_PSS(_mgf1), RSA_padding_add/check_PKCS1_PSS,
_PKCS1_type_1, _X931 and RSA_PKCS1_PSS_PADDING (names from include/openssl/rsa.h), with
role signature. A secure-boot verifier is often one RSA_verify against a key fused at
manufacture, and that line scanned as nothing (raised by Ken Camp).
DNSSEC (from 0.32.0, raised by Georgi Ivanov). The algorithm a zone is signed with, by its
IANA mnemonic as BIND (dnssec-policy … algorithm rsasha256 2048, dnssec-keygen -a RSASHA256 -b 2048), Knot (algorithm: rsasha512) and PowerDNS (default-ksk-algorithm=rsasha1-nsec3-sha1)
write it: RSAMD5, RSASHA1, RSASHA1-NSEC3-SHA1, RSASHA256, RSASHA512 → RSA, with the size
where the line gives one; DSA-NSEC3-SHA1 → DSA; ECDSAP256SHA256, ECDSAP384SHA384 → ECDSA with
curve P-256 / P-384; ED25519, ED448, MLDSA44 by their own rules. And by number (IANA
DNSSEC Algorithm Numbers, read 22 Oct 2026), only in the shape of a record — DNSKEY/CDNSKEY
flags 3 alg, DS/CDS tag alg digest-type digest, RRSIG type alg, and BIND's
static-key/initial-key/static-ds/initial-ds trust anchors: 1, 5, 7, 8, 10 RSA; 2 DH;
3, 6 DSA; 13, 14 ECDSA with the curve; 15 Ed25519; 16 Ed448; 17 SM2; 18 ML-DSA. A bare 8
is a number, not RSA. ECC-GOST (12, 23) is GOST R 34.10 from 0.36.0 (before, it was left unnamed). .zone files are
read. Not read: PowerDNS's ecdsa256/ecdsa384 as DNSSEC names — they are found as ECDSA by the
ordinary rule, without a curve, because the same word is a variable name in OpenSSH; a bare DSA
(algorithm 3) as a mnemonic; the .private files dnssec-keygen writes; zone files saved under
other names (db.example).
Where they came from, and what they did. An independent labeller read 34,967 chunks of 185 public repositories; 45 of them were set aside before labelling and not read while the rules were written. Chunks where the labeller sees an algorithm named in the text and the scanner reports nothing of that family: 1,068 → 967 (-9%) on the 140 the rules were written from, 167 → 155 (-7%) on the 45 they had never seen. The two move together, so the rules carry over rather than fit; both are modest, because most of what remains is a bare word or a name without an operation, which this tool does not count on purpose. The labeller is a model, not ground truth: these are counts of disagreement, not recall.
Cipher suites, decomposed — ECDHE-RSA-AES128-GCM-SHA256 is ECDH and RSA, and
DHE-DSS-… and DES-CBC3-SHA name families that reading the suite as one word never sees.
IANA TLS_* names are read the same way. A banned component is not a use: !MD5 and !3DES
in a cipher list are exclusions, and they are treated as such.
Protocols and dependencies, counted without inventing an algorithm — a pinned TLS version
(MinVersion: tls.VersionTLS12, ssl_protocols, SslProtocols.Tls12, SSL3_VERSION), an SSH
transport line, and a cryptographic library declared in package.json, go.mod,
requirements.txt, Cargo.toml, pom.xml or a Gemfile. These are real facts about a
repository and they are reported — in their own buckets, never in detected_algorithms. Each
carries a basis: configured_protocol or declared_dependency, never observed_call, because
an installed library is not a line of code that calls it. A version is not a verdict either:
TLSv1.0 is marked deprecated, and quantum vulnerability is not claimed from a version number,
since TLS 1.3 is vulnerable over X25519 and is not over X25519MLKEM768. -SSLv3 in an
SSLProtocol line is a ban, and is recorded as one. Manifests are parsed structurally, so a
library named in a comment is not a dependency.
Key sizes — a size named on the line (key_size=1024, rsa:1024, genrsa 1024,
GenerateKey(..., 1024), -newkey rsa:3072, ssh-keygen -b 4096, rsa-key-size = 4096,
KeyPairGenerator.initialize(2048); for DSA and DH key_size=/bits=) travels with the family,
and only a size a modulus can have — CKM_RSA_9796 is ISO/IEC 9796 padding, not a 9796-bit key —
so a weak RSA key is reported as weak rather
than as one more RSA. algorithm_key_sizes holds the smallest size seen per family — the
figure that answers is anything weak here — and algorithm_key_sizes_observed holds every
size seen, which is a different question and became the operational one when RSA-896 was factored
on a data-centre fleet: where is RSA-1024 still in use?
The size reaches the CBOM as one algorithm component per observed size, curve or parameter
set — RSA-2048 apart from RSA-4096, ECDSA-P-256 apart from ECDSA-P-384, ML-KEM-768
apart from ML-KEM-1024 — each with its own occurrences and the number in
cryptoProperties.algorithmProperties.parameterSetIdentifier, the field whose own examples in the
schema are a key length and a digest length. The family's own component (RSA) holds only the
sightings that name no size, and is not emitted when there are none; a certificate's key, a
hybrid's half and a self-signed certificate's signature then point at the sized component. A
family whose name fixes the number carries it (MD5 128, SHA-1 160, SHA-224 224, DES 56,
X25519/Ed25519 256, X448 448, Ed448 456 — the key sizes a parsed key gets), and so does a TLS group
or SSH key exchange offered alone (prime256v1 256, diffie-hellman-group14-sha256 2048). Nothing
else gets a number: rsa-sha2-256 names a hash, not a modulus, and a sizeless sighting stays
sizeless rather than inheriting a size seen elsewhere in the tree.
Hybrids and composites — the RFC 10024 TLS groups X25519MLKEM768,
SecP256r1MLKEM768 and SecP384r1MLKEM1024, OpenSSH 10's default mlkem768x25519-sha256,
and the composite certificate algorithms of draft-ietf-lamps-pq-composite-sigs such as
id-MLDSA44-RSA2048-PSS-SHA256. A hybrid holds if either half holds, so the post-quantum
scheme leads — and the classical half is carried in also_present rather than dropped, since
it is the component Shor breaks.
Post-quantum schemes, by family — ML-KEM, ML-DSA, SLH-DSA, Falcon (FN-DSA), NTRU, Classic McEliece, BIKE, HQC, FrodoKEM, XMSS, and the stateful LMS/HSS of SP 800-208 that CNSA 2.0 requires for firmware signing. The nine schemes NIST advanced to its third additional-signatures round in May 2026 — FAEST, HAWK, MAYO, MQOM, QR-UOV, SDitH, SNOVA, SQIsign, UOV — are recognised, the eight other than HAWK as candidates and HAWK as withdrawn (below), and CROSS as dropped from that process.
Each carries the mathematical family it rests on (structured or unstructured lattice, code-based, hash-based, isogeny-based, multivariate, symmetric-based) and where it stands: standardised, selected, candidate, superseded, research, withdrawn, eliminated or broken. SIKE is reported as broken and HAWK as withdrawn rather than counted as quantum-resistant — "post-quantum" is a category, not an assessment.
Only a published standard is pqc_ready. A selected or candidate scheme — HQC, Falcon
(FIPS 206 not yet listed as published here), Classic McEliece, BIKE, FrodoKEM, NTRU including
OpenSSH's sntrup761, and the additional-signature candidates — is pqc_pre_standard: found,
post-quantum, and not counted as ready, because an implementation of today's specification need
not match the standard when it comes (FIPS 203's own 2023 draft differs from the final text).
Until 0.28.0 these counted as pqc_ready; raised in public by Bill Buchanan about HQC.
Round-3 Kyber is not ML-KEM. FIPS 203, Appendix C: ML-KEM uses a different Fujisaki-Okamoto
variant from the round-3 submission, and the two do not interoperate. Until 0.28.0 every Kyber
spelling was reported as standardised ML-KEM (raised by Mehrdad Daei). Now the identifiers round-3
code carries — pqcrystals_kyber…, crypto_kem_…kyber…, PQCLEAN_KYBER…, pqcrypto.kem.kyber…
and the pqcrypto-kyber crate, OQS_KEM_alg_kyber_…, CIRCL's kem/kyber, pqc_kyber, and the
draft hybrids such as X25519Kyber768Draft00 — are family Kyber, status superseded,
pqc_pre_standard. The word kyber alone is reported the same way: it is the round-3 name
and also an old name people still use for ML-KEM, the line does not say which, and claiming a
standard for code that may not interoperate with it is the worse error. A line that names ML-KEM
as well (ML-KEM (Kyber)) resolves the old name and is ML-KEM only. Whether code that says
pqcrystals_kyber was updated to FIPS 203 under the old name is not visible from the name, and the
finding says so.
OpenSSH's experimental ML-DSA key is not the one that replaced it. OpenSSH 10.4 shipped a
composite of ML-DSA-44 and Ed25519 as an experiment, as ssh-mldsa44-ed25519@openssh.com; 10.6
enabled the scheme without the suffix, and its release notes say keys generated with the
experimental support must be regenerated and/or removed. Until 0.30.0 both read as ML-DSA,
pqc_ready. Now the suffixed type — in a key or certificate file, or named in configuration such as
HostKeyAlgorithms — is family ML-DSA-44-Ed25519 experimental, status superseded,
pqc_pre_standard, and the ML-DSA rule does not count it a second time. The unsuffixed composite
stays ML-DSA and now names its classical half: also_present: ["Ed25519"]. Whether a given server
still accepts an experimental key is not visible from the file. On OpenSSH's own tree, four test
keys under regress/ still carry the experimental type while the source uses the new name.
The summary does not reassure past a broken scheme. summary.pqc_readiness is one of
broken_pqc_present (a broken, withdrawn or eliminated post-quantum scheme is present — first,
whatever sits beside it), hybrid_partial, hybrid_pre_standard (classical beside post-quantum
schemes none of which is standardised), mechanism_protected, classical_only,
pqc_pre_standard, pqc_ready (every post-quantum scheme found is standardised and nothing
classical is), no_quantum_vulnerable_detected, not_established (one of the reassuring values,
withheld because the scan did not read or determine everything — from 0.34.0) or unknown. Until 0.28.0 a file holding only
SIKE read no_quantum_vulnerable_detected (raised by Larisa Ghazaryan). pqc_pre_standard_count
and broken_pqc_count sit beside pqc_ready_count, and list_algorithms answers with the same
classification a scan gives. From 0.35.0 summary.by_role gives the same value for key
establishment and for signatures apart, with the families in each (none_found for a part with
none).
Which module implements it, where the file says. Validation belongs to a module, not to an
algorithm, and @noble/post-quantum and Go's crypto/mlkem used to give identical findings
(raised by Jesone Sam). Now a line that uses a family carries provider when the file names the
module unambiguously — @noble/post-quantum, the Go standard library ("crypto/mlkem"),
Cloudflare CIRCL, liboqs, pqcrypto, PQClean, the pq-crystals reference code, Bouncy Castle,
BoringSSL (MLKEM768_…, MLDSA65_…, KYBER_…) and OpenSSL 3 (EVP_PKEY_Q_keygen,
EVP_PKEY_CTX_new_from_name, EVP_KEM_fetch…) — and each finding lists its providers. The
module is usually named on the import line and used on another, so a call line takes the module
its file imports for that family; two modules in one file and none on the line leave it absent.
An unknown provider is absent, never guessed: a head