Skip to main content
Glama

Quantum Resource Estimator MCP Server

An MCP (Model Context Protocol) server that makes quantum resource estimation accessible through natural language. Built on Microsoft's QDK resource estimator.

What It Does

Estimates physical quantum resources (qubit count, runtime) needed to run quantum algorithms on fault-tolerant hardware. Helps researchers answer questions like:

  • "How many qubits does it take to break RSA-2048 with Shor's algorithm?"

  • "How does a superconducting qubit hardware compare to trapped-ion for this chemistry simulation?"

  • "What's the tradeoff between qubit count and runtime for my algorithm?"

Related MCP server: qubitsok-mcp

Tools

Tool

Description

estimate_resources

Run a single resource estimation with defaults or custom params

compare_configurations

Side-by-side comparison across hardware architectures

generate_frontier

Pareto frontier: qubit-count vs. runtime tradeoff

list_qubit_models

Reference data for all 6 predefined qubit models

list_qec_schemes

Reference data for QEC schemes (surface_code, floquet_code)

list_algorithm_templates

Predefined algorithms with logical resource counts

explain_parameters

Domain-specific guidance (cryptography, chemistry, optimization)

custom_qubit_model_estimate

Estimation with fully custom qubit parameters

Installation

Requires uv. The qsharp package bundles its own native runtime — no .NET SDK install needed.

No cloning needed. Configure your MCP client directly (see below) — uvx handles installation automatically on first run.

From source

git clone https://github.com/DeDuckProject/quantum-resource-estimator-mcp
cd quantum-resource-estimator-mcp
uv sync

Usage

Configure in Claude Desktop

macOS — ~/Library/Application Support/Claude/claude_desktop_config.json Windows — %APPDATA%\Claude\claude_desktop_config.json Linux — ~/.config/Claude/claude_desktop_config.json

{
  "mcpServers": {
    "quantum-resource-estimator": {
      "command": "/path/to/uvx",
      "args": [
        "--from",
        "quantum-resource-estimator-mcp",
        "qre-mcp"
      ]
    }
  }
}

Replace /path/to/uvx with the output of which uvx.

Configure in Claude Code

claude mcp add quantum-resource-estimator -- /path/to/uvx --from quantum-resource-estimator-mcp qre-mcp

Replace /path/to/uvx with the output of which uvx.

From source (development)

claude mcp add quantum-resource-estimator -- /path/to/uv run --directory /path/to/quantum-resource-estimator-mcp qre-mcp

Inspect with MCP dev tools

uv run mcp dev src/qre_mcp/server.py

Algorithm Input Methods

  1. Template (easiest): algorithm_template="shor_2048" — uses predefined logical counts from published research

  2. Logical counts: logical_counts='{"numQubits": 100, "tCount": 200}' — provide your own circuit counts

  3. Q# code: qsharp_code="..." — provide Q# source with a parameterless entry point

Example Queries

Via an LLM with this MCP server connected:

"Estimate the resources to break RSA-2048 on superconducting hardware"

"Compare all qubit technologies for the FeMo-cofactor chemistry simulation"

"Show me the qubit vs runtime tradeoff for Shor's algorithm on trapped-ion hardware"

"I have a circuit with 500 logical qubits and 10 million T gates — how many physical qubits do I need?"

Example Output

Example output showing a cross-architecture comparison of Shor's algorithm across all 6 hardware models

Predefined Algorithm Templates

ID

Algorithm

Category

shor_2048

Shor's factoring (RSA-2048)

Cryptography

grover_aes128

Grover search (AES-128)

Cryptography

chemistry_femo

FeMo-cofactor simulation

Chemistry

qpe_generic

Quantum phase estimation

General

Note: Templates are provided for demonstration and system exploration only. Logical counts are sourced from published research but may not capture significant details. For research-grade estimates, provide your own logical_counts sourced directly from primary publications. When using a template, estimate_resources() will include a template_info field in the response with the source citation and relevant caveats.

Logs

The server runs over stdio (MCP protocol), so stdout/stderr are not available for human-readable output. Logs are written to a file you can follow in a separate terminal:

