MCP.Market

Bash Command MCP server

by mrorigo·io.github.mrorigo/bash-command-mcp·v1.0.0·2 stars

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

B82/100grade B
What users say
No reviews yet
Be the first
Safety scan
B82/100

full report

Adoption
New

2 stars20 downloads/wk

Reviews

Write one

Nobody has reviewed Bash Command yet.

If you have run it, two minutes of your experience saves the next person an afternoon.

Bash Command tools (6, 3 write)

write = sends, deletes, buys or posts

Read from the package source without running it. The installed server may list more.

  • kill_backgroundwrite action

    Stop a tracked background process by PID.

  • list_background

    List tracked background processes and their status/log paths.

  • runwrite action

    Run a shell command in the foreground and return stdout/stderr with exit code.

  • run_backgroundwrite action

    Start a shell command in the background and capture stdout/stderr to log files.

  • tail_background

    Read the last N lines from stdout/stderr logs for a tracked background process.

  • wait_background

    Wait for a tracked background process to finish and return final status.

Public scan report

scanner v0.1.10 · 2026-09-28 · same rubric, same numbers if you re-run it

no findings
  • Code scan13 source files scanned25/25
  • –Live reliabilityno gateway calls yet and no remote to proben/a
  • –Tool poisoningtools not inspected (local package is not executed); not countedn/a
  • Auth qualitylocal package, no credentials required12/15
  • Maintenancelast push 130 days ago8/15
  • Maintainer identityregistry namespace matches repository owner; GitHub account older than a year8/10
Overall 82/100. Components that don't apply are left out of the denominator. Any critical finding is an F.RubricAppeal a findingJSON

How Bash Command compares

Against every graded MCP server, from our own scans and uptime checks. Updated after each scan run.

Safety score
82/100
higher than 63% of 48,255 servers
Tools
6
the typical server has 7
Tools that change things
50%
typical: 0%. Fewer write tools means less an agent can break
GitHub stars
2
more than 75% of 28,688 servers
Downloads a week
20
more than 7% of 12,191 servers with a package

What its tools let an agent do: 3 read · 3 run or deploy

Install Bash Command in Claude Code, Cursor or VS Code

Runs npx -y bash-command-mcp on your machine. Read the scan report first; the gateway never runs local packages.

claude mcp add bash-command-mcp -- npx -y bash-command-mcp
Add to Cursor

What the publisher says

From the Bash Command repository's README, as published. We do not edit it. Read it on GitHub

bash-command-mcp

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

Important Security Warning

This server executes shell commands on the machine where it is running.

If you run bun run index.ts directly on your host, commands run on your host with your user permissions. Use Docker to isolate execution unless you fully trust the MCP client and prompts.

To install dependencies:

bun install

To run over stdio:

bun run index.ts

To run over Streamable HTTP:

BASH_COMMAND_MCP_TRANSPORT=http \
BASH_COMMAND_MCP_HOST=127.0.0.1 \
BASH_COMMAND_MCP_PORT=3000 \
bun run index.ts

To run via npm/npx (published package):

npx -y bash-command-mcp

Why This Server

  • High-fidelity shell execution with clear exit-code semantics.
  • Advanced background process lifecycle controls (runbackground, waitbackground, 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.

Tool Behavior

Tools:

Args: command or cmd, timeoutSeconds (default 60, min 1; values above 86400 are capped with a hint), optional cwd, optional env.

  • run: run command in foreground.

Args: command or cmd, optional cwd, optional env.

  • run_background: start command in background with stdout/stderr written to log files.

Args: pid, optional lines (default 200, max 5000).

  • list_background: list tracked background processes, including log file paths.
  • kill_background: stop tracked background process by pid.
  • tail_background: show last N lines from background process logs.

Args: pid, optional timeoutSeconds (default 60, min 1; values above 86400 are capped with a hint).

  • wait_background: wait for background process completion and return final status/output.

OpenTelemetry

This server includes built-in OpenTelemetry instrumentation for traces and metrics.

  • OpenTelemetry packages are installed with the server package.
  • Telemetry initializes unless OTEL_ENABLED=false.
  • If OTELEXPORTEROTLP_ENDPOINT is set, traces/metrics are exported via OTLP HTTP.
  • If no OTLP endpoint is configured, console exporters are used.

Instrumented operations:

  • Tool call spans for run, runbackground, listbackground, tailbackground, waitbackground, and kill_background.
  • Background lifecycle spans/counters (started, ended).
  • Metrics for tool calls, failures, timeouts, and duration histograms.

Common env vars:

  • OTEL_ENABLED=true|false
  • OTELSERVICENAME=bash-command-mcp
  • OTELSERVICEVERSION=1.0.0
  • OTELEXPORTEROTLP_ENDPOINT=http://localhost:4318
  • OTELMETRICEXPORTINTERVALMS=10000
  • BASHCOMMANDMCPLOGDIR=/path/to/log-dir

Example (OTLP Collector on localhost):

OTEL_ENABLED=true \
OTEL_EXPORTER_OTLP_ENDPOINT=http://localhost:4318 \
OTEL_SERVICE_NAME=bash-command-mcp \
npx -y bash-command-mcp

Transports

This server supports two transports:

  • stdio for local, process-spawned integrations.
  • http for remote or network-accessible MCP clients using Streamable HTTP.

Default behavior remains stdio so existing desktop and CLI setups keep working.

Environment variables for HTTP mode:

  • BASHCOMMANDMCP_TRANSPORT=http|stdio
  • BASHCOMMANDMCP_HOST=127.0.0.1
  • BASHCOMMANDMCP_PORT=3000
  • BASHCOMMANDMCPALLOWEDHOSTS=localhost,127.0.0.1,[::1]

HTTP mode uses host-header validation by default when bound to a loopback address. If you bind to 0.0.0.0 or ::, provide an explicit allow-list in BASHCOMMANDMCPALLOWEDHOSTS.

Docker

Build the image:

docker build -t bash-command-mcp .

Run with a local folder mounted at /workspace:

docker run --rm -i -v "$(pwd):/workspace" bash-command-mcp

Shortened. The full README is on GitHub.

Nothing above is checked by us. What we check is on the safety report.

Bash Command: common questions

Is Bash Command MCP server safe?
Mostly: it is graded B (82/100). Read the Bash Command safety report
How do I install Bash Command?
It runs on your machine. Copy the Claude Code, Cursor, VS Code or Claude Desktop config from the install section.
Does Bash Command need an API key?
No secret keys are declared. It reads 6 settings from the environment.
Is Bash Command maintained?
The last commit was 167 days ago (2026-05-21). The latest release is v1.0.0.
What can I use instead of Bash Command?
Servers from other publishers that do the same job: Computer MCP server.
How does Bash Command compare with other MCP servers?
safety score 82/100 (higher than 63% of 48,255 servers); tools 6 (the typical server has 7); tools that change things 50% (typical: 0%. Fewer write tools means less an agent can break). Full comparison.

Alternatives to Bash Command

Same job from other publishers: the closest match first, then the best rated.

  • Computer
    A private persistent computer: files that survive between runs, a bash shell and JavaScript.
    A