一个轻量级的主机信息获取MCP工具,通过MCP(模型上下文协议)接口提供系统信息,基于Spring Boot3+Spring AI+OSHI(操作系统和硬件信息)库构建。
Overview
What is machine-info-mcp-server?
machine-info-mcp-server is a lightweight tool designed to retrieve system information via the Model Context Protocol (MCP) interface, built on Spring Boot 3, Spring AI, and the OSHI library.
How to use machine-info-mcp-server?
To use the machine-info-mcp-server, configure the MCP client with the provided JSON configuration, and run the server using the command: java -jar machine-info-mcp-server.jar.
Key features of machine-info-mcp-server?
- Retrieves detailed system information including CPU details, memory usage, and disk information.
- Lightweight and fast performance.
- Easy integration with Spring AI applications.
- Provides an MCP interface for system information retrieval.
Use cases of machine-info-mcp-server?
- Monitoring system performance and resource usage.
- Integrating system information retrieval in Spring-based applications.
- Providing system diagnostics for troubleshooting.
FAQ from machine-info-mcp-server?
- What system information can I retrieve?
You can retrieve CPU details, memory usage, disk information, and operating system details.
- What are the environment requirements?
You need Java 17 or higher and Maven 3.6.3 or higher to run this tool.
- Is there a way to contribute to the project?
Yes! Contributions are welcome, and you can submit Pull Requests on the GitHub repository.
Server Config
{
"mcpServers": {
"machine-info-mcp-server": {
"args": [
"-jar",
"machine-info-mcp-server.jar"
],
"command": "java",
"description": "获取系统信息的MCP服务",
"env": {
"JAVA_HOME": "/path/to/your/java17"
}
}
}
}