Skip to main content
Glama

MCP Shell Server

by mkusaka

shell_exec

Execute shell commands with detailed error handling and output capture, optionally specifying a working directory, to safely manage tasks on the host system.

Instructions

Executes commands in the specified shell with detailed error handling and output capture

Input Schema

NameRequiredDescriptionDefault
commandYesThe shell command to execute in the configured shell environment
workingDirNoOptional working directory to execute the command in (must be under $HOME for security)

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "command": { "description": "The shell command to execute in the configured shell environment", "minLength": 1, "type": "string" }, "workingDir": { "description": "Optional working directory to execute the command in (must be under $HOME for security)", "type": "string" } }, "required": [ "command" ], "type": "object" }

Other Tools from MCP Shell Server

Related Tools

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/mkusaka/mcp-shell-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server