Skip to the simulation
Developer demo

Qrypt MCP Server

Give AI coding agents quantum random numbers through the Model Context Protocol (MCP). The server offers four tools: raw entropy bytes, a bounded integer, a password, and a UUID. Each one draws its randomness from Qrypt Entropy.

The walkthrough runs in your browser with no account or key. The real server needs your own key from the Qrypt portal.

Walkthrough

Call the four tools

Simulation

This is the Qrypt MCP Transaction Monitor, answered by a simulation in your browser. Pick a tool and select its Call button. The monitor shows the arguments, the structured result, and each step of the trace. In this simulation every step runs inside your browser: no MCP server process runs, and no request reaches Qrypt Entropy.

Simulation loading. The monitor appears in a moment.

Every value in the simulation comes from your browser's random number generator, not from Qrypt, and its timings are generated, not measured. The page sends no requests while it runs.

What to look for

  1. Structured results. Each tool returns JSON with a fixed shape that an agent can rely on.
  2. The trace. Each call lists the MCP tools/list and tools/call steps and their timing.
  3. The source. Here the entropy result reads "source": "simulated". A real run reads "eaas-rest".

Try the limits

Set bytes to 5000, or set max below min, and select Call. The simulation rejects the arguments with the same error text as the live monitor.

No modulo bias

The integer and password tools use rejection sampling (discard out-of-range draws), so every value in the range is equally likely. The simulation runs the same algorithm.

Run it for real

Run it with Qrypt Entropy

The real server runs on your computer and draws live entropy from Qrypt. It starts only with your own Qrypt key. Access to the source is by invitation while the server is in evaluation.

  1. Step 1

    Register at the Qrypt portal and create your key

    Register or sign in, then create an API key for Qrypt Entropy. The server sends this key with every request to Qrypt Entropy.

    Keep the key private. It works like a password. Never put it in a chat, a URL, or a screenshot.

    Open the Qrypt portal
  2. Step 2

    Request access to the server source

    Request evaluator access to the Qrypt MCP Server source from support@qrypt.com. You need Node.js 20 or later on macOS, Linux, or Windows.

  3. Step 3

    Build, add your key, and connect your agent

    In the server folder, run:

    npm ci
    npm run build
    cp .env.example .env

    Open .env in an editor and set QRYPT_API_TOKEN to your key. The file is ignored by Git. In Windows Command Prompt, use copy .env.example .env instead of cp. Then add the server to your MCP host, for example Claude Desktop, Claude Code, Cursor, or VS Code. The repository's docs/USAGE.md has a configuration for each host. Without a key, the server stops at startup with this error:

    fatal: [auth] QRYPT_API_TOKEN environment variable is required for the REST transport
  4. Step 4 · optional

    Open the live Transaction Monitor

    This is the same monitor as the simulation above, wired to the real server:

    npm run example:dashboard

    Then open http://127.0.0.1:4177 on the same computer. Your key stays in the local backend and never reaches the browser.

How to recognize a real run

  • The monitor's status reads Live MCP + Qrypt EaaS, and no simulation banner appears.
  • The entropy result reads "source": "eaas-rest", not "simulated".
  • The trace shows measured times for the MCP tools/call step, which includes the request to Qrypt.
  • No "simulated" label appears on any result. The live monitor's tag reads "Demo mode · values shown in plain text", because it displays real values for the demo.
Next steps

Build on this

What Qrypt adds

Agents usually reach for a local pseudo-random generator. This server gives them random values drawn from Qrypt Entropy instead, through one standard protocol.

Docs and quickstarts in the Qrypt portal