图像下载优化器
STDIO用于下载和优化图像的MCP服务器
用于下载和优化图像的MCP服务器
An MCP server that provides tools for downloading and optimizing images. Built using the Model Context Protocol (MCP), this server enables AI assistants to download images from URLs and perform basic image optimization tasks.
# 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
Add the server to your MCP configuration (e.g., in Claude Desktop's config):
{ "mcpServers": { "image-downloader": { "command": "node", "args": ["/path/to/mcp-image-downloader/build/index.js"] } } }
Downloads an image from a URL to a specified path.
Parameters:
url
: URL of the image to downloadoutputPath
: Path where to save the imageCreates an optimized version of an image.
Parameters:
inputPath
: Path to the input imageoutputPath
: Path where to save the optimized imagewidth
(optional): Target width (maintains aspect ratio if only width is specified)height
(optional): Target height (maintains aspect ratio if only height is specified)quality
(optional): JPEG/WebP quality (1-100)# Run in development mode npm run start # Build the project npm run build
MIT License - see the LICENSE file for details.
qpd-v
0.1.0 - Initial release