Qiskit Code Assistant MCP Server
v0.4.0MCP server for the Qiskit Code Assistant intelligent code completion
Values you need
| Variable | What it is | |
|---|---|---|
QISKIT_IBM_TOKEN | required secret | Your IBM Quantum API token for authentication |
QCA_TOOL_API_BASE | optional | Qiskit Code Assistant API base URL Default: https://qiskit-code-assistant.quantum.ibm.com |
QCA_TOOL_MODEL_NAME | optional | Default model name for code completion Default: mistral-small-3.2-24b-qiskit |
PyPI (uvx) discovery passed
Requires uv (https://docs.astral.sh/uv/)
Run in a terminal
claude mcp add qiskit-code-assistant-mcp-server -e 'QISKIT_IBM_TOKEN=<QISKIT_IBM_TOKEN>' -- uvx qiskit-code-assistant-mcp-server==0.4.0Add to
claude_desktop_config.json{
"mcpServers": {
"qiskit-code-assistant-mcp-server": {
"args": [
"qiskit-code-assistant-mcp-server==0.4.0"
],
"command": "uvx",
"env": {
"QISKIT_IBM_TOKEN": "<QISKIT_IBM_TOKEN>"
}
}
}
}Add to
~/.cursor/mcp.json{
"mcpServers": {
"qiskit-code-assistant-mcp-server": {
"args": [
"qiskit-code-assistant-mcp-server==0.4.0"
],
"command": "uvx",
"env": {
"QISKIT_IBM_TOKEN": "<QISKIT_IBM_TOKEN>"
}
}
}
}Add to
.vscode/mcp.json{
"inputs": [
{
"description": "QISKIT_IBM_TOKEN",
"id": "qiskit-ibm-token",
"password": true,
"type": "promptString"
}
],
"servers": {
"qiskit-code-assistant-mcp-server": {
"args": [
"qiskit-code-assistant-mcp-server==0.4.0"
],
"command": "uvx",
"env": {
"QISKIT_IBM_TOKEN": "${input:qiskit-ibm-token}"
},
"type": "stdio"
}
}
}Add to
~/.codex/config.toml[mcp_servers.qiskit-code-assistant-mcp-server]
command = "uvx"
args = ["qiskit-code-assistant-mcp-server==0.4.0"]
env = { "QISKIT_IBM_TOKEN" = "<QISKIT_IBM_TOKEN>" }For AI agents
- Ask the user for: QISKIT_IBM_TOKEN. Never invent or guess these values; secrets go into the client config, not into chat logs.
- Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
- Restart or reload the client so it starts the server.
- Verify: the server should expose these tools: accept_model_disclaimer_tool, get_completion_tool, get_rag_completion_tool, accept_completion_tool.
- If it fails, check that the required runtime is installed (uv (https://docs.astral.sh/uv/)) and that the values above are set.
Machine-readable: install.md · manifest.json