Securely execute shell commands with whitelisting, resource limits, and timeout controls for LLMs.
Shell command execution MCP server
An MCP server implementation that provides secure shell command execution capabilities for LLMs.
npm install @kevinwatt/shell-mcp
{
"mcpServers": {
"shell": {
"command": "npx",
"args": [
"-y",
"@kevinwatt/shell-mcp"
]
}
}
}
command
(string, required): Command to executeargs
(array, optional): Command argumentstimeout
(number, optional): Execution timeout in msAsk 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"
If needed, start the server manually:
npx @kevinwatt/shell-mcp
# Install dependencies
npm install
# Watch mode
npm run watch
# Run tests
npm test
# Lint
npm run lint
MIT © Dewei Yen
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, * |
MCP server to provide Jira Tickets information to AI coding agents like Cursor.
Token-efficient access to OpenAPI/Swagger specs via MCP Resources
A comprehensive MCP server for tooling interactions(40+) and resource accessibility(60+) plus many useful prompts to interact with Algorand Blockchain.
A comprehensive proxy that combines multiple MCP servers into a single MCP. It provides discovery and management of tools, prompts, resources, and templates across servers, plus a playground for debugging when building MCP servers.
An AI-powered MCP server for analyzing NPM package security, dependencies, and performance.
Generate mermaid diagram and chart with AI MCP dynamically.
AI-powered SVG animation generator that transforms static files into animated SVG components using the Allyson platform
A Ruby gem for integrating Large Language Models (LLMs) via the Model Context Protocol (MCP) into development workflows.
Query and analyze your Opik logs, traces, prompts and all other telemtry data from your LLMs in natural language.
connects QGIS Desktop to Claude AI through the MCP. This integration enables prompt-assisted project creation, layer loading, code execution, and more.