Enterprise DNA
M MCP Servers Developer low

eirikb/any-cli-mcp-server

by Various

Convert any (whatever) CLI to proper MCP server with tools mapped based on CLI help

E

MCP

eirikb/any-cli-mcp-server

Added 1 June 2026

Overview

This tool converts any command-line interface into a Model Context Protocol (MCP) server. It parses the CLI's help output to automatically map each available command as an MCP tool. The result is a server that exposes those commands to any MCP-compatible client, such as an AI assistant.

Best for

Best for
Developers who need a quick way to expose legacy or custom CLIs as MCP tools without writing a dedicated server.

Use cases

  • Wrap an existing CLI tool as an MCP server for AI agents
  • Quickly prototype MCP integrations without writing custom server code
  • Expose multiple CLI utilities through a single MCP endpoint

How to use

Install

npx any-cli-mcp-server gh

Tools exposed

  • npx

Example client config

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

Notes

This tool converts any command-line interface into a Model Context Protocol (MCP) server. It parses the CLI’s help output to automatically map each available command as an MCP tool. The result is a server that exposes those commands to any MCP-compatible client, such as an AI assistant.

18 stars on GitHub. Last updated 2025-09-04. Licensed MIT.

Use cases

  • Wrap an existing CLI tool as an MCP server for AI agents
  • Quickly prototype MCP integrations without writing custom server code
  • Expose multiple CLI utilities through a single MCP endpoint

Pros

  • Works with virtually any CLI that produces structured help output
  • No manual tool mapping required, reduces setup effort
  • Written in TypeScript, easy to extend or debug

Cons

  • Relies entirely on the quality and consistency of the CLI’s help text
  • May fail to capture complex argument relationships or subcommand dependencies
  • Low project maturity (18 stars) and limited community adoption

Indexed from awesome-mcp-servers-punkpeye and enriched against its public facts.

Pros

  • Works with virtually any CLI that produces structured help output
  • No manual tool mapping required, reduces setup effort
  • Written in TypeScript, easy to extend or debug

Cons

  • Relies entirely on the quality and consistency of the CLI's help text
  • May fail to capture complex argument relationships or subcommand dependencies
  • Low project maturity (18 stars) and limited community adoption
Free 27-page guide

Get the free Developer’s Field Guide

A 27-page field guide to the AI coding workflow with Claude. Claude Code, MCP servers, the prompt patterns that work, and what to delegate. Free.

Enter your work email. We send it straight over, plus a few short notes worth knowing. Unsubscribe any time.

No spam. Unsubscribe any time.

Running a business, not writing the code? See the MCP servers picked for operators, and get your first one wired up with us.

Operator picks