Skip to main content
Glama
MCP Terminal Server

MCP Terminal Server

by luizaaca

MCP Terminal Server

A MCP (Model Context Protocol) server for secure execution of terminal commands via LLMs, with full operating system control.

πŸš€ Features

  • Windows Execution: Currently support for Windows, Linux based in future versions.

  • Full Control: Administrative commands with controlled privilege elevation

  • Security: Mandatory confirmation before execution

  • Persistence: Maintains context (working directory, environment variables)

  • Concurrency: Concurrent execution with process management

Development

git clone https://github.com/usuario/mcp-terminal-server
cd mcp-terminal-server
pip install -e ".[dev]"

Related MCP server: Host Terminal MCP

πŸ”§ Usage

As an MCP Server

mcp-terminal-server --port 8000 --host localhost

Claude Desktop Configuration

{
  "mcpServers": {
    "terminal": {
      "command": "mcp-terminal-server",
      "args": ["--port", "8000"]
    }
  }
}

πŸ“‹ Available Commands

  • execute_command: Execute a command in the terminal

🀝 Contributing

  1. Fork the repository

  2. Create a branch (git checkout -b feature/new-feature)

  3. Commit your changes (git commit -am 'Add new feature')

  4. Push to the branch (git push origin feature/new-feature)

  5. Open a Pull Request

πŸ“„ License

MIT License - see LICENSE for details.

⚠️ Warning

This server allows unrestricted execution of system commands. Run only in trusted environments and always review commands before execution.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      D
      maintenance
      Enables safe execution of terminal commands across different shells (bash, cmd, PowerShell) with configurable timeouts, working directories, and resource limits for command-line operations through AI assistants.
      -
    • A
      license
      A
      quality
      D
      maintenance
      Enables AI assistants to execute terminal commands on a host machine with configurable, granular permission controls and safety protections. It features multiple security modes, including allowlists and manual approval, to ensure safe command execution within specified directories.
      6
      Apache 2.0
    • A
      license
      Not graded
      quality
      D
      maintenance
      Provides secure, sandboxed terminal access for AI assistants via the Model Context Protocol, with multi-layer risk analysis and auditable command execution.
      22 npm
      8
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables AI agents to securely execute terminal commands with persistent sessions, async jobs, and mission control, while providing a live dashboard for human oversight.
      4
      Apache 2.0