command-executor
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Command Executor MCP Server
A Model Context Protocol (MCP) server that executes shell commands and handles large outputs with pagination.
Features
execute_command: Executes shell commands and captures output
Returns full output directly if under 10,000 estimated tokens
For larger outputs, stores them and returns an ID for pagination
Supports custom working directory and timeout
get_output_page: Retrieves paginated output for large command results
Pages contain approximately 3,000 lines each
Provides navigation info (current page, total pages, has next/previous)
Related MCP server: Shell Exec MCP
Installation
pip install -r requirements.txtConfiguration
Add to your Claude Desktop configuration (~/Library/Application Support/Claude/claude_desktop_config.json):
{
"mcpServers": {
"command-executor": {
"command": "python",
"args": ["/path/to/command_executor_mcp.py"]
}
}
}Usage Examples
Execute a simple command:
execute_command({"command": "ls -la"})Execute with custom directory and timeout:
execute_command({
"command": "find . -name '*.py'",
"working_directory": "/Users/username/projects",
"timeout": 60
})Retrieve paginated output:
get_output_page({
"output_id": "uuid-returned-from-execute",
"page": 1
})Token Estimation
The server estimates tokens at approximately 0.25 tokens per character. Outputs exceeding 10,000 estimated tokens are automatically paginated.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
I run shell commands on your private cloud environment (bash, sh, zsh)
Execute PowerShell commands securely with controlled timeouts and input validation. Retrieve syste…
Use your Mac, Windows or Linux computer from ChatGPT, Claude or Codex: files, commands, documents.
Use your own Windows, Mac or Linux computer from ChatGPT, Claude, Cursor or Gemini CLI: run commands, read, write and search files, run long processes. Your computer only makes an outgoing connection (no open ports or VPN). Read-only mode, allowed folders, blocked commands and an action log keep you in control. Free plan available.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables execution of shell commands, directory navigation, and interactive program automation through an enhanced command-line interface. Provides tools for running commands, managing working directories, and handling interactive programs using expect/send sequences.1MIT
- AlicenseAqualityBmaintenanceEnables execution of bash commands with support for timeouts and background jobs, allowing file operations, build commands, system inspection, and long-running tasks.287 npm9MIT
- FlicenseAqualityCmaintenanceA Model Context Protocol server that enables users to execute arbitrary shell commands through a terminal tool. It supports custom working directories, configurable execution timeouts, and safe command parsing using shlex.1-
- AlicenseNot gradedqualityCmaintenanceProvides a secure environment for executing shell commands with restricted directory access and timeout enforcement. It includes tools for running commands, managing execution history, and isolating environment variables.24 npmMIT