mcp-image-downloader
MCP图像下载器
提供图片下载和优化工具的 MCP 服务器。该服务器基于模型上下文协议 (MCP) 构建,支持 AI 助手从 URL 下载图片并执行基本的图片优化任务。
特征
从 URL 下载图像并进行适当的错误处理
使用以下选项优化图像:
调整大小(保持纵横比)
质量调整(JPEG/WebP)
格式转换
Related MCP server: google-image-search-mcp
安装
# Clone the repository
git clone https://github.com/qpd-v/mcp-image-downloader.git
cd mcp-image-downloader
# Install dependencies
npm install
# Build the project
npm run build用法
作为 MCP 服务器
将服务器添加到您的 MCP 配置中(例如,在 Claude Desktop 的配置中):
{
"mcpServers": {
"image-downloader": {
"command": "node",
"args": ["/path/to/mcp-image-downloader/build/index.js"]
}
}
}可用工具
下载图片
将图像从 URL 下载到指定路径。
参数:
url:要下载的图像的 URLoutputPath:保存图像的路径
优化图像
创建图像的优化版本。
参数:
inputPath:输入图像的路径outputPath:保存优化图像的路径width(可选):目标宽度(如果仅指定宽度,则保持纵横比)height(可选):目标高度(如果仅指定高度,则保持纵横比)quality(可选):JPEG/WebP 质量(1-100)
发展
# Run in development mode
npm run start
# Build the project
npm run build要求
Node.js 16 或更高版本
NPM 或兼容的包管理器
执照
MIT 许可证 - 有关详细信息,请参阅LICENSE文件。
作者
qpd-v
版本
0.1.0 - 初始版本
Available Tools
2 toolsdownload_imageC
Download an image from a URL to a specified path
Inputs: outputPath (required), url (required).
optimize_imageC
Create an optimized version of an image
Inputs: inputPath (required), outputPath (required), height, quality, +1 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 2 tools
The two tools have clearly distinct purposes: one downloads images from external sources, while the other processes existing images for optimization. There is no overlap in functionality, making it impossible to confuse them.
Both tools follow a consistent verb_noun pattern (download_image and optimize_image) with clear, descriptive names. The naming convention is uniform and predictable throughout the set.
With only two tools, the server feels under-scoped for an image downloader domain. Key operations like listing available images, handling errors, or supporting different image formats are missing, making the toolset too minimal for robust agent workflows.
The toolset is severely incomplete for an image downloader domain. It lacks basic CRUD operations such as listing or deleting images, error handling tools, and support for varied input sources or formats, which will likely cause agent failures in practical use.
Maintenance
Related MCP Connectors
Convert and resize static image URLs to WebP, PNG or JPEG for uploads and agent workflows.
Image & PDF tools for AI agents: compress, convert, resize, PDF, AI vision, pipeline.
Image processing for AI agents: resize, convert, compress, crop, and web-ready AI-generated images.
Resize, compress, convert, watermark and SEO-tag e-commerce product images from a public URL.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables AI assistants to analyze images from URLs or local files using xAI's Grok API. Provides detailed image descriptions, technical metadata extraction, and optical character recognition (OCR) capabilities.7-
- AlicenseBqualityDmaintenanceEnables AI assistants to search, download, and analyze Google images via SerpAPI.320ISC
- AlicenseNot gradedqualityDmaintenanceEnables AI to autonomously search, filter, and download images from the web using natural language commands, with intelligent scoring and local storage.1MIT
- AlicenseAqualityDmaintenanceEnables AI assistants to download files from HTTP/HTTPS URLs to local directories or file paths with options like custom filename, headers, and overwrite control.1MIT