原型 · 预览版:收录官方注册中心里的全部服务器,每 30 分钟同步一次。评价和账户功能将在后续阶段推出。
PopNx MCP为使用 AI 的人准备的 MCP 服务器 · 用大白话讲清楚

Qiskit IBM Runtime MCP Server

作者:Qiskit版本 0.6.2i★ –i在你的电脑上运行
注册名称io.github.Qiskit/qiskit-ibm-runtime-mcp-server

安装

概览

作者提供的说明(英文原文)

MCP server for IBM Quantum computing services through Qiskit IBM Runtime

PopNx MCP 的三大支柱

这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。

它能帮你做什么

我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。

  • 连接方式: 在你的电脑上运行
  • 传输方式: stdio
  • 分类: 其他
  • 你需要填写:QISKIT_IBM_TOKEN

安装

选择你使用的 AI 应用,然后复制设置。

安装之前

  • 基础检查:1 项中通过 1 项
  • 在你的电脑上运行,拥有你的用户账户的权限(文件、网络、应用)。
  • 需要你自己填写: QISKIT_IBM_TOKEN, QISKIT_IBM_RUNTIME_MCP_INSTANCE

标为机密的值是你账户的钥匙。千万不要分享给别人,也不要粘贴到聊天里。

你需要

  • PyPI已安装 Python 的 uv(用于 uvx 命令)

你用的是哪个应用?

在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。

打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json

{
  "mcpServers": {
    "qiskit-ibm-runtime": {
      "command": "uvx",
      "args": [
        "qiskit-ibm-runtime-mcp-server"
      ],
      "env": {
        "QISKIT_IBM_TOKEN": "your-value",
        "QISKIT_IBM_RUNTIME_MCP_INSTANCE": "your-value"
      }
    }
  }
}

在终端中运行这条命令

claude mcp add qiskit-ibm-runtime --env QISKIT_IBM_TOKEN=your-value --env QISKIT_IBM_RUNTIME_MCP_INSTANCE=your-value -- uvx qiskit-ibm-runtime-mcp-server

运行前请先填写空着的值。

在 Cursor 中打开

或者自己复制设置

粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json

{
  "mcpServers": {
    "qiskit-ibm-runtime": {
      "command": "uvx",
      "args": [
        "qiskit-ibm-runtime-mcp-server"
      ],
      "env": {
        "QISKIT_IBM_TOKEN": "your-value",
        "QISKIT_IBM_RUNTIME_MCP_INSTANCE": "your-value"
      }
    }
  }
}

浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。

在 VS Code 中打开

或者自己复制设置

粘贴到项目中的 .vscode/mcp.json

{
  "servers": {
    "qiskit-ibm-runtime": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "qiskit-ibm-runtime-mcp-server"
      ],
      "env": {
        "QISKIT_IBM_TOKEN": "your-value",
        "QISKIT_IBM_RUNTIME_MCP_INSTANCE": "your-value"
      }
    }
  }
}

浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。

这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。

你的选择通过 Cookie 保存在这台设备上,无需账户。

需要你填写的值

  • QISKIT_IBM_TOKEN 机密 必填 env
    Your IBM Quantum API token for authentication
  • QISKIT_IBM_RUNTIME_MCP_INSTANCE env
    IBM Quantum instance CRN for faster startup (skips instance lookup)

这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。

它能做什么

它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。

基础检查i

我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月6日

  • ✓ 通过

    作者与仓库一致

    注册名称已通过 GitHub 账户 Qiskit 验证,该账户拥有此仓库

  • … 尚未检查

    仍在维护

    我们还没有从 GitHub 读取这个仓库

  • … 尚未检查

    有许可证

    我们还没有从 GitHub 读取这个仓库

  • – 不适用

    端点有响应

    它在你的电脑上运行,没有互联网端点

  • – 不适用

    使用 OAuth 登录

    在你的电脑上运行,改用本地设置

  • … 尚未检查

    工具描述中没有隐藏指令

    它在你的电脑上运行;我们只能读取互联网端点的工具列表

