Skip to main content
Glama

cmd-mcp-server

CMD MCP 服务器

npm 下载一个模型上下文协议 (MCP) 服务器实现,用于在 Windows 和 Linux 上执行 CMD 命令,并允许 SSH 连接。此服务器允许您将命令行操作与兼容 MCP 的应用程序集成。

特征

  • 通过MCP执行CMD命令
  • TypeScript 实现
  • 基于官方 MCP SDK 构建
  • 跨平台兼容性

安装

通过 Smithery 安装

要通过Smithery自动为 Claude Desktop 安装 CMD 服务器:

npx -y @smithery/cli install server-cmd --client claude

手动安装

npm install server-cmd

先决条件

  • Node.js(建议使用 v16 或更高版本)
  • npm 或 yarn 包管理器

用法

import { MCPCmdServer } from 'server-cmd'; // Initialize the server const server = new MCPCmdServer(); // Start the server server.start();

配置

可以通过环境变量或配置对象来配置服务器:

const config = { // Add your configuration options here }; const server = new MCPCmdServer(config);

发展

设置开发环境:

  1. 克隆存储库:
git clone https://github.com/PhialsBasement/CMD-MCP-Server.git cd CMD-MCP-Server
  1. 安装依赖项:
npm install
  1. 构建项目:
npm run build

脚本

  • npm run build将 TypeScript 编译为 JavaScript
  • npm run prepare准备发布的包

依赖项

  • @modelcontextprotocol/sdk : ^1.0.1
  • glob :^10.3.10
  • zod-to-json-schema :^3.23.5

贡献

欢迎贡献代码!欢迎提交 Pull 请求。

执照

该项目根据 MIT 许可证获得许可 - 有关详细信息,请参阅 LICENSE 文件。

安全

请注意,执行命令行操作可能存在潜在危险。在生产环境中使用此服务器时,请务必实施适当的安全措施并进行输入验证。

支持

对于问题和功能请求,请使用GitHub 问题跟踪器

You must be authenticated.

A
security – no known vulnerabilities
A
license - permissive license
A
quality - confirmed to work

local-only server

The server can only run on the client's local machine because it depends on local resources.

MCP 服务器允许通过 CMD 执行任何和所有命令

  1. 特征
    1. 安装
      1. 通过 Smithery 安装
      2. 手动安装
    2. 先决条件
      1. 用法
        1. 配置
          1. 发展
            1. 脚本
              1. 依赖项
                1. 贡献
                  1. 执照
                    1. 安全
                      1. 支持

                        Related MCP Servers

                        • A
                          security
                          A
                          license
                          A
                          quality
                          An MCP server to run commands.
                          Last updated -
                          2
                          265
                          150
                          TypeScript
                          MIT License
                          • Apple
                        • A
                          security
                          A
                          license
                          A
                          quality
                          A secure shell command execution server implementing the Model Context Protocol (MCP). This server allows remote execution of whitelisted shell commands with support for stdin input.
                          Last updated -
                          1
                          74
                          Python
                          MIT License
                          • Apple
                        • A
                          security
                          A
                          license
                          A
                          quality
                          A secure MCP server for executing whitelisted shell commands with resource and timeout controls, designed for integration with Claude and other MCP-compatible LLMs.
                          Last updated -
                          20
                          143
                          2
                          TypeScript
                          MIT License
                        • -
                          security
                          A
                          license
                          -
                          quality
                          An MCP server that enables secure execution of shell commands across Windows, macOS, and Linux with built-in whitelisting and approval mechanisms for enhanced security.
                          Last updated -
                          13
                          JavaScript
                          MIT License
                          • Linux
                          • Apple

                        View all related MCP servers

                        MCP directory API

                        We provide all the information about MCP servers via our MCP API.

                        curl -X GET 'https://glama.ai/api/mcp/v1/servers/PhialsBasement/CMD-MCP-Server'

                        If you have feedback or need assistance with the MCP directory API, please join our Discord server