Runs shell commands and returns structured results with stdout, stderr, exit code and duration.
Setup
Choose your client, copy the config, then fill in any required environment variables.
claude mcp add cli-exec -- npx -y mcp-cli-exec~/.codex/config.toml
[mcp_servers.cli-exec]
command = "npx"
args = ["-y", "mcp-cli-exec"]
# codex mcp add cli-exec -- npx -y mcp-cli-exec~/.cursor/mcp.json
{
"mcpServers": {
"cli-exec": {
"command": "npx",
"args": [
"-y",
"mcp-cli-exec"
]
}
}
}.vscode/mcp.json
{
"servers": {
"cli-exec": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"mcp-cli-exec"
]
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"cli-exec": {
"command": "npx",
"args": [
"-y",
"mcp-cli-exec"
]
}
}
}claude_desktop_config.json
{
"mcpServers": {
"cli-exec": {
"command": "npx",
"args": [
"-y",
"mcp-cli-exec"
]
}
}
}.trae/mcp.json
{
"mcpServers": {
"cli-exec": {
"command": "npx",
"args": [
"-y",
"mcp-cli-exec"
]
}
}
}