Any Cli MCP Server logo

Any Cli MCP Server

by eirikb

Converts CLI tools with --help output into MCP tools, with optional caching for faster startup.

Install Any Cli MCP Server

Pick your client, then add it in one click or paste the config.

No confirmed install command yet

We only publish a config when the install details come from the project itself — its README, its docs, or a verified owner. We haven’t found those for eirikb/any-cli-mcp-server, and we’d rather show nothing than a guess you’d paste into your client.

Open setup steps on GitHub

Overview

eirikb/any-cli-mcp-server MCP server turns a command-line tool into an MCP server by reading the tool's --help output and generating MCP tools from it. Run it with a CLI name such as gh, az, or git, or point it at a previously generated cache file. The optional cache-build mode can improve startup performance when help discovery is slow or repeated. Reach for it when an existing CLI is available but does not have a dedicated MCP server.

Use cases

  • Expose GitHub CLI commands through MCP
  • Wrap Azure CLI operations for an MCP client
  • Make Git commands available as generated MCP tools
  • Cache CLI help data to reduce startup work

Key features

  • Generates MCP tools from --help output
  • Supports arbitrary compatible CLI tools
  • Accepts CLI names or cache files
  • Provides optional cache generation
  • Runs as an npm package with npx

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked 3d ago

Recent health check succeeded.

15/15 checks healthy over the last 79d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 8/23/2026 via OSV.dev

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars24Stargazers on the source repository.
Last commit1y agoMost recent push to the default branch.
Directory activity3 viewsConfig copies, upvotes, and views on AllMCPs.

How Any Cli MCP Server works

What eirikb/any-cli-mcp-server MCP server does

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.

How it works

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.

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.

Setup and configuration

Install and run the package through npx. A direct example is:

Terminal
npx -y any-cli-mcp-server gh

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:

config.json
{
  "mcpServers": {
    "github-cli": {
      "command": "npx",
      "args": ["-y", "any-cli-mcp-server", "gh"]
    }
  }
}

To prepare a cache, run npx any-cli-mcp-server --cache-build gh, then configure the server with gh_cache.json instead of gh.

Tools and capabilities

  • Generate MCP tools from a CLI's --help output.
  • Wrap command-line programs such as GitHub CLI, Azure CLI, and Git.
  • Accept either a live CLI name or a generated cache file.
  • Build a cache for faster subsequent startup.
  • Run as an npm package through 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.

Limitations and notes

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.

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.

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Any Cli MCP Server

Run it with npx, for example `npx -y any-cli-mcp-server gh`, replacing `gh` with the CLI you want to expose.

It is intended for CLI tools that provide usable `--help` output. The README gives GitHub CLI, Azure CLI, and Git as examples.

Set the client command to `npx` and pass `-y`, `any-cli-mcp-server`, and the target CLI name in the arguments array.

Build a cache with `npx any-cli-mcp-server --cache-build gh`, then start the server with the generated `gh_cache.json` file.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewAny Cli MCP Server AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/eirikb-any-cli-mcp-server?style=directory)](https://allmcps.com/mcp/eirikb-any-cli-mcp-server)
HTML Embed
<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>