Skip to main content
Glama
System Info MCP

System Info MCP

by Ahmad-1276
README.md
# System Info MCP

Give AI agents a clear, structured view of the host machine: operating system, CPU, memory, disks, uptime, and users.

![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_system_info` | OS, hostname, architecture, boot time, and uptime |
| `get_cpu_info` | CPU model, core counts, frequency, load average, and per-core usage |
| `get_memory_info` | RAM and swap totals, usage, and percentages |
| `get_disk_summary` | Partitions, capacity, usage, and disk I/O counters |
| `get_logged_in_users` | Active user sessions with terminal and start time |

## Requirements

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

## Install

```bash
git clone https://github.com/Ahmad-1276/system-info-mcp.git
cd system-info-mcp

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

pip install -e .
```

## Run

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

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

## Example prompts

- What OS and kernel is this machine running?
- How much RAM is free right now?
- Which disk is almost full?
- How long has this system been up?

## Notes

Read-only. Uses `psutil` and the Python standard library; works on Linux, macOS, and Windows.

## Development

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

## License

MIT — see [LICENSE](LICENSE).

TDQS

A3.9/5.0

Scored across 5 tools

Disambiguation5/5

Each tool targets a distinct resource — OS, CPU, memory, disk, and user sessions — with no overlapping outputs. An agent can pick the right tool from the name alone.

Naming Consistency4/5

All tools follow a get_<resource>_<detail> snake_case pattern, which is highly predictable. Minor deviation: three use '_info', one uses '_summary', and one uses '_users', so the suffix isn't perfectly uniform.

Tool Count5/5

Five tools map cleanly to the standard system-inspection domains and each earns its place. No redundancy or filler.

Completeness4/5

Covers the core triad of OS/CPU/memory plus disk and users, which handles most system-info queries. Gaps exist for network interfaces, running processes, and environment variables, but agents can work around these or the scope is intentionally narrow.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues