Skip to main content
Glama

Terminal MCP

Cross-platform MCP server for managing visible terminal sessions.

Features

  • Cross-platform: Supports macOS, Windows, Linux, and WSL

  • Visible terminals: Opens real terminal windows that users can see and interact with

  • Multiple sessions: Manage multiple terminal sessions simultaneously

  • Auto-cleanup: Automatically closes terminals when MCP server stops

Related MCP server: MCP Terminal Server

Installation

Since this package is not published on PyPI, install it directly from the repository:

uv pip install "git+https://github.com/Hor1zonZzz/terminal-mcp.git"

Option 2: Install from a local clone

git clone https://github.com/Hor1zonZzz/terminal-mcp.git
cd terminal-mcp
uv pip install -e .

Usage

Claude Desktop Configuration

Add to your Claude Desktop config (claude_desktop_config.json):

{
  "mcpServers": {
    "terminal": {
      "command": "uv",
      "args": ["run", "terminal-mcp"]
    }
  }
}

Or if installed globally:

{
  "mcpServers": {
    "terminal": {
      "command": "terminal-mcp"
    }
  }
}

Available Tools

terminal_create_or_get

Create a new visible terminal window or get an existing one by name.

Parameters:

  • name (optional): Name for the terminal session

  • working_dir (optional): Working directory for the terminal

Returns: Session ID, name, platform, and status message

terminal_send_input

Send input (command or text) to a terminal.

Parameters:

  • session_id: The terminal session ID

  • text: The command/text to send

terminal_get_output

Get the output from a terminal.

Parameters:

  • session_id: The terminal session ID

  • lines (optional): Number of lines to retrieve (default: 100, max: 1000)

terminal_list

List all active terminal sessions.

terminal_close

Close a terminal session.

Parameters:

  • session_id: The terminal session ID to close

Platform Support

Platform

Terminal Used

macOS

Terminal.app (via AppleScript)

Windows

Windows Terminal (wt.exe) or cmd.exe

Linux

gnome-terminal, konsole, xfce4-terminal, xterm, etc.

WSL

Windows Terminal from WSL

How It Works

  1. Terminal Creation: Opens a real terminal window using platform-specific methods

  2. Communication: Uses named pipes (Unix) or file polling (Windows) for bidirectional communication

  3. Output Capture: Logs terminal output to temporary files for retrieval

  4. Cleanup: Automatically closes all terminals when the MCP server stops (via atexit and signal handlers)

License

MIT

Install Server
A
license - permissive license
A
quality
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

  • A
    license
    -
    quality
    D
    maintenance
    Enables AI agents to interact with terminal environments through multiple concurrent PTY sessions. Supports cross-platform terminal operations including command execution, session management, and real-time communication.
    19
    3
    MIT
  • A
    license
    -
    quality
    F
    maintenance
    Provides cross-platform terminal access through MCP, enabling AI assistants to create and manage interactive terminal sessions, execute commands, and capture visual snapshots on Windows, Linux, and macOS.
    1
    MIT
  • F
    license
    -
    quality
    D
    maintenance
    Enables interactive terminal sessions within Claude Code and Desktop, allowing users and AI to execute commands and manage multiple tabs.
    2

View all related MCP servers

Related MCP Connectors

  • Operate Linux, macOS and Windows from your LLM. Every action runs through an auditable allowlist.

  • Eyes and hands on real Windows PCs — observe, click, type via Glasswarp API.

  • Provides cloud browser automation capabilities using Stagehand and Browserbase, enabling LLMs to i…

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/Hor1zonZzz/terminal-mcp'

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