# any-cli-mcp-server

> any-cli-mcp-server is an open-source MCP server for developer tools. Wraps any command-line tool as an MCP server by reading its --help output. It is available on CLI and Self-hosted.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, Self-hosted
- **Repository:** https://github.com/eirikb/any-cli-mcp-server
- **GitHub stars:** 26
- **License:** MIT
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-01

## About

Point it at a command-line program such as gh, az or git and it generates a set of MCP tools by parsing that program's help text. AI clients can then call the CLI through the standard Model Context Protocol instead of shelling out directly.

Because the tools are derived from --help output at runtime, no per-CLI integration code has to be written. A cache file can be built ahead of time so the server starts faster on later runs, which the project recommends for regular use.

The package is aimed at developers who already rely on a CLI and want an AI assistant to operate it inside an MCP-compatible client. Setup is a short JSON entry in the client's MCP configuration.

## Features

- **Help-driven tool generation:** Builds MCP tools automatically by reading each command's --help output.
- **Works with any CLI:** Any program that prints help text can be exposed, including gh, az and git.
- **Prebuilt command cache:** Caches generated tool definitions to a JSON file for faster startup.
- **Simple client configuration:** Runs through npx with a short mcpServers entry in the client config.
- **Multiple servers at once:** Several CLIs can be registered as separate MCP servers in one configuration.

## Good for

- Letting an AI assistant run GitHub CLI operations for a repository
- Driving Azure CLI commands from an MCP-enabled chat client
- Giving an assistant controlled access to git history and actions
- Reducing startup time for a CLI-backed MCP server with a cache file

## FAQ

### How are the MCP tools created?

They are built by parsing the --help output of the target command-line tool.

### How do I make the server start faster?

Run the cache build command once for the CLI, then point the server at the generated JSON cache file.

### Which license does any-cli-mcp-server use?

It is released under the MIT license.

### Is any-cli-mcp-server free?

Yes. any-cli-mcp-server is open source, so you can use and self-host it for free.

### What are the best alternatives to any-cli-mcp-server?

The closest alternatives to any-cli-mcp-server are cli2mcp, mcp-server-commands, mcp-server-toolkit, Ncp and agent.

## Where this comes from

- Description: written from the project's README.

## Alternatives

- [cli2mcp](https://ai-powered.com/mcp/cli2mcp): cli2mcp is an open-source MCP server for developer tools.
- [mcp-server-commands](https://ai-powered.com/mcp/mcp-server-commands-2): mcp-server-commands is an open-source MCP server for developer tools.
- [mcp-server-toolkit](https://ai-powered.com/mcp/mcp-server-toolkit): mcp-server-toolkit is an open-source MCP server for developer tools.
- [Ncp](https://ai-powered.com/mcp/ncp): Ncp is an open-source MCP server for developer tools.
- [agent](https://ai-powered.com/mcp/agent-2): agent is an open-source MCP server for developer tools.
- [MCP Server Commands](https://ai-powered.com/mcp/mcp-server-commands): MCP Server Commands is an open-source MCP server for developer tools.
- [mcpmcp-server](https://ai-powered.com/mcp/mcpmcp-server): mcpmcp-server is an open-source MCP server for developer tools.
- [Npm Run MCP Server](https://ai-powered.com/mcp/npm-run-mcp-server): Npm Run MCP Server is an open-source MCP server for developer tools.

---
Source: https://ai-powered.com/mcp/any-cli-mcp-server
