Terminal MCP Server
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Terminal MCP Serverlist files in the current directory with details"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
MCP Terminal Server (Python)
MCP Terminal Server — это сервер для выполнения терминальных команд через протокол Model Context Protocol (MCP), интегрируемый с Cursor AI. Проект предоставляет инструменты для безопасного и гибкого запуска команд в различных оболочках (bash, cmd, PowerShell) с поддержкой ограничений и метрик.
Возможности
Поддерживаемые оболочки: PowerShell (по умолчанию на Windows), cmd, bash
Параметры:
command— команда для выполненияshell— оболочка (опционально)cwd— рабочая директория (опционально)timeout_seconds— таймаут выполнения (опционально)
Транспорт MCP: stdio
Метрики и ограничения:
Максимальный размер stdout/stderr
Ограничение длины команды
Ограничение числа одновременных процессов
Грейс-период для завершения процессов
Related MCP server: Command-Line MCP Server
Быстрый старт
1. Клонирование и установка зависимостей
python -m venv .venv
source .venv/bin/activate # Linux/macOS
# или .venv\Scripts\activate # Windows PowerShell
pip install -r requirements.txt2. Конфигурация Cursor
Создайте файл .cursor/mcp.json в корне TMCP:
{
"mcpServers": {
"terminal-mcp": {
"command": "python",
"args": ["-m", "TMCP.mcp_terminal.server"]
}
}
}Cursor автоматически запустит MCP сервер через stdio.
3. Запуск вручную (для отладки)
python -m TMCP.mcp_terminal.serverИспользование
После запуска сервера инструмент run_command будет доступен в Cursor.
Примеры вызова
PowerShell (по умолчанию на Windows):
command:Get-ChildItem
Через cmd:
shell:cmdcommand:dir
С указанием рабочей папки и таймаута:
cwd:C:\CursorProjects\TMCPtimeout_seconds:60
Структура проекта
TMCP/
├── mcp_terminal/
│ ├── __init__.py
│ └── server.py # Основная логика MCP сервера
├── scripts/
│ └── test_terminal_mcp.py # Пример теста клиента
├── .cursor/
│ └── mcp.json # Пример конфигурации для Cursor
├── requirements.txt
├── README.md
└── __init__.pyДля разработчиков
Код сервера написан на Python 3.8+
Для тестирования используйте скрипты из папки
scripts/Для расширения функционала добавляйте новые инструменты через декоратор
@server.toolМетрики и кастомные маршруты реализованы для мониторинга и интеграции
Безопасность
Не передавайте неподтверждённые команды — сервер выполняет любые команды, полученные через MCP.
Запускайте сервер без повышенных прав (не от root/Administrator).
Используйте переменные окружения для ограничения разрешённых оболочек, директорий и таймаутов.
Лицензия
MIT License
Контакты и поддержка
Автор: magadsm Вопросы и предложения: через GitHub Issues
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseBqualityFmaintenanceA secure server that enables AI applications to execute shell commands in specified directories, supporting multiple shell types (bash, sh, cmd, powershell) with built-in security features like directory isolation and timeout control.Last updated121Apache 2.0
- AlicenseAqualityDmaintenanceAllows AI assistants to safely execute common Unix/macOS terminal commands through a controlled interface with comprehensive security features.Last updated810MIT
- FlicenseBqualityDmaintenanceEnables safe execution of system shell commands with real-time streaming output and rich metadata capture. Provides configurable command execution with timeout controls, environment management, and extensible plugin architecture for monitoring command lifecycles.Last updated4
- Alicense-qualityDmaintenanceProvides AI assistants with direct terminal access to execute commands, manage files, and run persistent REPL sessions. It features automated installation scripts that educate AI assistants on its capabilities for seamless integration.Last updatedMIT
Related MCP Connectors
Runtime permission, approval, and audit layer for AI agent tool execution.
Execute PowerShell commands securely with controlled timeouts and input validation. Retrieve syste…
Build, validate, and deploy multi-agent AI solutions from any AI environment.
Appeared in Searches
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/magadsm/terminal-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server