Shell-MCP
A secure MCP server for executing whitelisted shell commands with resource and timeout controls, designed for integration with Claude and other MCP-compatible LLMs.
kevinwatt
Tools
shell_ps
Show process status
shell_free
Show memory usage
shell_uptime
Show system uptime
shell_date
Show system date and time
shell_grep
Search text patterns in files
shell_netstat
Network connection information
shell_lspci
List PCI devices
shell_lsusb
List USB devices
shell_dig
DNS lookup utility
shell_nslookup
Query DNS records
shell_ip
Show / manipulate routing, network devices, interfaces and tunnels
shell_whereis
Locate the binary, source, and manual page files for a command
shell_df
Show disk usage
shell_echo
Display text
shell_ls
List directory contents
shell_cat
Concatenate and display file contents
shell_pwd
Show current working directory
shell_w
Show who is logged on and what they are doing
shell_whois
Query WHOIS domain registration information
shell_find
Search for files in a directory hierarchy
README
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
- Click "+ Add MCP Server" in Dive Desktop
- 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 executeargs
(array, optional): Command argumentstimeout
(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
# Install dependencies
npm install
# Watch mode
npm run watch
# Run tests
npm test
# Lint
npm run lint
License
MIT © Dewei Yen
Keywords
- mcp
- shell
- command
- claude
- llm
- automation
Available Commands
The following shell commands are available:
Command | Description | Allowed Arguments |
---|---|---|
ls | List directory contents | -l, -a, -h, -R, --help, * |
cat | Concatenate and display file contents | -n, -b, --help, * |
pwd | Show current working directory | None |
df | Show disk usage | -h, -T, --help |
echo | Display text | Any text |
ps | Show process status | -e, -f, -u, --help |
free | Show memory usage | -h, -m, -g, --help |
uptime | Show system uptime | None |
date | Show system date and time | +%Y-%m-%d, +%H:%M:%S, --help |
grep | Search text patterns in files | -i, -v, -n, -r, -l, --color, * |
w | Show who is logged on and what they are doing | -h, -s, --no-header, --help |
whois | Query WHOIS domain registration information | -H, * |
find | Search for files in a directory hierarchy | -name, -type, -size, -mtime, * |
netstat | Network connection information | -a, -n, -t, -u, -l, -p, --help |
lspci | List PCI devices | -v, -k, -mm, -nn, --help |
lsusb | List USB devices | -v, -t, -d, -s, --help |
dig | DNS lookup utility | +short, +trace, +dnssec, @*, * |
nslookup | Query DNS records | -type=, -query=, * |
ip | Show network devices and interfaces | addr, link, route, neigh, -br, * |
whereis | Locate binary, source and manual files | -b, -m, -s, * |
Recommended Servers
Claude Code MCP
An implementation of Claude Code as a Model Context Protocol server that enables using Claude's software engineering capabilities (code generation, editing, reviewing, and file operations) through the standardized MCP interface.
@kazuph/mcp-taskmanager
Model Context Protocol server for Task Management. This allows Claude Desktop (or any MCP client) to manage and execute tasks in a queue-based system.
VirusTotal MCP Server
A MCP server for querying the VirusTotal API. This server provides tools for scanning URLs, analyzing file hashes, and retrieving IP address reports.
mcp-shodan
MCP server for querying the Shodan API and Shodan CVEDB. This server provides tools for IP lookups, device searches, DNS lookups, vulnerability queries, CPE lookups, and more.

Azure MCP Server
Enables natural language interaction with Azure services through Claude Desktop, supporting resource management, subscription handling, and tenant selection with secure authentication.

Story SDK MCP Server
This server provides MCP (Model Context Protocol) tools for interacting with Story's Python SDK. Features Get license terms Mint and register IP Asset with PIL Terms Mint license tokens Send $IP to a wallet Upload image to ipfs via Pinata [External] Upload ip and nft metadata via Pinata [External]
Beamlit MCP Server
An MCP server implementation that enables seamless integration between Beamlit CLI and AI models using the Model Context Protocol standard.
ThingsPanel MCP
An integration server that connects AI models with ThingsPanel IoT platform, allowing AI assistants to interact with IoT devices through natural language for device control, data retrieval, and management operations.
MCP EVM Signer
A server that securely manages Ethereum private keys locally and enables Claude for Desktop to interact with EVM-compatible blockchains through Infura.
Cryptocurrency Daemon MCP Server
Enables secure interactions with cryptocurrency daemon RPC interfaces through AI assistants, supporting transaction management, wallet operations, and daemon monitoring for Bitcoin-derived cryptocurrencies.