Skip to main content
Glama

ZIP-MCP

ZIP MCP サーバー

中国語|英語

プロジェクト紹介

ZIP MCP Serverは、fastMCPとzip.jsをベースにした圧縮サーバーで、モデルコンテキストプロトコル(MCP)を実装しています。このプロジェクトは、完全にパラメータ制御されたZIP圧縮、解凍、およびクエリ圧縮パッケージ情報機能を提供します。

特徴

  • ファイルとデータの圧縮と解凍をサポート
  • 複数ファイルのパッケージ圧縮をサポート
  • 圧縮レベル制御(0~9)を提供します
  • パスワード保護と暗号化強度の設定をサポート
  • 圧縮パッケージのメタデータのクエリ機能を提供します

プロジェクト構造

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

インストール

npm を使用して ZIP MCP サーバーをグローバルにインストールできます。

npm install -g zip-mcp

MCP構成

インストール後、MCP JSON 構成で ZIP MCP を構成できます。

{ "mcpServers": { "zip-mcp": { "command": "zip-mcp", "args": [] } } }

AIクライアントでMCP JSONを構成する

MCPツールの説明

ZIP MCP サーバーは、MCP プロトコルを通じて呼び出すことができる次のツールを提供します。

圧縮ツール(compress)

ローカル ファイルまたはディレクトリを ZIP ファイルに圧縮します。

パラメータ:

  • input : 圧縮するファイルまたはディレクトリのパス(文字列または文字列配列)
  • output : 出力ZIPファイルのパス
  • options : 圧縮オプション(オプション)
    • level : 圧縮レベル(0~9、デフォルトは5)
    • password : パスワード保護
    • encryptionStrength : 暗号化強度 (1-3)
    • overwrite : 既存のファイルを上書きするかどうか(ブール値)

戻り値:

  • 成功: 成功情報を含むテキストコンテンツ
  • 失敗: エラー情報を含むテキストコンテンツ

解凍ツール(解凍)

ローカルの ZIP ファイルを指定されたディレクトリに解凍します。

パラメータ:

  • input : ZIPファイルのパス
  • output : 出力ディレクトリのパス
  • options : 解凍オプション(オプション)
    • password :解凍パスワード
    • overwrite : 既存のファイルを上書きするかどうか(ブール値)
    • createDirectories : 存在しないディレクトリを作成するかどうか(ブール値)

戻り値:

  • 成功: 解凍結果情報を含むテキストコンテンツ
  • 失敗: エラー情報を含むテキストコンテンツ

ZIP情報ツール(getZipInfo)

ローカル ZIP ファイルのメタデータ情報を取得します。

パラメータ:

  • input : ZIPファイルのパス
  • options : オプション(オプション)
    • password :解凍パスワード

戻り値:

  • 成功: ZIP ファイルの詳細情報を含むテキスト コンテンツ:
    • ファイルの総数
    • 合計サイズ
    • 圧縮サイズ
    • 圧縮比
    • 各ファイルの詳細情報
  • 失敗: エラー情報を含むテキストコンテンツ

テストツール(エコー)

サービスが正常に実行されているかどうかをテストするための入力メッセージを返します。

パラメータ:

  • message : 返されるメッセージ

戻り値:

  • 入力メッセージと現在のタイムスタンプを含むテキストコンテンツ

MCP クライアントを使用してツールを呼び出す例:

// 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!", });

接触

Install Server
A
security – no known vulnerabilities
A
license - permissive license
A
quality - confirmed to work

local-only server

The server can only run on the client's local machine because it depends on local resources.

AI にローカル ファイルの圧縮と解凍機能を提供する MCP ツール。

  1. プロジェクト紹介
    1. 特徴
      1. プロジェクト構造
        1. インストール
          1. MCP構成
            1. AIクライアントでMCP JSONを構成する
              1. MCPツールの説明
                1. 圧縮ツール(compress)
                2. 解凍ツール(解凍)
                3. ZIP情報ツール(getZipInfo)
                4. テストツール(エコー)
                1. 接触

                  Related MCP Servers

                  • -
                    security
                    A
                    license
                    -
                    quality
                    An MCP server that provides multiple file conversion tools for AI agents, supporting various document and image format conversions including DOCX to PDF, PDF to DOCX, image conversions, Excel to CSV, HTML to PDF, and Markdown to PDF.
                    Last updated -
                    15
                    Python
                    MIT License
                    • Linux
                    • Apple
                  • -
                    security
                    A
                    license
                    -
                    quality
                    An MCP server that implements Claude Code-like functionality, allowing the AI to analyze codebases, modify files, execute commands, and manage projects through direct file system interactions.
                    Last updated -
                    224
                    Python
                    MIT License
                    • Apple
                    • Linux

                  View all related MCP servers

                  MCP directory API

                  We provide all the information about MCP servers via our MCP API.

                  curl -X GET 'https://glama.ai/api/mcp/v1/servers/7gugu/zip-mcp'

                  If you have feedback or need assistance with the MCP directory API, please join our Discord server