与“其他”中的其他服务器比较i

  • 星标数多于此分类中其他 32531 个服务器的 0%
  • 发布到注册中心的时间比此分类中其他 32531 个服务器的 58% 更新
  • 基础检查结果等于或优于此分类中其他 32531 个服务器的 100%

与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。

常见问题

Qiskit IBM Runtime MCP Server 安全吗?

它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。

它需要哪些密钥或代码?

你需要填写:QISKIT_IBM_TOKEN

它在我的电脑上运行还是在云端?

它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。

它还在维护吗?

GitHub 仓库最后更新于–,最新版本(0.6.2)于29天前进入注册中心。

哪些应用可以使用它?

支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Python (uv)。

有什么可以替代它?

同一分类中有:Spec Driven Development, Remote Desktop Commander, Reelsaw

替代选择

同一分类中其他作者的服务器,按星标数排序。

如何看卡片:★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i

Spec Driven Development

作者:formulahendry

MCP Server that facilitates spec-driven development workflows, not just Vibe Coding.

在你的电脑上运行★ 440MIT14个月前更新
安装

Remote Desktop Commander

作者:desktop-commander

Remote Desktop Commander: use files, terminal and processes on your own computers from any AI app.

在云端运行★ 211昨天更新
安装

Reelsaw

作者:osbytes

Drive a self-hosted Reelsaw: turn long videos into vertical clips, edit, re-render and export them.

在你的电脑上运行今天更新
安装

作者的 README

打开 README

按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。

Qiskit IBM Runtime MCP Server

A comprehensive Model Context Protocol (MCP) server that provides AI assistants with access to IBM Quantum computing services through Qiskit IBM Runtime. This server enables quantum circuit creation, execution, and management directly from AI conversations.

Features

  • Circuit Execution with Primitives: Run circuits using EstimatorV2 (expectation values) and SamplerV2 (measurement sampling) with built-in error mitigation
  • Quantum Backend Management: List, inspect, and get calibration data for quantum backends
  • Qubit Optimization: Find optimal qubit chains and subgraphs based on real-time calibration data
  • Job Management: Monitor, cancel, and retrieve job results
  • Account Management: Easy setup and configuration of IBM Quantum accounts

Prerequisites

Installation

Install from PyPI

The easiest way to install is via pip:

pip install qiskit-ibm-runtime-mcp-server
Install from Source

This project recommends using uv for virtual environments and dependencies management. If you don't have uv installed, check out the instructions in https://docs.astral.sh/uv/getting-started/installation/

Setting up the Project with uv
  1. Initialize or sync the project:
   # This will create a virtual environment and install dependencies

