Shell Executor

Shell Executor is an MCP server that provides controlled command-line execution capabilities to Model Context Protocol clients like VS Code Copilot and other AI agents. It connects development environments directly to system command utilities while enforcing safety constraints to prevent destructive behavior. Developers and automated coding assistants use it to inspect files, query version control, build code, and inspect operating system state. By using an explicit whitelist of supported commands, Shell Executor restricts agent operations to standard non-destructive tools across filesystem navigation, text transformation, and runtime environments. It enables automated agents to execute commands such as git, python, cargo, grep, and curl without exposing underlying systems to dangerous commands such as rm, mv, or privilege escalation binaries like sudo. The server operates over standard I/O via a JSON-RPC interface and limits execution times with built-in timeouts, making it suitable for sandboxed agent tasks and development workflows.

Category: Cloud & Infrastructure

Tags: bash, cli, linux, remote-execution, shell

Visit Shell Executor

How to install and configure Shell Executor

Follow these steps to install and configure Shell Executor: 1. Clone the repository and install the dependencies locally: bash git clone https://github.com/yourusername/shell-executor-mcp.git cd shell-executor-mcp pip install -e . Or install via PyPI once published: pip install shell-executor-mcp. 2. Add the server configuration to your VS Code settings.json or .vscode/mcp_servers.json: json { "mcpServers": { "shell-executor": { "command": "python", "args": ["/path/to/shell-executor-mcp/src/mcp_server.py"], "env": { "MCP_API_TOKEN": "your-secret-token" } } } } 3. Restart your MCP client to enable the execute_command tool.

What you can do with Shell Executor

  • Running git status, diff, and log checks to monitor version control state from AI coding assistants. - Compiling and building software projects using tools like cargo, make, npm, or go within workspace environments. - Inspecting project directory structures and file metadata using ls, tree, stat, and file commands. - Searching and parsing application logs using standard text utilities like grep, sed, awk, and sort. - Querying system metrics and hardware diagnostics using uptime, uname, ps, df, and du commands.

Key facts

  • Open Source
  • https://github.com/yourusername/shell-executor-mcp
  • Cloud & Infrastructure, Developer Tools & Code Intelligence
  • bash, cli, linux, remote-execution, shell

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,…

What can Shell Executor do?

Shell Executor allows AI agents to run whitelisted shell commands over an MCP interface. It supports file navigation tools, text filters, archive tools, network utilities like curl, and build tools like git, cargo, and python, while enforcing strict execution timeouts.

How does Shell Executor prevent destructive commands?

The server applies a strict command whitelist and rejects harmful operations. Commands for file deletion or moving, such as rm and mv, are barred. Privilege escalation through sudo or su is blocked, and executions are limited by a 30-second timeout.

Which MCP clients work with Shell Executor?

Shell Executor works with any client supporting the standard Model Context Protocol over stdio. It includes explicit configuration support for VS Code Copilot and workspace settings files, as well as general JSON-RPC testing interfaces.

Is Shell Executor open source?

Yes, Shell Executor is open source software distributed under the terms of the MIT License. The code and configuration files are available for inspection and modification on GitHub.

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