any-cli-mcp-server

eirikb/any-cli-mcp-server

3.2

If you are the rightful owner of any-cli-mcp-server and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

The 'any-cli-mcp-server' tool allows users to transform any command-line interface (CLI) tool into a Model Context Protocol (MCP) server, leveraging the tool's '--help' output to build MCP tools.

any-cli-mcp-server

Turn any CLI tool into an MCP server.

Uses the --help to build MCP tools.

Quick Start

# Use with GitHub CLI
npx any-cli-mcp-server gh

# Use with Azure CLI
npx any-cli-mcp-server az

# Use with Git
npx any-cli-mcp-server git

Setup

{
  "mcpServers": {
    "github-cli": {
      "command": "npx",
      "args": ["-y", "any-cli-mcp-server", "gh"]
    },
    "azure-cli": {
      "command": "npx",
      "args": ["-y", "any-cli-mcp-server", "az"]
    },
    "git-from-cache": {
      "command": "npx",
      "args": ["-y", "any-cli-mcp-server", "git_cache.json"]
    }
  }
}

Faster Startup (Optional)

Build a cache first for better performance:

# Build cache
npx any-cli-mcp-server --cache-build gh

# Use cache
npx any-cli-mcp-server gh_cache.json

Works with any CLI tool that has --help output.