cmd-mcp-server

Integrations

  • Allows the execution of command-line operations on Linux systems through a persistent shell session, providing access to Linux system commands and utilities.

CMD MCP Server

A Model Context Protocol (MCP) server implementation for executing CMD commands on both Windows and Linux, as well as allowing SSH connections. This server allows you to integrate command-line operations with MCP-compatible applications.

Features

  • Execute CMD commands through MCP
  • TypeScript implementation
  • Built on the official MCP SDK
  • Cross-platform compatibility

Installation

Installing via Smithery

To install CMD Server for Claude Desktop automatically via Smithery:

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

Manual Installation

npm install server-cmd

Prerequisites

  • Node.js (v16 or higher recommended)
  • npm or yarn package manager

Usage

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

Configuration

The server can be configured through environment variables or a configuration object:

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

Development

To set up the development environment:

  1. Clone the repository:
git clone https://github.com/PhialsBasement/CMD-MCP-Server.git cd CMD-MCP-Server
  1. Install dependencies:
npm install
  1. Build the project:
npm run build

Scripts

  • npm run build - Compile TypeScript to JavaScript
  • npm run prepare - Prepare the package for publishing

Dependencies

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

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Security

Please note that executing command-line operations can be potentially dangerous. Make sure to implement proper security measures and input validation when using this server in production environments.

Support

For issues and feature requests, please use the GitHub issue tracker.

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 server allowing any and all command execution over CMD

  1. Features
    1. Installation
      1. Installing via Smithery
      2. Manual Installation
    2. Prerequisites
      1. Usage
        1. Configuration
          1. Development
            1. Scripts
              1. Dependencies
                1. Contributing
                  1. License
                    1. Security
                      1. Support

                        Related MCP Servers

                        • A
                          security
                          A
                          license
                          A
                          quality
                          An MCP server to run commands.
                          Last updated -
                          2
                          556
                          133
                          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

                        ID: s83mqs6123