tail -F ~/.local/share/qre-mcp/qre-mcp.log

-F (capital F) handles log rotation — the file is capped at 5 MB with up to 3 backups.

To use a custom log path, set the QRE_MCP_LOG environment variable before starting the server.

Running Tests

uv run pytest

Tests cover validators, result formatting, reference data, and parameter building. Integration tests (requiring qsharp) are skipped if the package is not available.

Available Tools

8 tools
compare_configurationsA

Compare resource estimates across multiple hardware configurations.

Provide the algorithm as exactly one of algorithm_template, logical_counts, or qsharp_code.

Hardware selection (choose one approach):

  • compare_all_models=True: compare all compatible qubit models

  • qubit_models=['qubit_gate_ns_e3', 'qubit_gate_us_e3']: compare specific models

  • configurations: JSON string of full configs. Each config dict may include the standard qubit_model/qec_scheme/error_budget keys plus the new override keys: qubit_model_overrides (dict), qec_crossing_prefactor, qec_error_correction_threshold, qec_logical_cycle_time, qec_physical_qubits_per_logical. E.g.: '[{"qubit_model": "qubit_gate_ns_e3", "qec_logical_cycle_time": "1000 ns"}]'

  • Default (none specified): compare all 4 gate-based models

Returns a side-by-side comparison table showing physical qubits, runtime, code distance, and T-factory copies for each configuration.

Inputs: algorithm_template, logical_counts, qsharp_code, qubit_models, +4 more. Returns: object

custom_qubit_model_estimateA

Estimate resources using fully custom physical qubit parameters.

Use this when modeling novel hardware not covered by the 6 predefined qubit models. All gate times accept strings like '50 ns', '1 μs', '100 ms'. instruction_set: 'GateBased' (default) or 'Majorana'.

Provide algorithm as exactly one of algorithm_template, logical_counts, or qsharp_code.

Inputs: algorithm_template, logical_counts, qsharp_code, instruction_set, +10 more. Returns: object

estimate_resourcesA

Estimate the physical quantum resources needed to run a quantum algorithm.

Provide the algorithm as EXACTLY ONE of:

  • algorithm_template: ID of a predefined algorithm (e.g. 'shor_2048', 'grover_aes128', 'chemistry_femo', 'qpe_generic'). Use list_algorithm_templates() for the full list.

  • logical_counts: JSON string with algorithm counts, e.g.: '{"numQubits": 100, "tCount": 200, "rotationCount": 50}'

  • qsharp_code: Q# source code string with a parameterless entry point operation.

Hardware parameters:

  • qubit_model: Physical qubit technology. Default 'qubit_gate_ns_e3' (superconducting). Use list_qubit_models() for all options.

  • qec_scheme: Error correction scheme. 'surface_code' (default) or 'floquet_code' (Majorana qubits only).

  • error_budget: Acceptable failure probability (0-1). Default 0.001.

  • qubit_model_overrides: JSON string to override specific qubit parameters while keeping a named model as the base. E.g. '{"twoQubitGateTime": "10 ns"}'. Valid keys: oneQubitGateTime, twoQubitGateTime, oneQubitMeasurementTime, oneQubitGateErrorRate, twoQubitGateErrorRate, tGateErrorRate, readoutErrorRate, idleErrorRate.

Optional QEC scheme overrides (override individual parameters of the named qec_scheme):

  • qec_crossing_prefactor: float > 0. Error-suppression prefactor (default ~0.03).

  • qec_error_correction_threshold: float in (0,1). Error correction threshold (default ~0.01).

  • qec_logical_cycle_time: Formula string for logical cycle duration, e.g. '1000 ns' for a fixed 1 µs cycle (replicates Gidney-Ekerå assumption).

  • qec_physical_qubits_per_logical: Formula string for qubits per logical qubit.

Optional constraints (use at most one of max_duration or max_physical_qubits):

  • max_duration: e.g. '1 hour', '500 ms', '1 s'

  • max_physical_qubits: integer upper bound on qubit count

  • max_t_factories: limit T-factory copies (reduces qubits, increases runtime)

  • logical_depth_factor: multiplier on circuit depth (default 1.0)

