code-execution-mcp
by agent0ai
Overview
Provides AI agents with robust capabilities to execute terminal commands and Python code on the host system.
Installation
uvx code-execution-mcpEnvironment Variables
- CODE_EXEC_EXECUTABLE
- CODE_EXEC_INIT_COMMANDS
- CODE_EXEC_FIRST_OUTPUT_TIMEOUT
- CODE_EXEC_BETWEEN_OUTPUT_TIMEOUT
- CODE_EXEC_DIALOG_TIMEOUT
- CODE_EXEC_MAX_EXEC_TIMEOUT
- CODE_EXEC_LOG_DIR
Security Notes
This server explicitly enables full code execution on the host system, making it inherently high-risk if exposed to untrusted agents or environments. While it uses `shlex.quote` for Python code, this primarily protects the command execution context, not the code content itself. There are no obvious unintended vulnerabilities like hardcoded secrets or arbitrary `eval` within the server's own logic beyond its stated purpose. However, its core function is to execute arbitrary commands/code, which is a significant security risk by design. The README explicitly warns about this inherent risk.
Similar Servers
chrome-devtools-mcp
Control and inspect a live Chrome browser programmatically via an MCP server, enabling AI coding agents to perform reliable automation, in-depth debugging, and performance analysis.
MCP-Kali-Server
Enabling AI-driven offensive security testing by bridging AI agents to a Kali Linux terminal for command execution.
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 Python code execution sandbox for AI agents to programmatically interact with MCP tools and execute code actions in a stateful, sandboxed environment.