Bash MCP Server

Sophisticated bash command MCP server that runs and manages shell execution.

Local serverstdio

What is the Bash MCP Server?

Sophisticated bash command MCP server that runs and manages shell execution.

What the server does

A highly sophisticated Bash MCP server for safe, structured command execution with first-class background job orchestration.

  • High-fidelity shell execution with clear exit-code semantics
  • Advanced background process lifecycle controls (run_background, wait_background, kill_background)
  • Built-in observability via per-process stdout/stderr log files
  • OpenTelemetry traces and metrics for production visibility
  • Agent-friendly ergonomics with cwd and env overrides for precise execution context

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
runrun command in foreground.
run_backgroundstart command in background with stdout/stderr written to log files.
list_backgroundlist tracked background processes, including log file paths.
kill_backgroundstop tracked background process by pid.
tail_backgroundshow last N lines from background process logs.
wait_backgroundwait for background process completion and return final status/output.

How to install the Bash MCP Server

{
  "mcpServers": {
    "bash-command": {
      "command": "npx",
      "args": ["-y", "bash-command-mcp"],
      "env": {
        "BASH_COMMAND_MCP_HOST": "your-value"
      }
    }
  }
}

Add to claude_desktop_config.json, then restart Claude Desktop.

Configuration

VariableDescriptionRequired
BASH_COMMAND_MCP_HOSTEndpoint or connection string the server talks to.Optional

Example prompts to try

  • “Use Bash to High.”
  • “Use Bash to Built.”
  • “Use Bash to Agent.”

Frequently asked questions

Sophisticated bash command MCP server that runs and manages shell execution. Confirm the tools offered by your installed version in the connected client. Tool availability and permissions depend on the server and account configuration.