Shell MCP Server

Author:@blazickjp
View on GitHub

Overview

Shell MCP Server is a secure tool for AI applications, enabling the controlled execution of shell commands within predefined directories.

Install it via pip install shell-mcp-server, then configure your Claude Desktop application to begin running commands in the allowed directories.

Its key features include secure execution limited to specified paths, support for multiple shells like bash, sh, cmd, and powershell, automatic timeout for long-running commands, cross-platform functionality, and built-in safety validations.

Common use cases are executing file system operations, handling project management tasks such as Git and package management, monitoring system resources, and running scripts in controlled environments.

For security, commands can only run within the configured allowed directories. The tool is open-source and free to use under the MIT License.