Skip to main content

spinqit_mcp_tools Installation Guide

This project is based on mcp-server to support efficient invocation of SpinQ quantum computing hardware resources by AI large models.

This project provides one-click installation scripts for spinqit_mcp_tools on Windows and macOS. These scripts automatically check the Python environment (Python 3.10 is recommended) and install the required spinqit_mcp_tools dependency package. If no suitable Python environment is found, the scripts will attempt to create one using Conda or guide users to manually install Python.

Table of Contents

Prerequisites

Before running the installation scripts, ensure the following requirements are met:

  • Python 3.10 recommended: Use Python 3.10 for the current spinqit_mcp_tools environment.
  • Conda (optional): If Python 3.10 is not installed, the scripts can use Anaconda to create an environment. Download it from Anaconda.
  • Internet connection: Required for downloading the spinqit_mcp_tools package via pip.
  • macOS terminal permissions: Ensure the terminal supports bash.

Script Installation Steps

Windows

  1. Download the Script

  2. Run the Script

    • Double-click mcpenv-installer-win-x86_64.bat to execute the installation.
  3. Script Behavior

    • If Python 3.10 is already installed: The script will directly install the spinqit_mcp_tools package and output the Python environment path and the mcp-server execution command.
    • If Python 3.10 is not installed but Conda is available: The script will create a Conda environment named mcp-server-py310 using Python 3.10, install the dependencies, and output the environment path and execution command.
    • If neither Python 3.10 nor Conda is installed: The script will prompt you to download and install Python 3.10 or Conda from Python's official website or Anaconda's official website. After installation, rerun the script.
  4. Successful Installation

    • alt text
    • Note the execution command, for example C:\ProgramData\Anaconda3\envs\mcp-server-py310\python.exe -m spinqit_mcp_tools.qasm_submitter.
    • Register an account at SpinQ Cloud, configure your public key, and add PRIVATEKEYPATH, SPINQCLOUDUSERNAME, and SPINQCLOUDHOST to your MCP server settings. The default host is https://cloud.spinq.com/api, and other host addresses are also supported.

macOS

  1. Download the Script

  2. Run the Script

    • Execute the script with:

      sudo bash ./mcpenv-installer-mac.sh
      
  3. Script Behavior

    • Similar to the Windows script, the macOS script will:
      • Check for Python 3.10. If found, it will install spinqit_mcp_tools.
      • If Python 3.10 is not found, it will check for Conda and create a mcp-server-py310 environment.
      • If neither Python 3.10 nor Conda is installed, it will prompt you to install Python 3.10 or Conda and then rerun the script.

Output Results

After successful execution, the script will output the following information:

  • Python environment path: The path to the Python executable, e.g.:
    • Windows: C:\path\to\conda\envs\mcp-server-py310\python.exe
    • macOS: /path/to/conda/envs/mcp-server-py310/bin/python
  • mcp-server execution command: The command to run mcp-server, e.g.:
    • Windows: C:\path\to\conda\envs\mcp-server-py310\python.exe -m spinqit_mcp_tools.qasm_submitter
    • macOS: /path/to/conda/envs/mcp-server-py310/bin/python -m spinqit_mcp_tools.qasm_submitter

Save this information for configuring and running spinqit_mcp_tools.

Troubleshooting

  • Python not found or version below 3.10:
    • Download and install Python 3.10 from Python's official website, ensuring it is added to PATH.
    • Rerun the script after installation.
  • Conda not recognized:
    • Ensure Anaconda is installed and added to PATH if Python 3.10 is not present.
  • pip installation failure:
    • Check your internet connection.
  • Conda environment creation failure:

Usage

Use the Python installation directory to run:

/pathtopython/python -m spinqit_mcp_tools.qasm_submitter

Environment Testing

Create and submit a 2-qubit quantum circuit QASM to the cloud platform and view results.

  • Cursor

    • Configuration method

      alt text

    • Results

      alt text

    • Configuration settings

      {
        "mcpServers": {
          "qasm-submitter": {
            "type": "stdio",
            "command": "cmd",
            "args": [
              "/C",
              "C:\\Users\\ylin\\.conda\\envs\\mcp-server-py310\\python.exe",
              "-m",
              "spinqit_mcp_tools.qasm_submitter"
            ],
            "env": {
              "PRIVATEKEYPATH": "<Your Privatekey Path>",
              "SPINQCLOUDUSERNAME": "<Your SpinQ Cloud Username>",
              "SPINQCLOUDHOST": "https://cloud.spinq.com/api"
            }
          }
        }
      }
      
  • VSCode Cline Plugin

    • Configuration settings:

      {
        "mcpServers": {
          "qasm-submitter": {
            "disabled": false,
            "timeout": 60,
            "transportType": "stdio",
            "command": "cmd",
            "args": [
              "/C",
              "C:\\Users\\ylin\\.conda\\envs\\mcp-server-py310\\python.exe",
              "-m",
              "spinqit_mcp_tools.qasm_submitter"
            ],
            "env": {
              "PRIVATEKEYPATH": "<Your Privatekey Path>",
              "SPINQCLOUDUSERNAME": "<Your SpinQ Cloud Username>",
              "SPINQCLOUDHOST": "https://cloud.spinq.com/api"
            }
          }
        }
      }
      
    • Configuration method

      alt text

    • Results

      alt text

Manual Installation Steps

  • Install Python 3.10, then run:

    pip install spinqit_mcp_tools
    
  • Configure python -m spinqit_mcp_tools.qasm_submitter as the MCP client startup command.

  • Set the required environment variables: PRIVATEKEYPATH, SPINQCLOUDUSERNAME, and SPINQCLOUDHOST.

License

This project is licensed under the MIT License. See the LICENSE file for details.

Release files for spinqit-mcp-tools 0.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for spinqit-mcp-tools 0.0.3
File Size Uploaded
spinqit_mcp_tools-0.0.3.tar.gz 862.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for spinqit-mcp-tools 0.0.3
File Interpreter ABI Platform
spinqit_mcp_tools-0.0.3-py3-none-any.whl Python 3 none any Details

Total release size: 871.4 kB

Release files / spinqit_mcp_tools-0.0.3.tar.gz

Download URL spinqit_mcp_tools-0.0.3.tar.gz
Size 862.9 kB
Tags Source
SHA-256 checksum
How to use checksums
a51137d00ef1f0d374fa5488f61b72db50f7ea8bd1599f817ae05f6282c37779
BLAKE2b-256 checksum
How to use checksums
69f89656bf56dd5d6418b93da33257a496cf3f120206662ee0bba427ad303d6c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.10.19

Release files / spinqit_mcp_tools-0.0.3-py3-none-any.whl

Download URL spinqit_mcp_tools-0.0.3-py3-none-any.whl
Size 8.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
835763471f2282ab88e7fa2fef154ee49b441e794b50d5f2e44ef02dbcc02148
BLAKE2b-256 checksum
How to use checksums
3a3653ead00556ac786e68147f07acc5ec6d63de3d14149c45df91672f50fd3f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.10.19

Release history Release notifications | RSS feed

This release

0.0.3 This release

2 release files

0.0.2

2 release files

0.0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page