MCP Shell 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 Shell Serverrun ls -la to list 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 Shell Server
A simple Model Context Protocol (MCP) server that exposes a terminal tool for executing shell commands.
Features
Terminal Tool: Execute shell commands and get results
Safety Features: 30-second timeout and error handling
Flexible: Optional working directory parameter
Claude Integration: Tool named
run_commandfor easy Claude integration
Related MCP server: Terminal Controller for MCP
Installation
The project uses uv for dependency management. Dependencies are already configured in pyproject.toml.
Usage
Running the Server
# Using uv
uv run python server.py
# Or directly with Python
python server.pyThe server will start and wait for MCP client connections via stdin/stdout.
Tool Description
The server exposes a run_command tool with the following parameters:
command(required): The shell command to executeworking_directory(optional): Directory to run the command in
Example Usage
The terminal tool can be used to run commands like:
ls -la- List files in current directorypwd- Get current working directoryecho "Hello World"- Print textpython --version- Check Python version
Response Format
The tool returns a dictionary with:
stdout: Standard output from the commandstderr: Standard error from the commandreturn_code: Exit code of the commandsuccess: Boolean indicating if command succeeded (return code 0)
MCP Integration
This server follows the Model Context Protocol specification and can be integrated with MCP clients like Claude Desktop. The tool is named run_command for easy identification and use.
Security Note
This server allows execution of arbitrary shell commands. Use with caution and ensure proper access controls are in place in production environments.
Development
This is a simple implementation using the MCP Python SDK with FastMCP. The server can be extended with additional tools as needed.
This server cannot be installed
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
- AlicenseAqualityBmaintenanceA secure shell command execution server implementing the Model Context Protocol (MCP). This server allows remote execution of whitelisted shell commands with support for stdin input.Last updated1182MIT
- AlicenseAqualityFmaintenanceAn MCP server that enables secure terminal command execution, directory navigation, and file system operations through a standardized interface for LLMs.Last updated1099MIT
- Alicense-qualityCmaintenanceA simple MCP server that allows accessing and executing shell commands on a VM machine through a web-based terminal interface, with automatic tunneling to make the VM accessible from anywhere.Last updated1935MIT
- AlicenseAqualityDmaintenanceAn MCP server that enables secure execution of shell commands across Windows, macOS, and Linux with built-in whitelisting and approval mechanisms for enhanced security.Last updated915619MIT
Related MCP Connectors
Security scanner for MCP servers. Detect vulnerabilities, prompt injection, and tool poisoning.
A very simple remote MCP server that greets you, with a custom icon.
An MCP server for deep research or task groups
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/IsaacCode0107/MCP-Test'
If you have feedback or need assistance with the MCP directory API, please join our Discord server