Shell Command

Shell Command

egoist

Executes whitelisted shell commands on your local system with security controls and timeout protection. Only allows pre-approved commands to run for safety.

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

50618 views6Local (stdio)

What it does

  • Execute whitelisted shell commands
  • Pass input to commands via stdin
  • Return stdout, stderr, and exit codes
  • Set execution timeouts
  • Validate commands after shell operators

Best for

Developers needing secure command executionAutomating file system operationsSystem administration tasksCI/CD pipeline integration
Security-first with command whitelistingComprehensive output captureBuilt-in timeout protection

About Shell Command

Shell Command is a community-built MCP server published by egoist that provides AI assistants with tools and capabilities via the Model Context Protocol. Shell Command offers secure shell command execution via an allowlist, using SSH secure shell for safe, YAML-formatted sy It is categorized under developer tools.

How to install

You can install Shell Command in your AI client of choice. Use the install panel on this page to get one-click setup for Cursor, Claude Desktop, VS Code, and other MCP-compatible clients. This server runs locally on your machine via the stdio transport.

License

Shell Command is released under the MIT license. This is a permissive open-source license, meaning you can freely use, modify, and distribute the software.

shell-command-mcp

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

# stdio server
npx -y shell-command-mcp

JSON config

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

Allowed commands

Use ALLOWED_COMMANDS environment variable to explictly allow the commands that this server can run, separate each command by ,. You can use * to allow any command, but this is potentially dangerous.

License

MIT.

Alternatives

Related Skills

Browse all skills
bats

Bash Automated Testing System (BATS) for TDD-style testing of shell scripts. Use when: (1) Writing unit or integration tests for Bash scripts, (2) Testing CLI tools or shell functions, (3) Setting up test infrastructure with setup/teardown hooks, (4) Mocking external commands (curl, git, docker), (5) Generating JUnit reports for CI/CD, (6) Debugging test failures or flaky tests, (7) Implementing test-driven development for shell scripts.

4
cli-builder

Guide for building TypeScript CLIs with Bun. Use when creating command-line tools, adding subcommands to existing CLIs, or building developer tooling. Covers argument parsing, subcommand patterns, output formatting, and distribution.

2
cli-developer

Use when building CLI tools, implementing argument parsing, or adding interactive prompts. Invoke for CLI design, argument parsing, interactive prompts, progress indicators, shell completions.

0
fzf-fuzzy-finder

Command-line fuzzy finder for interactive filtering and selection - integrates with shell, vim, and other tools.

0
godot

This skill should be used when working on Godot Engine projects. It provides specialized knowledge of Godot's file formats (.gd, .tscn, .tres), architecture patterns (component-based, signal-driven, resource-based), common pitfalls, validation tools, code templates, and CLI workflows. The `godot` command is available for running the game, validating scripts, importing resources, and exporting builds. Use this skill for tasks involving Godot game development, debugging scene/resource files, implementing game systems, or creating new Godot components.

398
applescript

"Expert in AppleScript and JavaScript for Automation (JXA) for macOS system scripting. Specializes in secure script execution, application automation, and system integration. HIGH-RISK skill due to shell command execution and system-wide control capabilities."

16