
MCP图像压缩
基于MCP(模态上下文协议)的高性能图像压缩微服务
0
Github Watches
1
Github Forks
7
Github Stars
mcp-image-compression
Project Overview
mcp-image-compression is a high-performance image compression microservice based on MCP (Modal Context Protocol) architecture. This service focuses on providing fast and high-quality image compression capabilities to help developers optimize image resources for websites and applications, improving loading speed and user experience.
Features
- Multi-format support: Compress mainstream image formats including JPEG, PNG, WebP, AVIF
- Offline Usage: No need to connect to the internet to use
- Smart compression: Automatically select optimal compression parameters based on image content
- Batch processing: Support parallel compression of multiple images for improved efficiency
- Quality control: Customizable compression quality to balance file size and visual quality
TOOLS
-
image_compression
- Image compression
- Inputs:
-
urls
(strings): URLs of images to compress -
quality
(int): Quality of compression (0-100) -
format
(string): Format of compressed image (e.g. "jpeg", "png", "webp", "avif")
-
- Returns: Compressed images url
Setup
NPX
{
"mcpServers": {
"Image compression": {
"command": "npx",
"args": [
"-y",
"@inhiblab-core/mcp-image-compression"
],
"env": {
"IMAGE_COMPRESSION_DOWNLOAD_DIR": "<YOUR_DIR>"
},
"disabled": false,
"autoApprove": []
}
}
}
Build
docker build -t mcp-image-compression .
License
This MCP server is licensed under the MIT License. This means you are free to use, modify, and distribute the software, subject to the terms and conditions of the MIT License. For more details, please see the LICENSE file in the project repository.
相关推荐
Confidential guide on numerology and astrology, based of GG33 Public information
Emulating Dr. Jordan B. Peterson's style in providing life advice and insights.
Your go-to expert in the Rust ecosystem, specializing in precise code interpretation, up-to-date crate version checking, and in-depth source code analysis. I offer accurate, context-aware insights for all your Rust programming questions.
Take an adjectivised noun, and create images making it progressively more adjective!
Reviews

user_R56rEQ2c
I've been using mcp-image-compression by InhiblabCore for a while now, and I'm genuinely impressed! This tool significantly reduces image sizes without compromising on quality, making web development and storage management a breeze. Highly recommend checking it out on GitHub: https://github.com/InhiblabCore/mcp-image-compression. Great job, InhiblabCore!