Skip to main content

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.

Metadata

Release files for mcp-gpu-server 0.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mcp-gpu-server 0.1.3
File Size Uploaded Provenance Actions
mcp_gpu_server-0.1.3.tar.gz 4.0 kB Without provenance Details for mcp_gpu_server-0.1.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for mcp-gpu-server 0.1.3
File Interpreter ABI Platform Actions
mcp_gpu_server-0.1.3-py3-none-any.whl Python 3 none any Details for mcp_gpu_server-0.1.3-py3-none-any.whl

Total release size: 7.7 kB

Release files / mcp_gpu_server-0.1.3.tar.gz

Download URL mcp_gpu_server-0.1.3.tar.gz
Size 4.0 kB
Tags Source
SHA-256 checksum
How to use checksums
00d8278b89e2de95bc1a7244d3db6c3b50cbd45cdff72b80f75651032c71b73d
BLAKE2b-256 checksum
How to use checksums
580eb3bdb8e2e9b85b6e10ef048af788549f194e98d448e1ee82761e74826060
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-httpx/0.28.1

Release files / mcp_gpu_server-0.1.3-py3-none-any.whl

Download URL mcp_gpu_server-0.1.3-py3-none-any.whl
Size 3.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
73bd9b6ea3635af145531e9a64268f53c5de79b75beaf2315e89dfb96a4abcb3
BLAKE2b-256 checksum
How to use checksums
119314db65618db0b6328f320675d6550c2d763b997e280d6509702eccbc9ffd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-httpx/0.28.1

Security for mcp-gpu-server 0.1.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page