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

Qiskit MCP Server

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

安装

概览

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

MCP server for Qiskit quantum computing with circuit serialization utilities

PopNx MCP 的三大支柱

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

它能帮你做什么

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

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

安装

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

安装之前

  • 基础检查:1 项中通过 1 项
  • 在你的电脑上运行,拥有你的用户账户的权限(文件、网络、应用)。
  • 注册中心没有列出需要填写的密钥。

你需要

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

你用的是哪个应用?

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

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

{
  "mcpServers": {
    "qiskit": {
      "command": "uvx",
      "args": [
        "qiskit-mcp-server"
      ]
    }
  }
}

在终端中运行这条命令

claude mcp add qiskit -- uvx qiskit-mcp-server

在 Cursor 中打开

或者自己复制设置

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

{
  "mcpServers": {
    "qiskit": {
      "command": "uvx",
      "args": [
        "qiskit-mcp-server"
      ]
    }
  }
}

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

在 VS Code 中打开

或者自己复制设置

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

{
  "servers": {
    "qiskit": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "qiskit-mcp-server"
      ]
    }
  }
}

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

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

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

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

它能做什么

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

基础检查i

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

  • ✓ 通过

    作者与仓库一致

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

  • … 尚未检查

    仍在维护

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

  • … 尚未检查

    有许可证

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

  • – 不适用

    端点有响应

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

  • – 不适用

    使用 OAuth 登录

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

  • … 尚未检查

    工具描述中没有隐藏指令

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

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

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

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

常见问题

Qiskit MCP Server 安全吗?

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

它需要哪些密钥或代码?

注册中心没有列出必需的密钥,不过有些服务器会在首次使用时要求你登录。

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

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

它还在维护吗?

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

哪些应用可以使用它?

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

有什么可以替代它?

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

替代选择

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

如何看卡片:★ 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昨天更新
安装

Toggl 2.0

作者:toggl

Toggl 2.0 MCP server for tasks, projects, time entries, and workspace operations.

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

作者的 README

打开 README

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

Qiskit MCP Server

A Model Context Protocol (MCP) server that provides quantum circuit transpilation capabilities using Qiskit's pass managers. This server enables AI assistants to optimize quantum circuits for various hardware targets.

Features

  • Circuit Transpilation: Transpile quantum circuits with configurable optimization levels (0-3)
  • Preset Basis Gates: Support for IBM Eagle, IBM Heron, ion trap, and other basis gate sets
  • Topology Support: Built-in support for linear, ring, grid, and custom coupling maps
  • Circuit Analysis: Analyze circuit complexity without transpilation
  • Optimization Comparison: Compare results across all optimization levels
  • Dual API: Supports both async (MCP) and sync (Jupyter, scripts) usage

Prerequisites

  • Python 3.10 or higher
  • uv package manager (recommended) or pip

Installation

From PyPI (when published)
pip install qiskit-mcp-server
From Source
# Clone the repository

git clone https://github.com/Qiskit/mcp-servers.git cd mcp-servers/qiskit-mcp-server

Install with uv

uv sync

Or with pip

pip install -e .

Quick Start

Running the MCP Server
# With uv

uv run qiskit-mcp-server

Or directly

qiskit-mcp-server

Claude Desktop Configuration

Add to your Claude Desktop configuration (claude_desktop_config.json):

{

"mcpServers": { "qiskit": { "command": "uv", "args": [ "--directory", "/path/to/qiskit-mcp-servers/qiskit-mcp-server", "run", "qiskit-mcp-server" ] } } }

Usage Examples

Async Usage (MCP Server / FastAPI)
from qiskit_mcp_server.transpiler import transpile_circuit

Simple Bell state circuit (QASM2 - automatically detected)

qasm = """OPENQASM 2.0; include "qelib1.inc"; qreg q[2]; creg c[2]; h q[0]; cx q[0], q[1]; measure q -> c; """

Transpile with default settings (optimization level 2, QASM3 format)

result = await transpile_circuit(qasm)

Transpile for IBM Heron processor

result = await transpile_circuit( qasm, optimization_level=3, basis_gates="ibm_heron", coupling_map="linear" )

Using QPY Format
from qiskit import QuantumCircuit

from qiskit_mcp_server import dump_qpy_circuit from qiskit_mcp_server.transpiler import transpile_circuit

Create a circuit programmatically

qc = QuantumCircuit(2, 2) qc.h(0) qc.cx(0, 1) qc.measure([0, 1], [0, 1])

Convert to QPY (preserves exact parameters and metadata)

qpy_circuit = dump_qpy_circuit(qc)

Transpile using QPY format

result = await transpile_circuit(qpy_circuit, circuit_format="qpy")

Result includes transpiled circuit in QPY format (for chaining)

transpiled_qpy = result"transpiled_circuit"

Chain to another operation using QPY

result2 = await transpile_circuit(transpiled_qpy, circuit_format="qpy", optimization_level=3)

Sync Usage (Scripts, Jupyter)
from qiskit_mcp_server.transpiler import transpile_circuit, analyze_circuit

All async functions have a .sync attribute

result = transpile_circuit.sync(qasm, optimization_level=2)

Analyze circuit without transpiling

analysis = analyze_circuit.sync(qasm) print(f"Circuit depth: {analysis'circuit_info'}") print(f"Two-qubit gates: {analysis'gate_categories'}")

Compare Optimization Levels
from qiskit_mcp_server.transpiler import compare_optimization_levels

Compare all optimization levels (0-3) for your circuit

comparison = compare_optimization_levels.sync(qasm)

for level in range(4): result = comparison'optimization_results' print(f"Level {level}: depth={result['depth']}, size={result['size']}")

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 (OPENAI_API_KEY, etc.)

load_dotenv()

Sample Bell state circuit

SAMPLE_BELL = """ OPENQASM 3.0; include "stdgates.inc"; qubit[2] q; h q[0]; cx q[0], q[1]; """

async def main():

Configure MCP client

mcp_client = MultiServerMCPClient({ "qiskit": { "transport": "stdio", "command": "qiskit-mcp-server", "args": [], "env": {}, } })

Use persistent session for efficient tool calls

async with mcp_client.session("qiskit") 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(f"Transpile this circuit for IBM Heron: {SAMPLE_BELL}") 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
ToolDescription
transpile_circuit_toolTranspile a circuit with configurable optimization
analyze_circuit_toolAnalyze circuit structure without transpiling
compare_optimization_levels_toolCompare all optimization levels (0-3)
load_circuit_from_qasm_toolLoad a circuit from OpenQASM 2.0 or 3.0 string, returning QPY and metadata
export_circuit_to_qasm_toolExport a QPY circuit to OpenQASM 2.0 or 3.0 format
convert_qpy_to_qasm3_toolConvert a base64-encoded QPY circuit to QASM3
convert_qasm3_to_qpy_toolConvert a QASM3 (or QASM2) circuit to base64-encoded QPY
Resources
Resource URIDescription
qiskit://transpiler/infoTranspiler capabilities and documentation
qiskit://transpiler/basis-gatesAvailable basis gate presets
qiskit://transpiler/topologiesAvailable coupling map topologies
Core Functions
transpile_circuit(circuit, optimization_level=2, basis_gates=None, coupling_map=None, initial_layout=None, seed_transpiler=None, circuit_format="qasm3")

Transpile a quantum circuit using Qiskit's preset pass managers.

Parameters:

  • circuit: Quantum circuit as QASM3 string, base64-encoded QPY, or QASM2 string (max 100 qubits, 10,000 gates)
  • optimization_level: 0-3 (default: 2)
  • 0: No optimization, only basis gate decomposition (fastest)
  • 1: Light optimization with default layout
  • 2: Medium optimization with noise-aware layout (recommended)
  • 3: Heavy optimization for best results (can be slow for large circuits)
  • basis_gates: List of gate names or preset ("ibm_default", "ibm_heron", etc.)
  • coupling_map: List of edges or topology name ("linear", "ring", "grid", "full")
  • initial_layout: List of physical qubit indices (length must match circuit qubits)
  • seed_transpiler: Random seed for reproducibility
  • circuit_format: Format of the input circuit ("qasm3" or "qpy"). Defaults to "qasm3". When "qasm3" is specified, QASM2 is also accepted as a fallback.

Returns: Dictionary with original/transpiled circuit info and optimization metrics

Note: Level 3 optimization can be very slow for circuits with >20 qubits or >500 gates. Use level 2 for faster results with good quality.

analyze_circuit(circuit, circuit_format="qasm3")

Analyze circuit structure and complexity.

Returns: Dictionary with gate counts, depth, and categorization (single/two/multi-qubit gates)

compare_optimization_levels(circuit, circuit_format="qasm3")

Compare transpilation results across all optimization levels.

Returns: Dictionary comparing depth, size, and gates for levels 0-3

Circuit Format Support

The server supports two circuit formats for input:

FormatDescription
qasm3OpenQASM 3.0 string (with QASM2 fallback). Human-readable text format.
qpyBase64-encoded QPY binary format. Preserves exact parameters and metadata.

QPY output: All tools return circuits in QPY format (base64-encoded) for precision when chaining tools/servers.

When to use each format:

  • QASM3 (input): Best for human-readable circuits and initial input
  • QPY (input/output): Best for preserving exact numerical parameters when chaining tools/servers
Converting QPY to Human-Readable QASM3

To view a QPY circuit output in human-readable format, use the qpy_to_qasm3 utility:

from qiskit_mcp_server import qpy_to_qasm3

from qiskit_mcp_server.transpiler import transpile_circuit

Transpile a circuit (returns QPY format)

result = transpile_circuit.sync(qasm_circuit, optimization_level=2) qpy_output = result"transpiled_circuit"

Convert to human-readable QASM3

conversion = qpy_to_qasm3(qpy_output) if conversion["status"] == "success": print(conversion["qasm3"])

Converting QASM3 to QPY

To convert a QASM circuit to QPY format (for full fidelity when chaining tools), use qasm3_to_qpy:

from qiskit_mcp_server import qasm3_to_qpy

qasm_circuit = ''' OPENQASM 3.0; include "stdgates.inc"; qubit[2] q; h q[0]; cx q[0], q[1]; '''

Convert to QPY format

result = qasm3_to_qpy(qasm_circuit) if result["status"] == "success": qpy_string = result["circuit_qpy"]

Use qpy_string with tools that accept QPY input

Available Basis Gate Sets
PresetGatesDescription
ibm_eagleid, rz, sx, x, ecr, resetIBM Eagle r3 (127 qubits, uses ECR)
ibm_heronid, rz, sx, x, cz, resetIBM Heron (133-156 qubits, uses CZ)
ibm_legacyid, rz, sx, x, cx, resetOlder IBM systems (uses CX)

You can also provide a custom list of gate names for other hardware targets.

Available Topologies
TopologyDescription
linearChain connectivity (qubit i ↔ i+1)
ringLinear with wraparound
grid2D grid connectivity
heavy_hexIBM heavy-hex topology (Eagle/Heron architecture)
fullAll-to-all connectivity

Limits and Performance

Circuit Size Limits

To ensure reliable performance, the server enforces the following limits:

LimitDefaultEnvironment Variable
Maximum qubits100QISKIT_MCP_MAX_QUBITS
Maximum gates10,000QISKIT_MCP_MAX_GATES

Circuits exceeding these limits will return an error with a descriptive message.

You can override these limits via environment variables:

# Allow up to 200 qubits and 50,000 gates

export QISKIT_MCP_MAX_QUBITS=200 export QISKIT_MCP_MAX_GATES=50000

Performance Recommendations
Optimization LevelUse CasePerformance
0Quick iterations, debuggingFastest
1Development, prototypingFast
2Production use (recommended)Balanced
3Critical applications, small circuitsSlowest

Tips:

  • Use level 2 for most use cases (best balance of quality and speed)
  • Use level 3 only when circuit quality is critical AND circuit is small (<20 qubits, <500 gates)
  • Use level 0 or 1 for rapid prototyping and development
  • The `compare_optimizatio

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

问 PopNx