Sponsored by Deepsite.site

Qiskit Mcp Server

Created By
barvhaim5 months ago
Unofficial MCP Server for Qiskit (an open-source SDK for working with quantum computers)
Content

Qiskit MCP Server Unofficial Model Context Protocol (MCP) server that enables LLMs to build and execute quantum circuits using Qiskit.

Features

The server provides 13 MCP tools for comprehensive quantum circuit operations:

Core Tools (8)

  1. create_quantum_circuit Create a new quantum circuit with specified qubits and classical bits.

Parameters:

num_qubits (int): Number of quantum bits num_classical_bits (int, optional): Number of classical bits (defaults to num_qubits) name (string, optional): Custom name for the circuit (auto-generated if not provided) 2. add_gates Add quantum gates to an existing circuit.

Parameters:

circuit_name (string): Name of the circuit to modify gates (array): List of gate operations Supported gates:

h: Hadamard gate - {'type': 'h', 'qubits': [0]} x: Pauli-X gate - {'type': 'x', 'qubits': [0]} y: Pauli-Y gate - {'type': 'y', 'qubits': [0]} z: Pauli-Z gate - {'type': 'z', 'qubits': [0]} cx: CNOT gate - {'type': 'cx', 'qubits': [0, 1]} measure: Measure specific qubit - {'type': 'measure', 'qubits': [0], 'classical_bit': 0} measure_all: Measure all qubits - {'type': 'measure_all'} 3. run_circuit Execute a quantum circuit on the BasicSimulator.

Parameters:

circuit_name (string): Name of the circuit to run shots (int, optional): Number of measurement shots (default: 1000) Returns: JSON with measurement results and counts

  1. get_circuit_info Get detailed information about a circuit.

Parameters:

circuit_name (string): Name of the circuit Returns: JSON with circuit properties (qubits, depth, gate counts, etc.)

  1. visualize_circuit Get a text visualization of the quantum circuit.

Parameters:

circuit_name (string): Name of the circuit Returns: ASCII art representation of the circuit

  1. visualize_circuit_mermaid Generate a Mermaid flowchart diagram of the quantum circuit.

Parameters:

circuit_name (string): Name of the circuit to visualize Returns: Mermaid flowchart syntax representing the quantum circuit

  1. list_circuits List all created circuits with basic information.

Returns: JSON with all circuit names and their properties

Advanced Tools (6) 8. analyze_statevector Analyze the quantum state vector of a circuit.

Parameters:

circuit_name (string): Name of the circuit to analyze Returns: JSON with probabilities, amplitudes, and state analysis

  1. compute_density_matrix Compute and analyze the density matrix including purity and entanglement.

Parameters:

circuit_name (string): Name of the circuit to analyze Returns: JSON with purity, entropy, and entanglement information

  1. optimize_circuit Optimize a quantum circuit using Qiskit transpiler passes.

Parameters:

circuit_name (string): Name of the circuit to optimize optimization_level (int): Optimization level 0-3 Returns: JSON with optimization results and performance metrics

  1. add_advanced_gates Add advanced quantum gates beyond basic H, X, Y, Z, CX.

Parameters:

circuit_name (string): Name of the circuit to modify gates (array): List of advanced gate operations Supported advanced gates:

Rotation gates: rx, ry, rz, rxx, ryy, rzz Universal gate: u Clifford gates: s, sdg, t, tdg swap: SWAP gate 12. create_variational_circuit Create a variational quantum circuit for quantum machine learning.

Parameters:

num_qubits (int): Number of qubits num_layers (int): Number of layers (default: 1) entanglement (string): Entanglement pattern ('full', 'linear', 'circular') name (string, optional): Custom name for the circuit Returns: Success message with circuit details and parameter count

  1. implement_qft Implement Quantum Fourier Transform circuit.

Parameters:

num_qubits (int): Number of qubits for QFT inverse (bool): Whether to implement inverse QFT (default: false) name (string, optional): Custom name for the circuit Returns: Success message with QFT circuit details

Server Config

{
  "mcpServers": {
    "qiskit-mcp-server": {
      "command": "uv",
      "args": [
        "--directory",
        "/path/to/qiskit-mcp-server",
        "run",
        "main.py"
      ]
    }
  }
}
Recommend Servers
TraeBuild with Free GPT-4.1 & Claude 3.7. Fully MCP-Ready.
WindsurfThe new purpose-built IDE to harness magic
EdgeOne Pages MCPAn MCP service designed for deploying HTML content to EdgeOne Pages and obtaining an accessible public URL.
DeepChatYour AI Partner on Desktop
Amap Maps高德地图官方 MCP Server
Serper MCP ServerA Serper MCP Server
TimeA Model Context Protocol server that provides time and timezone conversion capabilities. This server enables LLMs to get current time information and perform timezone conversions using IANA timezone names, with automatic system timezone detection.
AiimagemultistyleA Model Context Protocol (MCP) server for image generation and manipulation using fal.ai's Stable Diffusion model.
Howtocook Mcp基于Anduin2017 / HowToCook (程序员在家做饭指南)的mcp server,帮你推荐菜谱、规划膳食,解决“今天吃什么“的世纪难题; Based on Anduin2017/HowToCook (Programmer's Guide to Cooking at Home), MCP Server helps you recommend recipes, plan meals, and solve the century old problem of "what to eat today"
Visual Studio Code - Open Source ("Code - OSS")Visual Studio Code
Tavily Mcp
Playwright McpPlaywright MCP server
ChatWiseThe second fastest AI chatbot™
Zhipu Web SearchZhipu Web Search MCP Server is a search engine specifically designed for large models. It integrates four search engines, allowing users to flexibly compare and switch between them. Building upon the web crawling and ranking capabilities of traditional search engines, it enhances intent recognition capabilities, returning results more suitable for large model processing (such as webpage titles, URLs, summaries, site names, site icons, etc.). This helps AI applications achieve "dynamic knowledge acquisition" and "precise scenario adaptation" capabilities.
CursorThe AI Code Editor
MiniMax MCPOfficial MiniMax Model Context Protocol (MCP) server that enables interaction with powerful Text to Speech, image generation and video generation APIs.
Context7Context7 MCP Server -- Up-to-date code documentation for LLMs and AI code editors
MCP AdvisorMCP Advisor & Installation - Use the right MCP server for your needs
Jina AI MCP ToolsA Model Context Protocol (MCP) server that integrates with Jina AI Search Foundation APIs.
Baidu Map百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
BlenderBlenderMCP connects Blender to Claude AI through the Model Context Protocol (MCP), allowing Claude to directly interact with and control Blender. This integration enables prompt assisted 3D modeling, scene creation, and manipulation.