MCP.so
登录

Shell MCP Server

@odysseus0

基本信息

分类

开发工具

传输方式

stdio

作者

odysseus0

关于 Shell MCP Server

暂无概览

Shell MCP Server 配置

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

{
  "mcpServers": {
    "mcp-server-shell": {
      "command": "python",
      "args": [
        "-m",
        "mcp_server_shell"
      ]
    }
  }
}

Shell MCP Server 工具

1

Execute a shell command and return its output

概览

What is Shell MCP Server?

A Model Context Protocol server that provides shell command execution capabilities. It enables LLMs to execute shell commands and receive their output in a controlled manner.

How to use Shell MCP Server?

Install via uvx mcp-server-shell or pip install mcp-server-shell, then configure the server in your MCP client (e.g., Claude.app or Zed) by adding the appropriate JSON entry. Use the execute_command tool with a command string argument to run any shell command.

Key features of Shell MCP Server

  • Executes shell commands and returns combined stdout/stderr output.
  • Returns the command’s exit code for success/failure detection.
  • Supports installation via uv (uvx) or pip.
  • Ready‑made configurations for Claude.app and Zed.
  • Can be debugged using the MCP inspector.
  • Licensed under the MIT License.

Use cases of Shell MCP Server

  • “List files in the current directory.”
  • “Show the contents of a specific file (e.g., README.md).”
  • “Check the current system date.”
  • “Verify if Python is installed and its version.”

常见问题

1

What does the Shell MCP Server do?

It gives LLMs the ability to run arbitrary shell commands and receive their output (stdout, stderr) and exit code in real time.

2

How do I install the Shell MCP Server?

You can run it directly with `uvx mcp-server-shell` (no install needed) or install it via `pip install mcp-server-shell` and then execute `python -m mcp_server_shell`.

3

How do I configure the server for Claude.app?

Add a JSON entry to your Claude settings under `mcpServers` – either using `uvx` or `python` as the command, with the appropriate arguments.

4

Are there security risks?

Yes. The server executes shell commands directly on your system. Use with caution and implement appropriate security measures to prevent unauthorized or dangerous command execution.

5

How can I debug the server?

Use the MCP inspector tool: run `npx @modelcontextprotocol/inspector uvx mcp-server-shell` (or a similar command for pip installations).

评论

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