
Quantum OpenQASM MCP
io.github.markusvankempenPublished by GitHub account markusvankempenv1.7.3Updated Oct 24, 2026
IBM Quantum OpenQASM 2.0 MCP — list backends, submit QASM, poll jobs, get histograms.
Overview
A local MCP server that lets an assistant list IBM Quantum backends, submit OpenQASM 2.0 circuits, poll jobs and read measurement histograms.
- What you can do
- List and inspect IBM Quantum backends, including status and queue details for a chosen backend. Submit OpenQASM 2.0 circuits as jobs to IBM Quantum hardware or simulators. Poll job state and cancel a running job. Retrieve measurement counts and histogram results for a completed job.
- When to use it
- Useful when you want an AI assistant to run quantum circuits on IBM Quantum without leaving the chat or editor, for example to test Bell state or GHZ examples, compare backends, or check results of a submitted job.
- Requirements
- Runs locally over stdio as an npm package, so Node.js 18 or newer is needed. Requires an IBM Cloud account with IBM Quantum access: an API key in IBM_API_KEY and a service instance CRN in IBM_SERVICE_CRN. Optional IBM_QUANTUM_BACKEND and IBM_QUANTUM_ENDPOINT set the default backend and API region. Network access to the IBM Quantum API is required.
Installation
In SourceWeft
- Open Quantum OpenQASM MCP in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
README
Quantum OpenQASM Assistant
[VS Code Extension] [npm MCP] [GitHub release] [Qiskit Ecosystem] [OpenQASM] [MCP] [IBM Quantum] [License]
[Quantum OpenQASM Assistant — atomic icon with cyan nucleus and purple orbits]
Quantum OpenQASM Assistant is a VS Code extension and Model Context Protocol (MCP) server for IBM Quantum — submit OpenQASM 2.0 circuits to real quantum hardware and simulators from Cursor, VS Code, IBM Bob, and Google Antigravity. Includes Quantum Lab (interactive circuit editor), live job polling, measurement histograms, Bell state / GHZ examples, SamplerV2 REST integration, and one-click MCP setup for AI coding assistants.
Search terms: quantum computing · openqasm · qasm · ibm quantum · qiskit · quantum circuit · quantum hardware · mcp server · model context protocol · cursor mcp · vscode quantum · ai quantum assistant · quantum programming · qubit · bell state
Author: Markus van Kempen
Email: [email protected] · [email protected]
Website: markusvankempen.github.io
No bug too small, no syntax too weird.
Overview
Quantum OpenQASM Assistant connects AI agents and developers to IBM Quantum through a pure TypeScript MCP server and VS Code extension. Submit OpenQASM 2.0 ISA circuits, poll job status, and view measurement histograms — locally via stdio or remotely via SSE on IBM Code Engine.
Source code is maintained in the private dev repo
quantum-openqasm-assistant-dev. Install the product via VS Code Marketplace or npm MCP — not by cloning this repo for extension source.
📖 Documentation hub → docs/README.md · Project structure → docs/PROJECT-STRUCTURE.md · OpenQASM Primer → docs/OPENQASM-PRIMER.md · Tips & Tricks → docs/TIPS-AND-TRICKS.md · Architecture → docs/ARCHITECTURE.md · Local MCP setup → docs/ide/LOCAL-MCP-SETUP.md · Qiskit Developer Pack → docs/ide/QISKIT-DEVELOPER-PACK.md · Deployment → docs/deployments/DEPLOYMENT-SCENARIOS.md · Extension → extension/README.md · Contributing → CONTRIBUTING.md
Repository policy: This public GitHub repo publishes overview and setup documentation. Extension source code, scripts, and examples live in the private dev repo (use
.gitignore.privatewhen setting it up).
Features
MCP tools
Quick start
Prerequisites
- Node.js 18+ (mise recommended — see
mise.toml) - IBM Cloud API key + Quantum Service CRN — cloud.ibm.com/iam/apikeys
Build (private dev repo)
Configure
Or use Quantum → Settings & Diagnostics in the extension.
Test
Install extension
Architecture at a glance
See docs/PROJECT-STRUCTURE.md for the complete file map.
Documentation
Qiskit Integration
Design circuits in Qiskit (or the built-in Qiskit Lab panel), export to OpenQASM 2.0, transpile with AI-powered qiskit-ibm-transpiler, and run on IBM Quantum hardware:
No Qiskit dependency at runtime — the MCP server speaks OpenQASM + IBM Quantum REST directly.
v1.9.2 Qiskit features:
-
Qiskit Lab — 12 templates (Bell, GHZ, Grover, teleportation, VQE ansatz, QAOA, …), local Aer sim, one-click export
-
AI transpilation —
qiskit-ibm-transpilerMCP integration for hardware-native optimization -
quantum-assistantMCP — streamlined MCP key for AI IDE setup -
Full guide: docs/QISKIT-INTEGRATION.md
-
Qiskit Developer Pack (Qiskit MCP + AI transpiler + OpenQASM): docs/ide/QISKIT-DEVELOPER-PACK.md
-
Example script: examples/qiskit-bell-export.py
Security
- API keys live in VS Code settings or
~/.quantum-openqasm-mcp/.env— never in git .env,Internal/, and IDEmcp.jsonfiles are gitignored- Report issues via GitHub Issues
Contributing
Contributions welcome! See CONTRIBUTING.md for the two-repo model, mise tasks, and PR process.
Please read our CODE_OF_CONDUCT.md.
License
Topics & keywords
quantum-computing · quantum-computer · openqasm · openqasm-2 · qasm · ibm-quantum · ibm-cloud · qiskit · quantum-circuit · quantum-hardware · quantum-lab · quantum-programming · quantum-physics · qubit · bell-state · quantum-job · quantum-backend · mcp · model-context-protocol · mcp-server · vscode-extension · cursor · ibm-bob · antigravity · copilot · ai-assistant · typescript · nodejs · histogram · sampler-v2 · code-engine · cloud-quantum
Author: Markus van Kempen
Email: [email protected] · [email protected]
Website: markusvankempen.github.io
No bug too small, no syntax too weird.
Source: README.md at commit b62b3b9
Tools
0Version history
1- v1.7.3LatestSep 16, 2026
Score
50% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 days25 pts
Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.
- Auth declared10 pts
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts