GJQ Runtime MCP Server
OfficialGJQ-Runtime-MCP-Server
Ein Model Context Protocol (MCP)-Server, der KI-Assistenten über das gjq-client Python SDK die Interaktion mit der Guoji Quantum Computing Cloud Platform ermöglicht.
Funktionen
Kontoverwaltung: Konfiguration und Anzeige der Cloud-Plattform-Anmeldeinformationen
Geräteverwaltung: Auflisten von Backends, Abfragen von Konfigurations-/Kalibrierungsinformationen, Abrufen des am wenigsten ausgelasteten Backends
Rechenaufgaben: Einreichen von Sampling- und Schätzung (Estimation)-Aufgaben aus OpenQASM
Aufgabenverwaltung: Abfragen des Status, Abrufen von Ergebnissen/Logs/Details, Auflisten von Aufgaben
Beispielschaltungen: Bell/GHZ/Überlagerung/Zufall, bereitgestellt als MCP-Ressourcen
Funktionsdemonstration
Related MCP server: mcp-qiskit
Installation und Start (am Beispiel von Cursor)
Repository klonen und virtuelle Umgebung erstellen
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.examplein.envumbenennen undGJQ_API_KEY=dein_api_keysetzen. (API-Key von https://www.tiangongqs.com/cloud abrufen)MCP-Server lokal starten (zuerst die Ausführbarkeit prüfen)
python -m gjq_runtime_mcp_serverIm Projektstammverzeichnis
.cursor/mcp.jsonerstellen
# 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" }
}
}
}In Cursor überprüfen
Cursor-Prozess vollständig beenden und erneut öffnen.
Mit
Ctrl + Shift + POpen Customizeöffnen, den ReiterMCPsauswählen.Sicherstellen, dass
gjq-runtimevorhanden ist, den Schalter aktivieren und prüfen, ob ein grüner Punkt angezeigt wird.
MCP-Werkzeuge
Konto:
setup_gjq_account_tool,active_account_info_toolGeräte:
list_backends_tool,get_backend_configuration_tool,get_backend_properties_tool,least_busy_toolRechnen:
sample_tool,estimate_toolAufgaben:
get_task_status_tool,get_task_result_tool,get_task_log_tool,get_task_detail_tool,list_my_tasks_tool
Alle Werkzeuge geben {"status": "success" | "error", ...} zurück.
OpenQASM 2.0-Schaltungen funktionieren sofort; für OpenQASM 3-Schaltungen muss zusätzlich die Parser-Bibliothek installiert werden:
pip install qiskit_qasm3_import.
MCP-Ressourcen
gjq://status, circuits://bell-state, circuits://ghz-state, circuits://superposition, circuits://random
Konfiguration anderer MCP-Clients
Das obige JSON ist für Cursor, Claude Desktop und andere JSON-basierte Clients geeignet.
Client | Konfigurationsdatei |
Cursor |
|
Claude Desktop | macOS: |
Codex |
|
Codex verwendet TOML statt JSON. Fügen Sie in ~/.codex/config.toml Folgendes hinzu
(Der oberste Tabellenname muss mcp_servers sein):
[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-Fähigkeiten
Die zugehörigen Fähigkeiten befinden sich in skills/gjq-quantum-runtime/.
Bei Verwendung in Cursor kopieren Sie das Verzeichnis nach .cursor/skills/ (projektebene) oder
~/.cursor/skills/ (benutzerebene).
Sicherheitshinweise
Der API-Key wird im Klartext in
~/.gjq_client/gjq_client_account.jsonsowie in derenv-Konfiguration des MCP-Clients gespeichert. Behandeln Sie ihn als vertraulich und committen Sie niemals.env.
Entwicklung
pip install -e ".[test]"
pytestLizenz
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