MCP.so
登录
S

Shell MCP Server

@ZHAN2006

基本信息

分类

开发工具

传输方式

stdio

作者

ZHAN2006

提交者

zhan

关于 Shell MCP Server

暂无概览

Shell MCP Server 配置

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

{
  "mcpServers": {
    "shell-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "shell-mcp-server"
      ]
    }
  }
}

Shell MCP Server 工具

1

在服务端操作系统中执行Shell命令,支持不同终端类型。可用于文件操作、系统信息查询、程序运行等场景。注意:具有潜在安全风险,应限制敏感命令执行。

概览

What is Shell Mcp Server?

Shell Mcp Server is an MCP (Model Context Protocol) server that allows you to execute shell commands. It supports multiple terminal types (cmd, PowerShell) and is built on the MCP SDK. Designed for developers and AI agents needing command execution via the MCP protocol.

How to use Shell Mcp Server?

You can run it directly with npx -y shell-mcp-server, install it globally (npm install -g shell-mcp-server and run shell-mcp-server), or add it as a project dependency. For MCP client configuration, use the provided JSON to point to the server. Programmatically, import startServer and call it with options like port.

Key features of Shell Mcp Server

  • Securely executes shell commands
  • Supports cmd and PowerShell terminals
  • Built on the Model Context Protocol SDK
  • One‑command run via npx
  • Configurable as an MCP server

Use cases of Shell Mcp Server

  • Run system commands from an MCP‑enabled AI agent
  • Integrate shell operations into MCP workflows
  • Provide a command‑line interface as an MCP tool
  • Automate terminal tasks through MCP clients

常见问题

1

What is the main purpose of Shell Mcp Server?

It lets MCP clients execute shell commands safely, supporting different terminal environments like cmd and PowerShell.

2

Can I use it without installing Node.js?

No, because it is distributed via npm and runs on Node.js. You need Node.js to run `npx` or to install the package.

3

How do I configure it for my MCP client?

Add the following JSON to your `mcpServers` configuration: ```json { "mcpServers": { "shell-mcp-server": { "command": "npx", "args": ["-y", "shell-mcp-server"] } } } ```

4

What transport protocol does it use?

The README does not specify the transport; it simply uses the MCP SDK’s default server setup.

5

Can I restrict which commands can be executed?

The README only states “safe execution of shell commands” but provides no details on restrictions or sandboxing.

评论

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