mac2win-zip MCP Server
Creates Windows-compatible ZIP files from macOS by normalizing Unicode filenames and removing forbidden characters, ensuring seamless file sharing.
README
mac2win-zip MCP Server
<p align="center"> <img src="https://img.shields.io/pypi/v/mac2win-zip-mcp.svg" alt="PyPI Version"> <img src="https://img.shields.io/pypi/pyversions/mac2win-zip-mcp.svg" alt="Python Versions"> <img src="https://img.shields.io/badge/license-MIT-green.svg" alt="License"> <img src="https://img.shields.io/badge/platform-macOS-lightgrey.svg" alt="Platform"> <img src="https://img.shields.io/badge/MCP-v1.9+-purple.svg" alt="MCP Version"> </p>
<p align="center"> <strong>Create Windows-compatible ZIP files from macOS via MCP</strong> </p>
An MCP (Model Context Protocol) server for creating Windows-compatible ZIP files.
This MCP server wraps the functionality of mac2win-zip to create ZIP files that work perfectly on Windows from macOS.
Why mac2win-zip MCP Server?
The Problem
macOS uses NFD (Normalization Form Decomposed) for Unicode filenames, while Windows uses NFC (Normalization Form Composed). When you create a ZIP file on macOS containing files with Unicode characters (like Korean, Japanese, or special characters), Windows users often see garbled filenames.
| macOS (ZIP created) | Windows (ZIP opened) |
|---|---|
| 📄 Hello?.pdf | ❌ (removed) |
| 📄 안녕하세요 세상.pdf | ❌ (removed) |
The Solution
This MCP server automatically:
- Normalizes all filenames from NFD to NFC
- Removes or replaces Windows-forbidden characters
- Excludes macOS-specific files (
.DS_Store, etc.) - Preserves the folder structure
Result: ZIP files that work perfectly on both macOS and Windows!
| macOS (ZIP created) | Windows (ZIP opened) |
|---|---|
| 📄 Hello.pdf | ✅ Hello.pdf |
| 📄 안녕하세요 세상.pdf | ✅ 안녕하세요 세상.pdf |
Installation
Quick Start - One Command! 🚀
The easiest way to add this MCP server to Claude Desktop:
claude mcp add --transport stdio mac2win-zip -- uvx mac2win-zip-mcp
That's it! Restart Claude Desktop and it's ready to use.
For Developers
Contributing or developing? Clone and install in editable mode:
git clone https://github.com/Wordbe/mac2win-zip-mcp.git
cd mac2win-zip-mcp
uv pip install -e ".[dev]"
Usage
MCP Tools
This server provides the following tools:
create_windows_compatible_zip
Create a Windows-compatible ZIP file from files and/or folders.
Parameters:
paths(array, required): List of file or folder paths to zipoutput(string, optional): Output ZIP filename (default: "archive.zip")working_dir(string, optional): Base directory for relative paths
Example usage:
Create a Windows-compatible ZIP of the current directory
Paths: ["."]
Output: "backup.zip"
validate_zip_for_windows
Validate if a ZIP file is Windows-compatible.
Parameters:
zip_path(string, required): Path to the ZIP file to validateworking_dir(string, optional): Base directory for relative path
Example usage:
Check if a ZIP file is Windows-compatible
ZIP Path: "archive.zip"
Example Usage
Once configured in Claude Desktop, simply ask Claude in natural language:
Create a Windows-compatible ZIP:
Create a Windows-compatible ZIP of my Documents folder.
Validate an existing ZIP:
Check if backup.zip is Windows-compatible.
Batch processing:
Create Windows-compatible ZIPs for all folders in ~/Projects
Claude will automatically use the MCP tools to create properly formatted ZIP files that work perfectly on Windows!
Features
- Unicode Normalization: Converts macOS NFD filenames to Windows-compatible NFC
- Character Sanitization: Removes Windows-forbidden characters (
<>:"|?*\) - Auto Recursive: Automatically includes all subdirectories when zipping folders
- Smart Naming: Creates
folder-name.zipby default (no -o needed for single folder) - Structure Preservation: Maintains original folder hierarchy in ZIP
- Smart Filtering: Excludes hidden files (
.DS_Store, etc.) - Korean Support: Perfect handling of Korean and other Unicode filenames
- MCP Protocol: Works with any MCP-compliant AI assistant (Claude, etc.)
Requirements
- uv - Fast Python package runner
- Install:
brew install uvorcurl -LsSf https://astral.sh/uv/install.sh | sh
- Install:
- Claude Desktop (or any MCP-compatible AI assistant)
Note: Python is NOT required! uvx automatically downloads and manages Python 3.10+ for you.
License
This project is licensed under the MIT License - see the LICENSE file for details.
Architecture
This MCP server is a thin wrapper around the mac2win-zip library, exposing its functionality via the Model Context Protocol. This means:
- Single source of truth: Core ZIP creation logic lives in
mac2win-zip - Always in sync: Updates to
mac2win-zipautomatically benefit this MCP server - Separation of concerns: CLI tool and MCP server share the same battle-tested code
Related Projects
- mac2win-zip - CLI tool for creating Windows-compatible ZIP files (core library)
- Model Context Protocol - The protocol powering this server
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
- 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
Bug Reports
If you discover any bugs, please create an issue on GitHub with:
- Your operating system and version
- Python version
- MCP client information
- Steps to reproduce the bug
- Expected vs actual behavior
Show Your Support
If this project helped you, please give it a star!
<p align="center"> Made with ❤️ by Wordbe for seamless macOS-Windows file sharing </p>
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。