
GPU Server
io.github.mesutoezdil由 GitHub 账号 mesutoezdil 发布v0.1.3更新于 Nov 3, 2026
MCP server for GPU monitoring: nvidia-smi, VRAM, utilization, temperature
概览
本地 MCP 服务器,把 NVIDIA GPU 的名称、驱动、CUDA、利用率、显存和温度等指标以只读工具形式提供给助手查询。
- 可以做什么
- 读取 GPU 名称及驱动、CUDA 版本
- 查看核心利用率与显存控制器忙碌百分比
- 报告显存总量、已用、可用(MiB)及占用百分比
- 读取 GPU 核心温度(摄氏度)
- 一次调用返回以上全部信息
- 适用场景
- 适合想直接向助手询问所在机器 GPU 状态时使用,例如加载模型前确认显存余量、在任务运行中观察利用率和温度,而不必手动执行 nvidia-smi。
- 运行要求
- 以 Python 包形式通过 stdio 在本地运行(pip install gpu-server,或用 uvx gpu-server 免安装运行)。需要 Python 3.10 及以上、MCP Python SDK 2.x,以及装有驱动的 NVIDIA GPU;优先查询 NVML,不可用时回退到 nvidia-smi。未声明账号、密钥或环境变量。
安装
在 SourceWeft 中
- 打开 控制台中的 GPU Server,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
mcp-name: io.github.moezdil/mcp-gpu-server
mcp-gpu-server
An MCP server that exposes NVIDIA GPU metrics as tools. Once connected, any MCP-compatible client can query your GPU status in real time directly from a conversation.
What it does
Instead of running nvidia-smi manually, you ask your AI assistant and it calls these tools automatically:
Example response from gpu_stats:
How it works
Queries NVML (pynvml) directly when available. Falls back to nvidia-smi subprocess if NVML is not accessible. Returns clean JSON in both cases. The nvidia-smi query does not include the CUDA version, so cuda is null on that path.
Install
The package moved from mcp-gpu-server to gpu-server on PyPI in 0.2.1. The old name is frozen at 0.1.3, which does not start with mcp 2.x. The mcp-gpu-server command still works, and since 0.2.2 gpu-server does too.
Listed on the official MCP Registry as io.github.moezdil/mcp-gpu-server.
Connect to your MCP client
Add this to your MCP client config file:
Or without installing anything, using uv:
Run tests
Tested on real hardware
Release 0.2.2 was installed from PyPI into a clean virtual environment on a Linux host and tested against a real GPU on 2026-10-21.
Install the published package and run the GPU integration test:
Result: all 37 checks passed. They exercise the NVML path; the nvidia-smi fallback is only checked for presence, not parsed.
Then call every tool through a real MCP client over stdio:
Saved as e2e.py and run with venv/bin/python e2e.py venv/bin/gpu-server. Result: the client and server negotiated protocol 2026-07-28, all five tools are listed as read-only, and every call returned structured content without errors:
Requirements
Python 3.10 or higher, MCP Python SDK 2.x. NVIDIA GPU with drivers installed on the host machine.
Links
- PyPI: https://pypi.org/project/gpu-server/
- MCP Registry entry: https://registry.modelcontextprotocol.io/v0/servers?search=io.github.moezdil/mcp-gpu-server
- Model Context Protocol: https://modelcontextprotocol.io
- MCP Python SDK: https://github.com/modelcontextprotocol/python-sdk
- uv: https://docs.astral.sh/uv/
- NVML (nvidia-ml-py): https://pypi.org/project/nvidia-ml-py/
来源:README.md,提交 a52bdcf
工具
0版本历史
1- v0.1.3最新Sep 16, 2026
评分
已满足适用检查项的 40%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分
请在仓库或注册中心条目中声明许可证。