qiskit-mcp-server
Provides tools for building quantum circuits, running simulations, inspecting statevectors, and optionally executing on real IBM quantum hardware via Qiskit.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@qiskit-mcp-serverBuild a Bell state and simulate it with 2000 shots."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
qiskit-mcp-server
An MCP server that gives Claude hands-on access to quantum computing via Qiskit. Ask Claude to build a circuit, simulate it, inspect the statevector, transpile it — and, if you have a free IBM Quantum account, run it on a real quantum computer.
Everything works fully offline out of the box: simulation runs locally on Qiskit Aer. No account, no token, no network. Real-hardware access is optional and switches on when you set an IBM_QUANTUM_TOKEN.
Tools
Tool | What it does |
| Build a circuit from a simple gate list, get back QASM + an ASCII diagram |
| Sample a circuit on the local Aer simulator — counts, probabilities, entropy |
| Exact amplitudes of a measurement-free circuit (up to 20 qubits) |
| Local simulators always; real IBM devices when a token is configured |
| Depth and gate counts before/after transpiling, for a generic basis or a real device |
| Run a circuit on a real IBM quantum computer (token required) |
| Poll a hardware job, get counts when it finishes (token required) |
Circuits can be referenced three ways: by the circuit_id returned from build_circuit (in-memory, resets when the server restarts), as a portable OpenQASM 2 string, or as an inline gate-list spec. IBM job IDs live on IBM's side and survive restarts.
Related MCP server: mcp-qiskit
Setup
Requires Python 3.11+. With uv:
git clone https://github.com/TheNyansafo/qiskit-mcp-server.git
cd qiskit-mcp-server
uv syncOr with plain pip: pip install . (add .[ibm] for the hardware path).
Claude Desktop
Add to claude_desktop_config.json (Settings → Developer → Edit Config). Use absolute paths — Desktop doesn't inherit your shell's PATH:
{
"mcpServers": {
"qiskit": {
"command": "/absolute/path/to/uv",
"args": ["run", "--directory", "/absolute/path/to/qiskit-mcp-server", "qiskit-mcp-server"]
}
}
}Claude Code
claude mcp add qiskit -- uv run --directory /absolute/path/to/qiskit-mcp-server qiskit-mcp-serverThings to ask Claude once it's connected
"Build a Bell state and simulate it with 2000 shots."
"What's the statevector of a 3-qubit GHZ circuit?"
"Build a circuit that puts qubit 0 in superposition, apply a Z, and show me the phases."
"Transpile my Bell circuit to IBM's basis gates — how much deeper does it get?"
"List the available backends."
With a token: "Run this circuit on the least busy real quantum computer and check on the job."
Running on real hardware (optional, free)
IBM's Open Plan is free, needs no credit card, and includes roughly 10 minutes of real QPU time per month. Local Aer simulation is unlimited and doesn't touch your allowance.
Create an account at quantum.cloud.ibm.com
Copy your API key from the dashboard
Install the hardware extra:
uv sync --extra ibm(orpip install '.[ibm]')Put the token in the server's environment — for Claude Desktop, add to the server entry:
"env": { "IBM_QUANTUM_TOKEN": "your-api-key" }Without a token, the hardware tools don't crash — they explain exactly this setup. (Qiskit also offers QiskitRuntimeService.save_account(), which writes the token to ~/.qiskit/qiskit-ibm.json in plaintext; the env var keeps credentials out of files. Nothing token-shaped is ever committed here — see .gitignore.)
Heads up: real devices queue behind other users, so submit_to_hardware returns a job ID immediately and you poll with check_job_status. Results from real hardware are noisy — seeing a few 01/10 counts from a Bell state is the hardware, not a bug.
Development
uv sync
uv run pytest28 tests, all passing offline against Qiskit 2.5 / Aer. They cover circuit
building, validation, simulation, statevectors, and transpilation — everything that
runs without a token. The token-gated tools (submit_to_hardware,
check_job_status) are thin wrappers over qiskit-ibm-runtime and aren't
unit-tested.
If uv run pytest reports ModuleNotFoundError: No module named 'qiskit_mcp', the
virtualenv is stale — usually because the project directory was moved after the venv
was created. rm -rf .venv && uv sync fixes it.
What's next
Noise models.
run_simulationis noiseless today; Aer can simulate a real device's noise profile, which would let you compare ideal vs. realistic results without burning hardware queue time. Highest value per unit of effort.Multi-circuit batching for
submit_to_hardware— real-device queue time dominates, so submitting several circuits in one job is a large practical win.Persist
circuit_ids across restarts. They're in-memory now, so a server restart loses references mid-conversation.Cover the IBM path with recorded/mocked runtime responses, so the token-gated tools aren't entirely untested.
License
MIT
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- FlicenseAqualityDmaintenanceThis MCP server enables Claude Desktop to create, visualize, and simulate quantum circuits using Qiskit and Qiskit Aer, with support for preset circuits, custom QASM, and noise modeling.3
- Alicense-qualityCmaintenanceMCP server exposing Qiskit quantum computing functionality through the Model Context Protocol. Enables LLMs to create, manipulate, and execute quantum circuits via standardized MCP tools and resources.MIT
- FlicenseAqualityDmaintenanceUnofficial Model Context Protocol (MCP) server that enables LLMs to build and execute quantum circuits using Qiskit.137
- Flicense-qualityCmaintenanceMCP server wrapping Google's Stim stabilizer circuit simulator. Wire it up to an LLM and you can build and sample circuits through conversation.
Related MCP Connectors
Hosted MCP server connecting claude.ai, ChatGPT and other AI apps to your own computer
Augments MCP Server - A comprehensive framework documentation provider for Claude Code
This MCP server enables users to perform scientific computations regarding linear algebra and vect…
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Common-Good-Industries/qiskit-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server