MCP.so
登录

Command Execution MCP Server for Claude Desktop

@ryaker

关于 Command Execution MCP Server for Claude Desktop

Command Execution MCP Server for Claude Desktop

基本信息

分类

AI 与智能体

运行时

node

传输方式

stdio

发布者

ryaker

配置

暂无标准配置

该服务器的 README 中没有可解析的 MCP 配置块,请前往代码仓库查看安装说明。

代码仓库

工具

未检测到工具

工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。

概览

What is Command Execution MCP Server for Claude Desktop?

The Command Execution MCP Server is a secure, controlled tool that allows Claude to execute shell commands directly on your local system. It provides safe and flexible command-line interaction through Claude's interface, with built-in safety checks and cross-platform support for macOS and other Unix-like systems.

How to use Command Execution MCP Server for Claude Desktop?

Install Node.js (v16+), npm, and Claude Desktop. Navigate to the server directory and run npm install @modelcontextprotocol/sdk. Add the provided configuration block to your Claude Desktop configuration file (claude_desktop_config.json), specifying the correct path to the script. Use the execute-command tool with a command string and optional working directory, e.g., execute-command with command="ls -la" and workingDirectory="/Users/yourusername/Documents".

Key features of Command Execution MCP Server for Claude Desktop

  • Secure command execution with built-in safety checks
  • Working directory support for controlled execution
  • Cross-platform compatibility (macOS and Unix-like systems)
  • Extensive error handling with detailed feedback
  • Timeout (30s) and buffer (1MB) limits to prevent runaway commands
  • Dangerous command blocking (e.g., rm -rf, sudo)

Use cases of Command Execution MCP Server for Claude Desktop

  • Run file operations like listing contents in a specific directory
  • Execute system information commands (e.g., uname, df -h)
  • Perform development tasks such as compiling code or running scripts
  • Automate command-line workflows through Claude's natural language interface

FAQ from Command Execution MCP Server for Claude Desktop

What commands are blocked for security?

The server prevents execution of potentially harmful commands like rm -rf, sudo, and others that could compromise system integrity.

What are the execution constraints?

Maximum execution time is 30 seconds, maximum output buffer is 1MB, and the working directory must be valid. Interactive commands are not supported.

What are the runtime dependencies?

Node.js v16 or later and npm are required. The server uses the @modelcontextprotocol/sdk package and runs via the Node.js runtime.

Where does command output go?

Output is returned directly to Claude within the 1MB limit, with detailed feedback on execution results and errors. All data stays on your local machine.

评论

AI 与智能体 分类下的更多 MCP 服务器