The Server Status MCP Server is a monitoring tool that allows you to:
Retrieve CPU, memory, and uptime information from your local machine
Fetch the same metrics from remote servers via SSH
Connect to remote servers using IP addresses, hostnames, or aliases defined in your SSH config
Leverage automatic SSH configuration file reading or use custom connection parameters
Use it as a standalone server or integrate it into other applications as an npm package
Interact with it programmatically through a JSONRPC 2.0 API
You can invoke monitoring methods like get_server_status
(for both local and remote servers) or get_remote_server_status
(specifically for remote servers).
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
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
- AsecurityAlicenseAqualityMCP Server for the CoinStats API. Provides access to cryptocurrency market data, portfolio tracking, and news.Last updated -30487MIT License
- -securityFlicense-qualityA FastMCP-based server that enables interaction with MySQL databases, supporting client-server communication for querying and analyzing MySQL data.Last updated -
- -securityFlicense-qualityA FastMCP-based server that provides tools for analyzing stock market data, including concept sector strength, financial indicators, F10 information, market emotion indicators, and tracking limit-up stocks.Last updated -10
- -securityAlicense-qualityA FastMCP-based server that provides data analysis tools for processing, analyzing, and visualizing data with an intuitive Streamlit web interface.Last updated -2MIT License