Wraps an arbitrary command-line binary as an MCP stdio tool by running the command’s `--help` output at startup and converting it into a JSON Schema. It then proxies tool calls to the underlying CLI, passing parsed arguments and optional stdin through to the subprocess.
From the registry: Wrap any CLI as a Model Context Protocol server - schema auto-inferred from --help.
Please install the `cli2mcp` MCP server into my current AI client (that's you).
Required prerequisites (do these first if not already done):
- **Install Node.js 22+** — Node.js version 22 or newer is required to run cli2mcp via npx or as a global npm package. (https://nodejs.org/)
- **Install the target CLI binary** — The command you want to expose through cli2mcp must already be installed and available on PATH. cli2mcp does not install wrapped CLIs for you.
Canonical MCP server config (stdio transport):
- command: `npx`
- args: ["-y","cli2mcp","<command>"]
Note: cli2mcp is a stdio-only MCP server. Replace <command> with the installed CLI you want to expose, such as rg or jq. Optional launcher flags supported by cli2mcp include --name <name>, --description <text>, --timeout <ms>, --cwd <path>, --env <KEY=VALUE> (repeatable), and --stderr <include|drop|error>. These are CLI arguments to cli2mcp, not MCP config env vars.
Add this MCP server to my current client's config in the correct format for you. If you need secrets or credentials I haven't provided, ASK me — do not invent values or leave raw placeholders. After adding it, tell me how to verify the server is connected.MCP server for Gearsystem Sega Master System / Game Gear / SG-1000 emulator