Shell Command

by egoist

28 628 downloads Not rated yet

About

Secure shell command execution server that allows running system commands in a controlled environment through an allowlist system, returning results in YAML format.

Details

Repository
egoist/shell-command-mcp

Explore

- Executes shell commands via an MCP server.
- Restricts commands using the ALLOWED_COMMANDS environment variable.
- Supports wildcard * to allow any command (potentially dangerous).
- Sponsored by ChatWise.
- Simple stdio-based transport.

Setting up with Highlight

This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:

  1. Download and install Highlight from highlightai.com/download
  2. Navigate to the plugins tab and select "Add Custom Plugin"
  3. Configure the plugin with the settings below
    Plugin Name Shell Command
    Command (node, npx, python, etc.) npx
    Arguments
    • Argument 1 -y
    • Argument 2 shell-command-mcp
    Environment
    • ALLOWED_COMMANDS cat,ls,echo

    Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.

  4. Enable "Start Automatically" if you want the plugin to start when Highlight launches

From the repository


json { "mcpServers": { "shell-command": { "command": "npx", "args": ["-y", "shell-command-mcp"], "env": { "ALLOWED_COMMANDS": "cat,ls,echo" } } } } ```

execute_command

Execute a shell command

Claude Desktop / Cursor

Paste into your MCP client config file to install this server.

{
    "mcpServers": {
        "shell command": {
            "env": {
                "ALLOWED_COMMANDS": "cat,ls,echo"
            },
            "args": [
                "-y",
                "shell-command-mcp"
            ],
            "command": "npx"
        }
    }
}

Linux

{
    "env": {
        "ALLOWED_COMMANDS": "cat,ls,echo"
    },
    "args": [
        "-y",
        "shell-command-mcp"
    ],
    "command": "npx"
}

Macos

{
    "env": {
        "ALLOWED_COMMANDS": "cat,ls,echo"
    },
    "args": [
        "-y",
        "shell-command-mcp"
    ],
    "command": "npx"
}

Windows

{
    "env": {
        "ALLOWED_COMMANDS": "cat,ls,echo"
    },
    "args": [
        "/c",
        "npx",
        "-y",
        "shell-command-mcp"
    ],
    "command": "cmd"
}

MCP server for executing shell commands.

This project is sponsored by ChatWise, an all-in-one LLM chatbot with first-class MCP support.

Usage

Configure manually

```bash

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.

Videos about Shell Command

Relevant YouTube tutorials, setups, and demos