
cli-use
by JustVugg·★ 16·Score 42
A tool that converts any MCP server into a CLI, reducing token costs by 60-80% with zero runtime dependencies.
Overview
Cli-use transforms any MCP server into a native command-line interface through a single command, dramatically reducing token consumption for AI agents. It eliminates schema discovery, request framing, and response parsing overhead by converting verbose JSON-RPC calls into terse CLI commands. The tool supports both one-shot execution and daemon mode for improved performance, with features like call caching, batch/pipe mode, shell completions, and OpenAPI export. Built with pure Python standard library and maintains compatibility across Linux, macOS, and Windows.
Try asking AI
After installing, here are 5 things you can ask your AI assistant:
When to choose this
Choose cli-use when you need to reduce token costs for MCP tool calls or want to use MCP servers as native Unix-style CLI commands in shell scripts.
When NOT to choose this
Don't choose cli-use if you need full MCP protocol features beyond basic tool calling or require real-time response times below 10ms.
Tools this server exposes
12 tools extracted from the READMEaddadd <alias> <path>Install and register an MCP server as a CLI alias
listList available MCP servers in the built-in registry
daemonManage MCP server daemons for faster repeated calls
openapiGenerate OpenAPI spec from cached MCP server tools
completionsGenerate shell completion scripts for MCP tools
batchRun JSON pipeline across multiple MCP server aliases
runRun a specific MCP tool directly from command line
mcp-listList tools available from an MCP server
convertConvert MCP server to standalone CLI script
fsFilesystem operations: read, write, list, and search files
ghGitHub operations: issues, PRs, and repos
sqliteQuery and inspect SQLite databases
Comparable tools
Installation
git clone https://github.com/cli-use/cli-use.git
cd cli-use
pip install -e .For Claude Desktop integration:
{
"mcpServers": {
"cli-use": {
"command": "python",
"args": ["-m", "cli_use.server"]
}
}
}FAQ
- How much token reduction does cli-use provide?
- Measured tests show 60-80% token reduction across different session sizes, with significant savings in schema discovery (80% cheaper) and per-call I/O (59% cheaper).
- What MCP servers are pre-configured?
- Cli-use comes with built-in support for 10 servers: fs (filesystem), memory (knowledge graph), gh (GitHub), git, sqlite, time, fetch, puppeteer, brave (web search), and slack.
Compare cli-use with
Last updated · Auto-generated from public README + GitHub signals.