# cli2mcp

> cli2mcp is an open-source MCP server. Wrap any CLI as a Model Context Protocol server - schema auto-inferred from --help. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Repository:** https://github.com/ronieneubauer/cli2mcp
- **MCP Registry name:** io.github.RonieNeubauer/cli2mcp
- **Listing updated:** 2026-11-13

## About

Wrap any CLI as a Model Context Protocol server - schema auto-inferred from --help.

## Install

### Claude Code (Terminal)

```sh
claude mcp add cli2mcp -- npx -y cli2mcp
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "cli2mcp": {
      "command": "npx",
      "args": [
        "-y",
        "cli2mcp"
      ]
    }
  }
}
```

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "cli2mcp": {
      "command": "npx",
      "args": [
        "-y",
        "cli2mcp"
      ]
    }
  }
}
```

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "cli2mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "cli2mcp"
      ]
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "cli2mcp": {
      "command": "npx",
      "args": [
        "-y",
        "cli2mcp"
      ]
    }
  }
}
```

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "cli2mcp": {
      "command": "npx",
      "args": [
        "-y",
        "cli2mcp"
      ]
    }
  }
}
```

## FAQ

### Is cli2mcp free?

Yes. cli2mcp is open source, so you can use and self-host it for free.

### How do I add cli2mcp to Claude Code?

Run this command in your terminal: claude mcp add cli2mcp -- npx -y cli2mcp

## Where this comes from

- Description: from the official MCP Registry entry.
- Install steps: from the official MCP Registry entry.

---
Source: https://ai-powered.com/mcp/cli2mcp
