MCP Terminal Server

MCP Terminal Server

terminal_mcp•byiris-networks

A Model Context Protocol server for secure, cross-platform terminal command execution with configurable timeouts and persistent shell sessions.

License: Not specified•Runtime: Awaiting documentation review•Category: developer tools

WHAT IT DOES

  • •Executes single commands with a configurable timeout.
  • •Runs commands in persistent shell sessions that maintain state like working directory and environment variables.
  • •Manages shell sessions, including listing and closing them.
  • •Supports both STDIO and StreamableHTTP transport modes.

BEST FOR

  • •Giving MCP clients controlled command-line and terminal execution capabilities.
  • •Web integrations that need an HTTP-based MCP transport.
  • •Workflows requiring persistent shell state across commands.

ABOUT TERMINAL_MCP

MCP Terminal Server is cataloged as an MCP server attributed to iris-networks. A Model Context Protocol server for secure, cross-platform terminal command execution with configurable timeouts and persistent shell sessions. It is categorized under developer tools. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: Not specified. Check the source repository's current license and terms before using, modifying or distributing this software.

Capability inspector

Capability definitions are not reviewed. Unreviewed imports are not exposed as trusted interfaces.

Tools (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Resources (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Prompts (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for MCP Terminal Server are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

How can GUI applications be launched through this server?

The server automatically forwards the DISPLAY environment variable to executed commands, allowing GUI applications to open on the correct X11 display.

Which platforms does the server support?

The server supports macOS (darwin) and Linux on AMD64 and ARM64, plus multi-architecture Docker images.

Upstream README

View this exact version on GitHub

README.md · 73f111d580bd · Fetched 2026-11-13 13:58:20 UTC

Original upstream text, without AI rewriting. Scripts, forms and unsafe links are filtered for safety.

Showing the last retrieved documentation snapshot; check the source for current changes.

💻 MCP Terminal Server

Build Status Release Go Version License

🚀 A high-performance Model Context Protocol server for secure terminal execution

✨ Cross-platform • ⚡ High-performance • 🔒 Ultra-secure ✨

Terminator Terminal

Features

  • Cross-platform support: Works on macOS and Linux
  • Configurable timeouts: Set custom timeout values for command execution
  • Secure execution: Commands run in controlled environment with proper error handling
  • Platform-aware: Automatically detects and adapts to the host platform
  • Flexible shell support: Configurable shell for command execution
  • GUI application support: Automatic DISPLAY environment variable forwarding for X11 applications
  • Multiple transport modes:
    • STDIO mode for traditional MCP clients
    • 🌐 StreamableHTTP transport: Standards-compliant HTTP-based MCP transport for web integrations
  • Flexible session management: Use any session ID you want - no pre-registration required
  • 🎉 Persistent shell sessions: Maintain shell state between commands (working directory, environment variables, etc.)

Quick Start

# Build the server
make build

# Run in HTTP mode with StreamableHTTP transport
./mcp-terminal-server --http --port 8080

# Run in STDIO mode (default)
./mcp-terminal-server

🚀 Quick Testing

Test StreamableHTTP Transport

# Start server in HTTP mode
./mcp-terminal-server --http --port 8080

# Test MCP initialization
curl -X POST http://localhost:8080/mcp \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc": "2.0", "id": 1, "method": "initialize", "params": {"protocolVersion": "2024-11-05", "capabilities": {}, "clientInfo": {"name": "test-client", "version": "1.0.0"}}}'

# Test tools listing (use session ID from initialize response)
curl -X POST http://localhost:8080/mcp \
  -H "Content-Type: application/json" \
  -H "Mcp-Session-Id: <session-id>" \
  -d '{"jsonrpc": "2.0", "id": 2, "method": "tools/list"}'

# Execute a command
curl -X POST http://localhost:8080/mcp \
  -H "Content-Type: application/json" \
  -H "Mcp-Session-Id: <session-id>" \
  -d '{"jsonrpc": "2.0", "id": 3, "method": "tools/call", "params": {"name": "execute_command", "arguments": {"command": "echo Hello StreamableHTTP!"}}}'

Test Persistent Shell

# Test persistent shell functionality
chmod +x examples/persistent_shell_examples.sh
./examples/persistent_shell_examples.sh

Documentation

📚 Complete Documentation

Available Tools

  1. execute_command - Execute single commands with timeout
  2. persistent_shell - Execute commands in persistent shell sessions
  3. session_manager - Manage shell sessions (list, close)

Environment Variables

The server supports the following environment variables:

  • MCP_COMMAND_TIMEOUT - Default command timeout in seconds (default: 30)
  • MCP_SHELL - Custom shell to use for command execution (default: /bin/bash on Unix)
  • DISPLAY - X11 display for GUI applications (automatically forwarded to commands)

GUI Application Support

The server automatically forwards the DISPLAY environment variable to all executed commands, enabling GUI applications to open on the correct display. This works for both non-persistent commands and persistent shell sessions.

Example: Launch a GUI application

# Set DISPLAY when starting the server
DISPLAY=:0 ./mcp-terminal-server

# GUI applications launched through MCP will use the correct display
# e.g., xterm, firefox, gedit, etc.

Server Endpoints

When running in HTTP mode (--http flag), the server provides:

  • POST /mcp - StreamableHTTP transport endpoint for all MCP operations
    • Supports initialize, tools/list, tools/call methods
    • Requires Mcp-Session-Id header for authenticated requests
    • Returns session ID in response headers for initialize calls

MCP Protocol Support

The server implements the Model Context Protocol specification:

  • JSON-RPC 2.0 communication
  • Session management with UUID-based session IDs
  • Tool execution with structured input/output
  • Error handling with standard JSON-RPC error codes

Platform Support

  • macOS (darwin): Full support - AMD64 & ARM64
  • Linux: Full support - AMD64 & ARM64
  • Docker: Multi-architecture support via buildx

Integration

Claude Desktop

Add to your claude_desktop_config.json:

{
  "mcpServers": {
    "terminal": {
      "command": "/path/to/mcp-terminal-server",
      "env": {
        "MCP_COMMAND_TIMEOUT": "30",
        "DISPLAY": ":0"
      }
    }
  }
}

Docker

# Run AMD64 image
docker run --rm -p 8080:8080 terminal-mcp:latest-linux-amd64 --http --port 8080

# Run ARM64 image  
docker run --rm -p 8080:8080 terminal-mcp:latest-linux-arm64 --http --port 8080

# Run with persistent shell session
docker run --rm -p 8080:8080 -v /tmp:/tmp terminal-mcp:latest-linux-amd64 --http --port 8080

Other MCP Clients

The server follows the standard MCP protocol and should work with any compliant MCP client.

Development

Building

# Build for current platform
make build

# Build for all platforms
make build-all

# Build Docker images
make docker-build

# Build and push Docker images
REGISTRY=your-registry.com make docker-push

# Build DXT package for distribution
make dxt

Dependencies

  • github.com/mark3labs/mcp-go - MCP Go library
  • Go 1.23+ (automatically managed)

Production Deployment

For production environments, it's recommended to run the server with proper process management and security measures:

Process Management

  • s6: Lightweight process supervision with automatic restart
  • systemd: Full-featured service management with resource limits
  • Docker: Containerized deployment with security isolation
  • Supervisor: Python-based process management

Security Features

  • Non-root execution: Run with dedicated user account for limited privileges
  • Resource limits: CPU, memory, and file access restrictions
  • Network isolation: Bind to localhost only for enhanced security
  • AppArmor/SELinux: Additional mandatory access controls
  • File permissions: Restricted access to necessary directories only

📋 See Process Management Guide for detailed setup instructions

Integration with Iris Agent

This MCP server is used by the Iris Computer Use Agent, our advanced computer use agent for automated terminal interactions.

License

This project is provided as-is for development purposes.

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for MCP Terminal Server from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/terminal_mcp)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

Downloads and pulls

Separate sources, scopes and periods. Never combined or treated as installations, active users or security reviews.

No reviewed package or image identity; download statistics are not listed yet.

Related developer tools MCP Servers

Alternative and complementary servers in the same category

View all in developer tools →
Postbye
postbye-mcp•postbye-team

A directory listing describing a cancellation-letter and mailing-address service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools
Singapore Proxy MCP
singapore-proxy-mcp•Xavierfok

A hosted MCP service for browsing and searching through Singapore mobile-network proxies.

0
Developer Tools

A directory listing describing a Markdown-to-PDF service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools