
A directory listing describing a cancellation-letter and mailing-address service. The configured public GitHub repository returned 404 during source verification.

An MCP server that runs shell commands in a stateful session, supporting background execution and configurable timeouts.
Persistent shell execution MCP server is cataloged as an MCP server attributed to samihalawa. An MCP server that runs shell commands in a stateful session, supporting background execution and configurable timeouts. It is categorized under developer tools. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.
Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.
Catalog license label: Not specified. Check the source repository's current license and terms before using, modifying or distributing this software.
能力定义尚未审核。未核验的采集内容不会作为可信接口展示。
暂无可展示的已审核记录。这不表示上游不支持此能力。
暂无可展示的已审核记录。这不表示上游不支持此能力。
暂无可展示的已审核记录。这不表示上游不支持此能力。
Email delivery is not connected. This page does not collect email addresses or create subscriptions.
Browse the registry for current listings instead.
Reviews for Persistent shell execution MCP server are not available yet
Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.
Yes, the server maintains a persistent shell session so environment variables and working directory persist between commands.
Yes, the execute-command tool accepts a runInBackground option and a timeoutMs value, with a default timeout of 30000 milliseconds.
README.md · d43318f9fc29 · 采集于 2026-11-13 11:00:54 UTC
保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。
当前显示最后一次成功采集的文档快照,请以来源页面为准。
A Model Context Protocol (MCP) server that provides persistent shell command execution capabilities for Claude and other MCP-compatible AI assistants.
# Clone the repository
git clone https://github.com/samihalawa/mcp-server-shell-exec.git
cd mcp-server-shell-exec
# Install dependencies
npm install
# Make the server executable
chmod +x server.js
npm start
Add the server to your MCP configuration:
{
"mcpServers": {
"shell-exec-server": {
"command": "/path/to/node",
"args": [
"/absolute/path/to/mcp-server-shell-exec/server.js"
]
}
}
}
{
"mcpServers": {
"shell-exec-server": {
"command": "node",
"args": [
"C:\\path\\to\\mcp-server-shell-exec\\server.js"
]
}
}
}
Execute a shell command in the persistent shell session.
Parameters:
command (string, required): The shell command to executerunInBackground (boolean, optional): Whether to run the command in the background. Default: falsetimeoutMs (number, optional): Timeout in milliseconds for the command. Default: 30000Returns:
success (boolean): Whether the command executed successfullyoutput (string): Output from the command executionReset the shell session. This will kill the current session and start a new one.
Parameters: None
Returns:
success (boolean): Whether the shell was reset successfullymessage (string): Status messageExecute a simple command:
execute-command(command: "ls -la")
Run a long-running command in the background:
execute-command(command: "sleep 60 && echo 'Done'", runInBackground: true)
Execute a command with a custom timeout:
execute-command(command: "find / -name '*.js'", timeoutMs: 60000)
Reset the shell session:
reset-shell()
The server uses Node.js to create a shell process that maintains state between commands. This allows for:
If you encounter issues with the MCP server, check the following:
If you see "Tool execution failed" errors, check:
You can test the server directly by sending a command:
echo '{"id":"test1","jsonrpc":"2.0","method":"execute-command","params":{"command":"echo \"Hello World\""}}' | node server.js
This should return a properly formatted JSON response with the output.
Double-check the paths in your configuration:
Claim this server with your GitHub account to request manual ownership verification.
Link to the catalog listing for Persistent shell execution MCP server from your README. This badge does not certify ownership, compatibility or security.
[](https://awesome-mcp.com/servers/mcp-server-shell-exec)Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.
来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。
尚无已审核的包 / 镜像标识,暂不展示下载统计。
Alternative and complementary servers in the same category

A directory listing describing a cancellation-letter and mailing-address service. The configured public GitHub repository returned 404 during source verification.

A hosted MCP service for browsing and searching through Singapore mobile-network proxies.

A directory listing describing a Markdown-to-PDF service. The configured public GitHub repository returned 404 during source verification.