- Server Watch
Server Watch
what is Server Watch?
Server Watch is a command-line interface (CLI) tool that monitors and captures output from any running command, exposing it as an MCP (Message Control Protocol) server. It is designed to streamline development workflows by providing easy access to server logs, build outputs, and other process outputs.
how to use Server Watch?
To use Server Watch, install it via npm or pnpm, then wrap your desired command with server-watch-mcp. This will start an HTTP server that captures and serves the output of the command you are running.
key features of Server Watch?
- HTTP-based MCP server: Operates as a standalone service for client connections.
- Real-time log capture: Captures both stdout and stderr from any command in real-time.
- Circular buffer storage: Retains the last 5000 log entries in memory for quick access.
- Two MCP tools:
get_logsfor retrieving recent logs andsearch_logsfor searching through logs with case-insensitive matching.
use cases of Server Watch?
- Monitoring a development server's output.
- Capturing logs from a build process.
- Accessing logs from any command executed in the terminal.
FAQ from Server Watch?
- Can Server Watch monitor any command?
Yes! Server Watch can monitor any command executed in the terminal.
- How do I install Server Watch?
You can install it using npm or pnpm with the command
npm install -g server-watch-mcp.
- What is the default port for the MCP server?
The default port is 6280, but it can be overridden using the
SERVER_WATCH_MCP_PORTenvironment variable.
Server Config
{
"mcpServers": {
"server-watch-mcp": {
"command": "echo",
"type": "sse",
"url": "http://localhost:6280/sse"
}
}
}