tianyan-mcp-server
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., "@tianyan-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.
Tianyan MCP Server
只读查询天衍云公开量子计算机和量子仿真机的 Streamable HTTP MCP Server。
当前 MVP 提供两个 Tool:
list_available_quantum_backends:查询当前运行中的量子计算机和量子仿真机;get_quantum_backend:按id或code精确查询资源详情。
前置条件
Python 3.11 或更高版本;
uv;
天衍云列表接口的网络访问能力。
Related MCP server: luogu-mcp-server
安装
uv sync依赖只安装到项目 .venv,无需全局安装 Python 包。
启动 Streamable HTTP
只在当前 PowerShell 进程设置 API Key,不要写入代码、README 或提交到 Git:
$env:TIANYAN_MCP_API_KEY = 'replace-with-at-least-32-characters'
uv run tianyan-mcp-http默认 MCP Endpoint:
http://127.0.0.1:8000/mcpClient 必须发送:
Authorization: Bearer <api-key>默认只监听 loopback。应用自身不终止 TLS,也不提供公网部署能力。
环境变量
名称 | 默认值 | 说明 |
| 无 | HTTP 模式必填,去除首尾空白后至少 32 字符 |
| 空 | 逗号分隔的精确 Origin;空值拒绝所有带 Origin 的请求 |
|
| 逗号分隔的主机名,不包含端口 |
|
| 天衍云请求超时,范围 |
|
| ASGI 监听地址 |
|
| ASGI 监听端口 |
|
| 只有值为 |
TIANYAN_MCP_ALLOWED_ORIGINS 不支持 *。浏览器请求携带 Origin 时,必须与白名单完全匹配;非浏览器 MCP Client 未携带 Origin 时可继续认证。
健康检查
/healthz 不要求 Bearer API Key,且不会调用天衍云:
Invoke-WebRequest -UseBasicParsing -Uri 'http://127.0.0.1:8000/healthz'本地 stdio 调试
stdio 模式不要求 TIANYAN_MCP_API_KEY,仅用于本地进程集成:
uv run tianyan-mcp-stdio测试
默认测试不访问网络:
uv run ruff format --check .
uv run ruff check .
uv run pyright
uv run pytest --cov=tianyan_mcp --cov-report=term-missing --cov-fail-under=90只有在明确需要验证天衍云真实只读接口时,才在当前 PowerShell 进程显式启用:
$env:TIANYAN_LIVE_TEST = '1'
uv run pytest tests/test_live.py -q真实测试只执行列表查询和按返回资源 id 查询详情,不调用写接口。
HTTPS 边界
应用只提供 HTTP。正式环境必须在 Nginx、云负载均衡或 API 网关终止 TLS,并显式配置允许的 Host 与 Origin。当前项目不负责域名、证书或公网部署。
能力边界
仅支持量子计算机和量子仿真机;
列表只返回
status=0的运行中资源;详情查询可以返回校准中或升级中的已知资源;
不包含 HPC、天衍-P2000、任务提交、任务取消和资源修改;
不转发 MCP 调用方的
Authorization、Cookie 或其他凭证到天衍云。
This server cannot be installed
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
- Flicense-qualityDmaintenanceRead-only MCP server for Yandex Cloud resources including VMs, networks, disks, and more, with support for cloud/organization level access.Last updated2
- AlicenseAqualityBmaintenanceA read-only MCP server for discovering and fetching Luogu problems, training sets, and user profiles.Last updated11342MIT
- AlicenseAqualityBmaintenanceRead-only MCP server for the RareCloud API, enabling AI agents to list servers, browse the catalog, check billing, and plan deployments.Last updated10021MIT
- Alicense-qualityBmaintenanceA read-only MCP server for querying telemetry data from configurable backends. Provides tools to list sources, describe schemas, run bounded queries, and compute aggregates.Last updatedMIT
Related MCP Connectors
Read-only MCP server for wafergraph.com's semiconductor & AI supply-chain data: 30 tools, no auth.
Read-only MCP server for ClassQuill, a tutoring-business-management platform.
Read-only MCP server for searching Japan government procurement bid information from the KKJ portal.
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/bluesky050/tianyan-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server