CMD MCP Server

by PhialsBasement

205 downloads
Not rated
GitHub

About

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

Details

Author
PhialsBasement
Downloads
205
Categories
Other

- Execute CMD commands through MCP
- TypeScript implementation built on the official MCP SDK
- Cross-platform compatibility (Windows and Linux)
- SSH connection support

Setting up with Highlight

This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:

  1. Download and install Highlight from highlightai.com/download
  2. Navigate to the plugins tab and select "Add Custom Plugin"
  3. Configure the plugin with the settings below
    Plugin Name CMD MCP Server
    Command (node, npx, python, etc.)

    Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.

  4. Enable "Start Automatically" if you want the plugin to start when Highlight launches

From the repository

Install via npm (npm install server-cmd) or automatically via Smithery (npx -y @smithery/cli install server-cmd --client claude). Then import and initialize the server in TypeScript: const server = new MCPCmdServer(); server.start();. Configuration can be passed via environment variables or a config object.

Claude Desktop / Cursor

Paste into your MCP client config file to install this server.

{
    "mcpServers": {
        "cmd mcp server": {
            "CMD-MCP-Server": {
                "command": "npx",
                "args": [
                    "-y",
                    "@smithery/cli",
                    "install",
                    "server-cmd",
                    "--client",
                    "claude"
                ]
            }
        }
    }
}

McpServers

{
    "CMD-MCP-Server": {
        "command": "npx",
        "args": [
            "-y",
            "@smithery/cli",
            "install",
            "server-cmd",
            "--client",
            "claude"
        ]
    }
}

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.

<a href="https://glama.ai/mcp/servers/s83mqs6123">cmd-mcp-server MCP server</a>

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

2. Install dependencies:

npm install

3. 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.

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.