eirikb/any-cli-mcp-server
Convert any (whatever) CLI to proper MCP server with tools mapped based on CLI help
Platform-specific configuration:
{
"mcpServers": {
"any-cli-mcp-server": {
"command": "npx",
"args": [
"-y",
"any-cli-mcp-server"
]
}
}
}Add the config above to .claude/settings.json under the mcpServers key.
[](https://badge.fury.io/js/any-cli-mcp-server) [](https://github.com/eirikb/any-cli-mcp-server/actions/workflows/release.yml) [](https://opensource.org/licenses/MIT) [](https://www.typescriptlang.org/) [](https://nodejs.org/)
Turn any CLI tool into an MCP server.
Uses the --help to build MCP tools.
Works with any CLI tool that has --help output.
# 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{
"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.jsonLoading reviews...