GPU Monitor MCP
by Ahmad-1276
README.md
# GPU Monitor MCP
Inspect GPU hardware, utilization, VRAM, temperature, and compute processes.



## Tools
| Tool | Description |
| --- | --- |
| `list_gpus` | Detected GPUs with vendor, model, driver, and memory |
| `get_gpu_utilization` | Utilization, temperature, and power draw per GPU |
| `get_gpu_memory` | VRAM total, used, and free per GPU |
| `get_gpu_processes` | Compute processes using the GPU (NVIDIA) |
| `get_gpu_summary` | Combined GPU inventory, utilization, memory, and processes |
## Requirements
- Python 3.10+
- `pip install -e .`
## Install
```bash
git clone https://github.com/Ahmad-1276/gpu-monitor-mcp.git
cd gpu-monitor-mcp
python3 -m venv .venv
source .venv/bin/activate # Windows: .venv\Scripts\activate
pip install -e .
```
## Run
```bash
gpu-monitor-mcp
# or
python -m gpu_monitor_mcp.server
```
The server speaks the MCP stdio protocol and waits for a client.
## Connect an MCP client
Add this to your client's MCP config (Claude Desktop, Cursor, VS Code, etc.):
```json
{
"mcpServers": {
"gpu-monitor": {
"command": "/absolute/path/to/.venv/bin/gpu-monitor-mcp",
"args": []
}
}
}
```
Use the absolute path to the executable inside your virtual environment. On Windows the path is `.venv\Scripts\gpu-monitor-mcp.exe`.
## Example prompts
- What GPU is installed?
- How much VRAM is free?
- Which processes are using the GPU?
- Show GPU temperature and power draw.
## Notes
Supports NVIDIA via `nvidia-smi`, AMD via `rocm-smi`, and Apple GPUs via `system_profiler`. Systems without a supported tool or GPU return `available: false`.
## Development
```bash
pip install -e ".[dev]"
pytest -q
```
## License
MIT — see [LICENSE](LICENSE).
This server cannot be deployed
Maintenance
ActivityMaintained
ResponsivenessNo recent community issues