Sponsored by Deepsite.site

mcp server for unix pty control

Created By
ianks5 months ago
The native MCP server for Unix PTY control gives AI models authentic, low-latency terminal access by spawning true pseudo-terminals—not brittle AppleScript hacks—so you can open persistent Bash, Python, or SSH sessions, run commands like “ssh prod.server,” and stream only fresh output thanks to smart buffering. Built on Tokio for fully asynchronous, non-blocking I/O, the service supports multi-session workflows, letting developers switch between concurrent prod-debug shells without interruption while JSON-RPC endpoints such as tools/call create_session handle lifecycle automation. This combination of real PTYs, session persistence, and high-performance async design makes the MCP server an ideal foundation for DevOps automation, cloud debugging, and AI-driven terminal orchestration.
Overview

what is terminal-mcp?

Terminal-mcp is a native MCP server for Unix PTY control that provides AI models with authentic, low-latency terminal access by spawning true pseudo-terminals. It allows users to open persistent Bash, Python, or SSH sessions, run commands, and stream only fresh output thanks to smart buffering.

how to use terminal-mcp?

To use terminal-mcp, you can create a session by sending a JSON-RPC request to the server with the desired command. For example, to create a session for SSH, you would send a request with the command ssh prod.server.

key features of terminal-mcp?

  • True pseudo-terminals for real Unix terminal interaction.
  • Asynchronous, non-blocking I/O powered by Tokio.
  • Smart buffering to avoid duplicate outputs.
  • Session persistence to keep terminals alive between calls.
  • Multi-session support to run and switch between multiple terminals.

use cases of terminal-mcp?

  1. Automating DevOps tasks through AI-driven terminal orchestration.
  2. Cloud debugging with persistent terminal sessions.
  3. Running multiple concurrent production and debugging shells without interruption.

FAQ from terminal-mcp?

  • Can terminal-mcp handle multiple sessions?

Yes! Terminal-mcp supports multi-session workflows, allowing you to run and switch between multiple terminals at once.

  • Is terminal-mcp suitable for AI applications?

Absolutely! Terminal-mcp is designed to provide AI models with real terminal access for various tasks.

  • How do I install terminal-mcp?

You can install terminal-mcp using Cargo with the command: cargo install --git https://github.com/ianks/terminal-mcp.

Server Config

{
  "mcpServers": {
    "terminal-mcp": {
      "type": "stdio",
      "command": "terminal-mcp"
    }
  }
}
Recommend Servers
TraeBuild with Free GPT-4.1 & Claude 3.7. Fully MCP-Ready.
Visual Studio Code - Open Source ("Code - OSS")Visual Studio Code
WindsurfThe new purpose-built IDE to harness magic
Zhipu Web SearchZhipu Web Search MCP Server is a search engine specifically designed for large models. It integrates four search engines, allowing users to flexibly compare and switch between them. Building upon the web crawling and ranking capabilities of traditional search engines, it enhances intent recognition capabilities, returning results more suitable for large model processing (such as webpage titles, URLs, summaries, site names, site icons, etc.). This helps AI applications achieve "dynamic knowledge acquisition" and "precise scenario adaptation" capabilities.
Amap Maps高德地图官方 MCP Server
TimeA Model Context Protocol server that provides time and timezone conversion capabilities. This server enables LLMs to get current time information and perform timezone conversions using IANA timezone names, with automatic system timezone detection.
Howtocook Mcp基于Anduin2017 / HowToCook (程序员在家做饭指南)的mcp server,帮你推荐菜谱、规划膳食,解决“今天吃什么“的世纪难题; Based on Anduin2017/HowToCook (Programmer's Guide to Cooking at Home), MCP Server helps you recommend recipes, plan meals, and solve the century old problem of "what to eat today"
BlenderBlenderMCP connects Blender to Claude AI through the Model Context Protocol (MCP), allowing Claude to directly interact with and control Blender. This integration enables prompt assisted 3D modeling, scene creation, and manipulation.
CursorThe AI Code Editor
Jina AI MCP ToolsA Model Context Protocol (MCP) server that integrates with Jina AI Search Foundation APIs.
EdgeOne Pages MCPAn MCP service designed for deploying HTML content to EdgeOne Pages and obtaining an accessible public URL.
Playwright McpPlaywright MCP server
MCP AdvisorMCP Advisor & Installation - Use the right MCP server for your needs
MiniMax MCPOfficial MiniMax Model Context Protocol (MCP) server that enables interaction with powerful Text to Speech, image generation and video generation APIs.
ChatWiseThe second fastest AI chatbot™
Serper MCP ServerA Serper MCP Server
Baidu Map百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Tavily Mcp
DeepChatYour AI Partner on Desktop
Context7Context7 MCP Server -- Up-to-date code documentation for LLMs and AI code editors
AiimagemultistyleA Model Context Protocol (MCP) server for image generation and manipulation using fal.ai's Stable Diffusion model.