drio
Open app

MCP Command Server

Source

Catalog onlyCatalog onlySTDIO

Overview

MCP Command Server is a secure Model Context Protocol (MCP) server designed for executing system commands through LLM applications like Claude.

To use MCP Command Server, install the package using pip, configure the allowed commands, and integrate it with Claude Desktop configuration.

  • 🔒 Secure command execution with a whitelist of allowed commands. - ✅ User confirmation required for all commands to enhance security. - 📝 Comprehensive audit logging for tracking command executions. - 🔍 Input validation and sanitization to prevent malicious inputs. - 🤖 Integration with Claude Desktop for seamless operation.
  1. Executing system commands securely in LLM applications.
  2. Providing a controlled environment for command execution.
  3. Enhancing security in automated systems that require command execution.

Add to your AI client

Use these steps to connect MCP Command Server 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": {
    "mcp-command-server-andrew-beniash": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-command-server-andrew-beniash"
      ]
    }
  }
}

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": {
    "mcp-command-server-andrew-beniash": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-command-server-andrew-beniash"
      ]
    }
  }
}

Claude Code

Add this to your project's .mcp.json file. Claude Code will detect it automatically.

.mcp.json (project root)

{
  "mcpServers": {
    "mcp-command-server-andrew-beniash": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-command-server-andrew-beniash"
      ]
    }
  }
}

VS Code (Copilot)

Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.

.vscode/mcp.json

{
  "servers": {
    "mcp-command-server-andrew-beniash": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-command-server-andrew-beniash"
      ]
    }
  }
}

Windsurf

Add this to your Windsurf MCP config file, then restart Windsurf.

~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "mcp-command-server-andrew-beniash": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-command-server-andrew-beniash"
      ]
    }
  }
}

Cline

Open Cline settings, navigate to MCP Servers, and add this server configuration.

Cline MCP Settings (via UI)

{
  "mcpServers": {
    "mcp-command-server-andrew-beniash": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-command-server-andrew-beniash"
      ]
    }
  }
}

FAQ

Is MCP Command Server secure?

Yes! It uses a whitelist approach and requires user confirmation for command execution.

How do I install MCP Command Server?

You can install it using pip with the command: `uv pip install mcp-command-server`.

Can I customize the allowed commands?

Yes! You can configure the allowed commands by setting the `ALLOWED_COMMANDS` environment variable.7:["$","div",null,{"className":"container mx-auto flex flex-col gap-4","children":["$L26","$L27",["$","$L28",null,{"currentProject":{"id":1538,"uuid":"575e620f-a798-4ba5-9c99-72135c69f4bd","name":"mcp-command-server","title":"MCP Command Server","description":null,"avatar_url":"https://avatars.githubusercontent.com/u/106547649?v=4","created_at":"2025-02-20T16:19:31.794Z","updated_at":"2025-02-23T07:22:06.587Z","status":"created","author_name":"Andrew-Beniash","author_avatar_url":"https://avatars.githubusercontent.com/u/106547649?v=4","tags":"mcp-command-server,command-execution,llm-integration","category":"developer-tools","is_featured":false,"sort":1,"url":"https://github.com/Andrew-Beniash/mcp-command-server","target":"_self","content":"$29","summary":"$2a","img_url":null,"type":null,"metadata":null,"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"}]]}]