Command Executor
FreeNot checkedEnables shell command execution with automatic pagination for large outputs, supporting custom directories and timeouts.
About
Enables shell command execution with automatic pagination for large outputs, supporting custom directories and timeouts.
README
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)
Installation
pip install -r requirements.txt
Configuration
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.
Install Command Executor in Claude Desktop, Claude Code & Cursor
unyly install command-executorInstalls into Claude Desktop, Claude Code, Cursor & VS Code — handles npx, uvx and build-from-source repos for you.
First time? Get the CLI: curl -fsSL https://unyly.org/install | sh
Or configure manually
Run in your terminal:
claude mcp add command-executor -- npx -y github:andrelip/paginate-stdoutFAQ
Is Command Executor MCP free?
Yes, Command Executor MCP is free — one-click install via Unyly at no cost.
Does Command Executor need an API key?
No, Command Executor runs without API keys or environment variables.
Is Command Executor hosted or self-hosted?
Self-hosted: the server runs locally on your machine via the install command above.
How do I install Command Executor in Claude Desktop, Claude Code or Cursor?
Open Command Executor on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install — the config is generated automatically, no JSON editing.
Related MCPs
GitHub
PRs, issues, code search, CI status
by GitHubFilesystem
Secure file operations with configurable access controls.
Memory
Knowledge graph-based persistent memory system.
Template MCP Server
A CLI tool to create a new Model Context Protocol server project with TypeScript support, dual transport options, and an extensible structure
by mcpdotdirectCompare Command Executor with
Not sure what to pick?
Find your stack in 60 seconds
Author?
Embed badge for your README
Browse similar
All development MCPs
