Integrations
Allows installation directly from GitHub repository, providing source code access for customization and development.
Monitors local server status, providing real-time metrics on CPU usage, memory consumption, and system uptime for local machine monitoring.
Enables installation and distribution through npm, supporting both global installation and integration as a project dependency.
服务器状态监控工具
这是一个基于 FastMCP 的服务器状态监控工具,可以获取本地或远程服务器的 CPU、内存和运行时间信息。
功能特点
- 支持获取本地服务器状态
- 支持通过 SSH 获取远程服务器状态
- 自动读取 SSH 配置文件(~/.ssh/config)
- 支持自定义 SSH 连接参数
- 可作为独立服务器运行
- 可作为npm包集成到其他应用中
安装
通过npm安装
从源码安装
使用方法
作为独立服务运行
1. 启动服务器
2. 运行测试客户端
3. 命令行直接调用
使用 stdio
方式与服务器通信:
获取远程服务器状态:
作为npm包集成
1. 创建和配置MCP服务
2. 使用MCP客户端调用
SSH 配置示例
在 ~/.ssh/config
文件中添加以下配置:
然后可以使用配置的主机名来获取状态:
返回数据格式
本地服务器状态
远程服务器状态
API文档
主要导出
错误处理
如果连接失败或执行命令出错,将返回:
发布到NPM
如果你想自己发布这个包到NPM,可以按照以下步骤操作:
- 更新
package.json
中的版本号 - 运行
npm run build
确保构建成功 - 运行
npm login
登录NPM账号 - 运行
npm publish
发布包 - 可选:使用
npm publish --access public
发布公共包
许可证
ISC
You must be authenticated.
hybrid server
The server is able to function both locally and remotely, depending on the configuration or use case.
A FastMCP-based tool for monitoring server statistics that retrieves CPU, memory, and uptime information from both local and remote servers via SSH.
Related MCP Servers
- -securityAlicense-qualityMCP server for querying the Shodan API and Shodan CVEDB. This server provides tools for IP lookups, device searches, DNS lookups, vulnerability queries, CPE lookups, and more.Last updated -766318JavaScriptMIT License
- -securityAlicense-qualityA lightweight mcp server that tells you exactly where you are.Last updated -PythonMIT License
- -securityAlicense-qualityA lightweight mcp server that tells you exactly what time is it based on your IP.Last updated -8PythonMIT License
- -securityAlicense-qualityA lightweight server that provides real-time system information including CPU, memory, disk, and GPU statistics for monitoring and diagnostic purposes.Last updated -PythonMIT License