Shell MCP Server
local-only server
The server can only run on the clientโs local machine because it depends on local resources.
Integrations
Allows execution of git commands for repository management, including viewing repository status and differences between commits.
Enables secure execution of shell commands in specified directories with support for multiple shell types, timeout control, and built-in security features to safely run system commands for file operations, git commands, package management, and system monitoring.
๐ฅ๏ธ Shell MCP Server
๐ Add secure shell command execution capabilities to your AI applications with the Shell MCP Server! Built for the Model Context Protocol.
โจ Features
- ๐ Secure Execution - Commands run only in specified directories
- ๐ Multiple Shells - Support for bash, sh, cmd, powershell
- โฑ๏ธ Timeout Control - Automatic termination of long-running commands
- ๐ Cross-Platform - Works on both Unix and Windows systems
- ๐ก๏ธ Safe by Default - Built-in directory and shell validation
๐ Quick Start
Installation
๐ Claude Desktop Integration
Add this to your Claude Desktop config to enable shell command execution:
๐ฎ Usage Examples
Basic File Operations
Project Management
System Information
File Processing
Windows-Specific Examples
โ๏ธ Configuration
Configure behavior with command-line arguments:
Argument | Description |
---|---|
directories | ๐ List of allowed directories |
--shell name path | ๐ Shell specifications (name and path) |
Environment variables:
COMMAND_TIMEOUT
: โฑ๏ธ Max execution time in seconds (default: 30)
๐ก๏ธ Security Features
- ๐ Directory Isolation: Commands can only execute in specified directories
- ๐ Shell Control: Only configured shells are allowed
- โฐ Timeout Protection: All commands have a configurable timeout
- ๐ Path Validation: Working directory validation prevents traversal attacks
- ๐ค Permission Isolation: Commands run with the same permissions as the server process
๐ ๏ธ Development
Set up your development environment:
๐ค Contributing
Contributions are welcome! Feel free to:
- ๐ Report bugs
- ๐ก Suggest features
- ๐ง Submit pull requests
- ๐ Improve documentation
๐ License
MIT License - see LICENSE for details.
๐ Enhance Your AI with Secure Shell Access! ๐
Built for the Model Context Protocol | Made with โค๏ธ by the MCP Community
This server cannot be installed
A secure server that enables AI applications to execute shell commands in specified directories, supporting multiple shell types (bash, sh, cmd, powershell) with built-in security features like directory isolation and timeout control.
- โจ Features
- ๐ Quick Start
- ๐ฎ Usage Examples
- โ๏ธ Configuration
- ๐ก๏ธ Security Features
- ๐ ๏ธ Development
- ๐ค Contributing
- ๐ License