cmd-mcp-server
CMD MCP サーバー
WindowsとLinuxの両方でCMDコマンドを実行し、SSH接続を可能にするモデルコンテキストプロトコル(MCP)サーバー実装。このサーバーにより、コマンドライン操作をMCP対応アプリケーションに統合できます。
特徴
MCP を介して CMD コマンドを実行する
TypeScript実装
公式MCP SDKをベースに構築
クロスプラットフォームの互換性
Related MCP server: Globalping
インストール
Smithery経由でインストール
Smithery経由で Claude Desktop 用の CMD サーバーを自動的にインストールするには:
npx -y @smithery/cli install server-cmd --client claude手動インストール
npm install server-cmd前提条件
Node.js(v16以上を推奨)
npm または yarn パッケージマネージャー
使用法
import { MCPCmdServer } from 'server-cmd';
// Initialize the server
const server = new MCPCmdServer();
// Start the server
server.start();構成
サーバーは、環境変数または構成オブジェクトを通じて構成できます。
const config = {
// Add your configuration options here
};
const server = new MCPCmdServer(config);発達
開発環境をセットアップするには:
リポジトリをクローンします。
git clone https://github.com/PhialsBasement/CMD-MCP-Server.git
cd CMD-MCP-Server依存関係をインストールします:
npm installプロジェクトをビルドします。
npm run buildスクリプト
npm run build- TypeScript を JavaScript にコンパイルするnpm run prepare- 公開用のパッケージを準備する
依存関係
@modelcontextprotocol/sdk: ^1.0.1glob:^10.3.10zod-to-json-schema: ^3.23.5
貢献
貢献を歓迎します!お気軽にプルリクエストを送信してください。
ライセンス
このプロジェクトは MIT ライセンスに基づいてライセンスされています - 詳細については LICENSE ファイルを参照してください。
安全
コマンドライン操作の実行は潜在的に危険を伴う可能性があることにご注意ください。本番環境でこのサーバーを使用する場合は、適切なセキュリティ対策と入力検証を実装してください。
サポート
問題や機能のリクエストについては、 GitHub の問題追跡ツールを使用してください。
Available Tools
2 toolsexecute_commandA
Execute a command and return its output. Commands run in a persistent shell session by default. Use newSession: true to run in a new shell instance.
Inputs: command (required), newSession.
execute_ssh_commandC
Execute a command on a remote server via SSH. Commands run in a persistent SSH session by default. Use newSession: true to run in a new session.
Inputs: host (required), username (required), command (required), port, +3 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 2 tools
The two tools have clearly distinct purposes: execute_command handles local shell commands, while execute_ssh_command handles remote SSH commands. There is no overlap or ambiguity between them, as each targets a different execution environment.
Both tools follow a consistent verb_noun pattern with 'execute_' as the prefix and descriptive suffixes ('command' and 'ssh_command'). The naming is perfectly uniform and predictable across the tool set.
With only 2 tools, the server feels thin for a command execution domain. It lacks essential operations like listing available commands, managing sessions, or handling file operations, which are common in such contexts. The count is too low for adequate coverage.
The tool set is severely incomplete for command execution. It covers basic local and remote command execution but misses critical functionalities such as session management tools, command history, file transfer, or environment configuration, leaving significant gaps for agent workflows.
Maintenance
Related MCP Connectors
A simple MCP server built with FastMCP and python
Related MCP Servers
- MIT

Globalpingofficial
FlicenseNot gradedqualityBmaintenanceRemote MCP server that gives LLMs access to run network commands66-- AlicenseNot gradedqualityDmaintenanceMCP server exposing pwntools 4.15.0 functionality for binary exploitation tasks.26 PyPI2MIT
- FlicenseNot gradedqualityDmaintenanceMCP server providing filesystem operations, shell execution, and web search capabilities.-