Labsco
blazickjp logo

Shell MCP Server

โ˜… 21

from blazickjp

Executes secure shell commands with configurable directory, shell, and timeout validation.

๐Ÿ”ฅ๐Ÿ”ฅ๐Ÿ”ฅโœ“ VerifiedFreeNeeds API keys

๐Ÿ–ฅ๏ธ Shell MCP Server

PyPI version License: MIT Python Code style: black

๐Ÿš€ Add secure shell command execution capabilities to your AI applications with the Shell MCP Server! Built for the Model Context Protocol.

<a href="https://glama.ai/mcp/servers/@blazickjp/shell-mcp-server"> <img width="380" height="200" src="https://glama.ai/mcp/servers/@blazickjp/shell-mcp-server/badge" alt="Shell Server MCP server" /> </a>

โœจ 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

๐Ÿ›ก๏ธ 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:

# Create and activate virtual environment
uv venv
source .venv/bin/activate

# Install development dependencies
uv pip install -e ".[test]"

# Run tests
python -m pytest

# Run tests with coverage
python -m pytest --cov=shell_mcp_server

๐Ÿค Contributing

Contributions are welcome! Feel free to:

  • ๐Ÿ› Report bugs
  • ๐Ÿ’ก Suggest features
  • ๐Ÿ”ง Submit pull requests
  • ๐Ÿ“š Improve documentation

๐Ÿ“œ License

MIT License - see LICENSE for details.


<div align="center">

๐ŸŒŸ Enhance Your AI with Secure Shell Access! ๐ŸŒŸ

Built for the Model Context Protocol | Made with โค๏ธ by the MCP Community

<details> <summary>๐ŸŽ‰ Star us on GitHub!</summary> <br> If you find this tool useful, consider giving it a star! It helps others discover the project. </details> </div>