Skip to main content
Glama
Thermal Monitor MCP

Thermal Monitor MCP

by Ahmad-1276
README.md
# Thermal Monitor MCP

Read temperatures, fans, and thermal zones to catch overheating early.

![Python](https://img.shields.io/badge/Python-3.10%2B-3776AB?logo=python&logoColor=white)
![MCP](https://img.shields.io/badge/MCP-Model%20Context%20Protocol-000000)
![License](https://img.shields.io/badge/license-MIT-green)

## Tools

| Tool | Description |
| --- | --- |
| `get_temperatures` | Temperature sensors with current, high, and critical values |
| `get_fans` | Fan speeds reported by the platform |
| `get_thermal_zones` | Linux thermal zones with type, temperature, and policy |
| `check_thermal_status` | Overall thermal status with warnings |
| `get_thermal_summary` | Combined temperatures, fans, zones, and status |

## Requirements

- Python 3.10+
- `pip install -e .`

## Install

```bash
git clone https://github.com/Ahmad-1276/thermal-monitor-mcp.git
cd thermal-monitor-mcp

python3 -m venv .venv
source .venv/bin/activate        # Windows: .venv\Scripts\activate

pip install -e .
```

## Run

```bash
thermal-monitor-mcp
# or
python -m thermal_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": {
    "thermal-monitor": {
      "command": "/absolute/path/to/.venv/bin/thermal-monitor-mcp",
      "args": []
    }
  }
}
```

Use the absolute path to the executable inside your virtual environment. On Windows the path is `.venv\Scripts\thermal-monitor-mcp.exe`.

## Example prompts

- What is the CPU temperature?
- Are the fans spinning?
- Is the system thermally throttled?
- Show all thermal zones.

## Notes

Read-only. Sensor availability depends on the OS, drivers, and hardware; unsupported systems return `available: false` instead of failing.

## Development

```bash
pip install -e ".[dev]"
pytest -q
```

## License

MIT — see [LICENSE](LICENSE).