本MCP服务器提供图像处理工具,并可将处理后的图像上传至Vercel Blob存储。它具备以下功能:
服务器已在MCP设置文件中完成安装和配置。它会使用环境变量中的Vercel Blob令牌。
你可以在Claude中使用use_mcp_tool函数来使用MCP服务器。
image-processor
process_and_upload_image
{
"imagePath": "/path/to/image.png",
"newName": "new-image-name",
"width": 550,
"height": 300
}
image-processor
process_and_upload_image_from_url
{
"imageUrl": "https://example.com/image.jpg",
"newName": "new-image-name",
"width": 550,
"height": 300
}
imagePath(必需):要处理的图像文件路径newName(必需):处理后图像的新名称(不带扩展名)width(可选):图像调整后的宽度(默认值:550)height(可选):图像调整后的高度(默认值:300)imageUrl(必需):要处理的图像的URLnewName(必需):处理后图像的新名称(不带扩展名)width(可选):图像调整后的宽度(默认值:550)height(可选):图像调整后的高度(默认值:300)服务器将返回一个JSON响应,结构如下:
{
"success": true,
"message": "Successfully processed and uploaded image: new-image-name",
"results": {
"png": {
"fileName": "new-image-name_small.png",
"localPath": "/path/to/temp/new-image-name_small.png",
"blobUrl": "https://vercel-blob-url/new-image-name_small.png"
},
"webp": {
"fileName": "new-image-name.webp",
"localPath": "/path/to/temp/new-image-name.webp",
"blobUrl": "https://vercel-blob-url/new-image-name.webp"
}
}
}
<server_name>image-processorserver_name>
<tool_name>process_and_upload_imagetool_name>
<arguments>
{
"imagePath": "/pathto_file/image_name.png",
"newName": "test-processed-image",
"width": 550,
"height": 300
}
arguments>
<server_name>image-processorserver_name>
<tool_name>process_and_upload_image_from_urltool_name>
<arguments>
{
"imageUrl": "https://pplx-res.cloudinary.com/image/upload/v1749567759/pplx_project_search_images/6dff647e4fb1083aecf9ea6b1d49ea19386be588.jpg",
"newName": "cloud-image",
"width": 550,
"height": 300
}
arguments>
以上两个示例将执行以下操作:
服务器使用了以下工具和库: