Spec Driven Development
MCP Server that facilitates spec-driven development workflows, not just Vibe Coding.
作者提供的说明(英文原文)
MCP server for IBM Quantum computing services through Qiskit IBM Runtime
这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。
我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。
选择你使用的 AI 应用,然后复制设置。
QISKIT_IBM_TOKEN, QISKIT_IBM_RUNTIME_MCP_INSTANCE标为机密的值是你账户的钥匙。千万不要分享给别人,也不要粘贴到聊天里。
你需要
你用的是哪个应用?
在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。
打开 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/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"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
粘贴到项目中的 .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_RUNTIME_MCP_INSTANCE env这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月6日
注册名称已通过 GitHub 账户 Qiskit 验证,该账户拥有此仓库
我们还没有从 GitHub 读取这个仓库
我们还没有从 GitHub 读取这个仓库
它在你的电脑上运行,没有互联网端点
在你的电脑上运行,改用本地设置
它在你的电脑上运行;我们只能读取互联网端点的工具列表
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
它在 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
MCP Server that facilitates spec-driven development workflows, not just Vibe Coding.
Remote Desktop Commander: use files, terminal and processes on your own computers from any AI app.
Drive a self-hosted Reelsaw: turn long videos into vertical clips, edit, re-render and export them.
按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。
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.
The easiest way to install is via pip:
pip install qiskit-ibm-runtime-mcp-server
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/
# This will create a virtual environment and install dependencies
uv sync
Option A: Environment Variable (Recommended)
# Copy the example environment file
cp .env.example .env
export QISKIT_IBM_TOKEN="your_token_here"
export QISKIT_IBM_RUNTIME_MCP_INSTANCE="your-instance-crn"
Option B: Save Credentials Locally
from qiskit_ibm_runtime import QiskitRuntimeService
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:
setup_ibm_quantum_account_tool()QISKIT_IBM_TOKEN environment variable~/.qiskit/qiskit-ibm.jsonInstance Configuration (Optional): To speed up service initialization, you can specify your IBM Quantum instance:
QISKIT_IBM_RUNTIME_MCP_INSTANCE environment variable with your instance CRNInstance Priority:
save_account(instance="...")), the SDK uses it automaticallyQISKIT_IBM_RUNTIME_MCP_INSTANCE overrides any instance saved in credentialsNote:
QISKIT_IBM_RUNTIME_MCP_INSTANCEis an MCP server-specific variable, not a standard Qiskit SDK environment variable.
uv run qiskit-ibm-runtime-mcp-server
The server will start and listen for MCP connections.
# 1. Setup IBM Quantum Account (optional if credentials already configured)
await setup_ibm_quantum_account() # Uses saved credentials/env var
await setup_ibm_quantum_account(token="your_token_here") # Explicit token
backends = await list_backends() print(f"Available backends: {len(backends['backends'])}")
backend = await least_busy_backend() print(f"Least busy backend: {backend}")
backend_props = await get_backend_properties("backend_name") print(f"Backend_name properties: {backend_props}")
jobs = await list_my_jobs(10) print(f"Last 10 jobs: {jobs}")
job_status = await get_job_status("job_id") print(f"Job status: {job_status}")
results = await get_job_results("job_id") print(f"Counts: {results['counts']}")
cancelled_job = await cancel_job("job_id") print(f"Cancelled job: {cancelled_job}")
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 )
setup_ibm_quantum_account.sync() # No token needed if already configured
backends = list_backends.sync() print(f"Available backends: {backends['total_backends']}")
backend = least_busy_backend.sync() print(f"Least busy: {backend['backend_name']}")
chains = find_optimal_qubit_chains.sync(backend['backend_name'], chain_length=5) print(f"Best chain: {chains'chains'['qubits']}")
qv_qubits = find_optimal_qv_qubits.sync(backend['backend_name'], num_qubits=5) print(f"Best QV subgraph: {qv_qubits'subgraphs'['qubits']}")
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_dotenv()
async def main():
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", ""), }, } })
async with mcp_client.session("qiskit-ibm-runtime") as session: tools = await load_mcp_tools(session)
llm = ChatOpenAI(model="gpt-5.2", temperature=0) agent = create_agent(llm, tools)
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.
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:QISKIT_IBM_TOKEN environment variable~/.qiskit/qiskit-ibm.jsonchannel: 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:
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:
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 pairsadjacency_list: Neighbor mapping for each qubitbidirectional: Whether all connections work in both directionsnum_qubits: Total qubit countUse cases:
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:
faulty_qubits只显示了开头部分;其余内容请在仓库中阅读