Enables LLM agents to execute arbitrary Python code securely within isolated, ephemeral sandboxes via a lightweight Model Context Protocol server.
PRIMS is a lightweight, open-source Model Context Protocol (MCP) server designed to provide LLM agents with a safe and secure environment for executing arbitrary Python code. It streamlines development by offering a single, focused `run_code` tool that operates within isolated, reproducible sandboxes. Each execution session spins up a fresh virtual environment, handles package installations, mounts optional read-only files, and then disposes of the workspace, all with zero configuration, making it easy to deploy locally or with Docker.