Enables LLM agents to safely execute arbitrary Python code within a secure, ephemeral sandbox via a lightweight, open-source Model Context Protocol (MCP) server.
PRIMS is a lightweight, open-source Model Context Protocol (MCP) server designed to empower LLM agents with the ability to safely execute arbitrary Python code. It provides a secure, throw-away sandbox for each execution, ensuring isolation and reproducibility. The server exposes a simple `run_code` tool that manages virtual environments, installs dependencies, handles file mounts, and streams back standard output and error, making it versatile for various deployment scenarios including direct execution or Dockerized environments.