mcp-shell-server

mcp-shell-server

3.6

If you are the rightful owner of mcp-shell-server and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

A secure shell command execution server implementing the Model Context Protocol (MCP). This server allows remote execution of whitelisted shell commands with support for stdin input.

The MCP Shell Server is a secure and efficient server designed to execute shell commands remotely while adhering to the Model Context Protocol (MCP). It ensures that only whitelisted commands are executed, providing a layer of security against unauthorized command execution. The server supports standard input (stdin) for commands, and it returns comprehensive output including stdout, stderr, exit status, and execution time. It also includes features like shell operator safety and timeout control to enhance security and performance. The server is compatible with various platforms and can be installed via Smithery or manually using pip. It is particularly useful for environments where secure and controlled command execution is required.

Features

  • Secure Command Execution: Only whitelisted commands can be executed
  • Standard Input Support: Pass input to commands via stdin
  • Comprehensive Output: Returns stdout, stderr, exit status, and execution time
  • Shell Operator Safety: Validates commands after shell operators (; , &&, ||, |)
  • Timeout Control: Set maximum execution time for commands