Python MCP server executing user code in isolated sandboxes with pip deps, file mounts, and artifact management.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
One-click editor setup isnβt available for this listing yet β we donβt have a confirmed install command, and weβd rather show nothing than point your editor at the wrong package or host. Follow the projectβs own setup instructions, linked above.
Inspect callable tools, capabilities, and parameters exposed to AI agents by PRIMS.
run_codeExecute Python in an isolated sandbox with optional pip deps.
list_dirList files/directories inside your session workspace.
preview_fileReturn up to 8 KB of a text file for quick inspection.
persist_artifactUpload an `output/` file to a client-provided presigned URL.
mount_fileDownload a remote file once per session to `mounts/<path>`.
PRIMS is a tiny open-source Model Context Protocol (MCP) server that lets LLM agents run arbitrary Python code in a secure, throw-away sandbox.
β’ One tool, one job. Exposes a single MCP tool β run_code β that executes user-supplied Python and streams back stdout / stderr.
β’ Isolated & reproducible. Each call spins up a fresh virtual-env, installs any requested pip packages, mounts optional read-only files, then nukes the workspace.
β’ Zero config. Works over MCP/stdio or drop it in Docker.
You can use the provided script to list all tools exposed by the server:
Expected output (tool names and descriptions may vary):
This mounts a CSV with mount_file and then reads it inside run_code without re-supplying the URL.
This shows how to use the list_dir and preview_file tools to browse files your code created.
The persist_artifact tool uploads a file from your output/ directory to a presigned URL.
Example (Python):
Small artifacts can be fetched directly:
| Tool | Purpose |
|---|---|
run_code | Execute Python in an isolated sandbox with optional pip deps. |
list_dir | List files/directories inside your session workspace. |
preview_file | Return up to 8 KB of a text file for quick inspection. |
persist_artifact | Upload an output/ file to a client-provided presigned URL. |
mount_file | Download a remote file once per session to mounts/<path>. |
See the examples/ directory for end-to-end demos.
Contributions are welcome! Feel free to open issues, suggest features, or submit pull requests to help improve PRIMS.
If you find this project useful, please consider leaving a β to show your support.
Factual signals from GitHub, npm, and our automated checks β not a rating.
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/hileamlakb-prims)<a href="https://allmcps.com/mcp/hileamlakb-prims"><img src="https://allmcps.com/api/badge/hileamlakb-prims?style=directory" alt="PRIMS on AllMCPs" /></a>