cli-mcp-server
If you are the rightful owner of cli-mcp-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 Model Context Protocol (MCP) server implementation for executing controlled command-line operations with comprehensive security features.
The CLI MCP Server is designed to provide secure command-line execution with robust security measures. It includes features such as command whitelisting, path validation, and execution controls, making it ideal for providing controlled CLI access to LLM applications while maintaining security. The server is highly configurable, allowing users to set environment variables to control command execution, allowed directories, and security settings. It supports async operations and provides detailed error reporting, ensuring a secure and efficient command execution environment.
Features
- 🔒 Secure command execution with strict validation
- ⚙️ Configurable command and flag whitelisting with 'all' option
- 🛡️ Path traversal prevention and validation
- 🚫 Shell operator injection protection
- ⏱️ Execution timeouts and length limits
Tools
run_command
Executes whitelisted CLI commands within allowed directories.
show_security_rules
Displays current security configuration and restrictions.