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

Installing the command mcp server

Setup follows the standard MCP pattern: clone or install the server, then register it in your client's configuration file and restart the client. The configuration snippets on this page cover Claude Desktop, Claude Code and Cursor.

Configuration

The server reads 2 environment variables: LOG_DIR, LOG_LEVEL. Keep credentials in your client's env block or a secrets manager rather than committing them.

Requirements

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

Where it fits

File and storage servers are what separate an assistant that talks about your documents from one that actually works with them. Command sits in that group. Worth comparing against the other file systems servers in this directory before you commit to one, since several overlap in scope but differ sharply in setup cost and permissions.

Practical notes

  • This server runs locally, so it operates with whatever access your machine and its credentials already have. Scope that deliberately rather than by default.
  • Maintained by brunorozendo, written in Python.
  • MCP clients ask for confirmation before each tool call by default. Keep that on while you learn what the command mcp server actually does with your data.
  • Every entry in this directory is reviewed by hand before it goes live, and details are checked against the project's own documentation.

How to install the Command MCP server

**Option B: Native Binary**
```json
{
  "mcpServers": {
    "mcp-server-command": {
      "command": "/absolute/path/to/stdio/build/native/nativeCompile/mcp-server-command",
      "env":{
        "LOG_DIR":"/Users/<username>/Library/Logs/Claude",
        "LOG_LEVEL":"DEBUG"
      }
    }
  }
}

Configuration as documented by the project. Restart the client after saving.

Configuration

  • Java 25 or higher - Gradle (for building from source) - Claude Desktop app (for integration)
VariableDescriptionRequired
LOG_DIRFilesystem location the server is allowed to use.Optional
LOG_LEVELConfiguration value read at startup.Optional

Frequently asked questions

It connects Command to MCP-compatible AI assistants such as Claude and Cursor. Instead of copying data back and forth by hand, the assistant works with Command directly.