A sandboxed, agentic workspace providing secure filesystem, bash, and uv-powered Python execution.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
π‘ Paste into ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
A unified Model Context Protocol (MCP) server providing a highly secure, containerized workspace for Large Language Models (LLMs). It acts as an isolated "agentic playground" where agents can autonomously code, test, and debug without risking the host machine.
uv init, manage dependencies with uv add, and execute via uv run.run_bash outputs (like ls, git, and test runners), saving 60-90% of LLM context tokens.search_and_replace with fuzzy whitespace matching, indentation preservation, dry-run support, and syntax validation for Python, JSON, JSONL, TOML, and YAML.Here is a quick boilerplate showing how to use the containerized workspace programmatically using the standard openai-agents SDK:
Add the following configuration to your claude_desktop_config.json or Cursor settings.
[!IMPORTANT] Linux Users: Replace
1000:1000with your actual UID:GID (runid -uandid -g). Claude Desktop does not expand environment variables. Signal Handling: The--initflag is essential for proper signal forwarding and zombie process reaping.
| Tool | Description |
|---|---|
read_file | Read text files with optional offset and limit (default: 100 lines). |
write_file | Create files with syntax validation and a 5MB size guard. Refuses to overwrite existing files by default (create_only=True). |
list_directory | List contents with [F]ile and [D]irectory prefixes. |
search_workspace | Find files by glob pattern with support for exclude_patterns. |
run_bash | Execute shell commands in /workspace with a 60s timeout. Automatically optimized via RTK to reduce token usage. |
search_and_replace | Multi-edit tool with fuzzy whitespace matching, indentation preservation, dry-run mode, and syntax validation (Python, JSON, JSONL, TOML, YAML). |
The server supports the following environment variables (passed via Docker --env):
| Variable | Default | Description |
|---|---|---|
COMMAND_TIMEOUT | 60 | Default seconds before run_bash kills a process. |
MAX_SEARCH_RESULTS | 50 | Maximum results returned by search_workspace. |
MAX_READ_SIZE_BYTES | 1048576 | Maximum file size for read_file (1MB). |
MAX_WRITE_SIZE_BYTES | 5242880 | Maximum file size for write_file (5MB). |
LOG_LEVEL | INFO | Python logging level (DEBUG, INFO, etc.). |
This server employs a defense-in-depth strategy, explicitly separating strict security boundaries from developer experience and operational reliability features.
These features are designed to protect the host system and enforce strict isolation boundaries.
--cap-drop=ALL), neutralizing privilege escalation vectors./app directory containing the server source and its virtual environment is owned by root and read-only for the mcpuser. This prevents the server from modifying itself or being tampered with via run_bash.no-new-privileges:true to prevent any process from gaining elevated rights./workspace.Features focused on seamless integration, usability, and reducing friction during agentic workflows.
mcpuser with UID/GID customizable at build time, eliminating tedious file permission conflicts on host volume mounts.run_bash are transparently rewritten through RTK to provide ultra-compact, LLM-friendly output without altering underlying command behavior..git, .venv) are automatically ignored to keep context windows lean and relevant.--rm), guaranteeing a clean, predictable slate for every new session without state leaking across connections.Features ensuring the structural integrity of the workspace and providing observability.
write_file and search_and_replace perform in-memory syntax validation for Python, JSON, JSONL, TOML, and YAML before persisting changes, preventing broken code states.write_file blocks accidental overwrites of existing files by default and enforces a 5MB size guard to prevent workspace flooding.By default, the container has full network access via Docker's bridge network. For maximum isolation, you can completely disable the network stack using --network none:
This creates a fully air-gapped sandbox β only the loopback interface exists inside the container. All outbound connections (curl, DNS, uv add, etc.) will fail immediately, eliminating data exfiltration and lateral movement risks entirely.
[!NOTE] With
--network none, the agent cannot install packages at runtime. All dependencies must be pre-installed in a custom image or pre-populated in the mounted workspace volume.
uv syncuv run ruff check .uv run pytest tests/ --ignore=tests/integration/OPENROUTER_API_KEY and run uv run pytest tests/integration/Β© 2026 HrRodan. Licensed under MIT.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/agent-workspace-mcp)<a href="https://allmcps.com/mcp/agent-workspace-mcp"><img src="https://allmcps.com/api/badge/agent-workspace-mcp?style=directory" alt="Agent Workspace MCP on AllMCPs" /></a>