GJQ Runtime MCP Server
OfficialGJQ-Runtime-MCP-Server
Model Context Protocol(MCP)サーバーで、AIアシスタントがgjq-clientPython SDKを通じて国基量子計算クラウドプラットフォームと対話できるようにします。
機能
アカウント管理:クラウドプラットフォームの認証情報を設定・表示
デバイス管理:バックエンド一覧表示、構成/校正情報の取得、最も空いているバックエンドの取得
計算タスク:OpenQASMからのサンプリング(sampling)と期待値推定(estimation)タスクの送信
タスク管理:ステータスのポーリング、結果/ログ/詳細の取得、タスク一覧表示
サンプル回路:Bell/GHZ/重ね合わせ/ランダムをMCPリソースとして提供
機能デモ
Related MCP server: mcp-qiskit
インストールと起動(Cursorを例に)
リポジトリをクローンし、仮想環境を作成
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 ..env.exampleを.envにリネームし、GJQ_API_KEY=あなたの_api_keyを設定します。(APIキーは https://www.tiangongqs.com/cloud から取得)ローカルでMCPサーバーを起動(まず実行可能か確認)
python -m gjq_runtime_mcp_serverプロジェクトルートに
.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" }
}
}
}Cursorで確認
Cursorプロセスを完全に終了して再度開く。
Ctrl + Shift + PでOpen Customizeを開き、MCPsタブを選択。gjq-runtimeが表示されていることを確認し、スイッチをオンにして緑色の点が表示されることを確認。
MCPツール
アカウント:
setup_gjq_account_tool、active_account_info_toolデバイス:
list_backends_tool、get_backend_configuration_tool、get_backend_properties_tool、least_busy_tool計算:
sample_tool、estimate_toolタスク:
get_task_status_tool、get_task_result_tool、get_task_log_tool、get_task_detail_tool、list_my_tasks_tool
すべてのツールは {"status": "success" | "error", ...} を返します。
回路送信時、OpenQASM 2.0 はそのまま使用可能です。OpenQASM 3 回路を送信する場合は、追加でパースライブラリをインストールしてください:
pip install qiskit_qasm3_import。
MCPリソース
gjq://status、circuits://bell-state、circuits://ghz-state、circuits://superposition、circuits://random
その他のMCPクライアント設定
上記のJSONは、Cursor、Claude DesktopなどJSONベースの設定を使用するクライアントに適用されます。
クライアント | 設定ファイル |
Cursor |
|
Claude Desktop | macOS: |
Codex |
|
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
Maintenance
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
- FlicenseAqualityDmaintenanceThis 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
- AlicenseNot gradedqualityCmaintenanceMCP 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
- AlicenseNot gradedqualityAmaintenanceMCP server for quantum device physics laboratory instrumentation control, enabling LLMs to interact with physics instruments and measurement systems through QCodes and JupyterLab.27MIT
- AlicenseNot gradedqualityAmaintenanceAn 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.6MIT
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
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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