kill_background
Kill a background process by name
Run shell commands from a chat client, including long ones parked in the background under a name you can list and kill.
LABSCO SUMMARY
The division is between run, which blocks until the command exits or the timeout fires, and run_background, which returns immediately and leaves the process under a name. That name is the handle for everything afterwards — list_background to see what is still alive, kill_background to stop it. The 4 signatures carry command, cwd, timeout and name and nothing that narrows what may be run, so the boundary is wherever the server is placed.
A shell execution server: one blocking command runner, and a named background process manager
A shell on the machine running the server. Both run tools take a cwd, so the working directory is chosen per call rather than fixed at startup.
One command — npx bash-mcp
USE CASES
Start the command in the background under a name, check later whether it is still alive, and stop it by that name when it is not wanted.
Set the working directory on the call and wait for the output, with a timeout so a hung command does not hold the turn open.
Counted once with only startup setup. Other versions, modes or optional credentials may expose a different list.
kill_backgroundKill a background process by name
list_backgroundList all running background processes
runExecute a shell command and return output
run_backgroundRun a command in background
BEFORE YOU INSTALL
4 tools when we connected.
CONTEXT COST
Rated by the size of the 4 tool definitions that ride along on every turn, not by how many there are
INSTALLATION
Add the block to your client, or run the command directly.
{
"mcpServers": {
"bash-mcp": {
"command": "npx",
"args": [
"bash-mcp"
]
}
}
}npx bash-mcp