Converts CLI tools with --help output into MCP tools, with optional caching for faster startup.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent โ or use 1-click editor setup below.
We haven't yet run this listing's install command through our automated sandbox check. This isn't a red flag โ we're steadily working through the catalog.
๐ก Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
Inspect callable tools, capabilities, and parameters exposed to AI agents by Any Cli MCP Server.
The eirikb/any-cli-mcp-server MCP server exposes a command-line interface through MCP. It uses the target CLI's --help output to construct the available MCP tools, allowing an MCP-compatible client to work with command-line functionality through the protocol rather than through direct shell interaction.
The approach is intended for CLI programs that provide help output in a form the server can use. The README gives GitHub CLI (gh), Azure CLI (az), and Git (git) as example targets. The server is distributed as an npm package and runs with Node.js 18 or newer.
At startup, the server receives either the name of a CLI executable or a cache file. With a CLI name, it examines the command's help information and builds MCP tools from that information. The resulting tools represent the commands and options described by the CLI's help output; the README does not define a fixed set of tool names because they depend on the selected command-line program.
For repeated use, eirikb/any-cli-mcp-server MCP server can build a cache first. The cache is written using the target CLI name, such as gh_cache.json, and can then be supplied instead of the executable name. This avoids rebuilding the command description on every startup and is described as an optional performance improvement.
Install and run the package through npx. A direct example is:
Replace gh with the CLI you want to expose, such as az or git. The selected executable must be available to the environment where the MCP server runs.
An MCP client configuration supplies npx as the command and passes -y, the package name, and the target CLI as arguments:
To prepare a cache, run npx any-cli-mcp-server --cache-build gh, then configure the server with gh_cache.json instead of gh.
--help output.npx.The generated tool set is determined by the selected CLI, so this package does not provide one universal list of operations independent of that CLI.
The target command must provide usable --help output. This server does not replace the underlying CLI; that CLI still needs to be installed and available when the server is configured to inspect or run it. Authentication, permissions, and other requirements belong to the wrapped CLI and are not specified by the README.
Cache files are tied to the command description used to create them. If the underlying CLI changes, rebuilding the cache may be necessary so the exposed MCP tools match the current help output.
The project is open source under the MIT license. The README documents Node.js 18 or newer as the runtime requirement.
Factual signals from GitHub, npm, and our automated checks โ not a rating.
No reviews yet โ be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/eirikb-any-cli-mcp-server)<a href="https://allmcps.com/mcp/eirikb-any-cli-mcp-server"><img src="https://allmcps.com/api/badge/eirikb-any-cli-mcp-server?style=directory" alt="Any Cli MCP Server on AllMCPs" /></a>