Windows Command Line MCP Server
A secure Model Context Protocol server that allows AI models to safely interact with Windows command-line functionality, enabling controlled execution of system commands, project creation, and system information retrieval.
alxspiker
Tools
list_running_processes
List all running processes on the system. Can be filtered by providing an optional filter string that will match against process names.
get_system_info
Retrieve system information including OS, hardware, and user details. Can provide basic or full details.
get_network_info
Retrieve network configuration information including IP addresses, adapters, and DNS settings. Can be filtered to a specific interface.
get_scheduled_tasks
Retrieve information about scheduled tasks on the system. Can query all tasks or get detailed status of a specific task.
get_service_info
Retrieve information about Windows services. Can query all services or get detailed status of a specific service.
list_allowed_commands
List all commands that are allowed to be executed by this server. This helps understand what operations are permitted.
execute_command
Execute a Windows command and return its output. Only commands in the allowed list can be executed. This tool should be used for running simple commands like 'dir', 'echo', etc.
execute_powershell
Execute a PowerShell script and return its output. This allows for more complex operations and script execution. PowerShell must be in the allowed commands list.
README
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.
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
- execute_command: Run Windows CLI commands
- execute_powershell: Execute PowerShell scripts
- create_project: Safely create new development projects
- list_running_processes: Retrieve active system processes
- get_system_info: Collect system configuration details
- get_network_info: Retrieve network adapter information
- get_scheduled_tasks: List and query system tasks
- get_service_info: Manage and query Windows services
- 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:
- Build the server using the setup instructions above
- 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.
- Restart Claude for Desktop
- 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
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature
) - Commit your changes (
git commit -m 'Add some amazing feature'
) - Push to the branch (
git push origin feature/amazing-feature
) - 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.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
MCP Package Docs Server
Facilitates LLMs to efficiently access and fetch structured documentation for packages in Go, Python, and NPM, enhancing software development with multi-language support and performance optimization.
Claude Code MCP
An implementation of Claude Code as a Model Context Protocol server that enables using Claude's software engineering capabilities (code generation, editing, reviewing, and file operations) through the standardized MCP interface.
@kazuph/mcp-taskmanager
Model Context Protocol server for Task Management. This allows Claude Desktop (or any MCP client) to manage and execute tasks in a queue-based system.
Linear MCP Server
Enables interaction with Linear's API for managing issues, teams, and projects programmatically through the Model Context Protocol.
mermaid-mcp-server
A Model Context Protocol (MCP) server that converts Mermaid diagrams to PNG images.
Jira-Context-MCP
MCP server to provide Jira Tickets information to AI coding agents like Cursor

Linear MCP Server
A Model Context Protocol server that integrates with Linear's issue tracking system, allowing LLMs to create, update, search, and comment on Linear issues through natural language interactions.

Sequential Thinking MCP Server
This server facilitates structured problem-solving by breaking down complex issues into sequential steps, supporting revisions, and enabling multiple solution paths through full MCP integration.