MCP Terminal Server
Терминальный сервер MCP
Простой MCP-сервер, предоставляющий инструмент для запуска терминальных команд.
Установка
Установите MCP Python SDK:
pip install mcpRelated MCP server: MCP Shell Server
Использование
Запустите сервер:
python server.pyПодключитесь к серверу с помощью MCP-совместимого клиента, например Claude Desktop:
mcp install server.pyИли воспользуйтесь MCP Inspector для проверки:
mcp dev server.pyОбзор инструмента
Этот сервер предоставляет один инструмент:
команда_терминала
Выполняет команду терминала и возвращает ее вывод.
Параметры:
command: Команда для запуска в терминале
Возврат:
Словарь, содержащий:
stdout: стандартный вывод командыstderr: стандартный вывод ошибок командыreturn_code: код возврата команды (0 обычно означает успех)
Пример использования в Клоде:
Can you list the files in the current directory using the terminal tool?Соображения безопасности
Этот инструмент выполняет команды непосредственно в вашей системе. Используйте его с осторожностью, так как он может запустить любую команду с теми же правами, что и пользователь, запустивший сервер.
Ограничения
Тайм-аут команд через 30 секунд
В целях безопасности рассмотрите возможность внедрения дополнительной проверки и ограничений на команды, которые могут быть выполнены.
This server cannot be deployed
Maintenance
Related MCP Connectors
Remote MCP server exposing your Node Command fleet (files, shell, processes, browser) to AI hosts.
Remote MCP server for supportsheep: run AI interviews and manage support content for your blog.
Termalin's hosted MCP server. Claude, ChatGPT or any MCP client runs commands, moves files over SFTP, queries databases and reads server metrics and monitoring alerts on your servers, keylessly through Termalin Connectors: no SSH key is handed over and no inbound port is opened. Per-host command policy and an audit log. Needs a termal.in Pro or Team account (new accounts start with a 14-day Pro trial).
A simple MCP server built with FastMCP and python
Related MCP Servers
- AlicenseCqualityCmaintenanceA server that enables AI assistants to execute terminal commands and retrieve outputs via the Model Context Protocol (MCP).326MIT
- FlicenseNot gradedqualityNot gradedmaintenanceA simple MCP server that provides a terminal tool for executing shell commands with safety features like timeouts and error handling.-
- FlicenseNot gradedqualityDmaintenanceA server implementation for the Model Context Protocol (MCP) that allows Claude AI to execute commands through a command-line interface, enabling direct system interactions from within Claude.-
- FlicenseBqualityDmaintenanceAn MCP server that enables users to execute arbitrary shell commands on their local machine and receive the output. It provides a terminal tool for running system commands through MCP-compatible clients using the Python SDK.1-