{"repo":"MladenSU/cli-mcp-server","free":true,"listed":false,"github":"https://github.com/MladenSU/cli-mcp-server","clone":"git clone https://github.com/MladenSU/cli-mcp-server.git","description":"Command line interface for MCP clients with secure execution and customizable security policies","language":"Python","stars":177,"topics":[],"license":"MIT","category":"cli-tools","readme_excerpt":"CLI MCP Server --- A secure Model Context Protocol (MCP) server implementation for executing controlled command-line operations with comprehensive security features. --- Table of Contents 1. Overview 2. Features 3. Configuration 4. Available Tools - run command - show security rules 5. Usage with Claude Desktop - Development/Unpublished Servers Configuration - Published Servers Configuration 6. Security Features 7. Error Handling 8. Development - Prerequisites - Building and Publishing - Debugging 9. License --- Overview This MCP server enables secure command-line execution with robust security measures including command whitelisting, path validation, and execution controls. Perfect for providing controlled CLI access to LLM applications while maintaining security. 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 - 📝 Detailed error reporting - 🔄 Async operation support - 🎯 Working directory restriction and validation Configuration Configure the server using environment variables: Variable Description Default --------------------- ------------------------------------------------------ ------------------- ALLOWED DIR Base directory for command execution (Required) None (Required) ALLOWED COMMANDS Comma-separated list of allowed commands or 'all' ls,cat,pwd ALLOWED FLAGS","default_branch":null,"files":null,"tree":[],"storefront":"/r/MladenSU","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/MladenSU/cli-mcp-server/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}