Get the FREE Ultimate OpenClaw Setup Guide →

CMD

MCP server for executing CMD commands. Can be hooked to claude for additional agentics.

Installation
Run this command in your terminal to add the MCP server to Claude Code.
Run in terminal:
Command
claude mcp add --transport stdio phialsbasement-cmd-mcp-server npx -y server-cmd

How to use

CMD MCP Server provides a way to execute command-line operations through MCP-compatible clients. Built in TypeScript and leveraging the official MCP SDK, this server exposes a CMD execution interface that works across Windows and Linux, and it also supports establishing SSH connections when needed. This combination makes it suitable for integrating system administration tasks, automated scripts, or remote command execution into MCP-powered workflows. After starting the server, clients can send command contexts to be executed and receive structured results, enabling seamless orchestration within your MCP ecosystem.

How to install

Prerequisites:

  • Node.js v16 or higher
  • npm (or yarn) installed

Install from npm:

npm install server-cmd

Or install via Smithery (automatic client setup):

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

Development setup (optional if you want to contribute):

git clone https://github.com/PhialsBasement/CMD-MCP-Server.git
cd CMD-MCP-Server
npm install

Build (if you are distributing a compiled package):

npm run build

Additional notes

Security: Executing command-line operations can expose your system to risks. Ensure proper authentication, input validation, and access controls in production. If SSH functionality is used, consider restricting allowed commands and enabling logging. Environment variables and a configuration object can be used to customize server behavior; refer to the project repository for available options. When debugging, run with verbose logging if supported by the installed package, and verify that the MCP client is sending properly structured command contexts.

Related MCP Servers

Sponsor this space

Reach thousands of developers