orkuhh

Shell MCP Server

Community orkuhh
Updated

MCP server for OpenClaw

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

MCP Server ยท Populars

MCP Server ยท New

    omega-memory

    OMEGA

    Persistent memory for AI coding agents

    Community omega-memory
    btouchard

    Herald

    The self-hosted MCP bridge between Claude Chat and Claude Code.

    Community btouchard
    snyk

    mcp-scan

    Security scanner for AI agents, MCP servers and agent skills.

    Community snyk
    resend

    Email sending MCP ๐Ÿ’Œ

    The official MCP server to send emails and interact with Resend

    Community resend
    flytohub

    Flyto Core

    The open-source execution engine for AI agents. 300+ atomic modules, MCP-native, secure by default.

    Community flytohub