PRIMS
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.
主な機能
01Supports installing pip packages and mounting remote files per session.
02Streams `stdout` and `stderr` back from executed code.
03Provides isolated and reproducible execution environments using virtual environments.
047 GitHub stars
05Exposes a single `run_code` MCP tool for Python execution.
06Enables persisting generated artifacts to external storage.
ユースケース
01Generating and persisting outputs like plots or data files from agent-executed code.
02Analyzing datasets by mounting them into the execution environment.
03Allowing LLM agents to safely run Python code for complex tasks.