
Research
/Security News
Popular npm Packages in the keyv and Cacheable Namespaces Compromised in Active Supply Chain Attack
Popular npm packages keyv and cacheable compromised.
MCP server exposing imgcli — convert, resize, crop, filter & composite images as native agent tools
An MCP server that exposes imgcli as native tools for AI agents, so a model can convert and process images by calling tools instead of shelling out.
| Tool | Purpose |
|---|---|
convert_image | Convert / resize / crop / rotate / filter / composite an image. Args: input, output, optional filters (ffmpeg-style chain), quality, overwrite. Returns imgcli's JSON result. |
probe_image | Return an image's width/height/channels without converting. |
list_filters | List the full filter catalogue. |
All arguments are passed to imgcli as an argv array (no shell), so there is no shell-injection surface.
The imgcli binary must be installed:
brew install swperb/tap/imgcli # or build from source: make && sudo make install
If it isn't on PATH, set IMGCLI_BIN to its absolute path.
npm install # builds dist/ via the prepare script
npm start # stdio MCP server
# or, once published to npm:
npx imgcli-mcp
Claude Desktop / Cursor / any MCP client (mcpServers config):
{
"mcpServers": {
"imgcli": {
"command": "npx",
"args": ["-y", "imgcli-mcp"],
"env": { "IMGCLI_BIN": "imgcli" }
}
}
}
Or point command at node and args at the built dist/index.js for a local checkout.
// convert_image
{ "input": "photo.jpg", "output": "thumb.png", "filters": "scale=256:-1,grayscale" }
// -> {"ok":true,"output":"thumb.png","width":256,"height":171,"format":"png","bytes":34122}
// probe_image
{ "input": "photo.jpg" }
// -> {"ok":true,"inputs":[{"path":"photo.jpg","width":4000,"height":3000,"channels":4}]}
Two stages — npm first, then the MCP registry (the registry verifies the
npm package's mcpName field against the server name).
# 1. Publish to npm (needs `npm login`). Package is public via publishConfig.
cd mcp
npm publish
# 2. Publish metadata to the MCP registry
brew install mcp-publisher # (or download from the registry's GitHub releases)
mcp-publisher login github # device-flow auth as the io.github.swperb owner
mcp-publisher validate # optional: check server.json
mcp-publisher publish # publishes server.json
# verify
curl "https://registry.modelcontextprotocol.io/v0.1/servers?search=io.github.swperb/imgcli"
Ownership is proven by mcpName in package.json matching name in
server.json (io.github.swperb/imgcli). On every release keep three versions
in sync: package.json version, server.json version, and the
server.json packages[].version.
The MCP registry is in preview; data resets can occur, so be ready to re-publish. There is no self-service unpublish — publish a new version to update.
FAQs
MCP server exposing imgcli — convert, resize, crop, filter & composite images as native agent tools
The npm package imgcli-mcp receives a total of 22 weekly downloads. As such, imgcli-mcp popularity was classified as not popular.
We found that imgcli-mcp demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Research
/Security News
Popular npm packages keyv and cacheable compromised.

Security News
A misconfiguration gave three Anthropic models internet access, and one, believing it was in a simulation, shipped a credential-stealing package to PyPI.

Security News
/Company News
Socket has joined the new Composer and Packagist sponsorship program as a launch sponsor, supporting the team that keeps PHP's package ecosystem secure.