shell-mcp-server

ZHAN2006/shell-mcp-server

3.2

If you are the rightful owner of shell-mcp-server and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

Shell-MCP-Server is a Model Context Protocol (MCP) server designed to execute shell commands securely and efficiently.

shell-mcp-server

MCP Server for executing shell commands

快速开始

通过npx直接运行

npx -y shell-mcp-server

作为MCP服务器配置

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

安装为全局命令

npm install -g shell-mcp-server
shell-mcp-server

作为项目依赖安装

npm install shell-mcp-server

使用方法

直接运行

npx -y shell-mcp-server
# 或安装后
shell-mcp-server

编程方式使用

import { startServer } from 'shell-mcp-server';

startServer({
  port: 3000
});

功能特性

  • 安全执行Shell命令
  • 支持多种终端类型(cmd, powershell)
  • 基于Model Context Protocol (MCP) SDK构建
  • 支持npx一键运行
  • 可作为MCP服务器配置

许可证

MIT