Shell MCP Server

Shell MCP Server is an MCP server that enables AI clients to execute command-line operations securely across local file systems. It connects large language model interfaces, such as Claude Desktop, directly to system shells including Bash, Zsh, Sh, Command Prompt, and PowerShell. Software engineers, system administrators, and automated development agents use this server to run commands, inspect local repositories, check system resources, and manage software packages within isolated environments. To enforce safety during autonomous agent runs, the server restricts execution strictly to explicitly configured directories, blocks directory traversal attempts, and limits executions to verified shell binaries. It also incorporates timeout enforcement to stop runaway scripts and operations, while maintaining the process permissions of the executing server. By exposing controlled command-line access via the Model Context Protocol, the server allows AI models to run developer tools, manage Git workflows, parse log files, and monitor processes without exposing uncontrolled access to the host operating system.

Category: Cloud & Infrastructure

Tags: automation, bash, command-execution, shell, terminal

Visit Shell MCP Server

How to install and configure Shell MCP Server

Follow these steps to install and register Shell MCP Server with Claude Desktop: 1. Install the server package using pip or uv: bash pip install shell-mcp-server # or uv pip install shell-mcp-server 2. Open your Claude Desktop configuration file (claude_desktop_config.json). 3. Add the server entry under the mcpServers object, configuring your allowed directories and shell binaries: json { "mcpServers": { "shell-mcp-server": { "command": "uv", "args": [ "--directory", "/path/to/shell-mcp-server", "run", "shell-mcp-server", "/path/to/allowed/dir1", "/path/to/allowed/dir2", "--shell", "bash", "/bin/bash", "--shell", "zsh", "/bin/zsh" ] } } } 4. Save the configuration and restart Claude Desktop.

What you can do with Shell MCP Server

  • Running Git commands such as checking git status or viewing git diff inside allowed repository directories. - Listing and searching project directories using shell utilities like ls, find, or PowerShell Get-Process. - Managing project dependencies and checking outdated libraries using package managers like pip or npm. - Inspecting system health, resource allocation, disk usage, and active processes with commands like df and ps. - Filtering, parsing, and aggregating text within data or log files using tools like grep, awk, and sort.

Key facts

  • https://github.com/blazickjp/shell-mcp-server
  • Cloud & Infrastructure, Developer Tools & Code Intelligence
  • automation, bash, command-execution, shell, terminal

Part of MCP Servers

Related MCP servers

  • MCP KQL Server โ€” MCP KQL Server is an MCP server that connects AI assistants to Azure Data Explorer clusters using Azure CLI authentication.โ€ฆ
  • MCP LaTeX Server โ€” MCP LaTeX Server is an MCP server that provides tools for creating, editing, validating, and compiling LaTeX documents directly throughโ€ฆ
  • MCP JSON โ€” MCP JSON is an MCP server collection that bundles tools for file system operations, Google search, browser-based web automation, andโ€ฆ
  • MCP Jupyter Complete โ€” MCP Jupyter Complete is an MCP server that provides tools for manipulating Jupyter notebook files through position-based cell operations andโ€ฆ
  • MCP LSP Go โ€” MCP LSP Go is an MCP server that connects AI assistants to the official Go Language Server Protocol implementation, gopls,โ€ฆ
  • MCP Manager โ€” MCP Manager is an MCP server management tool that connects directly to your Claude Desktop environment, enabling users to discover,โ€ฆ

How do I install Shell MCP Server?

You can install Shell MCP Server using Python package managers. Run either pip install shell-mcp-server or uv pip install shell-mcp-server. After installation, configure the server in your MCP client settings with your target directories and shells.

What can Shell MCP Server do?

Shell MCP Server executes command-line operations securely inside configured directories. It allows AI clients to run shell scripts, check Git repository statuses, monitor system resource usage, search files, and process text data across Unix and Windows environments.

Which shells are supported by Shell MCP Server?

The server supports cross-platform shells including bash, sh, zsh, cmd, and powershell. You specify the allowed shell names and their absolute executable paths when starting the server configuration in your MCP client.

How does Shell MCP Server handle command timeouts?

The server features built-in execution timeout control to automatically terminate long-running processes. You can configure execution duration limits using the COMMAND_TIMEOUT environment variable, which defaults to 30 seconds if unspecified.

Is Shell MCP Server open source?

Yes, Shell MCP Server is open source software published under the MIT License. The complete source code and testing setup are available on GitHub.

  • AI Tools
  • Categories
  • Industries
  • CLI Coding Agents
  • MCP Servers
  • MCP Categories