What is Background Process MCP?
Background Process MCP is a Model Context Protocol server that provides background process management capabilities. It enables LLM agents to start, stop, and monitor long-running command-line processes, and includes a terminal UI (TUI) for manual monitoring.
How to use Background Process MCP?
Install the server via npx @waylaidwanderer/background-process-mcp@latest in any MCP client (Claude Code, Claude Desktop, Cursor, Gemini CLI, etc.). For a standalone server, add the --port argument. Alternatively, install globally (pnpm add -g @waylaidwanderer/background-process-mcp) and use the bgpm command to run the core service (bgpm server) or the TUI (bgpm ui --port <port_number>).
Key features of Background Process MCP
- Start, stop, and clear background processes by UUID.
- Retrieve process output with optional head/tail parameters.
- List all managed processes as a JSON array.
- Get server status (version, port, PID, uptime, process counts).
- Offers a standalone core service and a separate TUI client.
Use cases of Background Process MCP
- LLM agents (e.g., Gemini CLI) managing long-running build or test scripts.
- Developers monitoring multiple concurrent command-line processes via a TUI.
- Integrating background process management into custom MCP clients.
评论