Server data from the Official MCP Registry
Sophisticated bash command MCP server that runs and manages shell execution.
Sophisticated bash command MCP server that runs and manages shell execution.
Valid MCP server (3 strong, 3 medium validity signals). No known CVEs in dependencies. Package registry verified. Imported from the Official MCP Registry. Trust signals: 7 highly-trusted packages.
9 files analyzed · 1 issue found
Security scores are indicators to help you make informed decisions, not guarantees. Always review permissions before connecting any MCP server.
This plugin requests these system permissions. Most are normal for its category.
Set these up before or after installing:
Environment variable: OTEL_ENABLED
Environment variable: OTEL_SERVICE_NAME
Environment variable: OTEL_SERVICE_VERSION
Environment variable: OTEL_EXPORTER_OTLP_ENDPOINT
Environment variable: OTEL_METRIC_EXPORT_INTERVAL_MS
Environment variable: BASH_COMMAND_MCP_LOG_DIR
Add this to your MCP configuration file:
{
"mcpServers": {
"io-github-mrorigo-bash-command-mcp": {
"env": {
"OTEL_ENABLED": "your-otel-enabled-here",
"OTEL_SERVICE_NAME": "your-otel-service-name-here",
"OTEL_SERVICE_VERSION": "your-otel-service-version-here",
"BASH_COMMAND_MCP_LOG_DIR": "your-bash-command-mcp-log-dir-here",
"OTEL_EXPORTER_OTLP_ENDPOINT": "your-otel-exporter-otlp-endpoint-here",
"OTEL_METRIC_EXPORT_INTERVAL_MS": "your-otel-metric-export-interval-ms-here"
},
"args": [
"-y",
"bash-command-mcp"
],
"command": "npx"
}
}
}From the project's GitHub README.
A highly sophisticated Bash MCP server for safe, structured command execution with first-class background job orchestration.
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:
bun run index.ts
To run via npm/npx (published package):
npx -y bash-command-mcp
run_background, wait_background, kill_background).cwd and env overrides for precise execution context.Tools:
run: run command in foreground.
Args: command or cmd, timeoutSeconds (default 60, min 1; values above 86400 are capped with a hint), optional cwd, optional env.run_background: start command in background with stdout/stderr written to log files.
Args: command or cmd, optional cwd, optional env.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 lines (default 200, max 5000).wait_background: wait for background process completion and return final status/output.
Args: pid, optional timeoutSeconds (default 60, min 1; values above 86400 are capped with a hint).This server includes built-in OpenTelemetry instrumentation for traces and metrics.
OTEL_ENABLED=false.OTEL_EXPORTER_OTLP_ENDPOINT is set, traces/metrics are exported via OTLP HTTP.Instrumented operations:
run, run_background, list_background, tail_background, wait_background, and kill_background.started, ended).Common env vars:
OTEL_ENABLED=true|falseOTEL_SERVICE_NAME=bash-command-mcpOTEL_SERVICE_VERSION=1.0.0OTEL_EXPORTER_OTLP_ENDPOINT=http://localhost:4318OTEL_METRIC_EXPORT_INTERVAL_MS=10000BASH_COMMAND_MCP_LOG_DIR=/path/to/log-dirExample (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
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
/workspace mapping explained:
$(pwd)) is a folder on your host machine./workspace) is the path inside the container./workspace; those changes are written back to the mapped host folder.Example:
./project/file.txt and you run the container from ./project, the same file is available in the container at /workspace/file.txt.Be the first to review this server!
by Modelcontextprotocol · Developer Tools
Read, search, and manipulate Git repositories programmatically
by Toleno · Developer Tools
Toleno Network MCP Server — Manage your Toleno mining account with Claude AI using natural language.
by mcp-marketplace · Developer Tools
Create, build, and publish Python MCP servers to PyPI — conversationally.
by Microsoft · Content & Media
Convert files (PDF, Word, Excel, images, audio) to Markdown for LLM consumption
by mcp-marketplace · Developer Tools
Scaffold, build, and publish TypeScript MCP servers to npm — conversationally
by mcp-marketplace · Finance
Free stock data and market news for any MCP-compatible AI assistant.