terminal_mcp
Connect AI agents to ANY device, ANY protocol, ANY network. Every connection type in 1 unified tool: Serial ports, TCP, Telnet, WebSocket, SSH, Bluetooth (Classic & BLE), RFC2217, Unix sockets, named pipes, STDIO. Rich command sequences, atomic execution, logging, async ops, pattern matching, ANSI terminal emulation...Built for AI to get work done.
claude mcp add --transport stdio aurafriday-terminal_mcp python -m terminal_mcp
How to use
Terminal_mcp provides AI-driven terminal automation across a wide range of connection types. With this MCP server, your AI can connect to serial devices, SSH/Telnet-enabled gear, network equipment, IoT devices, and industrial controllers, performing end-to-end tasks without manual command entry. The system supports advanced features like pattern-based waiting for responses, multi-step operation sequencing, persistent auto-reconnect, SFTP file transfers over SSH, and automatic logging for debugging and auditing. In practice, you can instruct the AI to flash firmware across a fleet, configure hundreds of network devices, monitor PLC temperatures, or reverse-engineer an unknown protocol—then let it execute and report back with a concise result. The emphasis is on execution, not just command generation, so you get concrete outcomes rather than typed commands.
Usage scenarios include: deploying software across multiple servers via SSH and SFTP within a single session; flashing microcontrollers over serial connections; monitoring sensors or PLCs and triggering alerts when thresholds are crossed; and automatically generating protocol documentation from observed device behavior. The system is designed to keep sessions stable across reboots or reconnects, manage long-running tasks, and preserve logs for audit trails.
How to install
Prerequisites:
- Python 3.8 or newer
- Git
- Network access to install dependencies (pip)
Install steps:
-
Clone the MCP server repository (or download the package): git clone https://github.com/AuraFriday/mcp-link-server.git cd mcp-link-server/Terminal_mcp
-
Create and activate a Python virtual environment (optional but recommended): python -m venv .venv source .venv/bin/activate # Unix/macOS .venv\Scripts\activate # Windows
-
Install dependencies listed for Terminal_mcp (adjust if a requirements file exists): pip install -r requirements.txt
-
Install the Terminal_mcp package if available via setup.py / pip: pip install -e . # or: pip install terminal_mcp
-
Run the MCP server (as configured in mcp_config): python -m terminal_mcp
Note:
- If the project provides a Docker image, you can also run it via Docker as an alternative.
- Replace the module name and package names with the exact ones used in your distribution if they differ from terminal_mcp.
Additional notes
Environment variables and configuration tips:
- Set MCP_PORT to the port you want the MCP server to listen on. Default may be 8000 in examples; adjust as needed.
- Set MCP_LOG_LEVEL to control verbosity (e.g., debug, info, warning, error).
- For production, consider enabling host key verification and audit trails if you’re managing security-sensitive devices.
- Ensure SSH keys or authentication credentials are stored securely; the system supports zero-logging of passwords, but you must provide credentials through secure channels.
- If you encounter reconnect issues with devices, enable the persistent auto-reconnect feature and verify network stability.
- When deploying to large fleets, test in a staging environment to validate AI-driven sequencing and error recovery before production use.
Related MCP Servers
fastapi_mcp
Expose your FastAPI endpoints as Model Context Protocol (MCP) tools, with Auth!
mcp-searxng
MCP Server for SearXNG
mcp -odoo
A Model Context Protocol (MCP) server that enables AI assistants to securely interact with Odoo ERP systems through standardized resources and tools for data retrieval and manipulation.
conductor-tasks
A task management system designed for AI development
ContextPods
Model Context Protocol management suite/factory. An MCP that can generate and manage other local MCPs in multiple languages. Uses the official SDKs for code gen.
mockloop
Intelligent Model Context Protocol (MCP) server for AI-assisted API development. Generate mock servers from OpenAPI specs with advanced logging, performance analytics, and server discovery. Optimized for AI development workflows with comprehensive testing insights and automated analysis.