MCP ExplorerExplorer

Cmd Mcp Server

@PhialsBasementon a year ago
16 MIT
FreeCommunity
AI Systems
MCP server for executing CMD commands. Can be hooked to claude for additional agentics.

Overview

What is Cmd Mcp Server

CMD-MCP-Server is a Model Context Protocol (MCP) server designed for executing CMD commands on both Windows and Linux systems. It supports SSH connections and can be integrated with MCP-compatible applications.

Use cases

Use cases for CMD-MCP-Server include automating deployment processes, executing scripts remotely via SSH, and integrating command-line tools with applications that support MCP.

How to use

To use CMD-MCP-Server, you can install it via Smithery with the command ‘npx -y @smithery/cli install server-cmd --client claude’ or manually using ‘npm install server-cmd’. After installation, initialize the server with ‘const server = new MCPCmdServer();’ and start it using ‘server.start();’.

Key features

Key features of CMD-MCP-Server include the ability to execute CMD commands through MCP, a TypeScript implementation, cross-platform compatibility, and being built on the official MCP SDK.

Where to use

CMD-MCP-Server can be used in various fields that require command-line operations, such as software development, system administration, and automation tasks across different operating systems.

Content

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.

Tools

No tools

Comments

Recommend MCP Servers

View All MCP Servers