Qiskit Code Assistant MCP Server

v0.4.0
io.github.Qiskit/qiskit-code-assistant-mcp-server Checked 17 hours ago Published 7 months ago

MCP server for the Qiskit Code Assistant intelligent code completion

Values you need

VariableWhat it is
QISKIT_IBM_TOKENrequired secret Your IBM Quantum API token for authentication
QCA_TOOL_API_BASEoptional Qiskit Code Assistant API base URL Default: https://qiskit-code-assistant.quantum.ibm.com
QCA_TOOL_MODEL_NAMEoptional 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.0
Add 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

  1. Ask the user for: QISKIT_IBM_TOKEN. Never invent or guess these values; secrets go into the client config, not into chat logs.
  2. 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).
  3. Restart or reload the client so it starts the server.
  4. Verify: the server should expose these tools: accept_model_disclaimer_tool, get_completion_tool, get_rag_completion_tool, accept_completion_tool.
  5. 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