Returns: summary (physical_qubits, runtime, logical_qubits, code_distance, t_factory_copies) plus full details breakdown.

Inputs: qsharp_code, algorithm_template, logical_counts, qubit_model, +14 more. Returns: object

explain_parametersA

Explain resource estimation parameters and recommend configurations for a use case.

If use_case is provided, gives targeted guidance. Valid values:

  • 'cryptography': guidance for quantum attacks on RSA, ECC, AES

  • 'chemistry': guidance for molecular simulation and drug discovery

  • 'optimization': guidance for combinatorial optimization

  • 'general': full parameter reference guide

Returns parameter descriptions, recommended starting configurations, and relevant templates.

Inputs: use_case. Returns: object

generate_frontierA

Generate the Pareto frontier: qubit-count vs. runtime tradeoff for an algorithm.

Provide the algorithm as exactly one of algorithm_template, logical_counts, or qsharp_code.

Returns a list of Pareto-optimal points. Each point represents a configuration where you cannot reduce qubit count without increasing runtime, or vice versa.

  • First point: minimum qubit count (longest runtime)

  • Last point: minimum runtime (most qubits)

Optional qubit/QEC overrides (same as estimate_resources):

  • qubit_model_overrides: JSON string to override specific qubit parameters.

  • qec_crossing_prefactor, qec_error_correction_threshold: float overrides.

  • qec_logical_cycle_time, qec_physical_qubits_per_logical: formula string overrides.

Useful for understanding hardware requirements at different time budgets.

Inputs: algorithm_template, logical_counts, qsharp_code, qubit_model, +7 more. Returns: object

list_algorithm_templatesA

List predefined quantum algorithm templates with logical resource counts.

Templates are sourced from published research papers and cover:

  • cryptography: shor_2048, grover_aes128

  • chemistry: chemistry_femo

  • general: qpe_generic

Each template can be passed directly to estimate_resources(algorithm_template=). Returns logical resource counts (numQubits, cczCount, etc.) and source citations.

Inputs: no named parameters. Returns: object

list_qec_schemesA

List available Quantum Error Correction (QEC) schemes with compatibility notes.

Returns details on:

  • surface_code: Works with all qubit models. The standard choice.

  • floquet_code: Majorana qubits only. Better overhead for topological hardware.

Use this to understand which qec_scheme to select for estimate_resources().

Inputs: no named parameters. Returns: object

list_qubit_modelsA

List all 6 predefined physical qubit models with gate times, error rates, and descriptions.

Returns information about:

  • qubit_gate_ns_e3/e4: Superconducting or spin qubits (nanosecond gates)

  • qubit_gate_us_e3/e4: Trapped-ion qubits (microsecond gates)

  • qubit_maj_ns_e4/e6: Majorana/topological qubits

Use this to understand which qubit_model to select for estimate_resources().

Inputs: no named parameters. Returns: object

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.2/5.0

    Scored across 8 tools

    Disambiguation5/5

    Each tool has a clearly distinct purpose: listing, estimating, comparing, generating frontiers, explaining, and custom modeling. No overlapping functionality.

    Naming Consistency5/5

    All tools follow a consistent verb_noun snake_case pattern (e.g., list_qubit_models, estimate_resources). No mixing of conventions.

    Tool Count5/5

    8 tools is well within the ideal range for a specialized domain like quantum resource estimation. Each tool serves a clear role without being excessive.

    Completeness5/5

    The tool set covers the full lifecycle: exploration (list functions), estimation (main and custom), comparison, tradeoff analysis (frontier), and explanation. No obvious gaps.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables quantum systems analysis and simulation including quantum circuits, open quantum systems, quantum chemistry calculations, many-body physics, quantum machine learning, and quantum field theory computations.
      1
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Search 500+ quantum computing jobs, daily arXiv papers, and 1000+ researcher profiles. 7 read-only MCP tools with AI-powered natural language search from qubitsok.com.
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Quantum natural-language retrieval MCP server that ranks text passages by semantic relevance using DisCoCat tensor diagrams compiled to variational circuits.
      MIT