MCP server for Quantinuum Nexus, wrapping the qnexus SDK. Not affiliated with Quantinuum.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
π‘ Paste into ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
A community Model Context Protocol (MCP) server for Quantinuum Nexus,
wrapping the official qnexus Python SDK so any MCP-speaking agent
(Claude Code, Cursor, VS Code, Codex, β¦) can inspect Nexus and, opt-in, run circuits on the free emulator.
Not affiliated with, endorsed by, or an official product of Quantinuum. "Quantinuum" and "Nexus" are trademarks of their respective owners, used here nominatively to describe compatibility.
Early development. Read-only by default. Design and rationale live in
docs/DESIGN.md; the research behind it is in docs/research/.
uv (the uvx command). On Windows, note the
full path to uvx.exe (where uvx in a terminal) β GUI clients don't inherit your shell PATH.qnexus-mcp never handles your Nexus token. Authenticate out-of-band with the qnexus CLI
(it opens your browser):
Inside Nexus JupyterHub, authentication is automatic; do not run qnx login there.
The launch command is the same everywhere β only the config file differs per client:
Pin a version (==0.2.0): uvx otherwise resolves the latest PyPI release on every launch β
unpinned installs are neither reproducible nor auditable. Avoid 0.1.0 on Windows: its first
tool call hangs (fixed in 0.2.0).
What to expect on startup: the first ever launch downloads the quantum SDK stack (1β3 min); every launch takes ~30 s before the server responds β the SDK is imported up front, before the MCP handshake. "Waiting for server to respond to
initialize" during that window is normal.
Settings β Developer β Local MCP servers β Edit Config (always use this button β the
Microsoft Store build keeps the file under %LOCALAPPDATA%\Packages\Claude_*\..., not
%APPDATA%\Claude), then add:
Then quit Claude Desktop fully and reopen β the config is only read at cold start, and
closing the window leaves the old process running (tray icon β Quit, or
taskkill /F /IM claude.exe).
Command Palette β MCP: Open User Configuration (or a workspace .vscode/mcp.json):
Same command; the config shape is one of the two JSON forms above (mcpServers vs
servers + "type": "stdio") β check your client's docs for which file to put it in.
Something not working? See docs/TROUBLESHOOTING.md β it covers every
failure mode observed in real client setups (wrong config path, slow first start, auth, rate
limits, known Nexus-side errors).
| Flag | Env | Default | Effect |
|---|---|---|---|
--toolsets | QNEXUS_MCP_TOOLSETS | read | Capability domains to expose (read,execute,manage,destructive) |
--allow-spend | QNEXUS_MCP_ALLOW_SPEND | false | Permit credit-spending (HQC) execution |
--allow-hardware | QNEXUS_MCP_ALLOW_HARDWARE | false | Permit real-QPU targets |
--allow-destructive | QNEXUS_MCP_ALLOW_DESTRUCTIVE | false | Permit delete/cancel/archive |
--max-credits | QNEXUS_MCP_MAX_CREDITS | 0 | Hard per-call HQC ceiling; 0 blocks all spend |
--max-outcomes | QNEXUS_MCP_MAX_OUTCOMES | 100 | Top-N cap on distinct measurement outcomes returned per result (truncation is always reported) |
--max-submissions-per-minute | QNEXUS_MCP_MAX_SUBMISSIONS_PER_MINUTE | 6 | Sliding-window submission cap; each circuit in a batch counts as one |
--projects | QNEXUS_MCP_PROJECTS | (all) | Comma-separated project allowlist, enforced on every mutating tool |
Read-only by default. Anything that spends credits or mutates cloud state requires an explicit opt-in flag
and an in-protocol confirmation, and the default execution backend is the free, noiseless H2-1LE
emulator. Submissions are rate-limited, cloud mutations are serialized, destructive project operations
resolve their target by exact name (never substring), and the server never reads, stores, or returns
your Nexus token. Every control is enforced server-side; MCP tool annotations are treated as UX hints
only. See docs/DESIGN.md Β§6βΒ§7.
Prompt injection (conscious design decision). Everything Nexus returns β job names, project names, error messages, results β is attacker-influencable content (any Nexus user can name a job) and is treated as untrusted data. There is no structural tagging that separates "data" from "instructions" in today's MCP ecosystem; the structural boundary here is instead that injected content cannot escalate: every action with consequences (spending credits, targeting hardware, deleting anything) requires launch flags the agent cannot set plus an in-protocol human confirmation naming the exact target and cost. Injected text can at worst confuse the agent's reasoning β it cannot spend or destroy anything on its own. This residual risk is accepted and documented, not an omission.
Governance. This is an early-stage, single-maintainer project (see CODEOWNERS): releases are
published by one person via GitHub-OIDC Trusted Publishing (no long-lived PyPI tokens). Pin a version
(above) if that trust model matters for your deployment.
See CONTRIBUTING.md. Contributions are accepted under the
Developer Certificate of Origin; sign off your commits with -s.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/qnexus-mcp)<a href="https://allmcps.com/mcp/qnexus-mcp"><img src="https://allmcps.com/api/badge/qnexus-mcp?style=directory" alt="Qnexus Mcp on AllMCPs" /></a>