Skip to main content
Glama
batteryshark

System Information MCP Server

by batteryshark

get_system_summary

Retrieve essential system information including hostname, OS, CPU, RAM, and uptime for basic system verification and health checks.

Instructions

Get essential system overview - hostname, OS, CPU, RAM, uptime.

Quick system identity check without heavy data collection. Perfect for basic system verification and health checks.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The primary handler function for the 'get_system_summary' tool. Decorated with @mcp.tool for automatic registration in the FastMCP server. Collects essential system information using helper functions get_system_identity() and get_hardware_info(), filters key hardware metrics, formats output as markdown sections with timestamp, handles exceptions, and returns a ToolResult with text content.
    @mcp.tool
    def get_system_summary() -> ToolResult:
        """Get essential system overview - hostname, OS, CPU, RAM, uptime.
        
        Quick system identity check without heavy data collection.
        Perfect for basic system verification and health checks.
        """
        info_sections = []
        info_sections.append("# System Summary")
        info_sections.append(f"*Generated: {datetime.now().strftime('%Y-%m-%d %H:%M:%S')}*\n")
        
        try:
            # Just the essentials from system identity and hardware
            identity_info = get_system_identity()
            hardware_info = get_hardware_info()
            
            # Extract key lines only
            info_sections.extend(identity_info)
            
            # Add just CPU, RAM, and uptime from hardware
            for line in hardware_info:
                if any(keyword in line for keyword in ['CPU Cores:', 'CPU Usage:', 'Total RAM:', 'Available RAM:', 'Boot Time:', 'Uptime:']):
                    info_sections.append(line)
                    
        except Exception as e:
            info_sections.append(f"⚠️ **Error**: {str(e)}")
        
        return text_response("\n".join(info_sections))

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/batteryshark/mcp-sysinfo'

If you have feedback or need assistance with the MCP directory API, please join our Discord server