mcp-command-exec

mcp-command-exec

3.3

If you are the rightful owner of mcp-command-exec 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.

MCP Command Executor is a server implementation that allows safe execution of system commands via the MCP protocol.

The MCP Command Executor is a robust server designed to execute system commands securely using the Model Context Protocol (MCP). It ensures security by only executing commands that are registered in an allowlist, preventing unauthorized or harmful command execution. The server is highly configurable, allowing users to specify allowed commands and environment variables through a YAML configuration file or environment variables. It supports global and per-command environment variables, providing flexibility in command execution. The server is built using Go and requires Go 1.24 or later, along with specific dependencies listed in its go.mod file. It offers detailed logging capabilities, which can be configured to be more verbose for debugging purposes. The server is designed to prevent shell injection by executing commands directly and validating them against a predefined allowlist. This makes it a secure choice for environments where command execution needs to be controlled and monitored.

Features

  • Command execution via MCP protocol
  • Command filtering using an allowlist
  • Customizable allowed commands via environment variables
  • Environment variable support for command execution
  • Command execution result as text output

Tools

  1. command_exec

    Executes a system command with optional working directory and environment variables.