MCP ServerSTDIOOfficialv0.4.0

Qiskit Code Assistant MCP Server

Get intelligent code completion and suggestions for Qiskit quantum computing programs. Built for developers writing quantum circuits and algorithms who want AI-powered assistance tuned to Qiskit's API and patterns.

io.github.Qiskit/qiskit-code-assistant-mcp-server

Hosted URL

Local install

Transport

STDIO

Auth

1 required env var

What the Qiskit Code Assistant MCP server does

How models use it and what it is built for.

Get intelligent code completion and suggestions for Qiskit quantum computing programs. Built for developers writing quantum circuits and algorithms who want AI-powered assistance tuned to Qiskit's API and patterns.

Connect to Qiskit Code Assistant

Local install — runs as a subprocess.

uvx qiskit-code-assistant-mcp-server==0.4.0

Environment variables

Configuration this server reads at startup.

  • QISKIT_IBM_TOKENRequiredSecret

    Your IBM Quantum API token for authentication

  • QCA_TOOL_API_BASE

    Qiskit Code Assistant API base URL

  • QCA_TOOL_MODEL_NAME

    Default model name for code completion

Resources

Where to find authoritative docs and source for Qiskit Code Assistant.

Example prompts for Qiskit Code Assistant

Paste any of these into Agent Studio after connecting Qiskit Code Assistant.

  • Complete this Qiskit circuit that applies a Hadamard gate to qubit 0
  • Suggest the next line for a variational quantum eigensolver implementation
  • What's the correct Qiskit syntax for a controlled-NOT gate between qubits 1 and 2
  • Explain how to set up the QCA_TOOL_MODEL_NAME environment variable for custom models

Qiskit Code Assistant MCP server — FAQ

Common questions about connecting and running Qiskit Code Assistant.

  • What is the Qiskit Code Assistant MCP server?

    It's an MCP server that provides intelligent code completion and suggestions specifically for Qiskit quantum computing code. It integrates with your IDE or chat interface to offer context-aware completions tuned to Qiskit's API and quantum programming patterns.

  • How do I authenticate with the Qiskit Code Assistant?

    You need to set the QISKIT_IBM_TOKEN environment variable with your IBM Quantum API token. This token is required for the server to function and authenticate requests to the Qiskit Code Assistant API.

  • Can I use a custom API endpoint or model?

    Yes. Set QCA_TOOL_API_BASE to point to a different API endpoint and QCA_TOOL_MODEL_NAME to specify which model the code assistant should use for completions.

  • How do I install and run this server?

    Install it with `uvx qiskit-code-assistant-mcp-server@0.4.0`. The server communicates via stdio and requires your QISKIT_IBM_TOKEN to be set before startup.

  • What quantum programming tasks does this server help with?

    The server provides code completion for Qiskit circuit construction, gate operations, and quantum algorithm implementations. It's designed to accelerate development of quantum programs by suggesting correct syntax and API usage patterns.

Skip the local setup — run MCP in your browser

MCP Playground runs 10,000+ hosted MCP servers — GitHub, Linear, Notion, Stripe, Sentry and more — across Claude, GPT, Gemini, DeepSeek and 30+ AI models. Compare model answers side-by-side, save agent presets, share runs. Zero install.

Open Agent Studio

Related servers

More on MCP Playground