Agent Workspace MCP
Run an agent's code and shell commands in a locked-down Docker workspace
- Pricing
- Open source
- Platforms
- CLI, self-hosted, Linux
- Runs
- Locally
- Version
- 1.4.144
- Listing updated
- 2 days ago
About Agent Workspace MCP
Agent Workspace MCP is an open-source MCP server for developer tools. It runs locally on your machine and is started by your AI client.
The server runs as a Docker container that mounts one folder as /workspace, so an agent can write and test code without touching the rest of your machine. The README lists the hardening: non-root user, all Linux capabilities dropped, no new privileges, a read-only root filesystem, memory, CPU and process limits, and optional network isolation with --network none.
Python work goes through uv, covering project setup, dependencies and running scripts. run_bash executes shell commands with a 60 second timeout, and output is compressed through RTK, which the README says saves 60 to 90 percent of context tokens for common commands. Files are protected against path traversal, writes are capped at 5 MB, and write_file will not overwrite an existing file unless asked.
search_and_replace tolerates whitespace differences, preserves indentation, supports dry runs and validates Python, JSON, JSONL, TOML and YAML. Logs go to the client and to rotating audit logs. It is MIT licensed and has an OpenAI Agents SDK example.
Install
Run in a terminal
claude mcp add agent-workspace-mcp -- docker run -i --rm ghcr.io/hrrodan/agent-workspace-mcp:1.4.144Add to claude_desktop_config.json
{
"mcpServers": {
"agent-workspace-mcp": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"ghcr.io/hrrodan/agent-workspace-mcp:1.4.144"
]
}
}
}Add to ~/.cursor/mcp.json
{
"mcpServers": {
"agent-workspace-mcp": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"ghcr.io/hrrodan/agent-workspace-mcp:1.4.144"
]
}
}
}Add to .vscode/mcp.json
{
"servers": {
"agent-workspace-mcp": {
"type": "stdio",
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"ghcr.io/hrrodan/agent-workspace-mcp:1.4.144"
]
}
}
}Add to ~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"agent-workspace-mcp": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"ghcr.io/hrrodan/agent-workspace-mcp:1.4.144"
]
}
}
}Add to your client's MCP settings (most use this shape)
{
"mcpServers": {
"agent-workspace-mcp": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"ghcr.io/hrrodan/agent-workspace-mcp:1.4.144"
]
}
}
}Tools this server provides (6)
Taken from the project documentation; the running server may differ.
- read_file
- Reads text files with offset and limit
- write_file
- Creates files with syntax validation and a 5MB guard
- list_directory
- Lists directory contents
- search_workspace
- Finds files by glob pattern
- run_bash
- Runs shell commands in /workspace with a timeout
- search_and_replace
- Multi-edit with fuzzy whitespace matching and validation
What it does
- Container sandbox
- Read-only root, dropped capabilities and resource limits.
- uv Python workflow
- Initialise, add dependencies and run scripts.
- Bash with timeouts
- 60 second default limit and merged output.
- Token-saving output
- RTK compresses common command output.
- Precise editing
- Fuzzy whitespace matching with syntax validation.
- Audit logs
- Rotating logs of server activity.
Good for
- Let an agent write and test code without host access
- Run Python scripts with managed dependencies
- Edit config files with syntax validation
- Cap an agent's CPU, memory and network
- Embed a sandbox in an OpenAI Agents SDK app
Pricing
Open source
MIT licensed, free
Agent Workspace MCP FAQ
What is mounted into the container?
The folder you pass with -v, available as /workspace.
Can I block network access?
Yes, add --network none to the Docker arguments.
How long can a command run?
60 seconds by default, set with COMMAND_TIMEOUT.
What licence is it?
MIT.
Is Agent Workspace MCP free?
Yes. Agent Workspace MCP is open source, so you can use and self-host it for free.
How do I add Agent Workspace MCP to Claude Code?
Run this command in your terminal: claude mcp add agent-workspace-mcp -- docker run -i --rm ghcr.io/hrrodan/agent-workspace-mcp:1.4.144
What are the best alternatives to Agent Workspace MCP?
The closest alternatives to Agent Workspace MCP are REA, Codebase Memory, GitHub, Serena MCP: the IDE for your agent and XERJ.
Alternatives to Agent Workspace MCP

REA
MCP serverCLI and MCP server that lets coding agents reverse engineer apps and binaries
Runs locally- Open source
- 464K GitHub stars
- Developer tools

Codebase Memory
MCP serverLocal MCP server that builds a code knowledge graph for AI coding agents
Runs locally- Open source
- 48.7K GitHub stars
- Knowledge and memory

GitHub
MCP serverOfficial MCP server connecting AI assistants to GitHub repos, issues and workflows
Not checked yet- Remote
- Open source
- 34.5K GitHub stars
- Developer tools

Serena MCP: the IDE for your agent
MCP serverMCP toolkit giving coding agents symbol-level code retrieval and editing
Runs locally- Open source
- 31.5K GitHub stars
- Developer tools

XERJ
MCP serverLocal search engine for AI agents with cited answers over your code and docs
Runs locally- Open source
- 19.2K GitHub stars
- Knowledge and memory

Ouroboros
MCP serverSpec-first layer that pins requirements and verifies results of AI coding agent work
Runs locally- Open source
- 6.4K GitHub stars
- Developer tools