MCP.so
登录

Shell MCP Server

@blazickjp

基本信息

分类

开发工具

最近更新

许可证

Apache-2.0

传输方式

stdio

作者

blazickjp

关于 Shell MCP Server

Secure shell command execution MCP server for Claude AI. Enables controlled shell access within specified directories.

Shell MCP Server 配置

使用下面的配置,将此服务器添加到你的 MCP 客户端。

{
  "mcpServers": {
    "shell-mcp-server": {
      "command": "uv",
      "args": [
        "pip",
        "install",
        "shell-mcp-server"
      ]
    }
  }
}

Shell MCP Server 工具

工具列表暂未提供

当前收录暂时没有可展示的工具列表,不代表服务没有工具。请查阅项目文档了解支持的能力。

工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。

概览

What is 🖥️ Shell MCP Server?

A Model Context Protocol server that adds secure shell command execution to AI applications. It allows developers to run shell commands (bash, sh, cmd, powershell) in restricted directories, integrating safely with AI assistants like Claude.

How to use 🖥️ Shell MCP Server?

Install via pip install shell-mcp-server or uv pip install shell-mcp-server. Configure by specifying allowed directories and shell executable paths as command-line arguments. Integrate with Claude Desktop by adding a JSON entry to its config. Invoke the execute_command tool with command, shell, and cwd parameters.

Key features of 🖥️ Shell MCP Server

  • Secure execution restricted to specified directories only
  • Multiple shell support: bash, sh, cmd, powershell
  • Configurable timeout control for long-running commands
  • Cross-platform compatibility (Unix and Windows)
  • Built-in directory and shell validation for safety

Use cases of 🖥️ Shell MCP Server

  • List files, search patterns, and perform basic file operations
  • Run git commands and package management tasks
  • Monitor system resource usage and process information
  • Search file content with grep and process data with awk
  • Execute Windows-specific commands via PowerShell or cmd

常见问题

1

What shells are supported?

bash, sh, cmd, and powershell are supported. Shells are configured via the `--shell` argument with name and path.

2

How do I set the command timeout?

Set the `COMMAND_TIMEOUT` environment variable (in seconds). The default timeout is 30 seconds.

3

What security measures are in place?

Commands run only in allowed directories, only configured shells can be used, all commands have a timeout, working directory traversal is prevented, and commands run with the same permissions as the server process.

4

Is 🖥️ Shell MCP Server cross-platform?

Yes, it works on both Unix and Windows systems.

5

How do I integrate with Claude Desktop?

Add a block to your Claude Desktop config that specifies the `uv` command, the path to the server, allowed directories, and shell configurations.

评论

开发工具 分类下的更多 MCP 服务器