About Terminal-Control
Terminal-Control is an MCP server published by GongRzhe in the Developer Tools category: a Model Context Protocol (MCP) server that enables secure terminal command execution, directory navigation, and file system operations through a standardized interface. Conduid read 10 tools from its source: change_directory, delete_file_content, execute_command, get_command_history, get_current_directory, insert_file_content and 4 more. It is published to PyPI as terminal-controller and runs with uvx.
The repository has 95 stars and 16 forks, is licensed MIT, and its last commit was on 14 Jun 2025. The latest release is v0.1.8 (7 Apr 2025). The release before it was v0.1.7 (19 Mar 2025). It passes 4 of the 6 static checks Conduid ran on the repository; it does not pass Tests present and Scoped permissions. Its topics include devtools.
Install
claude mcp add terminal-controller-mcp -- uvx terminal_controlleruvx terminal_controlleruvx terminal-controllerpip install terminal-controllergit clone https://github.com/GongRzhe/terminal-controller-mcpTools (10)
change_directoryChange current working directory| Parameter | Type | Description |
|---|---|---|
| path * | string | Directory path to switch to |
delete_file_contentDelete content at specific row(s) from a file| Parameter | Type | Description |
|---|---|---|
| path * | string | Path to the file |
| row | integer | Row number to delete (0-based, optional) |
| rows | array | List of row numbers to delete (0-based, optional) |
| substring | string | If provided, only delete this substring within the specified row(s), not the entire row (optional) |
execute_commandExecute terminal command and return results| Parameter | Type | Description |
|---|---|---|
| command * | string | Command line command to execute |
| timeout | integer | Command timeout in seconds, default is 30 seconds |
get_command_historyGet recent command execution history| Parameter | Type | Description |
|---|---|---|
| count | integer | Number of recent commands to return |
get_current_directoryGet current working directoryinsert_file_contentInsert content at specific row(s) in a file| Parameter | Type | Description |
|---|---|---|
| content * | string | Content to insert (string or JSON object) |
| path * | string | Path to the file |
| row | integer | Row number to insert at (0-based, optional) |
| rows | array | List of row numbers to insert at (0-based, optional) |
list_directoryList files and subdirectories in the specified directory| Parameter | Type | Description |
|---|---|---|
| path | string | Directory path to list contents, default is current directory |
read_fileRead content from a file with optional row selection| Parameter | Type | Description |
|---|---|---|
| as_json | boolean | If True, attempt to parse file content as JSON (optional) |
| end_row | integer | Ending row to read to (0-based, inclusive, optional) |
| path * | string | Path to the file |
| start_row | integer | Starting row to read from (0-based, optional) |
update_file_contentUpdate content at specific row(s) in a file| Parameter | Type | Description |
|---|---|---|
| content * | string | New content to place at the specified row(s) |
| path * | string | Path to the file |
| row | integer | Row number to update (0-based, optional) |
| rows | array | List of row numbers to update (0-based, optional) |
| substring | string | If provided, only replace this substring within the specified row(s), not the entire row |
write_fileWrite content to a file| Parameter | Type | Description |
|---|---|---|
| content * | string | Content to write (string or JSON object) |
| mode | string | Write mode ('overwrite' or 'append') |
| path * | string | Path to the file |
Security checks
Static checks derived from the repository 10 days ago. Heuristics on the source, not an audit.
- ✓README presentThe repository's README runs to about 931 words.
- ✓License declaredThe repository declares the MIT license.
- !Tests presentNo tests found. Behaviour changes may go unnoticed between versions.
- ✓Dependencies pinnedDependency versions are pinned by uv.lock.
- ✓No dynamic code executionScanned 2 source files and found no eval, dynamic Function or shell execution.
- !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.
What the source scan found
- Transport
- stdioterminal_controller.py:796
- Starts other programs
- 8 callssetup_mcp.py:26, setup_mcp.py:69, setup_mcp.py:87
- Outbound network calls
- No outbound network calls
- Writes or deletes files
- 11 callssetup_mcp.py:132, setup_mcp.py:159, setup_mcp.py:191
- Lockfile
- uv.lock
Pattern matches on the source text of 2 files: places to read, not proof of what the code does at run time.
Releases
README
The repository's README runs to about 931 words, fetched a month ago. The original in the repository is authoritative.
Read full README