📦
Run Code
MCP Run Code (FastMCP)
0 installs
Trust: 34 — Low
Devtools
Ask AI about Run Code
Powered by Claude · Grounded in docs
I know everything about Run Code. Ask me about installation, configuration, usage, or troubleshooting.
0/500
Loading tools...
Reviews
Documentation
Code Executor MCP
Secure code execution sandbox for Model Context Protocol (MCP).
Features
- Secure Python execution in Docker containers
- Memory, CPU, and PIDS limits
- API Key authentication
- Task-based execution support
- Truncated output handling
Configuration
Configure using environment variables or a .env file:
cp .env.example .env
MCP_API_KEY: Required for authenticationMCP_PORT: Server port (default: 8000)MCP_DOCKER_IMAGE: Sandbox image (default: python:3.12-alpine)
Authentication
- The server accepts only
Authorization: Bearer <MCP_API_KEY>. - Requests without a Bearer token are rejected.
Usage
Local Development
uv sync
uv run main.py
Docker
docker build -t mcp-manager .
docker run --rm -it \
--env-file .env \
-p 8000:8000 \
-v /var/run/docker.sock:/var/run/docker.sock \
-v /tmp:/tmp \
mcp-manager
