Shell MCP MCP Server

Shell command execution MCP server

Local serverstdio

What is the Shell MCP MCP server?

Shell command execution MCP server. That is what the shell mcp mcp server brings to an AI assistant: the same capability, reachable through the Model Context Protocol rather than a separate app or dashboard.

The short version

An MCP server implementation that provides secure shell command execution capabilities for LLMs.

  • 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

The tools it exposes

The server publishes 14 tools. What each one is for:

  • cat — Concatenate and display file contents
  • pwd — Show current working directory
  • echo — Display text
  • free — Show memory usage
  • uptime — Show system uptime
  • date — Show system date and time
  • grep — Search text patterns in files
  • whois — Query WHOIS domain registration information
  • find — Search for files in a directory hierarchy
  • netstat — Network connection information
  • lspci — List PCI devices
  • lsusb — List USB devices

Getting it running

Installation goes through your MCP client rather than a global install: point it at @kevinwatt/shell-mcp on npm and it is fetched when the client starts. The copy-paste blocks for Claude Desktop, Claude Code and Cursor are further down this page.

What it needs from you

  • Node.js 18+ - MCP-compatible LLM service

How it compares

Plenty of file and storage access servers cover similar ground. The differences that matter in practice are scope of access and how much setup stands between you and a working tool call. Shell MCP's toolset — cat, pwd, echo and 11 more — is a fair guide to whether it matches your workflow. It is maintained by kevinwatt; worth a glance at recent repository activity before you build anything load-bearing on it.

SyncDev reviews every entry in this directory against the project's own documentation before publishing, and revisits them as servers change.

Things to watch

  • It runs with your machine's permissions. That is convenient and also the reason to think about what you point it at before you approve a tool call.
  • With 14 tools registered it takes up a noticeable share of the context window; turn it off in projects that never touch Shell MCP.
  • Keep per-call confirmation enabled while you learn its behaviour; it is the cheapest safeguard you have.

Available tools

ToolWhat it does
catConcatenate and display file contents
pwdShow current working directory
echoDisplay text
freeShow memory usage
uptimeShow system uptime
dateShow system date and time
grepSearch text patterns in files
whoisQuery WHOIS domain registration information
findSearch for files in a directory hierarchy
netstatNetwork connection information
lspciList PCI devices
lsusbList USB devices
digDNS lookup utility
nslookupQuery DNS records

How to install the Shell MCP MCP server

{
  "mcpServers": {
    "shell": {
      "command": "npx",
      "args": ["-y", "@kevinwatt/shell-mcp"]
    }
  }
}

Add to claude_desktop_config.json, then restart Claude Desktop.

Configuration

  • Node.js 18+ - MCP-compatible LLM service

Example prompts to try

  • Use Shell MCP to cat.
  • Use Shell MCP to pwd.
  • Use Shell MCP to echo.

Frequently asked questions

It connects Shell MCP to MCP-compatible AI assistants such as Claude and Cursor, exposing 14 tools (cat, pwd, echo, and more) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with Shell MCP directly.