<- all tokdocs

CLI Anything: Why You Should Replace MCPs With CLIs in Claude Code

Watch on TikTok

View on TikTok ->

If a CLI tool exists for the same functionality as an MCP, you should use the CLI. Model Context Protocol integrations add an abstraction layer that slows things down without adding value when a direct command-line interface is available.

The Case Against MCPs

MCPs introduce protocol translation, additional API calls, and extra processing steps between Claude Code and the tools you need. CLI tools execute immediately with minimal overhead. For repetitive operations or workflows where speed matters, that gap compounds.

Title card showing "CLAUDE CODE" in pixel art with the Model Context Protocol logo crossed out and "stop using mcps" text

The argument is not that MCPs are useless. It is that when both a CLI and an MCP exist for the same tool, the CLI is the better choice for Claude Code because it removes unnecessary middleware.

CLI Anything

CLI Anything is an open-source tool that generates a CLI from any open-source project. Point it at a software repository, and it creates a command-line interface that Claude Code can invoke directly. This eliminates the MCP layer while maintaining full access to the underlying functionality.

CLI-Anything GitHub README showing the project logo, tagline "Making ALL Software agent-ready", Quick Start section, and description of prerequisites

The tool comes from the same team that built LightRag, RAG Anything, and NanoClaw. The setup is straightforward: install CLI Anything, point it at a target repo, and it handles the conversion. Claude Code then treats the generated CLI like any other command-line tool.

CLI-Anything README showing feature list including Structured & Composable, Lightweight & Universal, Self-Describing, Proven Success, Agent-First Design, and Deterministic & Reliable

The project supports Claude Code, OpenCode, and Codex as AI agent backends. It requires Python 3.10+ and the target software installed locally.

Key Takeaways

  • Use CLIs instead of MCPs when both options exist for the same tool
  • CLI tools execute faster with less complexity than MCP integrations
  • CLI Anything auto-generates CLIs from any open-source project, making them agent-ready

Resources

Published May 25, 2026. Writeup generated from a favorited TikTok.