CLI wrapper that exposes monitored command output as an MCP server

CLI wrapper that exposes monitored command output as an MCP server

server-watch-mcp•bybrennerspear

A command-line tool that runs a wrapped command, captures its stdout and stderr, and serves the recent log output to MCP clients over HTTP.

License: ISC•Runtime: Awaiting documentation review•Category: developer tools

WHAT IT DOES

  • •Captures stdout and stderr from any wrapped command in real time.
  • •Keeps the last 5000 log entries in memory using a circular buffer.
  • •Provides a get_logs tool to retrieve recent logs with optional filtering by stream type.
  • •Provides a search_logs tool that performs case-insensitive substring matching over logs.

BEST FOR

  • •Monitoring development server output from an MCP client.
  • •Watching build process output such as a build:watch script.
  • •Searching captured logs for errors during a workflow.

ABOUT SERVER-WATCH-MCP

CLI wrapper that exposes monitored command output as an MCP server is cataloged as an MCP server attributed to brennerspear. A command-line tool that runs a wrapped command, captures its stdout and stderr, and serves the recent log output to MCP clients over HTTP. It is categorized under developer tools. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: ISC. Check the source repository's current license and terms before using, modifying or distributing this software.

Capability inspector

Capability definitions are not reviewed. Unreviewed imports are not exposed as trusted interfaces.

Tools (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Resources (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Prompts (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for CLI wrapper that exposes monitored command output as an MCP server are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

Does continuing after the wrapped command exits stop the server?

No, the server continues running even if the child process exits.

Can the default port be changed?

Yes, the SERVER_WATCH_MCP_PORT environment variable overrides the default port of 6280.

Upstream README

View this exact version on GitHub

README.md · e6b99f073c8c · Fetched 2026-11-13 11:38:54 UTC

Original upstream text, without AI rewriting. Scripts, forms and unsafe links are filtered for safety.

Showing the last retrieved documentation snapshot; check the source for current changes.

server-watch-mcp

A straight-forward CLI wrapper that monitors and captures output from any running command and exposes it as an MCP server. Perfect for development workflows where you need to access server logs, build output, or any process output.

Run server

Claude Code

Features

  • HTTP-based MCP server - Run as a standalone service that clients can connect to
  • Real-time log capture - Captures stdout and stderr from any command
  • Circular buffer storage - Maintains last 5000 log entries in memory
  • Two MCP tools:
    • get_logs - Retrieve recent logs with optional filtering by stream type
    • search_logs - Search through logs with case-insensitive substring matching

Installation

npm install -g server-watch-mcp
# or
pnpm add -g server-watch-mcp
# or in your project
pnpm add -D server-watch-mcp

Usage

1. Add the MCP server to Claude Code

claude mcp add -s user -t sse server-watch-mcp http://localhost:6280/sse

Which should configure it like this:

{
  "mcpServers": {
    "server-watch-mcp": {
      "type": "sse", // Even though SSE is deprecated, Claude Code only supports SSE 
      "url": "http://localhost:6280/sse"
    }
  }
}

2. Start the MCP server with your command

option 1: wrap the command when calling it

# Monitor a development server
server-watch-mcp npm run dev

# Monitor a build process
server-watch-mcp npm run build:watch

# Monitor any command
server-watch-mcp python app.py

option 2: wrap the command in your package.json (or script file)

// In your package.json
{
  "scripts": {
    "dev": "server-watch-mcp next dev --turbo",
  }
}

The server will:

  • Start an HTTP server on port 6280 (or SERVER_WATCH_MCP_PORT environment variable)
  • Execute your command as a child process
  • Capture all output from the command
  • Continue running even if the child process exits

3. Use the tools in Claude

Once connected, you can use these tools:

  • Get recent logs: "Show me the last 50 logs from stderr"
  • Search logs: "Search for any errors in the logs"
  • Monitor output: "What's happening with my dev server?"

Environment Variables

SERVER_WATCH_MCP_PORT - Override the default port (6280)

SERVER_WATCH_MCP_PORT=6281 server-watch-mcp npm run dev

Development

# Install dependencies
pnpm install

# Build
pnpm run build

# Run tests
pnpm test

# Run in development
pnpm run dev

License

ISC

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for CLI wrapper that exposes monitored command output as an MCP server from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/server-watch-mcp)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

Downloads and pulls

Separate sources, scopes and periods. Never combined or treated as installations, active users or security reviews.

No reviewed package or image identity; download statistics are not listed yet.

Related developer tools MCP Servers

Alternative and complementary servers in the same category

View all in developer tools →
Postbye
postbye-mcp•postbye-team

A directory listing describing a cancellation-letter and mailing-address service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools
Singapore Proxy MCP
singapore-proxy-mcp•Xavierfok

A hosted MCP service for browsing and searching through Singapore mobile-network proxies.

0
Developer Tools

A directory listing describing a Markdown-to-PDF service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools