Back to Home
greatSumini icon

sharp-mcp

Verified Safe

by greatSumini

Overview

This MCP server provides image session management and processing capabilities for AI coding assistants, enabling tasks like metadata extraction, color picking, background removal, cropping, and compression.

Installation

Run Command
npx -y sharp-mcp

Security Notes

The server can handle user-provided file paths for reading and writing images (`create_session_by_path`, `compress_image`, `extract_region`, `remove_background`). While `validateAbsolutePath` is used to prevent relative path traversal, the server's underlying process permissions will determine the extent of potential file system access an attacker could exploit if they gain control over the `output_path`. Storing base64 images in memory sessions, and performing CPU/memory intensive operations like background removal, cropping, and compression, poses a potential Denial-of-Service (DoS) risk if not adequately rate-limited or resource-managed at a higher layer. The ML model files (10-50MB) for background removal are downloaded and cached on first use, which introduces a supply chain risk if the source of these models were compromised. No hardcoded secrets or 'eval' were found in the provided code.

Similar Servers

Stats

Interest Score70
Security Score7
Cost ClassHigh
Avg Tokens500000
Stars3
Forks0
Last Update2025-11-28

Tags

Image ProcessingMCP ServerAI ToolsNode.jsTypeScript