CLI Secure
A secure MCP server implementation for executing controlled command-line operations with comprehensive security features.
rating : 2.5 points
downloads : 81
What is the CLI MCP Server?
The CLI MCP Server is a secure command-line execution server that allows specific commands to be run securely in a controlled environment. It prevents the execution of malicious or dangerous commands through strict permission control and verification mechanisms.How to use the CLI MCP Server?
Set the allowed commands and directories by configuring environment variables, and then send command requests via the MCP protocol. The server will verify and securely execute the allowed commands.Use cases
Suitable for scenarios where restricted command-line access needs to be provided for AI assistants or automation tools, such as non-sensitive operations like file browsing and log viewing.Main features
Secure command executionEnsure that only allowed commands are executed through command whitelisting and path verification
Configurable rulesAllows setting of allowed commands, parameters, and working directories
Injection attack protectionPrevent command injection and path traversal attacks
Execution controlSupports timeout settings and command length limits
Advantages and limitations
Advantages
Provide fine-grained command execution control
Prevent accidental or malicious dangerous operations
Detailed error reports help troubleshoot problems
Support asynchronous operations to improve efficiency
Limitations
Does not support shell operators (e.g., |, >, etc.)
Requires pre-configuration of the allowed command list
Execution environment is restricted to the specified directory
How to use
Install the server
Install the CLI MCP Server via Smithery
Configure environment variables
Set allowed commands, directories, and other security parameters
Integrate into Claude Desktop
Modify the configuration file to add MCP server settings
Send a command request
Send a command execution request via the MCP protocol
Usage examples
View project filesAsk the AI assistant to list the contents of the project directory
View log filesAsk the AI assistant to display the contents of a specific log file
Frequently Asked Questions
How to allow more commands?
Why is my command rejected?
How to debug server issues?
Related resources
MCP Protocol Documentation
Official documentation for the Model Context Protocol
MCP Inspector Tool
A tool for debugging MCP servers
Smithery Registration
Registration page for the CLI MCP Server
Featured MCP Services

Markdownify MCP
Markdownify is a multi-functional file conversion service that supports converting multiple formats such as PDFs, images, audio, and web page content into Markdown format.
TypeScript
1.7K
5 points

Duckduckgo MCP Server
Certified
The DuckDuckGo Search MCP Server provides web search and content scraping services for LLMs such as Claude.
Python
823
4.3 points

Gitlab MCP Server
Certified
The GitLab MCP server is a project based on the Model Context Protocol that provides a comprehensive toolset for interacting with GitLab accounts, including code review, merge request management, CI/CD configuration, and other functions.
TypeScript
79
4.3 points

Notion Api MCP
Certified
A Python-based MCP Server that provides advanced to-do list management and content organization functions through the Notion API, enabling seamless integration between AI models and Notion.
Python
130
4.5 points

Unity
Certified
UnityMCP is a Unity editor plugin that implements the Model Context Protocol (MCP), providing seamless integration between Unity and AI assistants, including real - time state monitoring, remote command execution, and log functions.
C#
554
5 points

Figma Context MCP
Framelink Figma MCP Server is a server that provides access to Figma design data for AI programming tools (such as Cursor). By simplifying the Figma API response, it helps AI more accurately achieve one - click conversion from design to code.
TypeScript
6.6K
4.5 points

Context7
Context7 MCP is a service that provides real-time, version-specific documentation and code examples for AI programming assistants. It is directly integrated into prompts through the Model Context Protocol to solve the problem of LLMs using outdated information.
TypeScript
5.2K
4.7 points

Minimax MCP Server
The MiniMax Model Context Protocol (MCP) is an official server that supports interaction with powerful text-to-speech, video/image generation APIs, and is suitable for various client tools such as Claude Desktop and Cursor.
Python
745
4.8 points