Cmd Line MCP Server

An MCP server that lets AI assistants run terminal commands safely. Commands are categorized (read/write/system), directories are whitelisted, and

Local serverstdioPython

What is the Cmd Line MCP Server?

Cmd Line MCP connects Cmd Line MCP to AI assistants that speak the Model Context Protocol. An MCP server that lets AI assistants run terminal commands safely. Commands are categorized (read/write/system), directories are whitelisted, and dangerous patterns are blocked automatically.

What Cmd Line MCP does

An MCP server that lets AI assistants run terminal commands safely. Commands are categorized (read/write/system), directories are whitelisted, and dangerous patterns are blocked automatically.

Practical notes

  • Maintained by andresthor, 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.

How to install the Cmd Line MCP Server

{
  "mcpServers": {
    "cmd-line": {
      "command": "/path/to/venv/bin/cmd-line-mcp",
      "args": [
        "--config",
        "/path/to/config.json"
      ],
      "env": {
        "CMD_LINE_MCP_SECURITY_REQUIRE_SESSION_ID": "false",
        "CMD_LINE_MCP_SECURITY_AUTO_APPROVE_DIRECTORIES_IN_DESKTOP_MODE": "true"
      }
    }
  }
}

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

Configuration

VariableDescriptionRequired
CMD_LINE_MCP_SECURITY_REQUIRE_SESSION_IDDeclared in the maintainer’s client configuration.Check documentation
CMD_LINE_MCP_SECURITY_AUTO_APPROVE_DIRECTORIES_IN_DESKTOP_MODEDeclared in the maintainer’s client configuration.Check documentation

Frequently asked questions

An MCP server that lets AI assistants run terminal commands safely. Commands are categorized (read/write/system), directories are whitelisted, and dangerous Confirm the tools offered by your installed version in the connected client. Tool availability and permissions depend on the server and account configuration.