Provides comprehensive Git repository management including staging changes, creating commits, pushing to remotes, checking repository status, branch management, and conflict resolution tools.
Windows Operations MCP
A high-performance Windows system operations server implementing the FastMCP 2.12.3 protocol, providing seamless integration with Claude Desktop and other MCP clients through both stdio and HTTP interfaces.
๐ Key Features
FastMCP 2.12.3 Integration
Dual Protocol Support: Implements both stdio and HTTP transport layers for maximum compatibility
Stateful Tools: Leverages FastMCP 2.12.3's stateful tool capabilities for efficient operations
Type Safety: Full type annotations and validation using Pydantic models
Async I/O: Built on Python's asyncio for high concurrency
๐ ๏ธ Implemented Tools
โ PowerShell & Command Execution
Safe PowerShell command execution with output capture
CMD command support with proper error handling
Working directory validation and safety checks
Timeout management and process monitoring
โ File Operations
Create, delete, move, copy files and directories
File attribute management (read-only, hidden, system)
Timestamp manipulation (creation, modification, access times)
Archive creation and extraction (ZIP, TAR, TAR.GZ)
Text file editing with backup support
โ System Tools
Comprehensive system information gathering
Health checks and diagnostics
Process monitoring and management
Environment and configuration reporting
โ Network Tools
Port connectivity testing (TCP/UDP)
DNS resolution and hostname verification
Network latency measurement
โ Git Version Control
Repository status checking
File staging and committing
Push operations with remote management
Full Git workflow support
โ Media Metadata
EXIF data reading/writing for images (JPEG, PNG, TIFF, WebP)
ID3 tag management for MP3 files
Metadata extraction and updating
Support for common media formats
๐ก Communication Protocol
stdio (Primary)
Default Transport: Uses stdio for maximum compatibility with Claude Desktop
Low Latency: Direct process communication for minimal overhead
Simple Integration: No network configuration required
๐๏ธ Architecture
๐ Getting Started
Prerequisites
Python 3.8+
FastMCP 2.12.3+
Windows 10/11 or Windows Server 2016+
Installation
Running the Server
stdio Mode (Recommended for Claude Desktop)
Or using the entry point:
๐ Integration
Claude Desktop Configuration
Add to your claude_desktop_config.json
:
Setup Instructions:
Copy the configuration above to your Claude Desktop MCP settings
Ensure Python 3.8+ is installed and available in PATH
The server will automatically load all dependencies from
pyproject.toml
All tools will be available immediately after configuration
HTTP API Clients
๐ File Management
Core File Operations
Atomic Writes: Safe file modifications with automatic rollback on failure
Automatic Backups: Configurable backup system with timestamped versions
Line Ending Handling: Automatic detection and normalization of line endings (Windows/Unix/Mac)
Text Encoding: Automatic detection and handling of different text encodings
File Locking: Safe concurrent access with file locking
Large File Support: Efficient handling of large text files
๐ฅ๏ธ Command Execution
Process Management
PowerShell & CMD: Reliable execution with file-based output capture
Working Directory: Execute commands in specific directories
Timeout Control: Configurable execution timeouts
Error Handling: Comprehensive error reporting and recovery
Advanced File Operations
File Attributes: Get and set file attributes (read-only, hidden, system, etc.)
File Timestamps: Get and set file creation, modification, and access times
Metadata Inspection: Detailed file metadata and content inspection
Directory Navigation: Advanced filtering, searching, and tree views
Pattern Matching: Glob pattern support for file filtering
Archive Handling: Create, extract, and list contents of ZIP, RAR, TAR, and TAR.GZ archives
Markdown Tools: Built-in Markdown formatting and linting
Encoding Detection: Automatic handling of different text encodings
๐ Network Tools
Network Diagnostics
Port Testing: TCP/UDP port accessibility testing
DNS Resolution: Hostname resolution with error handling
Response Timing: Network latency measurement
๐ป Git Integration
Version Control Features
Repository Operations: Stage, commit, and push changes
Status Checking: View repository status with detailed changes
Branch Management: Work with branches and remotes
Conflict Resolution: Tools to help resolve merge conflicts
โ Help & Documentation
Help System Features
Interactive Help: Multi-level help with different detail levels
Command Discovery: Find commands by category or search term
Detailed Documentation: Access comprehensive documentation for each command
Usage Examples: See examples of how to use each command
๐ System Monitoring
Monitoring Capabilities
System Information: Comprehensive OS and hardware details
Process Management: List and monitor running processes (requires psutil)
Resource Usage: CPU, memory, and disk utilization tracking
Health Checks: Server diagnostics and dependency verification
๐จ Media Handling
Media Processing Features
Image Metadata: Read and write EXIF data from images (JPEG, PNG, TIFF, WebP)
Audio Metadata: Read and write ID3 tags from MP3 files
Unified Interface: Consistent API for different media types
File Type Detection: Automatic handling based on file extension
๐ฆ Archive Management
Supported Archive Operations
Create Archives: Create new archives from files and directories
Extract Archives: Extract files from existing archives
List Contents: View the contents of an archive without extracting
Password Protection: Support for password-protected archives
Streaming: Efficient handling of large archives
Requirements
For RAR support:
rarfile
package andunrar
command-line tool in PATHFor TAR.GZ support:
python-libarchive-c
package
Usage Examples
Create an Archive
Extract an Archive
List Archive Contents
Configuration Options
You can configure archive operations through the DXT manifest's user_config
section:
enable_archive_operations
: Enable/disable all archive operations (default:true
)max_archive_size_mb
: Maximum archive size in MB for extraction (default:1024
)allowed_archive_extensions
: Comma-separated list of allowed archive file extensions (default:.zip,.rar,.tar,.tar.gz,.tgz
)
๐ป Code Examples
Git Integration Examples
Help System Examples
๐ ๏ธ Installation
System Requirements
Python 3.8+
Windows (optimized for, but cross-platform compatible)
FastMCP 2.12.3+
Install Dependencies
Install from Source
โ๏ธ Configuration
Claude Desktop Integration
Add to your Claude Desktop claude_desktop_config.json
:
Environment Variables
Variable | Default | Description |
|
| Logging level (DEBUG, INFO, WARNING, ERROR, CRITICAL) |
|
| Port for HTTP server (when enabled) |
|
| Enable HTTP server interface |
|
| Maximum number of concurrent operations |
๐ Usage Examples
Command Execution
File Management
Network Diagnostics
System Monitoring
๐๏ธ System Architecture
Component Structure
Technical Highlights
File-based Output Capture: Works around Claude Desktop PowerShell limitations
Robust Error Handling: Comprehensive validation and error recovery
FastMCP 2.12.3 Compliance: Modern MCP protocol implementation with stateful tools support
Austrian Dev Efficiency: Clean, maintainable, production-ready code
๐ Development
Development Setup
Clone the repository:
git clone https://github.com/sandraschi/windows-operations-mcp.git cd windows-operations-mcpCreate and activate a virtual environment:
python -m venv .venv .\.venv\Scripts\activate # On WindowsInstall development dependencies:
pip install -e .[dev]
Run in Development Mode
Enable Debug Logging
Running Tests
Code Quality
๐ License
This project is licensed under the MIT License - see the LICENSE file for details.
๐ฅ Contributing
Contributions are welcome! Please follow these steps:
Fork the repository
Create a 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
Development Guidelines
Follow PEP 8 style guide
Write docstrings for all public functions and classes
Include type hints for better code maintainability
Add tests for new features and bug fixes
Update documentation when adding new features
Reporting Issues
Please use the GitHub issue tracker to report bugs or suggest enhancements.
๐ญ Development Philosophy
This project follows pragmatic development principles:
Working Solutions: Focus on delivering functional solutions quickly
Clean Code: Maintainable and well-documented codebase
Robustness: Comprehensive error handling and recovery
Production-Ready: Battle-tested in real-world scenarios
No Placeholders: Every feature is fully implemented and tested
๐ Project Status
โ Completed Features
All Core Tools Implemented: PowerShell, File Ops, Git, Archive, Media, System, Network
Comprehensive Testing: Unit and integration tests with real operations (no mocks)
MCP Protocol Compliance: Full FastMCP 2.12.3 integration
Windows Optimization: Native Windows command execution and file handling
Production-Ready Architecture: Error handling, logging, and resource management
๐ Ready for Production
MCP server with all tools functional
Working test suite with 8% code coverage (functional foundation)
Claude Desktop integration configured
Documentation and setup guides complete
78% production readiness per audit checklist
๐ค Community & Support
GitHub Discussions: Join the conversation
Issue Tracker: Report issues
Contributing: See CONTRIBUTING.md for guidelines
Built with โค๏ธ for Windows automation and Claude Desktop integration.
This server cannot be installed
local-only server
The server can only run on the client's local machine because it depends on local resources.
Enables comprehensive Windows system management through Claude Desktop, including PowerShell/CMD execution, file operations, archive handling, Git tools, network testing, and system monitoring. Provides a complete toolkit for Windows automation and administration tasks.
- ๐ Key Features
- ๐ ๏ธ Implemented Tools
- ๐ก Communication Protocol
- ๐๏ธ Architecture
- ๐ Getting Started
- ๐ Integration
- ๐ File Management
- ๐ฅ๏ธ Command Execution
- ๐ป Git Integration
- โ Help & Documentation
- ๐ System Monitoring
- ๐จ Media Handling
- ๐ฆ Archive Management
- ๐ป Code Examples
- ๐ ๏ธ Installation
- โ๏ธ Configuration
- ๐ Usage Examples
- ๐๏ธ System Architecture
- ๐ Development
- ๐ License
- ๐ฅ Contributing
- ๐ญ Development Philosophy
- ๐ Project Status
- ๐ค Community & Support
Related MCP Servers
- -securityAlicense-qualityA comprehensive code analysis and management tool that integrates with Claude Desktop to analyze code at project and file levels, helping adapt changes to projects intelligently.Last updated -39MIT License
- AsecurityAlicenseAqualityAllows Claude desktop app to execute terminal commands and edit files on your computer through MCP, with features including command execution, process management, and diff-based file editing.Last updated -2122,9694,607MIT License
- AsecurityAlicenseAqualityA server that lets Claude desktop app execute terminal commands on your computer and edit files through Model Context Protocol, featuring command execution, process management, and advanced file operations.Last updated -1922,9695MIT License
- -securityAlicense-qualityA toolkit for managing Claude desktop app extension configurations, enabling features like Brave search, file operations, Git/GitHub integration, shell access, web scraping, HTTP requests, AWS documentation search, and Obsidian note management.Last updated -1MIT License