Skip to main content
ClaudeWave
moezdil avatar
moezdil

mcp-gpu-server

Ver en GitHub

MCP server that exposes NVIDIA GPU metrics (utilization, VRAM, temperature) as read-only tools via NVML or nvidia-smi

MCP ServersRegistry oficial0 estrellas1 forks● PythonActualizado today
ClaudeWave Trust Score
70/100
· OK
Passed
  • ✓Actively maintained (<30d)
  • ✓Clear description
  • ✓Topics declared
  • ✓Documented (README)
Flags
  • !No standard license detected
Last scanned: 10/22/2026
Install in Claude Code / Claude Desktop
Method: pip / Python · gpu-server
Claude Code CLI
claude mcp add mcp-gpu-server -- python -m gpu-server
claude_desktop_config.json (Claude Desktop)
{
  "mcpServers": {
    "mcp-gpu-server": {
      "command": "python",
      "args": ["-m", "gpu-server"]
    }
  }
}
1. Run the command above in your terminal (Claude Code), or paste the JSON config into claude_desktop_config.json (Claude Desktop).
2. Replace any <placeholder> values with your API keys or paths.
3. Restart Claude. The MCP server and its tools appear automatically.
💡 Install first: pip install gpu-server
Casos de uso

Resumen de MCP Servers

mcp-name: io.github.moezdil/mcp-gpu-server

# mcp-gpu-server

[![PyPI](https://img.shields.io/pypi/v/gpu-server)](https://pypi.org/project/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:

    gpu_info         GPU name, driver version, CUDA version
    gpu_utilization  core utilization % and memory bandwidth %
    gpu_vram         total, used, free VRAM in MiB and usage %
    gpu_temperature  GPU core temperature in Celsius
    gpu_stats        everything above in one call

Example response from gpu_stats:

    {
      "count": 1,
      "gpus": [{
        "index": 0,
        "name": "NVIDIA L40S",
        "driver": "580.126.09",
        "cuda": "13.0",
        "temp_c": 29,
        "gpu_pct": 0,
        "mem_pct": 0,
        "vram": {
          "total_mib": 46068,
          "used_mib": 610,
          "free_mib": 45457,
          "pct": 1.3
        }
      }]
    }

## 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

    pip install gpu-server

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](https://registry.modelcontextprotocol.io) as `io.github.moezdil/mcp-gpu-server`.

## Connect to your MCP client

Add this to your MCP client config file:

    {
      "mcpServers": {
        "gpu": {
          "command": "mcp-gpu-server"
        }
      }
    }

Or without installing anything, using [uv](https://docs.astral.sh/uv/):

    {
      "mcpServers": {
        "gpu": {
          "command": "uvx",
          "args": ["gpu-server"]
        }
      }
    }


## Run tests

    uv run pytest tests/test_server.py   # no GPU needed
    uv run python tests/test_gpu.py      # on a GPU host

## 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.

| | |
|---|---|
| GPU | NVIDIA GeForce RTX 3090, 24 GB |
| Driver / CUDA | 580.178.04 / 13.0 |
| Python | 3.14.4 |
| Packages | gpu-server 0.2.2, mcp 2.3.0, nvidia-ml-py 13.615.71 |

Install the published package and run the GPU integration test:

    python3 -m venv venv
    venv/bin/pip install gpu-server==0.2.2
    git clone --depth 1 https://github.com/moezdil/mcp-gpu-server.git repo
    venv/bin/python repo/tests/test_gpu.py

Result: all 37 checks passed, for both the NVML path and nvidia-smi.

Then call every tool through a real MCP client over stdio:

    import anyio, json, sys
    from mcp import Client, StdioServerParameters

    async def main():
        async with Client(StdioServerParameters(command=sys.argv[1])) as c:
            print("protocol:", c.protocol_version)
            for t in (await c.list_tools()).tools:
                r = await c.call_tool(t.name, {})
                print(t.name, t.annotations.read_only_hint, json.dumps(r.structured_content))

    anyio.run(main)

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:

    gpu_stats {"count": 1, "gpus": [{"index": 0, "name": "NVIDIA GeForce RTX 3090",
      "driver": "580.178.04", "cuda": "13.0", "temp_c": 42, "gpu_pct": 0, "mem_pct": 0,
      "vram": {"total_mib": 24576, "used_mib": 451, "free_mib": 24124, "pct": 1.8}}]}

## 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/
gpumcpmcp-servermodel-context-protocolnvidianvidia-sminvml

Lo que la gente pregunta sobre mcp-gpu-server

¿Qué es moezdil/mcp-gpu-server?

+

moezdil/mcp-gpu-server es mcp servers para el ecosistema de Claude AI. MCP server that exposes NVIDIA GPU metrics (utilization, VRAM, temperature) as read-only tools via NVML or nvidia-smi Tiene 0 estrellas en GitHub y su última actualización registrada es del 2026-10-21.

¿Cómo se instala mcp-gpu-server?

+

Puedes instalar mcp-gpu-server clonando el repositorio (https://github.com/moezdil/mcp-gpu-server) o siguiendo las instrucciones del README en GitHub. ClaudeWave también te ofrece bloques de instalación rápida en esta misma página.

¿Es seguro usar moezdil/mcp-gpu-server?

+

Nuestro agente de seguridad ha analizado moezdil/mcp-gpu-server y le ha asignado un Trust Score de 70/100 (tier: OK). Revisa el desglose completo de comprobaciones superadas y flags en esta página.

¿Quién mantiene moezdil/mcp-gpu-server?

+

moezdil/mcp-gpu-server es mantenido por moezdil. La última actividad registrada en GitHub es del 2026-10-21, con 0 issues abiertos.

¿Hay alternativas a mcp-gpu-server?

+

Sí. En ClaudeWave puedes explorar mcp servers similares en /categories/mcp, ordenados por popularidad o actividad reciente.

Despliega mcp-gpu-server en tu cloud

Lleva este repo a producción en minutos. Cada plataforma genera su propio entorno con variables de entorno editables.

¿Mantienes este repo? Añade un badge a tu README

Pega el badge en tu README de GitHub para mostrar que está auditado por ClaudeWave. Cada badge enlaza de vuelta a esta página y muestra el Trust Score actual.

Featured on ClaudeWave: moezdil/mcp-gpu-server
[![Featured on ClaudeWave](https://claudewave.com/api/badge/moezdil-mcp-gpu-server)](https://claudewave.com/repo/moezdil-mcp-gpu-server)
<a href="https://claudewave.com/repo/moezdil-mcp-gpu-server"><img src="https://claudewave.com/api/badge/moezdil-mcp-gpu-server" alt="Featured on ClaudeWave: moezdil/mcp-gpu-server" width="320" height="64" /></a>

Más MCP Servers

Alternativas a mcp-gpu-server