Command Execution MCP Server for Claude Desktop
Command Execution MCP Server for Claude Desktop
Overview
The Command Execution MCP Server is a secure tool that allows Claude to execute shell commands directly on your local system, providing a controlled interface for command line interactions.
To use the server, install the necessary dependencies, configure Claude Desktop, and execute commands through the provided tools like execute-command and simple-hello.
- Secure command execution with safety checks - Support for executing commands in specific working directories - Cross-platform compatibility (macOS and Unix-like systems) - Extensive error handling and feedback - Timeout and buffer limits to prevent resource issues
- Running shell commands safely from a desktop application.
- Automating tasks that require command line interactions.
- Providing a controlled environment for executing potentially dangerous commands.
Add to your AI client
Use these steps to connect Command Execution MCP Server for Claude Desktop in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.
Cursor
Add this to your .cursor/mcp.json file in your project root, then restart Cursor.
.cursor/mcp.json
{
"mcpServers": {
"commandexecution-ryaker": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-commandexecution-ryaker"
]
}
}
}Claude Desktop
Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.
~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
{
"mcpServers": {
"commandexecution-ryaker": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-commandexecution-ryaker"
]
}
}
}Claude Code
Add this to your project's .mcp.json file. Claude Code will detect it automatically.
.mcp.json (project root)
{
"mcpServers": {
"commandexecution-ryaker": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-commandexecution-ryaker"
]
}
}
}VS Code (Copilot)
Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.
.vscode/mcp.json
{
"servers": {
"commandexecution-ryaker": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-commandexecution-ryaker"
]
}
}
}Windsurf
Add this to your Windsurf MCP config file, then restart Windsurf.
~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"commandexecution-ryaker": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-commandexecution-ryaker"
]
}
}
}Cline
Open Cline settings, navigate to MCP Servers, and add this server configuration.
Cline MCP Settings (via UI)
{
"mcpServers": {
"commandexecution-ryaker": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-commandexecution-ryaker"
]
}
}
}FAQ
Can I run any shell command?
No, the server blocks potentially dangerous commands to protect system integrity.
What are the limitations?
The maximum execution time is 30 seconds, and output is limited to 1MB.
Is it compatible with Windows?
Yes, it works on macOS and other Unix-like systems.7:["$","div",null,{"className":"container mx-auto flex flex-col gap-4","children":["$L26","$L27",["$","$L28",null,{"currentProject":{"id":2765,"uuid":"85ec871b-aba3-40fa-b488-9dc3001299cd","name":"CommandExecution","title":"Command Execution MCP Server for Claude Desktop","description":"Command Execution MCP Server for Claude Desktop","avatar_url":"https://avatars.githubusercontent.com/u/947669?v=4","created_at":"2025-03-14T01:06:01.199Z","updated_at":"2025-03-14T01:36:11.730Z","status":"created","author_name":"ryaker","author_avatar_url":"https://avatars.githubusercontent.com/u/947669?v=4","tags":"[]","category":"developer-tools","is_featured":false,"sort":1,"url":"https://github.com/ryaker/CommandExecution","target":"_self","content":"$29","summary":"$2a","img_url":null,"type":null,"metadata":"{\"star\":\"0\",\"license\":\"\",\"language\":\"JavaScript\",\"is_official\":false,\"latest_commit_time\":\"2025-03-13 12:01:15\"}","user_uuid":null,"tools":null,"sse_url":null,"sse_provider":null,"sse_params":null,"is_official":false,"server_command":null,"server_params":null,"server_config":null,"allow_call":false,"is_innovation":false,"is_dxt":false,"dxt_manifest":null,"dxt_file_url":null,"is_audit":false},"randomProjects":[],"currentServerKey":"$undefined"}]]}]