Turns any command-line tool into an MCP server, mapping tools from the CLI's --help output, with caching.
Setup
Choose your client, copy the config, then fill in any required environment variables.
claude mcp add any-cli --env CLI_TOOL='<CLI_TOOL>' -- npx -y any-cli-mcp-server '{{config.CLI_TOOL}}'~/.codex/config.toml
[mcp_servers.any-cli]
command = "npx"
args = ["-y", "any-cli-mcp-server", "{{config.CLI_TOOL}}"]
env = { CLI_TOOL = "<CLI_TOOL>" }
# codex mcp add any-cli --env CLI_TOOL='<CLI_TOOL>' -- npx -y any-cli-mcp-server '{{config.CLI_TOOL}}'~/.cursor/mcp.json
{
"mcpServers": {
"any-cli": {
"command": "npx",
"args": [
"-y",
"any-cli-mcp-server",
"{{config.CLI_TOOL}}"
],
"env": {
"CLI_TOOL": "<CLI_TOOL>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"any-cli": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"any-cli-mcp-server",
"{{config.CLI_TOOL}}"
],
"env": {
"CLI_TOOL": "<CLI_TOOL>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"any-cli": {
"command": "npx",
"args": [
"-y",
"any-cli-mcp-server",
"{{config.CLI_TOOL}}"
],
"env": {
"CLI_TOOL": "<CLI_TOOL>"
}
}
}
}claude_desktop_config.json
{
"mcpServers": {
"any-cli": {
"command": "npx",
"args": [
"-y",
"any-cli-mcp-server",
"{{config.CLI_TOOL}}"
],
"env": {
"CLI_TOOL": "<CLI_TOOL>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"any-cli": {
"command": "npx",
"args": [
"-y",
"any-cli-mcp-server",
"{{config.CLI_TOOL}}"
],
"env": {
"CLI_TOOL": "<CLI_TOOL>"
}
}
}
}Environment variables
CLI_TOOL
Replace the placeholders with your own credentials and keep them out of version control.