uv sync

  1. Get your IBM Quantum token (if you don't have saved credentials):
  1. Configure your credentials (choose one method):

Option A: Environment Variable (Recommended)

   # Copy the example environment file

cp .env.example .env

Edit .env and add your IBM Quantum API token

export QISKIT_IBM_TOKEN="your_token_here"

Optional: Set instance for faster startup (skips instance lookup)

export QISKIT_IBM_RUNTIME_MCP_INSTANCE="your-instance-crn"

Option B: Save Credentials Locally

   from qiskit_ibm_runtime import QiskitRuntimeService

Save your credentials (one-time setup)

QiskitRuntimeService.save_account( channel="ibm_quantum_platform", token="your_token_here", overwrite=True )

   This stores your credentials in `~/.qiskit/qiskit-ibm.json`

Option C: Pass Token Directly

   # Provide token when setting up the account

await setup_ibm_quantum_account_tool(token="your_token_here")

Credential Resolution Priority: The server looks for credentials in this order:

  1. Explicit token passed to setup_ibm_quantum_account_tool()
  2. QISKIT_IBM_TOKEN environment variable
  3. Saved credentials in ~/.qiskit/qiskit-ibm.json

Instance Configuration (Optional): To speed up service initialization, you can specify your IBM Quantum instance:

  • Set QISKIT_IBM_RUNTIME_MCP_INSTANCE environment variable with your instance CRN
  • This skips the automatic instance lookup which can be slow
  • Find your instance CRN in IBM Quantum Platform

Instance Priority:

  • If you saved credentials with an instance (via save_account(instance="...")), the SDK uses it automatically
  • QISKIT_IBM_RUNTIME_MCP_INSTANCE overrides any instance saved in credentials
  • If neither is set, the SDK performs a slow lookup across all instances

Note: QISKIT_IBM_RUNTIME_MCP_INSTANCE is an MCP server-specific variable, not a standard Qiskit SDK environment variable.

Quick Start

Running the Server
uv run qiskit-ibm-runtime-mcp-server

The server will start and listen for MCP connections.

Basic Usage Examples
Async Usage (Library)
# 1. Setup IBM Quantum Account (optional if credentials already configured)

Will use saved credentials or environment variable if token not provided

await setup_ibm_quantum_account() # Uses saved credentials/env var

OR

await setup_ibm_quantum_account(token="your_token_here") # Explicit token

2. List Available Backends (no setup needed if credentials are saved)

backends = await list_backends() print(f"Available backends: {len(backends['backends'])}")

3. Get the least busy backend

backend = await least_busy_backend() print(f"Least busy backend: {backend}")

4. Get backend's properties

backend_props = await get_backend_properties("backend_name") print(f"Backend_name properties: {backend_props}")

5. List recent jobs

jobs = await list_my_jobs(10) print(f"Last 10 jobs: {jobs}")

6. Get job status

job_status = await get_job_status("job_id") print(f"Job status: {job_status}")

7. Get job results (when job is DONE)

results = await get_job_results("job_id") print(f"Counts: {results['counts']}")

8. Cancel job

cancelled_job = await cancel_job("job_id") print(f"Cancelled job: {cancelled_job}")

Sync Usage (Scripts, Jupyter)

For frameworks that don't support async operations, all async functions have a .sync attribute:

from qiskit_ibm_runtime_mcp_server.ibm_runtime import (

setup_ibm_quantum_account, list_backends, least_busy_backend, get_backend_properties, get_backend_calibration, get_coupling_map, find_optimal_qubit_chains, find_optimal_qv_qubits, run_estimator, run_sampler, list_my_jobs, get_job_status, get_job_results, cancel_job )

Optional: Setup account if not already configured

Will automatically use QISKIT_IBM_TOKEN env var or saved credentials

setup_ibm_quantum_account.sync() # No token needed if already configured

Use .sync for synchronous execution - no setup needed if credentials saved

backends = list_backends.sync() print(f"Available backends: {backends['total_backends']}")

Get least busy backend

backend = least_busy_backend.sync() print(f"Least busy: {backend['backend_name']}")

Find optimal qubit chains for linear experiments

chains = find_optimal_qubit_chains.sync(backend['backend_name'], chain_length=5) print(f"Best chain: {chains'chains'['qubits']}")

Find optimal qubits for Quantum Volume experiments

qv_qubits = find_optimal_qv_qubits.sync(backend['backend_name'], num_qubits=5) print(f"Best QV subgraph: {qv_qubits'subgraphs'['qubits']}")

Works in Jupyter notebooks (handles nested event loops automatically)

jobs = list_my_jobs.sync(limit=5) print(f"Recent jobs: {len(jobs['jobs'])}")

LangChain Integration Example:

Note: To run LangChain examples you will need to install the dependencies:

`bash

pip install langchain langchain-mcp-adapters langchain-openai python-dotenv

`

import asyncio

import os from langchain.agents import create_agent from langchain_mcp_adapters.client import MultiServerMCPClient from langchain_mcp_adapters.tools import load_mcp_tools from langchain_openai import ChatOpenAI from dotenv import load_dotenv

Load environment variables (QISKIT_IBM_TOKEN, OPENAI_API_KEY, etc.)

load_dotenv()

async def main():

Configure MCP client

mcp_client = MultiServerMCPClient({ "qiskit-ibm-runtime": { "transport": "stdio", "command": "qiskit-ibm-runtime-mcp-server", "args": [], "env": { "QISKIT_IBM_TOKEN": os.getenv("QISKIT_IBM_TOKEN", ""), "QISKIT_IBM_RUNTIME_MCP_INSTANCE": os.getenv("QISKIT_IBM_RUNTIME_MCP_INSTANCE", ""), }, } })

Use persistent session for efficient tool calls

async with mcp_client.session("qiskit-ibm-runtime") as session: tools = await load_mcp_tools(session)

Create agent with LLM

llm = ChatOpenAI(model="gpt-5.2", temperature=0) agent = create_agent(llm, tools)

Run a query

response = await agent.ainvoke("What QPUs are available and which one is least busy?") print(response)

asyncio.run(main())

For more LLM providers (Anthropic, Google, Ollama, Watsonx) and detailed examples including Jupyter notebooks, see the examples/ directory.

API Reference

Tools

These are the names MCP clients see in tools/list. Hosts can add a prefix to them (for example mcp__ __ ), so check how your client shows the name before you write an allowlist or a permission rule. The Python functions in qiskit_ibm_runtime_mcp_server.ibm_runtime (see Sync Usage) have the same names without the _tool suffix.

setup_ibm_quantum_account_tool(token: str = "", channel: str = "ibm_quantum_platform")

Configure IBM Quantum account with API token.

Parameters:

  • token (optional): IBM Quantum API token. If not provided, the function will:
  1. Check for QISKIT_IBM_TOKEN environment variable
  2. Use saved credentials from ~/.qiskit/qiskit-ibm.json
  • channel: Service channel (default: "ibm_quantum_platform")

Returns: Setup status and account information

Note: If you already have saved credentials or have set the QISKIT_IBM_TOKEN environment variable, you can call this function without parameters or skip it entirely and use other functions directly.

list_backends_tool()

Get list of available quantum backends.

Returns: Array of backend information including:

  • Name, status, queue length
  • Number of qubits, coupling map
  • Simulator vs. hardware designation
least_busy_backend_tool()

Get the current least busy IBM Quantum backend available.

Returns: The backend with the fewest number of pending jobs

get_backend_properties_tool(backend_name: str)

Get detailed properties of specific backend.

Returns: Complete backend configuration including:

  • Hardware specifications
  • Gate set and coupling map
  • Current operational status
  • Queue information
get_coupling_map_tool(backend_name: str)

Get the coupling map (qubit connectivity) for a backend with detailed analysis.

Supports both real backends (requires credentials) and fake backends (no credentials needed). Use fake_ prefix for offline testing (e.g., fake_sherbrooke, fake_brisbane).

Parameters:

  • backend_name: Name of the backend (e.g., ibm_brisbane or fake_sherbrooke)

Returns: Connectivity information including:

  • edges: List of [control, target] qubit connection pairs
  • adjacency_list: Neighbor mapping for each qubit
  • bidirectional: Whether all connections work in both directions
  • num_qubits: Total qubit count

Use cases:

  • Circuit optimization and qubit mapping
  • SWAP gate minimization planning
  • Offline testing with fake backends
get_backend_calibration_tool(backend_name: str, qubit_indices: list[int] | None = None)

Get calibration data for a backend including T1, T2 coherence times and error rates.

Parameters:

  • backend_name: Name of the backend (e.g., ibm_brisbane)
  • qubit_indices (optional): List of specific qubit indices. If not provided, returns data for the first 10 qubits.

Returns: Calibration data including:

  • T1 and T2 coherence times (in microseconds)
  • Qubit frequency (in GHz)
  • Readout errors for each qubit
  • Gate errors for common gates (x, sx, cx, etc.)
  • faulty_qubits

只显示了开头部分;其余内容请在仓库中阅读

问 PopNx