stdout
An MCP server that any process can pipe stdout logs to including console logs from nodejs programs
claude mcp add --transport stdio amitdeshmukh-stdout-mcp-server npx stdio-mcp-server
How to use
This MCP server captures stdout output sent to a named pipe and exposes it via the MCP interface for querying, filtering, and analysis. It creates a named pipe at a standard location (Unix/MacOS: /tmp/stdout_pipe; Windows: \.\pipe\stdout_pipe) and collects the latest logs (default history of 100 entries). You can redirect an application's standard output to the pipe, and then use the MCP client tools to retrieve recent logs, filter by text, or request logs since a given timestamp. For example, you can redirect multiple applications to the same pipe and then query across all of them using get-logs to inspect recent activity or troubleshoot issues in real time.
How to install
Prerequisites:
- Node.js v18 or newer installed on the host
- npm or corepack available
Option 1: Installation in Cursor
- Open Cursor and navigate to Cursor > Settings > MCP Servers
- Click on "Add new MCP Server"
- Update your MCP settings file with:
name: stdout-mcp-server type: command command: npx stdout-mcp-server
Option 2: Installation in other MCP clients
Option 2A: macOS/Linux Create or update your MCP configuration to include:
{ "mcpServers": { "stdio-mcp-server": { "command": "npx", "args": ["stdio-mcp-server"] } } }
Option 2B: Windows Create or update your MCP configuration to include:
{ "mcpServers": { "mcp-installer": { "command": "cmd.exe", "args": ["/c", "npx", "stdio-mcp-server"] } } }
Notes:
- The server is provided as an MCP-enabled npm package and is typically run via npx as shown above.
- Ensure you have network access or the npm cache available when running first-time installations.
Additional notes
Tips and considerations:
- The named pipe location is platform-specific: /tmp/stdout_pipe on Unix-like systems and \.\pipe\stdout_pipe on Windows. Ensure the path is accessible by your applications.
- The server maintains a configurable history (default 100 entries). If you expect high log throughput, consider increasing the history in your MCP client configuration if supported.
- Use the get-logs tool in your MCP client to fetch logs with optional filtering, line counts, or time-based queries. Example usage includes getting the last 50 logs or filtering for the term 'error'.
- If multiple applications write to the same pipe, logs will accumulate in the single history, enabling cross-source debugging but requiring careful filtering to distinguish sources.
- Ensure the applications writing to the pipe redirect output correctly to the pipe path compatible with your OS (as shown in the README examples).
- If you run into permissions issues on the pipe, verify user permissions and the ability to create/read the named pipe in the target directory.
Related MCP Servers
iterm
A Model Context Protocol server that executes commands in the current iTerm session - useful for REPL and CLI assistance
mcp
Octopus Deploy Official MCP Server
furi
CLI & API for MCP management
editor
MCP Server for Phaser Editor
DoorDash
MCP server from JordanDalton/DoorDash-MCP-Server
mcp
MCP сервер для автоматического создания и развертывания приложений в Timeweb Cloud