Feedback

Shell Command MCP Server

@egoist Claim

Basic information

Runtime
TypeScript
Version
1.0.0
Category
License
MIT
Transports
stdio
Author
egoist
Submitted by
Community
Quality
35
Stars
57

About Shell Command MCP Server

Shell Command offers secure shell command execution via an allowlist, using SSH secure shell for safe, YAML-formatted system results.

Shell Command is a MCP server in the Developer Tools category listed in the AddMCP.net directory, published by egoist. It exposes 1 tool, including execute_command. Supported transport: stdio. Runtime: TypeScript. License: MIT. The repository has 57 GitHub stars. Source code is hosted on github.com. Related topics: command-execution, community, developer-tools, mcp, shell-command.

Setup

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

Shell Command MCP Server config

Add this server to your MCP-compatible client using the configuration below.

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

Shell Command MCP Server tools

  • execute_command — Execute a shell command
    command:string*

Overview

What is Shell Command?

shell-command-mcp is an MCP server for executing shell commands, sponsored by ChatWise.

How to use Shell Command?

Configure the server via JSON using the command npx -y shell-command-mcp. Use the ALLOWED_COMMANDS environment variable to explicitly allow commands (comma-separated) or * to allow any command.

Key features of Shell Command

  • 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.

Use cases of Shell Command

  • Allowing an LLM to run basic shell commands like ls, cat, and echo.
  • Integrating shell command execution into MCP-compatible applications.

Frequently asked questions

1 What does shell-command-mcp do?

It is an MCP server for executing shell commands.

2 How can I restrict which commands are allowed?

Set the ALLOWED_COMMANDS environment variable with a comma-separated list of allowed commands. Use * to allow any.

3 Is it safe to allow all commands?

Allowing all commands with * is potentially dangerous.

4 How do I run shell-command-mcp?

Execute npx -y shell-command-mcp from the command line. You can also configure it in a JSON configuration file under mcpServers.

Comments

No comments yet

Be the first to share feedback about this listing. Sign in to leave a comment.

Sign In

Feedback 💬