ZIP MCP Server
Compress and decompress ZIP files, with support for multi-file packaging, password protection, and encryption.
ZIP MCP Server
中文 | English
Project Introduction
ZIP MCP Server is a compression server based on fastMCP and zip.js, implementing the Model Context Protocol (MCP). This project provides fully parameter-controlled ZIP compression, decompression, and query compression package information functions.
Features
- Supports compression and decompression of files and data
- Supports multi-file packaging compression
- Provides compression level control (0-9)
- Supports password protection and encryption strength settings
- Provides query function for compressed package metadata
Project Structure
zip-mcp
├── src
│ ├── index.ts # Application entry point
│ ├── utils
│ │ └── compression.ts # Compression and decompression implementation
├── tsconfig.json # TypeScript configuration file
├── package.json # npm configuration file
└── README.md # Project documentation
Installation
You can install ZIP MCP Server globally using npm:
npm install -g zip-mcp
MCP Configuration
After installation, you can configure ZIP MCP in your MCP JSON configuration:
{
"mcpServers": {
"zip-mcp": {
"command": "zip-mcp",
"args": []
}
}
}
Configure the MCP JSON in the AI Client
- Claude Client: https://modelcontextprotocol.io/quickstart/user
- Raycast: requires installing the MCP plugin
- Cursor: https://docs.cursor.com/context/model-context-protocol#configuring-mcp-servers
MCP Tool Description
ZIP MCP Server provides the following tools, which can be called through the MCP protocol:
Compression Tool (compress)
Compress local files or directories into a ZIP file.
Parameters:
input: Path of the file or directory to be compressed (string or string array)output: Path of the output ZIP fileoptions: Compression options (optional)level: Compression level (0-9, default is 5)password: Password protectionencryptionStrength: Encryption strength (1-3)overwrite: Whether to overwrite existing files (boolean)
Returns:
- Success: Text content containing success information
- Failure: Text content containing error information
Decompression Tool (decompress)
Decompress local ZIP files to the specified directory.
Parameters:
input: Path of the ZIP fileoutput: Path of the output directoryoptions: Decompression options (optional)password: Decompression passwordoverwrite: Whether to overwrite existing files (boolean)createDirectories: Whether to create non-existent directories (boolean)
Returns:
- Success: Text content containing decompression result information
- Failure: Text content containing error information
ZIP Info Tool (getZipInfo)
Get metadata information of local ZIP files.
Parameters:
input: Path of the ZIP fileoptions: Options (optional)password: Decompression password
Returns:
- Success: Text content containing detailed information of the ZIP file, including:
- Total number of files
- Total size
- Compressed size
- Compression ratio
- Detailed information of each file
- Failure: Text content containing error information
Test Tool (echo)
Returns the input message to test if the service is running normally.
Parameters:
message: Message to be returned
Returns:
- Text content containing the input message and current timestamp
Examples
Examples of calling tools using the MCP client:
// Compress files
await client.executeTool("compress", {
input: "/path/to/files/or/directory",
output: "/path/to/output.zip",
options: {
level: 9,
comment: "Test compression",
password: "secret",
overwrite: true,
},
});
// Decompress files
await client.executeTool("decompress", {
input: "/path/to/archive.zip",
output: "/path/to/extract/directory",
options: {
password: "secret",
overwrite: true,
createDirectories: true,
},
});
// Get ZIP info
await client.executeTool("getZipInfo", {
input: "/path/to/archive.zip",
options: {
password: "secret",
},
});
// Test service
await client.executeTool("echo", {
message: "Hello, ZIP MCP Server!",
});
Contact
- Email: gz7gugu@qq.com
- Blog: https://7gugu.com
Related Servers
File Convert MCP Server
Convert files between various formats, including images, documents, audio, video, and more.
DLIS MCP Server
Analyze and extract information from DLIS (Digital Log Interchange Standard) files, including channel data and metadata.
Everything Search
Fast Windows file search using Everything SDK
Cursor MCP File Organizer
Organize files in your Downloads folder using Cursor IDE with customizable rules.
mini_mcp
A lightweight plugin to list all files and folders on the current macOS user's desktop.
Basic Memory
Build a persistent, local knowledge base in Markdown files through conversations with LLMs.
Excel MCP Server
An MCP server for manipulating and managing Excel files.
Java MCP Filesystem Server
A secure Java-based MCP server that provides controlled filesystem access to AI assistants.
Filesystem MCP Server
A server for performing filesystem operations such as reading/writing files, managing directories, and searching.
Vulcan File Ops
MCP server that gives Claude Desktop and other desktop MCP clients filesystem powers—read, write, edit, and manage files like AI coding assistants.