Execute shell commands with structured output via a powerful CLI server.
A powerful CLI command execution MCP server that enables running shell commands with structured output. This package focuses specifically on command execution functionality, differentiating it from other MCP CLI tools.
Execute a raw CLI command and return structured output
Execute one or more CLI commands in a specific working directory
Note: Due to execution context limitations, each command runs independently. Directory changes (cd) within commands do not affect subsequent commands. All commands execute in the initially specified working directory.
Commands return structured results including:
Simple command execution:
{
"command": "echo Hello World"
}
With timeout:
{
"command": "long-running-script.sh",
"timeout": 300000
}
Single command in specific directory:
{
"workingDirectory": "/path/to/project",
"commands": "npm install"
}
Multiple commands (all run in the same working directory):
{
"workingDirectory": "C:\\project",
"commands": [
"dir /b",
"npm run build"
]
}
Optionally install from npm:
npm install -g mcp-cli-exec
# or with pnpm
pnpm add -g mcp-cli-exec
Or just use npx in your configuration
Add to %APPDATA%/Code - Insiders/User/globalStorage/rooveterinaryinc.roo-cline/settings/cline_mcp_settings.json
:
{
"mcpServers": {
"mcp-cli-exec": {
"command": "npx",
"args": ["-y", "mcp-cli-exec"]
}
}
}
Add to the appropriate config file:
Windows: %APPDATA%/Claude/claude_desktop_config.json
MacOS: ~/Library/Application Support/Claude/claude_desktop_config.json
{
"mcpServers": {
"mcp-cli-exec": {
"command": "npx",
"args": ["-y", "mcp-cli-exec"]
}
}
}
If you encounter the ENOENT spawn npx issue on Windows, use this alternative configuration that specifies the full paths:
{
"mcpServers": {
"mcp-cli-exec": {
"command": "C:\\Users\\jim\\AppData\\Roaming\\nvm\\v22.1.0\\node.exe",
"args": [
"C:\\Users\\jim\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npx-cli.js",
"-y",
"mcp-cli-exec"
]
}
}
}
Install dependencies:
pnpm install
Build the server:
pnpm run build
For development with auto-rebuild:
pnpm run watch
Since MCP servers communicate over stdio, debugging can be challenging. The MCP Inspector provides helpful debugging tools:
pnpm run inspector
This will provide a URL to access the inspector in your browser, where you can:
The server includes comprehensive error handling:
Turns any command-line interface (CLI) command into a simple StdIO-based MCP server.
Interact with the Futarchy protocol on the Solana blockchain.
Interact with MiniMax's powerful APIs for text-to-speech, voice cloning, and video/image generation.
Provides seamless integration with SonarQube Server or Cloud, and enables analysis of code snippets directly within the agent context
A specialized MCP gateway for LLM enhancement prompts and jailbreaks with dynamic schema adaptation. Provides prompts for different LLMs using an enum-based approach.
A powerful and flexible MCP server designed to enhance the development experience with Shadcn UI components, providing tools for component management, documentation, and installation.
Performs gene set enrichment analysis using the Enrichr API, supporting all available gene set libraries.
Enable AI agents to interact with the Atla API for state-of-the-art LLMJ evaluation.
Manage Xcode simulators.
An unofficial MCP server plugin for remote control of Unreal Engine using AI tools.