MCP Servers

A collection of Model Context Protocol servers, templates, tools and more.

S
Shell Command MCP

MCP server for executing shell commands.

Created 4/7/2025
Updated 5 months ago
Repository documentation and setup instructions

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.

Quick Setup
Installation guide for this server

Install Package (if required)

npx shell-command-mcp

Cursor configuration (mcp.json)

{ "mcpServers": { "egoist-shell-command-mcp": { "command": "npx", "args": [ "shell-command-mcp" ] } } }