# @puntoycoma/bulki [Health: Active]

**Category:** 🎥 Multimedia Process  
**Repository:** https://github.com/PuntoyComaTech/bulki  
**GitHub Stars:** 1  
**npm Downloads (last month):** 494  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/puntoycoma-bulki

## Description
Bulk image optimizer CLI — compress, resize, convert JPEG/PNG/WebP/AVIF. Interactive mode, MCP server for AI editors, watch mode, git hooks. Free.

## Tools
Capabilities this server exposes over MCP:

- **compress** — Optimize images with format, quality, resize, and size budget options
- **detect** — Identify if a file is an image and return its format

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "bulki": {
    "command": "npx",
    "args": ["-y","@puntoycoma/bulki"]
  }
}
```

## Documentation

## What @puntoycoma/bulki MCP server does

@puntoycoma/bulki adds local image-processing tools to MCP-compatible AI editors. The `compress` tool optimizes images with controls for output format, quality, maximum width, and an optional output-size budget. The `detect` tool checks whether a file is an image and reports its format.

The package also provides a command-line interface for the same broader workflow. Its commands can process individual files, folders, or globs; write optimized copies to a separate directory; monitor a folder for new or changed images; process image bytes through standard input and output; and install a Git pre-commit hook. These CLI features are useful when the task belongs in scripts, CI, file watchers, or repository automation rather than an AI editor.

## How it works

Run the built-in MCP entry point with `bulki mcp`. The server performs processing on the local machine using Sharp and libvips, so image data does not need to be sent to an external API. API keys and network access are not required for the MCP workflow.

Compression preserves the originals by writing optimized copies to an output directory and retaining the source folder structure. The optimizer can avoid replacing an image when re-encoding would produce larger bytes. It also applies EXIF orientation, adds a white background when transparent PNG content is converted to JPEG, and avoids silent filename collisions when multiple source formats are converted to the same target format.

## Setup and configuration

Install the package globally with npm:

```bash
npm install -g @puntoycoma/bulki
```

Start the MCP server with:

```bash
bulki mcp
```

An editor can launch it through an MCP configuration using `npx`:

```json
{
  "mcpServers": {
    "bulki": {
      "command": "npx",
      "args": ["@puntoycoma/bulki", "mcp"]
    }
  }
}
```

The package is documented for Claude Code, Cursor, Windsurf, Cline, and other MCP-compatible editors. No environment variables or API credentials are needed.

## Tools and capabilities

- `compress`: optimize images with format, quality, resize, and maximum-size options.
- `detect`: determine whether a file is an image and return its format.
- Process JPEG, PNG, WebP, GIF, and AVIF files.
- Convert HEIC and HEIF photos on macOS.
- Produce machine-readable JSON results through the CLI for scripts and CI/CD.
- Preview planned output with a dry run, control parallelism, exclude folder names, or report each processed file.
- Watch a directory and reprocess images after new files arrive or existing files change.
- Read image data from stdin and write optimized output to stdout.
- Install or remove a Git pre-commit hook that optimizes staged images.

## Limitations and notes

The MCP interface centers on two operations: image optimization and image-format detection. The broader watch, pipe, Git-hook, interactive, and JSON-output workflows are CLI capabilities.

Compression quality uses a scale from 1 to 100, and resizing accepts a maximum width; images are not enlarged. A size budget can make a compression operation fail when output exceeds the specified limit. Broken images are reported after batch processing and produce exit code 1, while other files in the batch can continue processing.

The CLI skips nested `bulki-output` directories to prevent repeated runs from nesting results. Paths containing spaces must be quoted or escaped in shell commands. HEIC/HEIF handling is available on macOS.

_Full upstream README: https://allmcps.com/mcp/puntoycoma-bulki/readme_

