local-only server
The server can only run on the client’s local machine because it depends on local resources.
Integrations
Allows execution of git commands for repository management, including viewing repository status and differences between commits.
Enables secure execution of shell commands in specified directories with support for multiple shell types, timeout control, and built-in security features to safely run system commands for file operations, git commands, package management, and system monitoring.
🖥️ Shell MCP 服务器
🚀 使用 Shell MCP 服务器为您的 AI 应用程序添加安全的 Shell 命令执行功能!专为模型上下文协议构建。
✨ 特点
- 🔒安全执行- 命令仅在指定目录中运行
- 🐚多 Shell - 支持 bash、sh、cmd、powershell
- ⏱️超时控制- 自动终止长时间运行的命令
- 🌍跨平台- 适用于 Unix 和 Windows 系统
- 🛡️默认安全- 内置目录和 shell 验证
🚀 快速入门
安装
🔌 Claude 桌面集成
将其添加到您的 Claude Desktop 配置以启用 shell 命令执行:
🎮 使用示例
基本文件操作
项目管理
系统信息
文件处理
Windows 特定示例
⚙️ 配置
使用命令行参数配置行为:
争论 | 描述 |
---|---|
directories | 📁 允许目录列表 |
--shell name path | 🐚 Shell 规范(名称和路径) |
环境变量:
COMMAND_TIMEOUT
:⏱️ 最大执行时间(秒)(默认值:30)
🛡️ 安全功能
- 🔐目录隔离:命令只能在指定目录中执行
- 🔒 Shell 控制:仅允许配置的 Shell
- ⏰超时保护:所有命令都有可配置的超时
- 🛑路径验证:工作目录验证可防止遍历攻击
- 👤权限隔离:命令以与服务器进程相同的权限运行
🛠️ 开发
设置您的开发环境:
🤝 贡献
欢迎贡献!请随意:
- 🐛 报告错误
- 💡 建议功能
- 🔧 提交拉取请求
- 📚 改进文档
📜 许可证
MIT 许可证 - 详情请参阅许可证。
🌟 使用安全 Shell 访问增强你的 AI!🌟
为模型上下文协议构建 | 由 MCP 社区倾情打造
This server cannot be installed
一个安全的服务器,使AI应用程序能够在指定的目录中执行shell命令,支持多种shell类型(bash,sh,cmd,powershell),并具有目录隔离和超时控制等内置安全功能。
- ✨ Features
- 🚀 Quick Start
- 🎮 Usage Examples
- ⚙️ Configuration
- 🛡️ Security Features
- 🛠️ Development
- 🤝 Contributing
- 📜 License