技能潮 SkillTide 提交收录
官方说明13 个来源MCP 服务8 天前
MladenSU/cli-mcp-server

MladenSU/cli-mcp-server

🐍 🏠 - Command-line execution with customizable security policies
在 GitHub 查看 ↗直链 · 无中转页
官方说明🐍 🏠 - Command line interface with secure execution and customizable security policies
配置模板(请按你的客户端调整)
claude mcp add cli-mcp-server -- npx -y cli-mcp-server
这是根据仓库名生成的可粘贴骨架,命令行参数与包名请以该项目 README 为准。
★ 数取值
177 ★ · MladenSU/cli-mcp-server · 取自该仓库的 GitHub 页面 · (2026-10-16 20:00:20 核对)
来源明细
收录自 punkpeye/awesome-mcp-servers 榜单(我们从中收集的条目之一) · 条目类型:MCP 服务
收录与活跃
收录于 2026-10-09 · 最近见到 2026-10-16 · 共见到 32 次 · 被 13 个来源列出
评分构成
综合分 1,303 · 177 ★ · 13 个来源 · mcp
常见问题(答案都来自我们的记录)
怎么安装?
我们【没有】从该仓库取到安装命令(我们的 install 覆盖率只有约 4%)。请看它的 README 或 releases 页。
它适合谁 / 用来做什么?
我们把它归在这些标签下: MCP 服务。标签来自条目自身,不是我们强加的分类。
谁维护它、还在更新吗?
仓库 MladenSU/cli-mcp-server;我们收录于 2026-10-09;最近见到 2026-10-16。这里没有"官方认证"或"质量评级"——我们只记录来源与时间。
第三方质量标记

CLI MCP Server

以下摘录自该仓库的 README(片段) · 在 GitHub 读完整 README →

---
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 | Comma-separated list of allowed flags or 'all' | -l,-a,--help |
| MAX_COMMAND_LENGTH| Maximum command string length | 1024 |
| COMMAND_TIMEOUT | Command execution timeout (seconds) | 30 |
| ALLOW_SHELL_OPERATORS | Allow shell operators (&&, \|\|, \|, >, etc.) | false |
Note: Setting ALLOWED_COMMANDS or ALLOWED_FLAGS to 'all' will allow any command or flag respectively.
Installation
To install CLI MCP Server for Claude Desktop automatically via Smithery:
Available Tools
run_command
Executes whitelisted CLI commands within allowed directories.
**Input Schema:**
**Security Notes:**
- Shell operators (&&, |, >, >>) are not supported by default, but can be enabled with ALLOW_SHELL_OPERATORS=true
- Commands must be whitelisted unless ALLOWED_COMMANDS='all'
- Flags must be whitelisted unless ALLOWED_FLAGS='all'
- All paths are validated to be within ALLOWED_DIR
show_security_rules
Displays current security configuration and restrictions, including:
- Working directory
- Allowed commands
- Allowed flags
- Security limits (max command length and timeout)
Usage with Claude Desktop
Add to your ~/Library/Application\ Support/Claude/claude_desktop_config.json:
> Development/Unpublished Servers Configuration
> Published Servers Configuration
> In case it's not working or showing in the UI, clear your cache via uv clean.
Security Features
- ✅ Command whitelist enforcement with 'all' option
- ✅ Flag validation with 'all' option
来源
awesome · https://github.com/MladenSU/cli-mcp-server
按领域浏览
MCP 服务
Traction
177 ★
收录于
昨天

更多MCP 服务

查看MCP 服务全部 5,525 条 →

所属领域与标签

每个标签都能点进去看同类的全部条目。数字是当前库里的真实条数。

浏览全部领域 →

← 返回索引