Skip to main content
Glama
orkuhh
by orkuhh

Shell MCP Server

MCP (Model Context Protocol) server for safe shell command execution.

Features

  • πŸ”’ Security - Restricted to workspace directory

  • ⏱️ Timeout enforcement - Prevents hanging commands

  • πŸ“ Command history - Track all executed commands

  • πŸ“¦ Environment isolation - Controlled env vars

  • πŸ“Š Output limits - Prevent memory issues

Tools

execute

Execute a shell command with safety controls.

{
  "command": "ls -la",
  "cwd": "/root/.openclaw/workspace",
  "timeout": 30000,
  "env": { "MY_VAR": "value" }
}

Parameters:

  • command (required) - Command to execute

  • cwd - Working directory (default: /root/.openclaw/workspace)

  • timeout - Timeout in ms (default: 30000, max: 120000)

  • env - Environment variables object

history

Get command execution history.

{
  "limit": 50
}

clearHistory

Clear command history.

{}

Usage

Direct

cd /root/.openclaw/workspace/shell-mcp-server
npm start

With MCP config (mcporter)

{
  "type": "stdio",
  "command": "node",
  "args": ["/root/.openclaw/workspace/shell-mcp-server/index.js"]
}

With Claude Code CLI

claude --mcp-config shell-mcp-server.json

Install

cd /root/.openclaw/workspace/shell-mcp-server
npm install

Test

npm test

Security Notes

  • Commands are restricted to /root/.openclaw/workspace and subdirectories

  • Output is limited to 1MB per command

  • Maximum timeout is 2 minutes

  • History is saved to .shell-history.json

-
security - not tested
F
license - not found
-
quality - not tested

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Latest Blog Posts

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

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