MCP Terminal 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., "@MCP Terminal Serverlist all files in the current directory"
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
A simple MCP server that exposes a tool for running terminal commands.
Installation
Install the MCP Python SDK:
pip install mcpRelated MCP server: MCP Shell Server
Usage
Start the server:
python server.pyConnect to the server in an MCP-compatible client, such as Claude Desktop:
mcp install server.pyOr use the MCP Inspector to test it:
mcp dev server.pyTool Overview
This server exposes one tool:
terminal_command
Runs a terminal command and returns its output.
Parameters:
command: The command to run in the terminal
Returns:
A dictionary containing:
stdout: The standard output from the commandstderr: The standard error output from the commandreturn_code: The command's return code (0 typically means success)
Example Usage in Claude:
Can you list the files in the current directory using the terminal tool?Security Considerations
This tool executes commands directly on your system. Use with caution as it can run any command with the same permissions as the user running the server.
Limitations
Commands timeout after 30 seconds
For security reasons, consider implementing additional validation and restrictions on the commands that can be executed
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
- AlicenseCqualityCmaintenanceA server that enables AI assistants to execute terminal commands and retrieve outputs via the Model Context Protocol (MCP).327MIT
- -license-quality-maintenanceA simple MCP server that provides a terminal tool for executing shell commands with safety features like timeouts and error handling.
- Flicense-qualityDmaintenanceA 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
Related MCP Connectors
Hosted MCP server connecting claude.ai, ChatGPT and other AI apps to your own computer
A basic MCP server to operate on the Postman API.
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
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/ivannafigueroa/mcp-shell-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server