Description
This MCP terminal server, developed by Alex Man, enables AI assistants to interact with specified directories on a user's system through a command-line interface. Built with TypeScript and leveraging the Model Context Protocol SDK, it offers tools for executing shell commands, creating directories, and navigating the file system within allowed boundaries. The implementation focuses on security by restricting access to predefined directories and whitelisting permitted commands. It's particularly useful for tasks like file management, system automation, or providing AI assistants with controlled access to local resources, enabling safe interaction with the user's file system without requiring deep knowledge of system-level operations or security considerations.
Installation
git clone https://github.com/aithelab/mcp-terminal-use Claude Desktop Configuration
Add this configuration to your Claude Desktop config file to enable this MCP server:
Config file location: ~/Library/Application Support/Claude/claude_desktop_config.json
Config file location: %APPDATA%\Claude\claude_desktop_config.json
Config file location: ~/.config/Claude/claude_desktop_config.json
{
"mcpServers": {
"terminal": {
"command": "node",
"args": [
"path/to/server.js"
]
}
}
}