MCP-Server-Practice

MCP-Server-Practice

0

MCP System Resource Monitoring Server is an AI-based solution built on Spring AI that provides real-time monitoring of system resources, including CPU and memory usage. It supports major operating systems and offers detailed process information, making it suitable for diverse environments.

MCP System Resource Monitoring Server

This project is an MCP server based on Spring AI that monitors and provides host system resource information. It supports various operating systems, including Linux, macOS, and Windows, allowing AI models to request system resource information.

Key Features

  • System Resource Monitoring

    • CPU Usage Information
    • Memory Usage Information
    • Processor Count and Other System Info
  • Top CPU Usage Process Information

    • Identifies the process using the most CPU
    • Provides Process ID, Name, CPU/Memory Usage, and Execution Time
  • Support for Various Operating Systems

    • Linux
    • macOS
    • Windows

Tech Stack

  • Java 24
  • Spring Boot 3.4.4
  • Spring AI MCP Server
  • Maven

Installation and Execution

Prerequisites

  • JDK 24 or higher
  • Maven 3.6 or higher

Build and Run

  1. Clone the project
  2. Use Maven to build
  3. Run the server

API Usage Example

Provides tools such as retrieving host CPU and memory usage.