Back to Home
rcx86 icon

shell-tools-mcp

by rcx86

Overview

An MCP server for shell tools, allowing an agent to run shell commands and edit files via the Model Context Protocol.

Installation

Run Command
uv run shell-tools-mcp-server

Security Notes

The `run_shell_command` tool uses `subprocess.run(shell=True)`, which is a severe security vulnerability if the `command` argument can be influenced by untrusted input, allowing arbitrary command injection. The file manipulation tools (`file_edit`, `file_multi_edit`, `file_read`, `file_replace`) allow operations on arbitrary `file_path` inputs, potentially leading to unauthorized file access, modification, or data exfiltration if the server is exposed or receives malicious path inputs. No input sanitization or path validation beyond `os.path.isfile` is present for file paths. Running the server over HTTP (especially on `0.0.0.0` if configured) would expose these highly privileged operations over the network.

Similar Servers

Stats

Interest Score0
Security Score2
Cost ClassMedium
Avg Tokens300
Stars0
Forks0
Last Update2025-12-06

Tags

MCP ServerShell CommandsFile OperationsDeveloper ToolsAgent Integration