Skip to main content
Glama
guoji-quantum

GJQ Runtime MCP Server

Official

GJQ-Runtime-MCP-Server

Model Context Protocol(MCP)サーバーで、AIアシスタントがgjq-clientPython SDKを通じて国基量子計算クラウドプラットフォームと対話できるようにします。

機能

  • アカウント管理:クラウドプラットフォームの認証情報を設定・表示

  • デバイス管理:バックエンド一覧表示、構成/校正情報の取得、最も空いているバックエンドの取得

  • 計算タスク:OpenQASMからのサンプリング(sampling)と期待値推定(estimation)タスクの送信

  • タスク管理:ステータスのポーリング、結果/ログ/詳細の取得、タスク一覧表示

  • サンプル回路:Bell/GHZ/重ね合わせ/ランダムをMCPリソースとして提供

機能デモ

Related MCP server: mcp-qiskit

インストールと起動(Cursorを例に)

  1. リポジトリをクローンし、仮想環境を作成

git clone <this-repo>
cd gjq-runtime-mcp-server
python -m venv .venv

# Windows
.\.venv\Scripts\activate
# Linux/macOS
source .venv/bin/activate

pip install -e .
  1. .env.example.env にリネームし、GJQ_API_KEY=あなたの_api_key を設定します。(APIキーは https://www.tiangongqs.com/cloud から取得)

  2. ローカルでMCPサーバーを起動(まず実行可能か確認)

python -m gjq_runtime_mcp_server
  1. プロジェクトルートに .cursor/mcp.json を作成

# Windows(该行去除)
{
  "mcpServers": {
    "gjq-runtime": {
      "command": ".venv\\Scripts\\python.exe",
      "args": ["-m", "gjq_runtime_mcp_server"],
      "cwd": "/path/to/gjq-runtime-mcp-server",
      "env": { "GJQ_API_KEY": "你的_api_key" }
    }
  }
}

# Linux/macOS(该行去除)
{
  "mcpServers": {
    "gjq-runtime": {
      "command": ".venv/bin/python",
      "args": ["-m", "gjq_runtime_mcp_server"],
      "cwd": "/path/to/gjq-runtime-mcp-server",
      "env": { "GJQ_API_KEY": "你的_api_key" }
    }
  }
}
  1. Cursorで確認

  • Cursorプロセスを完全に終了して再度開く。

  • Ctrl + Shift + POpen Customize を開き、MCPs タブを選択。

  • gjq-runtime が表示されていることを確認し、スイッチをオンにして緑色の点が表示されることを確認。

MCPツール

  • アカウント:setup_gjq_account_toolactive_account_info_tool

  • デバイス:list_backends_toolget_backend_configuration_toolget_backend_properties_toolleast_busy_tool

  • 計算:sample_toolestimate_tool

  • タスク:get_task_status_toolget_task_result_toolget_task_log_toolget_task_detail_toollist_my_tasks_tool

すべてのツールは {"status": "success" | "error", ...} を返します。

回路送信時、OpenQASM 2.0 はそのまま使用可能です。OpenQASM 3 回路を送信する場合は、追加でパースライブラリをインストールしてください: pip install qiskit_qasm3_import

MCPリソース

gjq://statuscircuits://bell-statecircuits://ghz-statecircuits://superpositioncircuits://random

その他のMCPクライアント設定

上記のJSONは、Cursor、Claude DesktopなどJSONベースの設定を使用するクライアントに適用されます。

クライアント

設定ファイル

Cursor

.cursor/mcp.json(プロジェクトルート)

Claude Desktop

macOS:~/Library/Application Support/Claude/claude_desktop_config.json

Codex

~/.codex/config.toml(TOML形式、下記参照)

CodexはJSONではなくTOMLを使用します。~/.codex/config.toml に以下の内容を追加してください (トップレベルのテーブル名は mcp_servers である必要があります):

[mcp_servers.gjq-runtime]
command = "/path/to/gjq-runtime-mcp-server/.venv/bin/python"
args = ["-m", "gjq_runtime_mcp_server"]
cwd = "/path/to/gjq-runtime-mcp-server"

[mcp_servers.gjq-runtime.env]
GJQ_API_KEY = "你的_api_key"

Agentスキル

付属のスキルは skills/gjq-quantum-runtime/ にあります。 Cursorで使用するには、このディレクトリを .cursor/skills/(プロジェクトレベル)または ~/.cursor/skills/(個人レベル)にコピーしてください。

セキュリティ注意事項

  • APIキーは ~/.gjq_client/gjq_client_account.json およびMCPクライアント設定の env平文で保存されます。機密情報として適切に管理し、.env をコミットしないでください。

開発

pip install -e ".[test]"
pytest

ライセンス

Apache License 2.0

Install Server
A
license - permissive license
A
quality
B
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • F
    license
    A
    quality
    D
    maintenance
    This MCP server enables Claude Desktop to create, visualize, and simulate quantum circuits using Qiskit and Qiskit Aer, with support for preset circuits, custom QASM, and noise modeling.
    3
  • A
    license
    Not graded
    quality
    C
    maintenance
    MCP server exposing Qiskit quantum computing functionality through the Model Context Protocol. Enables LLMs to create, manipulate, and execute quantum circuits via standardized MCP tools and resources.
    MIT
  • A
    license
    Not graded
    quality
    A
    maintenance
    MCP server for quantum device physics laboratory instrumentation control, enabling LLMs to interact with physics instruments and measurement systems through QCodes and JupyterLab.
    27
    MIT
  • A
    license
    Not graded
    quality
    A
    maintenance
    An MCP server that provides real-time IBM Quantum device data including queue depths, error rates, and coherence times, enabling AI assistants to query and compare quantum hardware.
    6
    MIT

View all related MCP servers

Related MCP Connectors

  • MCP server for AI dialogue using various LLM models via AceDataCloud

  • MCP server for Gainium — manage trading bots, deals, and balances via AI assistants

  • MCP server for GLM chat completions using Zhipu AI models via AceDataCloud

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/guoji-quantum/gjq-runtime-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server