Compresses images in common formats locally, including batch processing.
Setup
Choose your client, copy the config, then fill in any required environment variables.
claude mcp add image-compression --env IMAGE_COMPRESSION_DOWNLOAD_DIR='<IMAGE_COMPRESSION_DOWNLOAD_DIR>' -- npx -y @inhiblab-core/mcp-image-compression~/.codex/config.toml
[mcp_servers.image-compression]
command = "npx"
args = ["-y", "@inhiblab-core/mcp-image-compression"]
env = { IMAGE_COMPRESSION_DOWNLOAD_DIR = "<IMAGE_COMPRESSION_DOWNLOAD_DIR>" }
# codex mcp add image-compression --env IMAGE_COMPRESSION_DOWNLOAD_DIR='<IMAGE_COMPRESSION_DOWNLOAD_DIR>' -- npx -y @inhiblab-core/mcp-image-compression~/.cursor/mcp.json
{
"mcpServers": {
"image-compression": {
"command": "npx",
"args": [
"-y",
"@inhiblab-core/mcp-image-compression"
],
"env": {
"IMAGE_COMPRESSION_DOWNLOAD_DIR": "<IMAGE_COMPRESSION_DOWNLOAD_DIR>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"image-compression": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@inhiblab-core/mcp-image-compression"
],
"env": {
"IMAGE_COMPRESSION_DOWNLOAD_DIR": "<IMAGE_COMPRESSION_DOWNLOAD_DIR>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"image-compression": {
"command": "npx",
"args": [
"-y",
"@inhiblab-core/mcp-image-compression"
],
"env": {
"IMAGE_COMPRESSION_DOWNLOAD_DIR": "<IMAGE_COMPRESSION_DOWNLOAD_DIR>"
}
}
}
}claude_desktop_config.json
{
"mcpServers": {
"image-compression": {
"command": "npx",
"args": [
"-y",
"@inhiblab-core/mcp-image-compression"
],
"env": {
"IMAGE_COMPRESSION_DOWNLOAD_DIR": "<IMAGE_COMPRESSION_DOWNLOAD_DIR>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"image-compression": {
"command": "npx",
"args": [
"-y",
"@inhiblab-core/mcp-image-compression"
],
"env": {
"IMAGE_COMPRESSION_DOWNLOAD_DIR": "<IMAGE_COMPRESSION_DOWNLOAD_DIR>"
}
}
}
}Environment variables
IMAGE_COMPRESSION_DOWNLOAD_DIR
Replace the placeholders with your own credentials and keep them out of version control.