WebPerfect MCP Server

by splendasucks
Verified

local-only server

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

Integrations

  • Provides JPEG artifact removal as part of the image processing pipeline

  • Uses the Sharp image processing library to perform advanced image optimizations and processing

WebPerfect MCP 服务器

智能 MCP 服务器,配备全自动批量处理流程,适用于 Web 图像。功能包括降噪、自动色阶/曲线、JPEG 伪影消除、4K 缩放、带阴影/高光增强的智能锐化以及高级 WebP 转换。优化的压缩功能可在不牺牲质量的情况下提供更小的文件。

特征

先进的图像处理管道

  1. 使用中值滤波进行强力降噪
  2. 基于图像熵的智能自动水平和曲线
  3. 通过调制和锐化进行高级纹理增强
  4. 智能分辨率优化(最高4K)
  5. 优化 WebP 转换

工具

process_images

使用高级增强功能处理和优化一批图像。

{ inputDir: string; // Directory containing input images outputDir: string; // Directory for optimized output }

资源

资源模板

  • logs/{date} :按日期(YYYY-MM-DD)访问处理日志
    { "date": "2024-01-20", "entries": [{ "timestamp": "2024-01-20T10:00:00Z", "imagesProcessed": 15, "totalInputSize": "5.2MB", "totalOutputSize": "1.1MB", "compressionRatio": "78.8%", "averageProcessingTime": "1.2s" }] }
  • stats/monthly/{month} :每月统计数据(YYYY-MM)
    { "month": "2024-01", "totalImagesProcessed": 450, "averageCompressionRatio": "82%", "popularFormats": { "input": ["JPEG", "PNG"], "output": ["WebP"] }, "totalStorageSaved": "150MB" }

静态资源

  • stats/summary :总体处理统计数据
    { "totalImagesProcessed": 5280, "averageCompressionRatio": "81%", "totalStorageSaved": "1.8GB", "popularEnhancements": [ "noise_reduction", "auto_levels_curves", "texture_enhancement" ], "performanceMetrics": { "averageProcessingTime": "1.5s", "peakThroughput": "45 images/minute" } }
  • config/optimization-presets :可用的优化预设
    { "presets": { "web_standard": { "maxWidth": 1920, "format": "webp", "quality": 85, "enhancements": ["noise_reduction", "auto_levels_curves"] }, "web_high_quality": { "maxWidth": 3840, "format": "webp", "quality": 90, "enhancements": [ "noise_reduction", "auto_levels_curves", "texture_enhancement" ] }, "thumbnail": { "maxWidth": 400, "format": "webp", "quality": 80, "enhancements": ["noise_reduction"] } } }

安装

  1. 克隆存储库:
git clone https://github.com/splendasucks/webperfect-mcp-server.git cd webperfect-mcp-server
  1. 安装依赖项:
npm install
  1. 构建服务器:
npm run build

与 Claude 一起使用

  1. 将服务器添加到您的 Claude MCP 设置中(通常在claude_desktop_config.json中):
{ "mcpServers": { "webperfect": { "command": "node", "args": ["/path/to/webperfect-mcp-server/build/index.js"], "env": {} } } }
  1. 重新启动 Claude 以加载 MCP 服务器。
  2. 该服务器将通过 Claude 的 MCP 工具和资源提供:
// Process a batch of images <use_mcp_tool> <server_name>webperfect</server_name> <tool_name>process_images</tool_name> <arguments> { "inputDir": "/path/to/input", "outputDir": "/path/to/output" } </arguments> </use_mcp_tool> // Access processing statistics <access_mcp_resource> <server_name>webperfect</server_name> <uri>stats/summary</uri> </access_mcp_resource>

要求

  • Node.js >= 16
  • Sharp 图像处理库
  • 模型上下文协议 SDK

执照

麻省理工学院

You must be authenticated.

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

智能 MCP 服务器,配备全自动批处理流程,可用于处理网页版图像。功能包括降噪、自动色阶/曲线调整、JPEG 伪影消除、4K 缩放、智能锐化(带阴影/高光增强)以及高级 WebP 转换。

  1. Features
    1. Advanced Image Processing Pipeline
    2. Tools
    3. Resources
  2. Installation
    1. Usage with Claude
      1. Requirements
        1. License
          ID: am3lop071j