MCP Terminal Server
Servidor de terminales MCP
Un servidor MCP simple que expone una herramienta para ejecutar comandos de terminal.
Instalación
Instalar el SDK de Python de MCP:
pip install mcpRelated MCP server: MCP Shell Server
Uso
Iniciar el servidor:
python server.pyConéctese al servidor en un cliente compatible con MCP, como Claude Desktop:
mcp install server.pyO utilice el Inspector MCP para probarlo:
mcp dev server.pyDescripción general de la herramienta
Este servidor expone una herramienta:
comando_terminal
Ejecuta un comando de terminal y devuelve su salida.
Parámetros:
command: El comando a ejecutar en la terminal
Devoluciones:
Un diccionario que contiene:
stdout: La salida estándar del comandostderr: La salida de error estándar del comandoreturn_code: El código de retorno del comando (0 generalmente significa éxito)
Ejemplo de uso en Claude:
Can you list the files in the current directory using the terminal tool?Consideraciones de seguridad
Esta herramienta ejecuta comandos directamente en su sistema. Úsela con precaución, ya que puede ejecutar cualquier comando con los mismos permisos que el usuario que ejecuta el servidor.
Limitaciones
Los comandos expiran después de 30 segundos
Por razones de seguridad, considere implementar validaciones y restricciones adicionales en los comandos que se pueden ejecutar.
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-