Skip to main content

Post-Quantum Cryptography Posture Scanner — find quantum-vulnerable crypto in your codebase

Project description

quantum-mcp

The world's first quantum computing MCP server.

Give any AI agent access to real quantum hardware, true random number generation, and post-quantum cryptography scanning -- in four tool calls.

Python 3.10+ MCP Compatible Qiskit Tools: 4 License: MIT


Tools

Tool What it does
quantum_random True quantum random bytes -- not PRNG, not /dev/urandom, actual quantum measurement
quantum_pqc_scan Scan any codebase for quantum-vulnerable crypto (RSA, ECDSA, DH, MD5, SHA-1, AES-128)
quantum_backends List available quantum backends with qubit counts, costs, and status
quantum_circuit Run arbitrary OpenQASM 2.0 circuits on simulator or IBM QPU

Why Quantum?

Quantum randomness is physically unpredictable. Classical PRNGs are deterministic -- given the seed, every output is reproducible. Quantum random numbers come from measuring superposition states where the outcome is fundamentally undetermined until observation. No seed. No pattern. No prediction. Not even in theory.

Post-quantum crypto scanning is not optional. NIST finalized its post-quantum standards (ML-KEM, ML-DSA, SLH-DSA) in 2024. Every RSA key, every ECDSA signature, every Diffie-Hellman exchange in your codebase is a ticking clock. Harvest-now-decrypt-later attacks mean data encrypted today with vulnerable algorithms is already at risk. The migration deadline isn't "when quantum computers are ready" -- it's now.

Quick Start

pip install qiskit fastapi uvicorn
python3 server.py
# Running on http://localhost:8200

MCP Configuration

Add to your Claude Desktop or MCP client config:

{
  "mcpServers": {
    "quantum": {
      "url": "http://localhost:8200",
      "tools": ["quantum_random", "quantum_pqc_scan", "quantum_backends", "quantum_circuit"]
    }
  }
}

Live Demo

quantum.overseerclaw.uk -- public instance, no auth required for simulator backend.

# Generate 256 bits of quantum randomness
curl -X POST https://quantum.overseerclaw.uk/call \
  -H "Content-Type: application/json" \
  -d '{"tool":"quantum_random","args":{"n_bytes":32}}'

# Scan a project for quantum-vulnerable crypto
curl -X POST https://quantum.overseerclaw.uk/call \
  -H "Content-Type: application/json" \
  -d '{"tool":"quantum_pqc_scan","args":{"path":"/path/to/project"}}'

PQC Scan Results: 33 Findings Across 7 Real Repos

We ran quantum_pqc_scan against 7 production repositories. Results:

Risk Count Examples
CRITICAL 14 RSA key generation, ECDSA signing, Diffie-Hellman exchanges
HIGH 12 SHA-1 hashing, DSA signatures, MD5 checksums
MEDIUM 7 AES-128 encryption (Grover's halves effective key length)

Every finding includes the exact file, line number, matched pattern, and a concrete migration path to NIST PQC standards.

Backends

Backend Qubits Cost Auth
Local simulator 32 Free None
IBM Quantum 127 $96/min (10 free min/month) IBM_QUANTUM_TOKEN
Origin Wukong 72 Free ORIGIN_QUANTUM_TOKEN

Environment Variables

IBM_QUANTUM_TOKEN=your_ibm_cloud_api_key
IBM_QUANTUM_CRN=your_cloud_resource_name
ORIGIN_QUANTUM_TOKEN=your_origin_token
QUANTUM_MCP_PORT=8200

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pqc_posture-0.1.0.tar.gz (13.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pqc_posture-0.1.0-py3-none-any.whl (13.9 kB view details)

Uploaded Python 3

File details

Details for the file pqc_posture-0.1.0.tar.gz.

File metadata

  • Download URL: pqc_posture-0.1.0.tar.gz
  • Upload date:
  • Size: 13.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for pqc_posture-0.1.0.tar.gz
Algorithm Hash digest
SHA256 a45d53b307d4a2737649fce39170a715b7b968aab1e98488a36d4d5f77391659
MD5 28517db1a23f6b2a144d8836c1e1a609
BLAKE2b-256 3cf88dc44332c44a3f645e73425aaf263861f3b2f2c8cdc83b554e298e8731ba

See more details on using hashes here.

File details

Details for the file pqc_posture-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: pqc_posture-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 13.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for pqc_posture-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 224239f65d03c5177e98ce9840a606cba369b16b089bdd1c53b701aa6d2db414
MD5 ad0bd196f6b0b620d1e221685832c4df
BLAKE2b-256 5bb18bd16750c9c69341943cdecd5a98adf1d4ad8841b2c5a50166771931df98

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page