Skip to main content
Glama
andrelip

command-executor

by andrelip

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: Command Line Interface Enhancer

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.

F
license - not found
-
quality - not tested
D
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • F
    license
    B
    quality
    D
    maintenance
    Enables safe execution of system shell commands with real-time streaming output and rich metadata capture. Provides configurable command execution with timeout controls, environment management, and extensible plugin architecture for monitoring command lifecycles.
    4
  • A
    license
    -
    quality
    D
    maintenance
    Enables 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.
    1
    MIT
  • A
    license
    -
    quality
    C
    maintenance
    Enables execution of bash commands with support for timeouts and background jobs, allowing file operations, build commands, system inspection, and long-running tasks.
    54
    7
    MIT
  • F
    license
    -
    quality
    D
    maintenance
    A 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.

View all related MCP servers

Related MCP Connectors

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/andrelip/paginate-stdout'

If you have feedback or need assistance with the MCP directory API, please join our Discord server