MCP server
cli2mcp
Wrap any CLI as a Model Context Protocol server - schema auto-inferred from --help.
Runs locallyStatus and history
- Pricing
- Open source
- Runs
- Locally
- Version
- 0.1.4
- Listing updated
- 5 days ago
About cli2mcp
cli2mcp is an open-source MCP server. It runs locally on your machine and is started by your AI client.
Install
Run in a terminal
claude mcp add cli2mcp -- npx -y cli2mcpAdd to claude_desktop_config.json
{
"mcpServers": {
"cli2mcp": {
"command": "npx",
"args": [
"-y",
"cli2mcp"
]
}
}
}Install in CursorOpens Cursor, which asks you to confirm. Or add it by hand:
Add to ~/.cursor/mcp.json
{
"mcpServers": {
"cli2mcp": {
"command": "npx",
"args": [
"-y",
"cli2mcp"
]
}
}
}Install in VS CodeOpens VS Code, which asks you to confirm. Or add it by hand:
Add to .vscode/mcp.json
{
"servers": {
"cli2mcp": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"cli2mcp"
]
}
}
}Add to ~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"cli2mcp": {
"command": "npx",
"args": [
"-y",
"cli2mcp"
]
}
}
}Add to your client's MCP settings (most use this shape)
{
"mcpServers": {
"cli2mcp": {
"command": "npx",
"args": [
"-y",
"cli2mcp"
]
}
}
}Using several servers? Build one config file with the MCP config generator.
Pricing
Open source
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.