Skip to main content
Glama
InhiblabCore

mcp-image-compression

by InhiblabCore

mcp-图像压缩

项目概述

mcp-image-compression 是一款基于 MCP(Modal Context Protocol,模态上下文协议)架构的高性能图片压缩微服务。该服务专注于提供快速、高质量的图片压缩能力,帮助开发者优化网站和应用的图片资源,提升加载速度和用户体验。

Related MCP server: imagic-mcp

特征

  • 多格式支持:压缩主流图像格式,包括 JPEG、PNG、WebP、AVIF

  • 离线使用:无需连接互联网即可使用

  • 智能压缩:根据图像内容自动选择最佳压缩参数

  • 批处理:支持多幅图像并行压缩,提高效率

  • 质量控制:可定制的压缩质量以平衡文件大小和视觉质量

工具

  1. image_compression

    • 图像压缩

    • 输入:

      • urls (字符串):要压缩的图像的 URL

      • quality (int):压缩质量(0-100)

      • format (字符串):压缩图像的格式(例如“jpeg”,“png”,“webp”,“avif”)

    • 返回:压缩图像的 URL

设置

NPX

{
  "mcpServers": {
    "Image compression": {
      "command": "npx",
      "args": [
        "-y",
        "@inhiblab-core/mcp-image-compression"
      ],
      "env": {
        "IMAGE_COMPRESSION_DOWNLOAD_DIR": "<YOUR_DIR>"
      },
      "disabled": false,
      "autoApprove": []
    }
  }
}

建造

docker build -t mcp-image-compression .

执照

此 MCP 服务器采用 MIT 许可证。这意味着您可以自由使用、修改和分发该软件,但须遵守 MIT 许可证的条款和条件。更多详情,请参阅项目仓库中的 LICENSE 文件。

Available Tools

1 tool
image_compressionC

Compress an image

ParametersJSON Schema
NameRequiredDescriptionDefault
urlsYesURL of the image to compress,If it's a local file, do not add any prefix. array join by ','
quantityNoNumber of transcripts to return
formatNoImage format

TDQS

C2.3/5.0
Behavior1/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description carries full burden to disclose behavioral traits. It says nothing about whether the compression modifies the original, what is returned, rate limits, or supported size limits. The agent has no clue about side effects or constraints.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is extremely short (one phrase), which makes it concise, but it is under-specified. It achieves conciseness at the expense of critical information, so it does not earn its place fully. A balanced description would be more effective.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness1/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the complexity of image compression and the lack of an output schema or annotations, the description is grossly incomplete. It omits information about output format, error handling, supported input types, and the meaning of the 'quantity' parameter. An agent cannot reliably use this tool without further clarification.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% but the description adds no meaning beyond the schema. Moreover, the 'quantity' parameter's description ('Number of transcripts to return') is confusingly unrelated to image compression, and the description does nothing to clarify this mismatch. Baseline 3 is reduced because the description fails to add value or resolve ambiguity.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states the verb 'Compress' and the resource 'an image', which is clear and specific. It is not a tautology and distinguishes the tool's core action. However, it lacks details on supported formats or output behavior, so not a 5.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No guidance is provided on when to use this tool, prerequisites, or alternatives. The description simply states what it does without any context for appropriate usage scenarios.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. 1 tool updatev1.0.0
    • First observedimage_compression

TDQS

C2.8/5.0
Disambiguation5/5

Only one tool exists, so there is no ambiguity with other tools.

Naming Consistency5/5

With a single tool, naming consistency is not applicable; the name is clear and follows a verb_noun pattern.

Tool Count4/5

One tool for image compression is slightly below the typical range but reasonable given the narrow focus.

Completeness2/5

The single tool only compresses images without apparent options for quality, dimensions, or format conversion, leaving many image operations uncovered.

Maintenance

ActivityInactive
ResponsivenessSyncing

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Connectors

Related MCP Servers

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/InhiblabCore/mcp-image-compression'

If you have feedback or need assistance with the MCP directory API, please join our Discord server