Skip to main content
Glama
System Info MCP Server

System Info MCP Server

by Atara57769

System Info MCP Server

A Model Context Protocol (MCP) server that exposes system monitoring and process management tools.

This project provides AI agents with safe access to system information such as CPU usage, memory usage, running processes, and controlled process termination with validation safeguards.

πŸš€ Features

  • βœ… Retrieve system information (CPU, RAM, Disk, Network, Uptime)

  • βœ… List running processes

  • βœ… Detect high resource usage processes

  • βœ… Safe process termination with validation

  • βœ… MCP tools integration

  • βœ… Security checks preventing termination of critical system processes

Related MCP server: Windows MCP Server

🧱 Project Structure

system-info/
β”‚
β”œβ”€β”€ main.py                     # MCP server entry point
β”œβ”€β”€ services/
β”‚   └── system_info_service.py # System monitoring logic
β”œβ”€β”€ models/
β”‚   β”œβ”€β”€ system_info.py
β”‚   └── process_info.py
β”œβ”€β”€ validation.py              # Safety validation rules
β”œβ”€β”€ tests.py                   # Unit tests
└── README.md

βš™οΈ Requirements

Python 3.10+

psutil

MCP FastMCP

Install dependencies:

pip install psutil

pip install mcp

▢️ Running the MCP Server

Start the server:

python main.py

The MCP server will start and expose registered tools to compatible MCP clients.

🧠 Available MCP Tools

system_info_tool

Returns system information including:

OS details

CPU usage

RAM usage

Disk usage

Network statistics

Uptime

resource_usage_tool

Detects processes consuming excessive resources and returns only those safe to terminate.

list_processes_tool

Returns a list of currently running processes.

terminate_process_tool

Safely terminates a process after validation and user confirmation.

Parameters:

pid β€” Process ID

confirmed β€” must be true to execute termination

Safety protections include:

Prevents killing system-critical processes

Prevents terminating PID 0/1

Prevents self-termination

πŸ” Safety Model

Before terminating a process:

Process information is collected.

Validation rules are applied.

Critical OS processes are blocked.

User confirmation is required.

πŸ§ͺ Running Tests

Run unit tests:

python -m unittest utils.tests

Tests use mocking to avoid interacting with real system processes.

πŸ”Œ Adding This MCP Server to an MCP Client

Example configuration (Claude Desktop / MCP-compatible client):

{
  "mcpServers": {
    "system-info": {
      "command": "python",
      "args": ["PATH_TO_PROJECT/main.py"]
    }
  }
}

Replace:

PATH_TO_PROJECT

with the absolute path to your project folder.

Example (Windows):

C:\Users\your-user\Desktop\system-info\main.py 🧩 How MCP Integration Works

This project uses:

mcp = FastMCP("system-info-mcp-server")

Each tool is registered using:

@mcp.tool()

When the server runs, MCP automatically exposes these tools to AI agents.

πŸ›‘οΈ Security Notes

Never expose this server publicly without authentication.

Process termination is restricted but still powerful.

Intended for local development or controlled environments.

πŸ“„ License

MIT License

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers