Fire in da houseTop Tip:Paying $100+ per month for Perplexity, MidJourney, Runway, ChatGPT and other tools is crazy - get all your AI tools in one site starting at $15 per month with Galaxy AI Fire in da houseCheck it out free

CMD-MCP-Server

MCP.Pizza Chef: PhialsBasement

CMD-MCP-Server is a cross-platform Model Context Protocol (MCP) server designed to execute CMD commands on Windows and Linux systems, with support for SSH connections. Built with TypeScript and the official MCP SDK, it enables seamless integration of command-line operations into MCP-compatible applications and AI agents such as Claude. This server facilitates real-time command execution and interaction within AI workflows, enhancing automation and operational control across diverse environments.

Use This MCP server To

Execute system CMD commands via MCP interface Integrate command-line operations with AI agents Enable SSH command execution through MCP Automate server management tasks remotely Run cross-platform shell commands in workflows Enhance AI agent capabilities with system control

README

CMD MCP Server

smithery badge npm downloads 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.

cmd-mcp-server MCP server

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.

CMD-MCP-Server FAQ

How do I install CMD-MCP-Server with Claude Desktop?
Use Smithery CLI with the command `npx -y @smithery/cli install server-cmd --client claude` for automatic installation.
Is CMD-MCP-Server compatible with both Windows and Linux?
Yes, it supports executing CMD commands on both Windows and Linux platforms.
Can CMD-MCP-Server handle SSH connections?
Yes, it allows SSH connections to execute commands remotely via MCP.
What programming language is CMD-MCP-Server implemented in?
It is implemented in TypeScript using the official MCP SDK.
How does CMD-MCP-Server integrate with AI models?
It exposes command-line execution capabilities to MCP clients, enabling models like Claude, GPT-4, and Gemini to interact with system commands.
Is CMD-MCP-Server open source and where can I find it?
Yes, it is open source and available on GitHub with installation instructions provided.
Can I use CMD-MCP-Server with LLM providers other than Claude?
Yes, it is compatible with any MCP client, allowing integration with models like OpenAI's GPT-4, Anthropic's Claude, and Google Gemini.
Does CMD-MCP-Server support secure command execution?
It supports SSH for secure remote command execution and can be configured to limit command scope for safety.