System Diagnostics MCP Server
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@System Diagnostics MCP Servershow current CPU and memory usage"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
System Diagnostics MCP Server
This is a Python-based Model Context Protocol (MCP) server. It provides diagnostic capabilities:
get_system_metrics: Retrieves real-time CPU, Memory, and Disk usage metrics.list_top_processes: Lists top running processes sorted by CPU or Memory usage.check_port_status: Verifies if a specific TCP port is open on a given host.
Prerequisites
Python 3.10+
uv (for ultra-fast dependency management)
Docker (optional, for containerized execution)
Local Setup (Using uv)
Clone the repository and navigate into the folder:
git clone https://github.com/niketanjain/mcp-server-setup.git cd mcp-server-setupInitialize the virtual environment and install dependencies:
uv sync # OR if no lockfile: uv pip install mcp psutil pydantic starlette uvicornRun the server locally:
uv run python server.pyThe server will start an HTTP/SSE server on
http://localhost:6500/sse.
Running with Docker
Build the Docker image:
docker build -t mcp-sysdiag-server .Run the Docker container, exposing port 6500:
docker run -p 6500:6500 mcp-sysdiag-server
Extending to Production
Check out production-grade.md for recommendations and best practices when extending this MCP server to a production environment.
Related MCP Connectors
Read-only server insight: why a Linux server or K8s cluster is slow, failing or changed.
Network, domain and website diagnostics for AI clients via MCP.
Provides capabilities that let LLM agents perform a range of infrastructure management tasks.
Inspect servers, storage, networks, databases and billing, and start, stop or back up servers.