Command MCP Server

A Model Context Protocol (MCP) server that enables secure command execution on the host system. This server allows AI assistants like Claude to run

Local serverstdioPython

What is the Command MCP Server?

Command mcp server lets Claude, Cursor and other MCP clients work with Command directly. A Model Context Protocol (MCP) server that enables secure command execution on the host system. This server allows AI assistants like Claude to run shell commands with optional working directory and stdin support.

What Command does

A Model Context Protocol (MCP) server that enables secure command execution on the host system. This server allows AI assistants like Claude to run shell commands with optional working directory and stdin support.

Key capabilities

  • Command Execution — Run any shell command on the host system
  • Working Directory Support — Execute commands in specific directories
  • STDIN Support — Pipe input data to commands
  • Cross-Platform — Works on macOS, Linux, and Windows
  • Timeout Protection — Commands timeout after 60 seconds to prevent hanging
  • Special Fish Shell Support — Enhanced handling for the Fish shell
  • Advanced Logging — Powered by Logback with configurable log levels (ERROR, WARN, INFO, DEBUG, TRACE), optional file logging, and rolling file support

Requirements

  • Java 25 or higher - Gradle (for building from source) - Claude Desktop app (for integration)

Practical notes

  • Maintained by brunorozendo, written in Python.

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
workdirstring, optional): The working directory for command execution
stdinstring, optional): Text to pipe into the command's STDIN
stdoutStandard output from the command
stderrStandard error output from the command
messageError message if command fails
isErrorBoolean indicating if the command failed

How to install the Command MCP Server

{
  "mcpServers": {
    "mcp-server-command": {
      "command": "java",
      "args": [
        "-jar",
        "/absolute/path/to/stdio-1.0.0.jar"
      ],
      "env": {
        "LOG_DIR": "/Users/<username>/Library/Logs/Claude",
        "LOG_LEVEL": "DEBUG"
      }
    }
  }
}

From the project documentation. Replace placeholders and example paths before connecting.

Configuration

  • Java 25 or higher - Gradle (for building from source) - Claude Desktop app (for integration)
VariableDescriptionRequired
LOG_DIRDeclared in the maintainer’s client configuration.Check documentation
LOG_LEVELDeclared in the maintainer’s client configuration.Check documentation

Frequently asked questions

A Model Context Protocol (MCP) server that enables secure command execution on the host system. This server allows AI assistants like Claude to run shell commands Confirm the tools offered by your installed version in the connected client. Tool availability and permissions depend on the server and account configuration.