Cli2mcp MCP Server

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

Local serverstdioPython

What is the Cli2mcp MCP Server?

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

What the server does

Expose any command-line binary as a Model Context Protocol tool by parsing its --help output and synthesizing a JSON Schema at startup. One command, no boilerplate.

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
curl✅ fixture

How to install the Cli2mcp MCP Server

{
  "mcpServers": {
    "ripgrep": {
      "command": "npx",
      "args": ["-y", "cli2mcp", "rg", "--name", "ripgrep",
               "--description", "Recursively search files with regex"]
    },
    "jq": {
      "command": "npx",
      "args": ["-y", "cli2mcp", "jq",
               "--description", "Query and transform JSON via stdin"]
    },
    "pandoc": {
      "command": "npx",
      "args": ["-y", "cli2mcp", "pandoc",
               "--description", "Convert documents between markup formats"]
    },
    "sqlite3": {
      "command": "npx",
      "args": ["-y", "cli2mcp", "sqlite3",
               "--description", "Run SQL against a SQLite database file",
               "--cwd", "/path/to/safe/dir"]
    },
    "yt-dlp": {
      "command": "npx",
      "args": ["-y", "cli2mcp", "yt-dlp",
               "--description", "Download media from URLs",
               "--cwd", "/path/to/downloads",
               "--timeout", "300000"]
    }
  }
}

Configuration as documented by the project. Restart the client after saving.

Example prompts to try

  • “Use Cli2mcp to GitHub.”
  • “Use Cli2mcp to Blog.”
  • “Use Cli2mcp to macOS.”

Frequently asked questions

Wrap any CLI as a Model Context Protocol server - schema auto-inferred from --help. Confirm the tools offered by your installed version in the connected client. Tool availability and permissions depend on the server and account configuration.