Skip to main content

MCP server for GPU monitoring: utilization, VRAM, temperature via nvidia-smi / NVML

Project description

mcp-name: io.github.mesutoezdil/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:

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.

Install

pip install mcp-gpu-server

Connect to your MCP client

Add this to your MCP client config file:

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

Run tests

python tests/test_gpu.py

Requirements

Python 3.10 or higher. NVIDIA GPU with drivers installed on the host machine.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mcp_gpu_server-0.1.3.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mcp_gpu_server-0.1.3-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

Details for the file mcp_gpu_server-0.1.3.tar.gz.

File metadata

  • Download URL: mcp_gpu_server-0.1.3.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.28.1

File hashes

Hashes for mcp_gpu_server-0.1.3.tar.gz
Algorithm Hash digest
SHA256 00d8278b89e2de95bc1a7244d3db6c3b50cbd45cdff72b80f75651032c71b73d
MD5 bfd0fd629c76456dc881c0e53b2f7e15
BLAKE2b-256 580eb3bdb8e2e9b85b6e10ef048af788549f194e98d448e1ee82761e74826060

See more details on using hashes here.

File details

Details for the file mcp_gpu_server-0.1.3-py3-none-any.whl.

File metadata

File hashes

Hashes for mcp_gpu_server-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 73bd9b6ea3635af145531e9a64268f53c5de79b75beaf2315e89dfb96a4abcb3
MD5 ac1c730d272abdc92ced312fd43f321e
BLAKE2b-256 119314db65618db0b6328f320675d6550c2d763b997e280d6509702eccbc9ffd

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page