Background Process MCP
@waylaidwanderer
About Background Process MCP
A Model Context Protocol (MCP) server that provides background process management capabilities. This server enables LLMs to start, stop, and monitor long-running command-line processes.
Basic information
Config
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"backgroundProcess": {
"command": "npx",
"args": [
"@waylaidwanderer/background-process-mcp@latest"
]
}
}
}Tools
6Starts a new process in the background.
Stops a running process.
Clears a stopped process from the list.
Gets the recent output for a process. Can specify `head` for the first N lines or `tail` for the last N lines.
Gets a list of all processes being managed by the Core Service.
Gets the current status of the Core Service.
Overview
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.
FAQ from Background Process MCP
What problem does this solve that native agent process management doesn’t?
Some AI agents like Claude Code can manage background processes natively, but many others (e.g., Gemini CLI) cannot. This project provides that capability as a standard MCP tool, making long-running task management available to a wider range of agents.
What runtime or dependencies are required?
The server uses node-pty for child process lifecycle management and runs as a Node.js application. It is distributed as an npm package and executed via npx or a global install.
Where does process data live?
The Core Service (src/server.ts) is a standalone WebSocket server that acts as the single source of truth for all process states. The MCP client connects to it, either spawning a new instance or attaching to an existing one.
What transport and authentication does it use?
The MCP server uses the standard STDIO transport for MCP communication. The underlying Core Service communicates over WebSocket. No authentication method is documented.
Can I use Background Process MCP without an MCP client?
Yes. You can run the core service manually with npx @waylaidwanderer/background-process-mcp server and connect a TUI client via npx … ui --port <port>. The core service is standalone, allowing other custom clients to be built.
More Other MCP servers
ACI: Open-Source Infra to Power Unified MCP Servers
aipotheosis-labsACI.dev is the open source tool-calling platform that hooks up 600+ tools into any agentic IDE or custom AI agent through direct function calling or a unified MCP server. The birthplace of VibeOps.
MaxKB
1Panel-dev🔥 MaxKB is an open-source platform for building enterprise-grade agents. 强大易用的开源企业级智能体平台。
Reactive Resume
amruthpillaiA one-of-a-kind resume builder that keeps your privacy in mind. Completely secure, customizable, portable, open-source and free forever. Try it out today!
Codelf
unbugA search tool helps dev to solve the naming things problem.
Inbox Zero AI
elie222The world's best AI personal assistant for email. Open source app to help you reach inbox zero fast.
Comments