Shell Command Executor
About
Provides a shell command execution interface for secure and controlled access to local system operations, enabling automation tasks and system management.
Details
- Author
- kevinwatt
- Repository
- kevinwatt/shell-mcp
- GitHub stars
- 3
- Downloads
- 9,964
- License
- MIT License
- Categories
- Developer Tools, Infrastructure, Security, Other, Productivity, Design, AI, Automation, Project Management
- Tags
- #mobile
Jump to
- Secure Execution: Whitelisted commands and arguments only
- Resource Control: Memory and CPU usage monitoring
- Timeout Control: Automatic termination of long-running commands
- Size Limits: Output size restrictions for safety
- MCP Integration: Works with Claude and other MCP-compatible LLMs
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 Command ExecutorCommand (node, npx, python, etc.)npxArguments-
Argument 1
-y -
Argument 2
@kevinwatt/shell-mcp
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
npm install @kevinwatt/shell-mcp
1. Click "+ Add MCP Server" in Dive Desktop
2. Copy and paste this configuration:
{
"mcpServers": {
"shell": {
"command": "npx",
"args": [
"-y",
"@kevinwatt/shell-mcp"
]
}
}
}
Ask your LLM to:
"Show current directory using shell_pwd"
"List files using shell_ls with -l argument"
"Check disk usage using shell_df with -h argument"
npm install
ls
List directory contents. Allowed Arguments: -l, -a, -h, -R, --help, *
cat
Concatenate and display file contents. Allowed Arguments: -n, -b, --help, *
pwd
Show current working directory. No allowed arguments.
df
Show disk usage. Allowed Arguments: -h, -T, --help
echo
Display text. Allowed Arguments: Any text.
ps
Show process status. Allowed Arguments: -e, -f, -u, --help
free
Show memory usage. Allowed Arguments: -h, -m, -g, --help
uptime
Show system uptime. No allowed arguments.
date
Show system date and time. Allowed Arguments: +%Y-%m-%d, +%H:%M:%S, --help
grep
Search text patterns in files. Allowed Arguments: -i, -v, -n, -r, -l, --color, *
w
Show who is logged on and what they are doing. Allowed Arguments: -h, -s, --no-header, --help
whois
Query WHOIS domain registration information. Allowed Arguments: -H, *
find
Search for files in a directory hierarchy. Allowed Arguments: -name, -type, -size, -mtime, *
netstat
Network connection information. Allowed Arguments: -a, -n, -t, -u, -l, -p, --help
lspci
List PCI devices. Allowed Arguments: -v, -k, -mm, -nn, --help
lsusb
List USB devices. Allowed Arguments: -v, -t, -d, -s, --help
dig
DNS lookup utility. Allowed Arguments: +short, +trace, +dnssec, @*, *
nslookup
Query DNS records. Allowed Arguments: -type=*, -query=*, *
ip
Show network devices and interfaces. Allowed Arguments: addr, link, route, neigh, -br, *
whereis
Locate binary, source and manual files. Allowed Arguments: -b, -m, -s, *
Claude Desktop / Cursor
Paste into your MCP client config file to install this server.
{
"mcpServers": {
"shell command executor": {
"env": {},
"args": [
"-y",
"@kevinwatt/shell-mcp"
],
"command": "npx"
}
}
}
Linux
{
"env": [],
"args": [
"-y",
"@kevinwatt/shell-mcp"
],
"command": "npx"
}
Macos
{
"env": [],
"args": [
"-y",
"@kevinwatt/shell-mcp"
],
"command": "npx"
}
Windows
{
"env": [],
"args": [
"/c",
"npx",
"-y",
"@kevinwatt/shell-mcp"
],
"command": "cmd"
}
shell-mcp
> Shell command execution MCP server
An MCP server implementation that provides secure shell command execution capabilities for LLMs.
Features
- Secure Execution: Whitelisted commands and arguments only
- Resource Control: Memory and CPU usage monitoring
- Timeout Control: Automatic termination of long-running commands
- Size Limits: Output size restrictions for safety
- MCP Integration: Works with Claude and other MCP-compatible LLMs
Installation
npm install @kevinwatt/shell-mcp
Configuration with Dive Desktop
1. Click "+ Add MCP Server" in Dive Desktop
2. Copy and paste this configuration:
{
"mcpServers": {
"shell": {
"command": "npx",
"args": [
"-y",
"@kevinwatt/shell-mcp"
]
}
}
}
Tool Documentation
- shell_ls, shell_pwd, shell_df, etc.
- Execute whitelisted shell commands
- Inputs:
- command (string, required): Command to execute
- args (array, optional): Command arguments
- timeout (number, optional): Execution timeout in ms
Usage Examples
Ask your LLM to:
"Show current directory using shell_pwd"
"List files using shell_ls with -l argument"
"Check disk usage using shell_df with -h argument"
Manual Start
If needed, start the server manually:
npx @kevinwatt/shell-mcp
Requirements
- Node.js 18+
- MCP-compatible LLM service
Development
```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.





