Back to Home
domdomegg icon

shell-exec-mcp

by domdomegg

Overview

Provides a Model Context Protocol (MCP) server for executing arbitrary bash commands, supporting both foreground execution with timeouts and background job management.

Installation

Run Command
npx -y shell-exec-mcp

Environment Variables

  • MCP_TRANSPORT
  • PORT
  • MCP_BASE_URL

Security Notes

The primary function of this server is to execute arbitrary bash commands via `node:child_process.spawn`. If the server is exposed to untrusted input, it presents an extremely high security risk, as an attacker could execute any command on the host system, including deleting files, accessing sensitive information, or installing malicious software. The HTTP transport option further amplifies this risk by making it network-accessible. This server is designed to perform highly privileged operations; its security depends entirely on the caller's trustworthiness and stringent input validation *before* calling this server, not on the server's internal mechanisms.

Similar Servers

Stats

Interest Score30
Security Score1
Cost ClassMedium
Avg Tokens750
Stars2
Forks0
Last Update2026-01-07

Tags

shellbashcommand-executionsystem-utilitybackground-jobs