MCP Compress
List compression profiles, estimate gains, and compress images, PDFs, and Office files.
사용해야 할까요
품질 및 안전성
도구 정의와 프로토콜 준수에 대한 자동 분석을 기반으로 합니다.
컨텍스트 비용
이는 서버의 도구가 모델의 컨텍스트에 로드될 때마다 소비되는 대략적인 토큰 수입니다. 수치가 높을수록 다른 작업에 사용할 수 있는 주의가 줄어듭니다.
설치
원클릭 설치
`claude_desktop_config.json` 파일에 다음을 추가하세요:
{
"mcpServers": {
"mcp-compress": {
"url": "https://mcp-compress.custom-digital-services.com/mcp"
}
}
}원격 엔드포인트
https://mcp-compress.custom-digital-services.com/mcpstreamable-http할 수 있는 일
도구 목록
도구 (3)
🟢list_compression_profiles
List the three compression presets (light, balanced, maximum) with their exact image quality and max-dimension caps, a note per preset, and the maximum accepted input size. Values are kept in parity with the Compresseur Local web app. Takes no parameters.
입력 스키마
{
"type": "object",
"properties": {},
"$schema": "http://json-schema.org/draft-07/schema#"
}🟡estimate_compression(fileBase64, fileName, level)
Detect a file (family, format, size from magic bytes) and estimate the compression gain by ACTUALLY compressing it. Pass the file as base64 (fileBase64) plus its fileName (the extension disambiguates Office formats). Omit 'level' to estimate all three presets, or set it for a single one. Returns the detected metadata and, per level, the resulting byte size, gain percentage and output format. Max input size: 26214400 decoded bytes; the HTTP body must accept base64 (decoded x 4/3 plus margin).
입력 스키마
{
"type": "object",
"properties": {
"fileBase64": {
"type": "string",
"minLength": 1
},
"fileName": {
"type": "string",
"minLength": 1
},
"level": {
"type": "string",
"enum": [
"light",
"balanced",
"maximum"
]
}
},
"required": [
"fileBase64",
"fileName"
],
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema#"
}⚪compress_file(fileBase64, fileName, level, custom)
Compress a file and return the result as base64. Pass fileBase64 + fileName. Choose EITHER a preset 'level' (light|balanced|maximum, default balanced) OR a 'custom' profile { imageQuality: 1-100, maxDimension?: px, convertFormat?: webp|avif|jpeg } -- supplying both is rejected. Supported families: images (PNG/JPG/WebP/AVIF), PDF (embedded JPEG images re-encoded, no AGPL tool), and Office OOXML (DOCX/PPTX/XLSX embedded media re-encoded). Returns fileBase64, bytesBefore, bytesAfter, gainPercent, mimeType and the output format. If compression would enlarge a non-converted file, the original is returned with 0% gain. WARNING: convertFormat 'avif' is CPU/RAM heavy (>= 1 GB RAM for large images). Max input size: 26214400 decoded bytes.
입력 스키마
{
"type": "object",
"properties": {
"fileBase64": {
"type": "string",
"minLength": 1
},
"fileName": {
"type": "string",
"minLength": 1
},
"level": {
"type": "string",
"enum": [
"light",
"balanced",
"maximum"
]
},
"custom": {
"type": "object",
"properties": {
"imageQuality": {
"type": "integer",
"minimum": 1,
"maximum": 100
},
"maxDimension": {
"type": "integer",
"minimum": 16,
"maximum": 20000
},
"convertFormat": {
"type": "string",
"enum": [
"webp",
"avif",
"jpeg"
]
}
},
"required": [
"imageQuality"
],
"additionalProperties": false
}
},
"required": [
"fileBase64",
"fileName"
],
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema#"
}커뮤니티
증거