
greatsumini/sharp-mcp
Developer toolsЭта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал
Image processing 🖼️ MCP server
Обзор
MCP (Model Context Protocol) server for image session management and processing. Provides tools for storing images in sessions and extracting image metadata and colors. - : Store base64 images in memory sessions with unique IDs - : Create sessions from image file paths (auto base64 conversion) - : List all active image sessions - : Get image dimensions and MIME type - : Extract average color from a specified region - : Remove background from images using ML-based segmentation - : Crop a rectangular region from an image - : Compress images with format conversion (JPEG, PNG, WebP) - Built with TypeScript for type safety - Uses sharp for high-performance image processing To install Sharp MCP for any client automatically via Smithery: Available clients: cursor, claude, vscode, windsurf, cline, zed, etc. Sharp MCP can be integrated with various AI coding assistants and IDEs that support the Model Context Protocol (MCP). - Node.js >= v18.0.
README
Показан фрагмент оригинального README. Открыть оригинал.
Sharp MCP
MCP (Model Context Protocol) server for image session management and processing. Provides tools for storing images in sessions and extracting image metadata and colors.
Features
- create_session: Store base64 images in memory sessions with unique IDs
- create_session_by_path: Create sessions from image file paths (auto base64 conversion)
- list_session: List all active image sessions
- get_dimensions: Get image dimensions and MIME type
- pick_color: Extract average color from a specified region
- remove_background: Remove background from images using ML-based segmentation
- extract_region: Crop a rectangular region from an image
- compress_image: Compress images with format conversion (JPEG, PNG, WebP)
- Built with TypeScript for type safety
- Uses sharp for high-performance image processing
Installation
NPM
npm install -g sharp-mcp
Smithery
To install Sharp MCP for any client automatically via Smithery:
npx -y @smithery/cli@latest install sharp-mcp --client
Available clients: cursor, claude, vscode, windsurf, cline, zed, etc.
MCP Client Integration
Sharp MCP can be integrated with various AI coding assistants and IDEs that support the Model Context Protocol (MCP).
Requirements
- Node.js >= v18.0.0
- An MCP-compatible client (Cursor, Claude Code, VS Code, Windsurf, etc.)
Add this to your Windsurf MCP config file:
{
"mcpServers": {
"sharp": {
"command": "npx",
Установка
npx -y sharp-mcpКонфигурация
{
"mcpServers": {
"sharp": {
"command": "npx",
"args": ["-y", "sharp-mcp"]
}
}
}