Cover image
alxspiker_windows-command-line-MCP-Server
Public

alxspiker_windows-command-line-MCP-Server

Try Now
2025-03-31

镜像://github.com/alxspiker/windows-command-line-mcp-server

3 years

Works with Finder

0

Github Watches

0

Github Forks

0

Github Stars

Windows Command Line MCP Server

A secure Model Context Protocol (MCP) server that enables AI models to interact with Windows command-line functionality safely and efficiently.

Version License: MIT smithery badge

Overview

The Windows Command Line MCP Server provides a robust, secure bridge between AI models and Windows system operations. It allows controlled execution of commands, project creation, and system information retrieval while maintaining strict security protocols.

Key Features

🔒 Enhanced Security

  • Comprehensive command allowlist
  • Strict input validation
  • Prevention of destructive system operations
  • Configurable security levels

🛠 Development Tools Support

  • Project creation for React, Node.js, and Python
  • Safe development environment interactions
  • Expanded command support for development workflows

🖥 System Interaction Capabilities

  • Execute Windows CLI commands
  • Run PowerShell scripts
  • Retrieve system and network information
  • Manage processes and services

Installation

Installing via Smithery

To install Windows Command Line MCP Server for Claude Desktop automatically via Smithery:

npx -y @smithery/cli install @alxspiker/Windows-Command-Line-MCP-Server --client claude

Prerequisites

  • Node.js 16 or later
  • npm or yarn
  • Windows operating system

Setup

git clone https://github.com/alxspiker/Windows-Command-Line-MCP-Server.git
cd Windows-Command-Line-MCP-Server
npm install
npm run build

Usage

Command Line Options

  • Default mode: Uses predefined safe commands
  • --allow-all: Run in extended mode (with additional precautions)
  • Custom command lists can be specified as arguments

Project Creation

Create new projects safely with the built-in project creation tool:

  • Supported project types: React, Node.js, Python
  • Projects created in a sandboxed ~/AIProjects directory

Available Tools

  1. execute_command: Run Windows CLI commands
  2. execute_powershell: Execute PowerShell scripts
  3. create_project: Safely create new development projects
  4. list_running_processes: Retrieve active system processes
  5. get_system_info: Collect system configuration details
  6. get_network_info: Retrieve network adapter information
  7. get_scheduled_tasks: List and query system tasks
  8. get_service_info: Manage and query Windows services
  9. list_allowed_commands: List all commands that can be executed by the server

Using with Claude for Desktop

To use this server with Claude for Desktop:

  1. Build the server using the setup instructions above
  2. Add it to your claude_desktop_config.json:
{
  "mcpServers": {
    "windows-cmd": {
      "command": "node",
      "args": ["/path/to/dist/index.js"]
    }
  }
}

Replace /path/to/dist/index.js with the absolute path to the built index.js file in the dist directory.

  1. Restart Claude for Desktop
  2. You can now use the tools by asking Claude to perform Windows system operations

Security Considerations

Allowed Commands

By default, only safe commands are permitted:

  • System information retrieval
  • Network configuration
  • Process management
  • Development tool interactions

Blocked Operations

Dangerous commands are always blocked, including:

  • Disk formatting
  • User management
  • System shutdown
  • Critical registry modifications

Configuration

Customize the server's behavior by specifying allowed commands or using configuration flags.

Example

# Run with default safe commands
node dist/index.js

# Run with specific allowed commands
node dist/index.js dir echo npm git

# Run in extended mode (use with caution)
node dist/index.js --allow-all

Contributing

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add some amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

License

This project is licensed under the MIT License - see the LICENSE file for details.

Acknowledgements

  • Inspired by the Model Context Protocol specification
  • Developed with security and flexibility in mind

Version History

  • 0.3.0: Implemented all tools mentioned in README (system info, network info, process management, service info)
  • 0.2.0: Added project creation, expanded development tools
  • 0.1.0: Initial release with basic command execution capabilities

Support

For issues, questions, or suggestions, please open an issue on GitHub.

相关推荐

  • Joshua Armstrong
  • Confidential guide on numerology and astrology, based of GG33 Public information

  • https://suefel.com
  • Latest advice and best practices for custom GPT development.

  • Alexandru Strujac
  • Efficient thumbnail creator for YouTube videos

  • Emmet Halm
  • Converts Figma frames into front-end code for various mobile frameworks.

  • Elijah Ng Shi Yi
  • Advanced software engineer GPT that excels through nailing the basics.

  • lumpenspace
  • Take an adjectivised noun, and create images making it progressively more adjective!

  • Lists Tailwind CSS classes in monospaced font

  • https://maiplestudio.com
  • Find Exhibitors, Speakers and more

  • https://appia.in
  • Siri Shortcut Finder – your go-to place for discovering amazing Siri Shortcuts with ease

  • Carlos Ferrin
  • Encuentra películas y series en plataformas de streaming.

  • Yusuf Emre Yeşilyurt
  • I find academic articles and books for research and literature reviews.

  • tomoyoshi hirata
  • Sony α7IIIマニュアルアシスタント

  • apappascs
  • 发现市场上最全面,最新的MCP服务器集合。该存储库充当集中式枢纽,提供了广泛的开源和专有MCP服务器目录,并提供功能,文档链接和贡献者。

  • ShrimpingIt
  • MCP系列GPIO Expander的基于Micropython I2C的操作,源自ADAFRUIT_MCP230XX

  • jae-jae
  • MCP服务器使用剧作《无头浏览器》获取网页内容。

  • HiveNexus
  • 一个适用于中小型团队的AI聊天机器人,支持DeepSeek,Open AI,Claude和Gemini等车型。 专为中小团队设计的ai聊天应用,支持deepSeek,打开ai,claude,双子座等模型。

  • ravitemer
  • 一个功能强大的Neovim插件,用于管理MCP(模型上下文协议)服务器

  • patruff
  • Ollama和MCP服务器之间的桥梁,使本地LLMS可以使用模型上下文协议工具

  • pontusab
  • 光标与风浪冲浪社区,查找规则和MCP

    Reviews

    3 (1)
    Avatar
    user_7Edy8nIX
    2025-04-17

    I've been using the alxspiker_Windows-Command-Line-MCP-Server for a while now, and it’s fantastic! The setup is straightforward through the GitHub link, and the welcome information is very helpful. MCP-Mirror has done a stellar job with this server, making command-line management a breeze for Windows. Highly recommended!