GJQ Runtime MCP Server
OfficialThe GJQ Runtime MCP Server enables AI assistants to interact with the GuoJi Quantum Cloud Platform for submitting and managing quantum computing tasks.
Account Management
setup_gjq_account_tool– Configure and cache cloud API credentialsactive_account_info_tool– View active account info (API key masked)
Device/Backend Management
list_backends_tool– List all available quantum backends (devices and simulators)get_backend_configuration_tool– Get static configuration (basis gates, qubit count, etc.)get_backend_properties_tool– Get calibration properties (T1/T2 times, gate error rates)least_busy_tool– Find the least busy available backend
Quantum Circuit Execution
sample_tool– Submit a sampling task using an OpenQASM 2.0/3.0 circuit, with configurable shots, transpilation, and optimization levelestimate_tool– Submit an expectation-value estimation task with a specified observable (Pauli strings + coefficients)
Task Management
get_task_status_tool– Poll task status (INITIALIZING / QUEUED / RUNNING / DONE / ERROR / CANCELLED)get_task_result_tool– Retrieve results of a completed taskget_task_log_tool– Get the execution log of a taskget_task_detail_tool– View task details (backend used, shots, submission time)list_my_tasks_tool– List all tasks submitted by the current user
MCP Resources
Pre-built example circuits: Bell state, GHZ state, Superposition, and Random circuits (
circuits://*)Server status resource at
gjq://status
Allows interaction with the CETC-ICQ quantum cloud platform, providing tools for account management, device listing, circuit submission (sampling and estimation), and task management.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@GJQ Runtime MCP ServerList available quantum backends"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
GJQ-Runtime-MCP-Server
A Model Context Protocol (MCP) server that enables AI assistants to interact with the GuoJi Quantum Computing Cloud Platform via the gjq-client Python SDK.
Features
Account Management: Configure and view cloud platform credentials
Device Management: List backends, query configuration/calibration info, get the least busy backend
Compute Tasks: Submit sampling and estimation tasks from OpenQASM
Task Management: Poll status, get results/logs/details, list tasks
Example Circuits: Bell/GHZ/superposition/random, provided as MCP resources
Feature Showcase
Related MCP server: mcp-qiskit
Installation and Startup (using Cursor as an example)
Clone the repository and create a virtual environment
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 .Rename
.env.exampleto.env, then setGJQ_API_KEY=your_api_key. (API key obtained from https://www.tiangongqs.com/cloud)Start the MCP Server locally (verify it runs first)
python -m gjq_runtime_mcp_serverCreate
.cursor/mcp.jsonin the project root
# 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" }
}
}
}Verify in Cursor
Fully exit the Cursor process and reopen it.
Use
Ctrl + Shift + Pto openOpen Customize, select theMCPstab.Confirm that
gjq-runtimeis present, toggle it on, and check that a green dot appears.
MCP Tools
Account:
setup_gjq_account_tool,active_account_info_toolDevices:
list_backends_tool,get_backend_configuration_tool,get_backend_properties_tool,least_busy_toolComputation:
sample_tool,estimate_toolTasks:
get_task_status_tool,get_task_result_tool,get_task_log_tool,get_task_detail_tool,list_my_tasks_tool
All tools return {"status": "success" | "error", ...}.
OpenQASM 2.0 circuits work out of the box; to submit OpenQASM 3 circuits, install the parsing library additionally:
pip install qiskit_qasm3_import.
MCP Resources
gjq://status, circuits://bell-state, circuits://ghz-state, circuits://superposition, circuits://random
Other MCP Client Configuration
The JSON above applies to JSON-based clients such as Cursor and Claude Desktop.
Client | Configuration File |
Cursor |
|
Claude Desktop | macOS: |
Codex |
|
Codex uses TOML instead of JSON. Add the following to ~/.codex/config.toml
(the top-level table name must be 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
The accompanying skills are located in skills/gjq-quantum-runtime/.
To use them in Cursor, copy that directory to .cursor/skills/ (project-level) or
~/.cursor/skills/ (personal-level).
Security Notes
The API key is stored in plaintext in
~/.gjq_client/gjq_client_account.jsonand in theenvof the MCP client configuration. Treat it as confidential and never commit.env.
Development
pip install -e ".[test]"
pytestLicense
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