📷✨ WebPerfect MCP Server
镜像
简介
WebPerfect 是一款 AI 驱动的 MCP 服务器,可将普通图像转换为网页优化杰作,提供智能处理、高质量压缩和批量自动化功能。
安装步骤
# 1. 克隆仓库
git clone https://github.com/splendasucks/webperfect-mcp-server.git
cd webperfect-mcp-server
# 2. 安装依赖
npm install
# 3. 构建服务器
npm run build
配置与 Claude 集成
将此配置添加到您的 Claude MCP 设置中(通常在 claude_desktop_config.json
):
{
"mcpServers": {
"webperfect": {
"command": "node",
"args": ["/path/to/webperfect-mcp-server/build/index.js"],
"env": {}
}
}
}
使用指南
批量处理图像
<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_mcp_resource>
<server_name>webperfect</server_name>
<uri>stats/summary</uri>
</access_mcp_resource>
主要特性
- 智能处理:自适应 AI 算法
- 高质量输出:智能锐化和降噪
- 最大压缩:高达 80% 的文件体积减少
- 批量处理:支持整个目录操作
- 网页优化:专为现代网页应用设计
系统要求
- Node.js >= 16
- Sharp 图像处理库
- Model Context Protocol SDK
许可证
MIT © 2024 WebPerfect 贡献者