MCP server for Qiskit Code Assistant that exposes tools for getting code completions, RAG-based answers about Qiskit/quantum topics, and accepting model/completion disclaimers. It connects to IBM Quantum’s Qiskit Code Assistant service and requires an IBM Quantum API token.
From the registry: MCP server for the Qiskit Code Assistant intelligent code completion
$ pip install qiskit-code-assistant-mcp-serverPlease install the `qiskit-code-assistant-mcp-server` MCP server into my current AI client (that's you).
Required prerequisites (do these first if not already done):
- **Install Python 3.10 or higher** — Python 3.10+ is required to run the server.
- **Install the server package from PyPI** — Install the MCP server package using pip. Run: `pip install qiskit-code-assistant-mcp-server`
- **Get an IBM Quantum API token** — Create or sign in to an IBM Quantum account and obtain your API token. Access to the Qiskit Code Assistant service is also required. (https://cloud.quantum.ibm.com/)
Canonical MCP server config (stdio transport):
- command: `qiskit-code-assistant-mcp-server`
- args: []
- required environment variables:
- `QISKIT_IBM_TOKEN`: Your IBM Quantum API token. (example: `<your-ibm-quantum-api-token>`)
- optional environment variables:
- `QCA_TOOL_API_BASE`: Qiskit Code Assistant API base URL. (example: `<your-qiskit-code-assistant-api-base-url>`)
- `QCA_TOOL_MODEL_NAME`: Default model name to use. The server can fall back to an available model if the configured one is unavailable. (example: `<your-model-name>`)
- `QCA_REQUEST_TIMEOUT`: Request timeout in seconds. (example: `<your-timeout-seconds>`)
- `QCA_MCP_DEBUG_LEVEL`: Logging level: DEBUG, INFO, WARNING, ERROR, or CRITICAL. (example: `<your-log-level>`)
Note: Preferred portable setup is the PyPI install path. The README's quick start uses stdio via `uv run qiskit-code-assistant-mcp-server`, but after installing from PyPI the canonical command is `qiskit-code-assistant-mcp-server` with the same environment variables.
Add this MCP server to my current client's config in the correct format for you. If you need secrets or credentials I haven't provided, ASK me — do not invent values or leave raw placeholders. After adding it, tell me how to verify the server is connected.QISKIT_IBM_TOKENrequiredIBM Quantum API token used to access Qiskit Code Assistant