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
The 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.