Back to MCP Servers

Any Cli

Universal MCP server that transforms any CLI tool into an MCP server. Works with any CLI that has `--help` output, supports caching for performance.

coding-agentsperformance
By eirikb
208Updated 10 months agoTypeScriptMIT

Installation

npx -y any-cli-mcp-server

Configuration

{
  "mcpServers": {
    "any-cli-mcp-server": {
      "command": "npx",
      "args": ["-y", "any-cli-mcp-server"]
    }
  }
}

How to use

  1. Run the installation command above (if needed)
  2. Open your Claude Code settings file (~/.claude/settings.json)
  3. Add the configuration to the mcpServers section
  4. Restart Claude Code to apply changes

any-cli-mcp-server

npm version Release License: MIT TypeScript Node.js

Turn any CLI tool into an MCP server.

Uses the --help to build MCP tools.

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

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, but very recommended)

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
View source on GitHub