This repository provides a Model Context Protocol (MCP) server, enabling secure terminal command execution, directory navigation, and file system operations through a standardized interface. It supports cross-platform functionality and offers security measures.
A Model Context Protocol (MCP) server that enables secure terminal command execution, directory navigation, and file system operations through a standardized interface.
pip install terminal-controller
git clone https://github.com/GongRzhe/terminal-controller-mcp.git
cd terminal-controller-mcp
python setup_mcp.py
Configuration examples are provided for Claude Desktop and Cursor, using either UVX or direct Python execution.
Interact with the terminal using natural language commands through your MCP client.
Exposes MCP tools like execute_command
, get_command_history
, get_current_directory
, change_directory
, and list_directory
.
Implements timeout controls, command blacklisting, and error handling.
Commands must complete within the timeout period.
Provides steps for diagnosing common issues.
Contributions are welcome.
MIT
GongRzhe/terminal-controller-mcp
February 25, 2025
March 28, 2025
Python