Shell MCP Server

Shell MCP Server

Provides a secure environment for executing shell commands with restricted directory access and timeout enforcement. It includes tools for running commands, managing execution history, and isolating environment variables.

Category
Visit Server

README

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

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured