mcp_server
Verified Safeby ShayYeffet
Overview
A secure, sandboxed server enabling LLMs to interact with a filesystem and execute allowed commands within a designated workspace for project management and development tasks.
Installation
node dist/index.jsEnvironment Variables
- MCP_WORKSPACE_ROOT
- MCP_ALLOWED_COMMANDS
- MCP_READ_ONLY
- MCP_LOG_LEVEL
- MCP_COMMAND_TIMEOUT
Security Notes
The project prioritizes security, implementing robust sandboxing for all file operations via `resolveSafePath`, which diligently handles `.` `..` traversals, absolute paths, and crucially, symbolic link resolution to prevent workspace escapes. Command execution (`runCommand`) uses `child_process.spawn` with `shell: false` and arguments passed as arrays, effectively mitigating command injection. Commands are strictly controlled via a configurable allowlist (`MCP_ALLOWED_COMMANDS`), ensuring only explicitly permitted binaries can run. An optional read-only mode prevents all write, delete, and creation operations. Atomic file writes (`writeFileAtomic`) prevent partial file corruption. Error handling is structured to avoid exposing sensitive system details, and configuration is managed through environment variables without hardcoded secrets. The server uses `stdio` for communication, limiting its direct network exposure.
Similar Servers
mcp-server-code-execution-mode
This server enables LLM agents to execute Python code in a highly secure, isolated container environment, facilitating complex multi-tool orchestration and data analysis with minimal LLM context token usage.
ipybox
A lightweight and secure Python code execution sandbox for AI agents to perform data analysis or execute code actions within Docker containers.
dev-kit-mcp-server
A Model Context Protocol (MCP) server for agent development tools, enabling secure, scoped operations within a root project directory.
files-stdio-mcp-server
Provides a sandboxed filesystem interface for AI agents to explore directories, read, search, and safely edit text files with checksum verification and diff previews.