> ## Documentation Index
> Fetch the complete documentation index at: https://www.klavis.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Terminal (Local)

> Local MCP server for secure command-line operations

## Description

A secure Model Context Protocol (MCP) server implementation for executing controlled command-line operations with comprehensive security features. Enables safe CLI access for LLM applications.

### Key Features

* 🔒 Secure command execution with validation
* ⚙️ Configurable command and flag whitelisting
* 🛡️ Path traversal prevention
* 🚫 Shell operator injection protection
* ⏱️ Execution timeouts and length limits
* 📝 Detailed error reporting
* 🔄 Async operation support
* 🎯 Working directory restrictions

## Codebase

This is a local MCP server that runs on your machine.

**Source Code**: `/mcp_servers/local/terminal/`

**GitHub Repository**: [https://github.com/Klavis-AI/klavis/tree/main/mcp\_servers/local/terminal](https://github.com/Klavis-AI/klavis/tree/main/mcp_servers/local/terminal)

For detailed documentation, installation instructions, and usage examples, please refer to the README in the codebase.
