Skip to main content
Glama
any-cli-mcp-server

any-cli-mcp-server

by eirikb

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

Related MCP server: cli2mcp

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"]
    }
  }
}

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

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      An MCP server that publishes CLI tools on your machine for discoverability by LLMs
      7 npm
      1
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Wrap any CLI as a Model Context Protocol (MCP) server for Claude, ChatGPT, Cursor, Gemini and any MCP-compatible client — schema auto-inferred from --help.
      45 npm
      12
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables AI assistants to call any CLI tool by scanning its help output and serving it as an MCP server.
      1
      GPL 3.0
    • A
      license
      Not graded
      quality
      C
      maintenance
      Universal MCP server that wraps any CLI tool, enabling AI assistants to run commands via natural language.
      1
      MIT