local-only server
The server can only run on the client’s local machine because it depends on local resources.
Integrations
Integrates with macOS desktop to access and manage image files, with instructions for configuration on macOS systems
Desktop Image Manager MCP Server
基于 Model Context Protocol (MCP) 开发的桌面图片管理服务器,提供图片文件统计、查看和压缩功能。
操作示例:
https://claude.ai/share/0ffbad1e-502e-4188-b008-0bb966acf06d
功能特性
- 统计桌面图片数量:快速获取桌面上的图片文件总数
- 获取图片列表:列出桌面上所有图片文件的名称
- 图片压缩:支持压缩 JPG、PNG、WebP 等格式的图片文件,可自定义压缩质量
实现提示
让 Trae 引用 ./demand.md
进行功能代码生成,简化版如下
Copy
支持的图片格式
- JPG/JPEG
- PNG
- GIF
- BMP
- WebP
- TIFF
- SVG
环境要求
- Node.js >= 16
- pnpm >= 8
安装
Copy
开发
Copy
构建和运行
Copy
调试
Copy
MCP 工具使用说明
1. 统计桌面图片数量
Copy
2. 获取图片列表
Copy
3. 压缩图片
Copy
开发
Copy
安装
使用 Claude Desktop 添加如下配置 config:
MacOS: ~/Library/Application Support/Claude/claude_desktop_config.json Windows: %APPDATA%/Claude/claude_desktop_config.json
Copy
注意事项
- 确保有足够的桌面访问权限
- 大文件压缩可能需要较长时间
- 压缩后的文件默认保存在桌面,文件名会添加 "-compressed" 后缀
技术栈
- TypeScript
- MCP SDK
- Sharp (图片处理)
- fs-extra (文件操作)
- zod (参数验证)
许可证
MIT License
Copy
You must be authenticated.
A Model Context Protocol server that manages desktop images, providing functionality to count, list, and compress image files stored on the desktop.