Shell Command
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:
- Download and install Highlight from highlightai.com/download
- Navigate to the plugins tab and select "Add Custom Plugin"
-
Configure the plugin with the settings below
Plugin Name
Shell CommandCommand (node, npx, python, etc.)npxArguments-
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.
-
Argument 1
- 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
Sign in to leave a review
Use Google, GitHub, or an email account so ratings stay tied to real people.
No reviews posted yet.



