
Qiskit Gym MCP Server
io.github.QiskitPublished by GitHub account Qiskitv0.4.2Updated Oct 24, 2026
MCP server for qiskit-gym reinforcement learning quantum circuit synthesis
Overview
Local MCP server that lets an assistant train reinforcement-learning agents and synthesize quantum circuits with qiskit-gym.
- What you can do
- Create, inspect and delete RL environments for permutation, linear-function and Clifford synthesis
- Start, batch, poll, wait for and stop PPO or AlphaZero training sessions, including background runs
- Synthesize optimal SWAP, CNOT and Clifford circuits from trained models
- Save, load, list, inspect and delete models on disk or in memory
- Build coupling maps, extract N-qubit subtopologies and pull exact topologies from offline IBM fake backends
- Generate random test inputs and convert circuits between QPY and QASM3
- When to use it
- Useful for quantum computing research or experimentation where an assistant should set up qiskit-gym environments, run training jobs and produce optimized circuits for routing, CNOT or Clifford synthesis on grid, linear or IBM hardware topologies.
- Requirements
- Runs locally over stdio as a Python package (qiskit-gym-mcp-server, e.g. via uvx or pip) and is intended for desktop clients. No credentials are needed, including for IBM fake-backend topologies. Optional environment variables set model and TensorBoard directories and training limits such as QISKIT_GYM_MAX_QUBITS.
Installation
In SourceWeft
- Open Qiskit Gym MCP Server 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
Qiskit Gym MCP Server
A Model Context Protocol (MCP) server that provides reinforcement learning-based quantum circuit synthesis capabilities using qiskit-gym.
Features
- Train RL Models: Train reinforcement learning agents to synthesize optimal quantum circuits
- Background Training: Run long training sessions in background threads with polling support
- Three Synthesis Types:
- Permutation: Qubit routing with minimal SWAP gates
- Linear Function: CNOT synthesis for linear Boolean functions
- Clifford: Optimal Clifford circuit synthesis with custom gate sets
- Hardware Support: Presets for IBM Heron, Nighthawk, and common grid/linear topologies
- Exact IBM Topologies: Access exact coupling maps from IBM Quantum fake backends (offline, no credentials needed)
- Subtopology Extraction: Extract connected subgraphs from hardware coupling maps for targeted training
- Model Persistence: Save, load, and manage trained models
- TensorBoard Integration: Monitor training progress with TensorBoard
Installation
Or install from source:
Quick Start
Claude Desktop Configuration
Add to your Claude Desktop config (~/Library/Application Support/Claude/claude_desktop_config.json):
Example Workflow
Tools Reference
Environment Management
Training
Synthesis
Model Management
Coupling Maps
Utility Tools
Hardware Presets
Resources
Configuration
Environment variables:
Development
Dependencies
- qiskit-gym - RL environments for quantum circuit synthesis
- FastMCP - MCP server framework
- Qiskit - Quantum computing framework
- qiskit-ibm-runtime - IBM Quantum access and fake backends
License
Apache 2.0 - See LICENSE for details.
Contributing
See CONTRIBUTING.md for contribution guidelines.
Source: qiskit-gym-mcp-server/README.md at commit 373be19
Tools
0Version history
2- v0.4.2LatestOct 8, 2026
- v0.4.1Sep 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