
GPU MCP Server
io.github.pmady由 GitHub 帳號 pmady 發布v0.1.0更新於 Oct 24, 2026
NVIDIA GPU metrics as MCP tools — utilization, memory, temperature, power. Supports MIG.
概覽
本機 MCP 伺服器,把 NVIDIA GPU 指標(使用率、記憶體、溫度、功耗、PCIe 與 NVLink 吞吐量)以工具形式提供給 AI 助理。
- 可以做什麼
- 列出所有 GPU 及其使用率與記憶體資訊
- 依索引或 UUID 讀取單一 GPU 的詳細指標,包含溫度、功耗、PCIe 與 NVLink 吞吐量
- 查看 PID 層級的 GPU 程序歸屬
- 彙總所有裝置的統計資料
- 將 MIG 執行個體視為獨立裝置回報,並共用父 GPU 的指標
- 適用情境
- 適合助理需要檢視所在機器 GPU 硬體狀況時使用,例如查看使用率、記憶體壓力、溫度或功耗,或將 GPU 佔用歸因到特定程序,而不必架設 Prometheus 或 dcgm-exporter。
- 執行需求
- 以本機 stdio 程序執行,需要裝有 NVIDIA GPU 與驅動程式的機器。預先建置的容器映像需要 NVIDIA Container Toolkit 與 --gpus all 參數;從原始碼建置需要 Go 1.23+、CGO 以及 Linux 上的 NVML 標頭檔。未宣告任何帳號、API 金鑰或環境變數。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 GPU MCP Server,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
gpu-mcp-server
[CI] [Helm] [Go Report Card] [Go Reference] [License] [DOI] [OpenSSF Scorecard] [OpenSSF Best Practices]
Note: the OpenSSF Best Practices questionnaire is in progress. Once the project entry is registered at https://www.bestpractices.dev/en, swap the static badge above for the live one:
[](https://www.bestpractices.dev/projects/<ID>)
An MCP server that exposes NVIDIA GPU metrics as tools. Any MCP-compatible AI agent (Claude, Goose, Cursor, etc.) can query real-time GPU utilization, memory, temperature, power, PCIe and NVLink throughput no Prometheus or dcgm-exporter required.
Built on the official Go MCP SDK and NVIDIA go-nvml.
Tools
All tools support MIG (Multi-Instance GPU) - MIG instances appear as separate devices with their parent GPU's shared metrics (temperature, power, PCIe).
Sample output
Each tool returns structured JSON. The examples below show the shape of the data an agent receives from a node with two NVIDIA A100 GPUs.
list_gpus:
get_gpu_metrics (with {"index": 0} or {"uuid": "GPU-aaaa-1111"}):
gpu_summary:
MIG instances add is_mig, parent_gpu, and mig_profile fields to the
get_gpu_metrics and list_gpus payloads.
Quick start
Claude Desktop
Add to claude_desktop_config.json:
Goose
Cursor
Add to .cursor/mcp.json for a project, or ~/.cursor/mcp.json for all
projects:
Windsurf
Add to ~/.codeium/windsurf/mcp_config.json:
Build
Requires Go 1.23+, CGO, and NVIDIA drivers on the target machine.
Tests use a mock collector, so they run anywhere no GPU hardware required.
Docker
Prebuilt multi-arch images (linux/amd64, linux/arm64) are published to GHCR on every release.
The host needs the NVIDIA Container Toolkit
installed for --gpus all to work. The server speaks MCP over stdio, so the
-i flag is required — don't drop it.
Pin a specific version via tag instead of :latest, e.g. ghcr.io/pmady/gpu-mcp-server:v0.1.0.
Architecture
The server runs as a local process alongside the agent. It calls NVML directly through cgo — no sidecar, no network hops, no metric pipeline to configure.
Project info
- License: Apache 2.0
- Language: Go
- AAIF project alignment: MCP
- Related: keda-gpu-scaler (GPU autoscaling for Kubernetes)
- Whitepaper: GPU-Aware Autoscaling in Cloud Native AI Infrastructure — CNCF TAG Infrastructure initiative (TOC #2188)
Citing
If you use gpu-mcp-server in your research or writing, please cite it via its DOI. Full citation metadata is in CITATION.cff.
Roadmap
See ROADMAP.md for the 12-month public roadmap.
Contributing
See CONTRIBUTING.md for how to get involved.
Contributors
Thanks to all our contributors! Add yourself via PR.
Governance
This project follows Linux Foundation Minimum Viable Governance.
Documentation
- Full documentation - hosted on Read the Docs
- ROADMAP.md - public roadmap
- GOVERNANCE.md - decision-making process
- DEPENDENCIES.md - external dependencies and licenses
- SECURITY.md - vulnerability reporting
- AGENTS.md - instructions for AI agents working on this repo
- CODE_OF_CONDUCT.md - community standards
Star History
[Star History Chart]來源:README.md,提交 58306b7
工具
0版本歷史
1- v0.1.0最新Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分