主机信息获取工具需要什么运行环境?
需要Java 17或更高版本。若从源码构建,还需要Maven 3.6.3或更高版本。
@netbuffer
Basic information
一个轻量级的主机信息获取MCP工具,通过MCP(模型上下文协议)接口提供系统信息,基于Spring Boot3+Spring AI+OSHI(操作系统和硬件信息)库构建。
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"machine-info-mcp-server": {
"args": [
"-jar",
"machine-info-mcp-server.jar"
],
"command": "java",
"description": "获取系统信息的MCP服务",
"env": {
"JAVA_HOME": "/path/to/your/java17"
}
}
}
}Tool list not available yet
This listing does not currently have a tool list to display. This does not mean the server has no tools; check its documentation for supported capabilities.
We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.
主机信息获取工具是一个轻量级的MCP(模型上下文协议)工具,通过MCP接口提供详细的系统信息。它基于Spring Boot 3、Spring AI和OSHI(操作系统和硬件信息)库构建,适用于需要获取主机CPU、内存、磁盘、操作系统等信息的Java应用或AI集成场景。
从GitHub Releases下载machine-info-mcp-server.jar,确保系统已安装Java 17或更高版本。然后,将MCP客户端的配置文件(如~/.mcp/config.json)中添加如下JSON配置,指定command为java,args为["-jar", "machine-info-mcp-server.jar"]。保存后,重启MCP客户端,工具列表中应出现get_system_info工具。也可从源码使用Maven构建并运行。
需要Java 17或更高版本。若从源码构建,还需要Maven 3.6.3或更高版本。
将下载的jar包本地放置,并在MCP客户端配置(如`mcp.config.json`)中添加对应的`java -jar`启动指令,配置后工具列表应出现`get_system_info`。
提供`get_system_info`一个工具,返回包含CPU、内存、磁盘、操作系统的结构化JSON。
是的,每次调用`get_system_info`都会通过OSHI库实时采集当前系统数据。
理论上OSHI支持Windows、Linux、macOS等主流操作系统,具体支持由底层OSHI库决定。
A one-of-a-kind resume builder that keeps your privacy in mind. Completely secure, customizable, portable, open-source and free forever. Try it out today!
🚀 The fast, Pythonic way to build MCP servers and clients.

Request dedicated senior developers to work on your project, write job descriptions, and prep technical interviews — all without leaving your Claude chat. Just describe what you need, and Lemon.io MCP does the rest. 1–3

Model Context Protocol Servers

Connect your AI assistant to your own YOUB endurance training account. Read recorded activities with full analysis, planned sessions, race goals, wellness (HRV, sleep, resting HR) and your athletic profile. Create or mov
Comments