JUHE API Marketplace
kevinwatt avatar
MCP Server

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.

5
GitHub Stars
11/17/2025
Last Updated
MCP Server Configuration
1{
2 "name": "shell",
3 "command": "npx",
4 "args": [
5 "-y",
6 "@kevinwatt/shell-mcp"
7 ]
8}
JSON8 lines
  1. Home
  2. MCP Servers
  3. shell-mcp

README Documentation

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

# 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:

CommandDescriptionAllowed Arguments
lsList directory contents-l, -a, -h, -R, --help, *
catConcatenate and display file contents-n, -b, --help, *
pwdShow current working directoryNone
dfShow disk usage-h, -T, --help
echoDisplay textAny text
psShow process status-e, -f, -u, --help
freeShow memory usage-h, -m, -g, --help
uptimeShow system uptimeNone
dateShow system date and time+%Y-%m-%d, +%H:%M:%S, --help
grepSearch text patterns in files-i, -v, -n, -r, -l, --color, *
wShow who is logged on and what they are doing-h, -s, --no-header, --help
whoisQuery WHOIS domain registration information-H, *
findSearch for files in a directory hierarchy-name, -type, -size, -mtime, *
netstatNetwork connection information-a, -n, -t, -u, -l, -p, --help
lspciList PCI devices-v, -k, -mm, -nn, --help
lsusbList USB devices-v, -t, -d, -s, --help
digDNS lookup utility+short, +trace, +dnssec, @*, *
nslookupQuery DNS records-type=, -query=, *
ipShow network devices and interfacesaddr, link, route, neigh, -br, *
whereisLocate binary, source and manual files-b, -m, -s, *

Quick Install

Quick Actions

View on GitHubView All Servers

Key Features

Model Context Protocol
Secure Communication
Real-time Updates
Open Source

Boost your projects with Wisdom Gate LLM API

Supporting GPT-5, Claude-4, DeepSeek v3, Gemini and more.

Enjoy a free trial and save 20%+ compared to official pricing.

Learn More
JUHE API Marketplace

Accelerate development, innovate faster, and transform your business with our comprehensive API ecosystem.

JUHE API VS

  • vs. RapidAPI
  • vs. API Layer
  • API Platforms 2025
  • API Marketplaces 2025
  • Best Alternatives to RapidAPI

For Developers

  • Console
  • Collections
  • Documentation
  • MCP Servers
  • Free APIs
  • Temp Mail Demo

Product

  • Browse APIs
  • Suggest an API
  • Wisdom Gate LLM
  • Global SMS Messaging
  • Temp Mail API

Company

  • What's New
  • Welcome
  • About Us
  • Contact Support
  • Terms of Service
  • Privacy Policy
Featured on Startup FameFeatured on Twelve ToolsFazier badgeJuheAPI Marketplace - Connect smarter, beyond APIs | Product Huntai tools code.marketDang.ai
Copyright © 2025 - All rights reserved