Shell / Terminal MCP Server Configuration & Usage Guide

📦
Installationnpx
⚠️
Risk LevelHigh Risk
🔑
API KeyNot Required
💻
Clients2 supported

执行 shell 命令,支持运行脚本和系统操作

High Risk Category: Deploy & Operations Verified: 2026-05-18 Status: Verified

Supported Clients

Installation Command

npx -y @modelcontextprotocol/server-shell

Configuration Example

{
  "mcpServers": {
    "shell": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-shell"
      ]
    }
  }
}

Permission Scope & Security Notes

可执行任意 shell 命令,风险极高,仅在完全信任的环境中使用

Risk Score:9/10

Common Errors

命令未找到
确认命令在系统 PATH 中
权限被拒绝
部分命令Required管理员权限

Sources

Recently Verified:2026-05-18。Client versions and configuration formats may change. Please refer to official documentation before use.

Related Tools