
Security News
Ruby's Bundler 4.0.18 Extends Cooldown to bundle lock and bundle cache
The supply chain control that delays freshly published gems now covers lockfile generation and gem vendoring in Ruby projects.
Wrap any CLI binary as an MCP server in one line.
npx cli2mcp jq
Your jq is now an MCP tool any client (Claude Desktop, Cursor, Cline, Gemini CLI) can call. The input schema is auto-inferred from jq --help — no hand-written tool definitions, no SDK boilerplate.

npm install -g cli2mcp
# or run without installing
npx cli2mcp <command>
Requires Node.js 22+.
jq for Claude DesktopInstall jq (brew install jq, apt install jq, choco install jq).
Add to claude_desktop_config.json:
{
"mcpServers": {
"jq": {
"command": "npx",
"args": ["-y", "cli2mcp", "jq"]
}
}
}
Restart Claude Desktop. Claude can now call jq directly:
You: Using the
jqtool, extract every.namefield from{"users":[{"name":"ada"},{"name":"lin"}]}.Claude (calls
jqwith{"args": [".users[].name"], "stdin": "{\"users\":[{\"name\":\"ada\"},{\"name\":\"lin\"}]}"})"ada"/"lin"
The tool's inputSchema is synthesized from jq --help — flags like --raw-output, --compact-output, --slurp show up as typed properties; positional filter and files become the args array.
# Ripgrep as an MCP search tool
cli2mcp rg
# yt-dlp with a custom name and a longer timeout
cli2mcp yt-dlp --name video-downloader --timeout 120000
# ffmpeg with a hand-written tool description
cli2mcp ffmpeg --description "Run ffmpeg operations on media files"
# Inject env vars into the child
cli2mcp curl --env HTTP_PROXY=http://localhost:8080
cli2mcp <command> [options]
--name <s> tool name exposed via MCP (default: <command>)
--description <s> tool description (default: first line of --help)
--timeout <ms> per-invocation timeout (default: 60000)
--cwd <path> working directory for the child (default: $PWD)
--env <k=v> extra env vars (repeatable)
--stderr <mode> include | drop | error (default: include)
-h, --help show help
--help and captures stdout + stderr.CliShape (flags, positionals, description).tools/call, builds argv from the validated params, spawns the child via execa, and returns stdout (and stderr, unless --stderr drop). Non-zero exits are surfaced as isError: true.jq, ripgrep, curl, yt-dlp, imagemagick, ollama — plus any POSIX-style CLI with a parseable --help.
git, docker, kubectl are best-effort — the top-level --help is what's parsed).v0.1 — active development. Cross-platform (Linux, macOS, Windows). MIT.
MIT © 2026 Ronie Neubauer.
FAQs
Wrap any CLI as a Model Context Protocol (MCP) server for Claude, ChatGPT, Cursor, Gemini and any MCP-compatible client — schema auto-inferred from --help.
The npm package cli2mcp receives a total of 35 weekly downloads. As such, cli2mcp popularity was classified as not popular.
We found that cli2mcp 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.

Security News
The supply chain control that delays freshly published gems now covers lockfile generation and gem vendoring in Ruby projects.

Security News
During a UK cyber test, a Mythos 5 agent used sockpuppets, social engineering, and prompt injection to try to get a maintainer to merge malware.

Company News
Socket is now in the AWS Security Hub Extended plan. Adopt it through AWS, apply committed spend, and block malicious open source packages.