Terminal MCP Server

A Model Context Protocol (MCP) server for secure terminal command execution and file system operations

Local serverstdioPython

What is the Terminal MCP Server?

A Model Context Protocol (MCP) server for secure terminal command execution and file system operations

What you get

  • Command Execution — Run terminal commands with timeout controls and comprehensive output capture
  • Directory Management — Navigate and list directory contents with intuitive formatting
  • Security Measures — Built-in safeguards against dangerous commands and operations
  • Command History — Track and display recent command executions
  • Cross-Platform Support — Works on both Windows and UNIX-based systems
  • File Operations — Read, write, update, insert, and delete file content with row-level precision

Configuration and credentials

  • Python 3.11+ - An MCP-compatible client (such as Claude Desktop) - UV/UVX installed (optional, for UVX method)

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
execute_command
get_command_history
get_current_directory
change_directory
list_directory
write_file
read_file
insert_file_content
delete_file_content
update_file_content

Configuration

  • Python 3.11+ - An MCP-compatible client (such as Claude Desktop) - UV/UVX installed (optional, for UVX method)

Example prompts to try

  • “Use Terminal to Prerequisites.”
  • “Use Terminal to Cursor.”
  • “Use Terminal to execute command.”

Frequently asked questions

A Model Context Protocol (MCP) server for secure terminal command execution and file system operations Confirm the tools offered by your installed version in the connected client. Tool availability and permissions depend on the server and account configuration.