CLI-use
turn any MCP server into a CLI in one command
Get picks like this daily. Today's launch numbers, the top launches, AI and tech news, and a daily opportunity pick, straight to your inbox.
Want to reach these readers? Sponsor an issue.
Hi everyone,I built cli-use, a small Python tool that turns any MCP server into a native CLI.The idea is simple: HTTP has curl, Docker has docker, Kubernetes has kubectl — MCP should have a shell-native client too.Why I made it:MCP is useful, but using it through agents has overhead:every session pays schema discovery cost every call carries JSON-RPC framing responses are often verbose JSON when the useful output is just a line or twocli-use converts that into a terse CLI so tools can be called like normal shell commands.Example:pip install cli-use cli-use add fs /tmp cli-use fs list_directory --path /tmpAfter that, the MCP server behaves like a regular CLI:usable by agents usable by humans usable from scripts / subprocess.run composable with grep, head, xargs, etc.Example:cli-use fs search_files --path /tmp --pattern "*.md" | head cli-use fs read_text_file --path /tmp/notes.md | grep TODOOne thing I cared about a lot is agent ergonomics.Every add also emits a SKILL.md plus an AGENTS.md pointer, so agents working in a repo can discover and use the CLI automatically.A few details:pure Python stdlib zero runtime deps persistent aliases works with npm, pip, pipx, and local MCP servers built-in registry for common MCP serversI also benchmarked it against the real @modelcontextprotocol/server-filesystem server (14 tools). Depending on session size, token savings were around 60–80%, mostly by removing schema overhead and verbose request / response framing.It’s still alpha, but already usable.Repo: https://github.com/JustVugg/cli-use
HN · launched Apr 21, 2026 · 7 upvotes (top 61%) · 0 views
Niche: model context protocol tools · 465 launches, 13 in the last 7 days ▼ -24% · Explore this niche →
Category and tags
- Horizontal
- Dev tools
- Developer
- AI feature
- Hobby / open-source project
More like this: all 465 launches in model context protocol tools →
Could you build this?
Yes It is a lightweight Python CLI utility that connects to MCP servers via JSON-RPC and dynamically translates exposed tools into CLI subcommands.
Discussion
1 comment analyzed.
Competitors mentioned: mcp2cli, mcporter
Concerns raised: unclear differentiation from existing alternatives
Competitors
Other products that read as similar to this one : 419 launches clear the similarity bar, closest 8 shown.
Attention rank: #249 of 420 (itself plus its competitors, highest first, normalized so YC and Product Hunt are compared fairly).
Launched 173 days after the earliest competitor.
- Mcp2cli · hn · 2026-03-09 · 146 upvotes · similarity 0.62
- I built a tool that turns any API into a CLI for agents · hn · 2026-03-01 · 6 upvotes · similarity 0.59
- openapi-mcp · ph · 2026-10-29 · 1 upvotes · similarity 0.56
- Model Tools Protocol (MTP) · hn · 2026-02-10 · 9 upvotes · similarity 0.56
- Clify · hn · 2026-04-07 · 5 upvotes · similarity 0.52
- Murl · hn · 2026-02-21 · 5 upvotes · similarity 0.52
- agend-sh · ph · 2026-10-10 · 1 upvotes · similarity 0.51
- CLIs Are All You Need for Agents · hn · 2026-01-09 · 5 upvotes · similarity 0.51
The niche, labels, vibe code rating and competitor comparison on this page are analysis by Nicheloom. If you use them, please credit nicheloom.com. How you may use our data.